This project is a Node.js application designed for use with Claude Desktop. It simulates a CO2 sensor device and provides a JSON-RPC server to interact with the device. The application can run in both simulation mode and real mode, where it connects to a Raspberry Pi Pico via USB to read CO2 levels.
Overview
What is MCP Server for Sensor Device?
MCP Server for Sensor Device is a Node.js application that simulates a CO2 sensor device and provides a JSON-RPC server for interaction. It can operate in both simulation mode and real mode, connecting to a Raspberry Pi Pico to read actual CO2 levels.
How to use MCP Server for Sensor Device?
To use the MCP Server, clone the repository, install the dependencies using npm, configure the claude_desktop_config.json file, and start the server with the command node index.js.
Key features of MCP Server for Sensor Device?
- Simulates a CO2 sensor device with random CO2 levels in simulation mode.
- Connects to a Raspberry Pi Pico via USB to read real CO2 levels.
- Provides device information, sensor data, and network status via JSON-RPC.
- Supports commands to publish data to MQTT and manage WiFi connections.
Use cases of MCP Server for Sensor Device?
- Monitoring indoor air quality by reading CO2 levels.
- Simulating sensor data for testing applications.
- Integrating with IoT systems for environmental monitoring.
FAQ from MCP Server for Sensor Device?
- Can this server simulate multiple sensors?
Yes, it can simulate multiple CO2 sensors in simulation mode.
- Is it necessary to have a Raspberry Pi Pico for real mode?
Yes, a Raspberry Pi Pico is required to read real CO2 levels in real mode.
- How do I log CO2 levels?
The application logs CO2 levels to a file located in the user's home directory.