MCP-Server-for-sensor-device

kmwebnet/MCP-Server-for-sensor-device

3.2

If you are the rightful owner of MCP-Server-for-sensor-device and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project is a Node.js application designed for use with Claude Desktop, simulating a CO2 sensor device and providing a JSON-RPC server for interaction.

The MCP Server for sensor device is a Node.js application that simulates a CO2 sensor device. It can operate in two modes: simulation mode, where it generates random CO2 levels, and real mode, where it connects to a Raspberry Pi Pico via USB to read actual CO2 levels. The server provides device information, sensor data, and network status through JSON-RPC. It also supports commands to publish data to MQTT, reconnect WiFi, and reconnect MQTT, although some functionalities are mocked. The application requires Node.js and is configured via a JSON file. It logs CO2 levels and other information to a log file in the user's home directory.

Features

  • 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, reconnect WiFi, and reconnect MQTT.
  • Logs CO2 levels and other information to a log file.