CO2 Sensor MCP ServerServer

kmwebnet
GitHub
Sensor IntegrationNode.jsIoT

Loading subscription status...

💡 Description

A Node.js application that provides a JSON-RPC interface to interact with CO2 sensor data, operating in both simulation mode and with real hardware connections to a Raspberry Pi Pico.

📝 JSON Entries

{
  "mcpServers": [
    {
      "CO2 sensor": {
        "env": {},
        "args": [
          "...mcp-server-for-sensor-device/index.js"
        ],
        "command": "node"
      }
    }
  ]
}

🛠️ Tools

Node.jsMQTT

Features

  • Simulates a CO2 sensor with random levels in simulation mode
  • Connects to Raspberry Pi Pico to read real CO2 levels
  • Provides device information, sensor data, and network status through JSON-RPC
  • Supports commands for publishing data to MQTT, reconnecting WiFi, and reconnecting MQTT

💬 Example Queries

  • Publish CO2 levels to MQTT
  • Get current device information
  • Check network status