Content
# FastMCP Sensor Controller
This project is an experimental server for controlling sensors and LEDs via MCP using ESP32 (MicroPython) and MQTT. By replacing the MQTT server with Azure IoT Hub, you can also communicate with the microcontroller over the internet.
FastMCP documentation: https://gofastmcp.com/getting-started/welcome
## ✅ Configuration

- ESP32 (MicroPython):
- Microcontroller
- ESP32-DevKit (※ with technical certification mark)
- https://amzn.to/4iWmr4s
- Parts
- 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
- Can acquire sensor data and control LEDs
## 🚀 Startup Method (MCP Server & MQTT Broker)
```bash
docker compose up -d
```
## 💾 Writing to MicroPython
Refer to the following for installing MicroPython on ESP32.
https://zenn.dev/kotaproj/articles/d969fb39100da443f41f
Upload `main.py` in the `esp32_micropython` folder to ESP32.
(It is convenient to use an IDE such as Thonny)
## 🧪 ClaudeDesktop (MCP Client) Settings
```json
{
"mcpServers": {
"sensorController": {
"command": "npx",
"args": [
"mcp-remote",
"http://127.0.0.1:8888/sse"
]
}
}
}
```
Connection Info
You Might Also Like
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
servers
Model Context Protocol Servers
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.