Content
# FastMCP Sensor Controller
This project is an experimental server that controls sensors and LEDs via MCP, in collaboration with ESP32 (MicroPython) and MQTT. By replacing the MQTT server with Azure IoT Hub or similar, you can also enable communication between the microcontroller and the internet.
FastMCP Documentation: https://gofastmcp.com/getting-started/welcome
## ✅ Configuration

- ESP32 (MicroPython):
- Microcontroller
- ESP32-DevKit (with technical compliance mark)
- https://amzn.to/4iWmr4s
- Components
- DHT11 Temperature and Humidity Sensor (DHT11 module)
- https://amzn.to/43jR2n8
- RGB LED (GPIO 13, 12, 16) (KY-016)
- https://amzn.to/4mbcnYp
- Role
- Receive and respond to commands via MQTT
- FastMCP:
- Send commands to MQTT via SSE
- Capable of sensor acquisition and LED control
## 🚀 How to Start (MCP Server & MQTT Broker)
```bash
docker compose up -d
```
## 💾 Writing with MicroPython
Please refer to the following for instructions on how to install MicroPython on the ESP32.
https://zenn.dev/kotaproj/articles/d969fb39100da443f41f
Upload the main.py file located in the esp32_micropython folder to the ESP32.
(Using an IDE like Thonny is convenient)
## 🧪 Configuration of ClaudeDesktop (MCP Client)
```json
{
"mcpServers": {
"sensorController": {
"command": "npx",
"args": [
"mcp-remote",
"http://127.0.0.1:8888/sse"
]
}
}
}
```
Connection Info
You Might Also Like
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
servers
Model Context Protocol Servers
Time
A Model Context Protocol server for time and timezone conversions.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
Sequential Thinking
A structured MCP server for dynamic problem-solving and reflective thinking.