I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Server-für-Sensor-Gerät
Dieses Projekt ist eine Node.js -Anwendung für die Verwendung mit Claude Desktop. Es simuliert ein CO2-Sensorgerät und bietet einen JSON-RPC-Server für die Interaktion mit dem Gerät. Die Anwendung kann sowohl im Simulationsmodus als auch im realen Modus ausgeführt werden, in dem sie über USB mit einem Raspberry Pi Pico verbunden ist, um CO2 -Pegel zu lesen.
1
Github Watches
1
Github Forks
2
Github Stars
MCP Server for sensor device
This project is a Node.js application designed for use with Claude Desktop. It simulates a CO2 sensor device and provides a JSON-RPC server to interact with the device. The application can run in both simulation mode and real mode, where it connects to a Raspberry Pi Pico via USB to read CO2 levels.
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 (some functionalities are mocked).
Installation
You need to have Node.js installed on your machine to run this application. If you don't have Node.js installed, you can download it from the official website.
-
Clone the repository.
-
Install the dependencies using npm:
npm install
Configuration
Ensure that the claude_desktop_config.json
file is correctly configured to run the server. Example configuration:
{
"mcpServers": {
"CO2 sensor": {
"command": "node",
"args": [
"...mcp-server-for-sensor-device/index.js"
],
"env": {}
}
}
}
Usage
To start the server, run the following command:
node index.js
JSON-RPC Methods
initialize
Initializes the server and returns server capabilities.
shutdown
Shuts down the server.
resources/list
Lists available resources.
resources/read
Reads the specified resource.
tools/list
Lists available tools.
tools/call
Calls the specified tool.
DeviceState Class
The DeviceState
class simulates the device state and provides methods to get device information, sensor data, and network status. It also handles the connection to the Raspberry Pi Pico and reads CO2 levels.
Methods
-
getDeviceInfo()
: Returns device information. -
getSensorData()
: Returns sensor data. -
getNetworkStatus()
: Returns network status (mocked functionality). -
publishToMQTT()
: Simulates publishing data to MQTT (mocked functionality). -
reconnectWiFi()
: Simulates reconnecting to WiFi (mocked functionality). -
reconnectMQTT()
: Simulates reconnecting to MQTT (mocked functionality).
Logging
The application logs CO2 levels and other information to a log file located in the user's home directory (co2_level.log
).
License
This project is licensed under the MIT License.
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
I find academic articles and books for research and literature reviews.
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Confidential guide on numerology and astrology, based of GG33 Public information
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.
Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.
Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.
Reviews

user_b7dAcR5n
Flightradar24 MCP Server by Cyreslab-AI is an exceptional server that enhances my flight tracking experience tremendously. Its seamless performance and real-time data make it an invaluable tool for aviation enthusiasts like me. The setup was straightforward, and I appreciate the user-friendly interface. This server has become an essential part of my daily usage, and I highly recommend it to anyone interested in aviation.