kmwebnet_MCP-Server-for-sensor-device

kmwebnet_MCP-Server-for-sensor-device

3.1

If you are the rightful owner of kmwebnet_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 to simulate a CO2 sensor device and provide a JSON-RPC server for interaction.

The MCP Server for sensor device is a versatile Node.js application that simulates a CO2 sensor device. It is designed to work with Claude Desktop and can operate in both simulation and real modes. In simulation mode, it generates random CO2 levels, while in real mode, it connects to a Raspberry Pi Pico via USB to read actual CO2 levels. The server provides a JSON-RPC interface to interact with the device, offering functionalities such as retrieving device information, sensor data, and network status. Additionally, it supports commands for publishing data to MQTT, reconnecting WiFi, and MQTT, although some of these functionalities are mocked. The application is easy to set up and requires Node.js to be installed on the host machine. It logs CO2 levels and other relevant information to a log file in the user's home directory, ensuring that users can track and analyze the data effectively.

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.