Control ESP32 IoT devices from AI agents: status, GPIO, ADC, reboot.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally
This server runs on your machine over stdio, but its source registry didn't list a distribution package. Check the source repository for setup instructions.
Control and read ESP32 IoT devices directly from AI agents (Claude, Cursor, any MCP client).
esp32.status — online / chip / free heap / uptimeesp32.gpio_set — set a GPIO high/lowesp32.gpio_read — read a digital pinesp32.adc_read — read analog voltage (mV)esp32.send_command — raw AT/application commandesp32.reboot — reboot the deviceAI agent (Claude/Cursor) → this MCP server (Python) → ESP32 REST API → device
The ESP32 runs a tiny MicroPython firmware (esp32_firmware/main.py) exposing a
lightweight REST API on port 80. The MCP server talks to it over HTTP — works
locally and remotely.
esp32_firmware/main.py as main.py (Thonny or mpremote).ESP32-MCP (password 12345678)
or you can set STA mode inside the firmware to join your network.pip install esp32-mcp
export ESP32_HOST=http://192.168.4.1 # device address (AP default)
esp32-mcp # stdio transport (local MCP client)
For remote agents, run with HTTP transport:
uv run esp32-mcp --transport http --port 8000
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"esp32": {
"command": "esp32-mcp",
"env": { "ESP32_HOST": "http://192.168.4.1" }
}
}
}
Cursor: Settings → MCP → Add server → esp32-mcp with env ESP32_HOST.
Then just ask: "turn GPIO 2 on", "what's the ADC reading on pin 34?", "reboot the device".
| Env var | Default | Meaning |
|---|---|---|
ESP32_HOST | http://192.168.4.1 | ESP32 REST endpoint |
ESP32_TIMEOUT | 8 | request timeout (s) |
2, 4, 5, 18, 19 by default (edit GPIO_OUT
in the firmware to change).| Plan | Price | What you get |
|---|---|---|
| Free | $0 | All 6 core tools, single device |
| Pro | $9/mo or $90/yr | Multi-device, history, batch control, OTA, webhooks |
Free is not a trial — core tools work forever. Upgrade when you need scale.
MIT