This MCP Server simulates a CO2 sensor device, providing a JSON-RPC interface to interact with either a simulated sensor or a real Raspberry Pi Pico connected via USB. Built with Node.js and the SerialPort library, it offers resources for device information, sensor data, and network status, along with tools to publish data to MQTT, reconnect WiFi, and manage MQTT connections. The implementation includes both simulation mode with randomized CO2 levels and real mode that reads actual sensor data, making it ideal for testing IoT applications or integrating CO2 monitoring into AI assistant workflows.
Initializes the server and returns server capabilities.
Shuts down the server.
Lists available resources.
Reads the specified resource.
Lists available tools.
Calls the specified tool.
Returns device information.
Returns sensor data.
Returns network status (mocked functionality).
Simulates publishing data to MQTT (mocked functionality).
Simulates reconnecting to WiFi (mocked functionality).
Simulates reconnecting to MQTT (mocked functionality).
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!