MCP Server for sensor device
by kmwebnet
This Node.js application simulates a CO2 sensor device and provides a JSON-RPC server for interaction. It can run in simulation mode or connect to a Raspberry Pi Pico for real CO2 level readings.
Last updated: N/A
What is MCP Server for sensor device?
This is a Node.js application that simulates a CO2 sensor device and provides a JSON-RPC server to interact with it. It can operate in simulation mode or connect to a Raspberry Pi Pico via USB to read real CO2 levels.
How to use MCP Server for sensor device?
- Clone the repository. 2. Install dependencies using
npm install
. 3. Configureclaude_desktop_config.json
. 4. Start the server withnode index.js
. Interact with the server using the provided JSON-RPC methods.
Key features of MCP Server for sensor device
Simulates CO2 sensor device
Reads real CO2 levels from Raspberry Pi Pico
Provides device information via JSON-RPC
Supports MQTT publishing (mocked)
Supports WiFi and MQTT reconnection (mocked)
Use cases of MCP Server for sensor device
Simulating CO2 sensor data for testing
Integrating with Claude Desktop
Monitoring CO2 levels using Raspberry Pi Pico
Developing IoT applications
Testing JSON-RPC communication
FAQ from MCP Server for sensor device
What is the purpose of the claude_desktop_config.json
file?
What is the purpose of the claude_desktop_config.json
file?
It configures the server settings for use with Claude Desktop.
How do I switch between simulation mode and real mode?
How do I switch between simulation mode and real mode?
The README doesn't explicitly state how to switch modes, but it likely involves configuration settings within the application code or claude_desktop_config.json
.
Are the MQTT publishing and reconnection functionalities fully implemented?
Are the MQTT publishing and reconnection functionalities fully implemented?
No, the MQTT publishing, WiFi reconnection, and MQTT reconnection functionalities are mocked in this version.
Where are the CO2 levels logged?
Where are the CO2 levels logged?
CO2 levels are logged to a file named co2_level.log
in the user's home directory.
What JSON-RPC methods are available?
What JSON-RPC methods are available?
The available methods are initialize
, shutdown
, resources/list
, resources/read
, tools/list
, and tools/call
.