ESP32 MCP Server
Sends commands to Tasmota devices (e.g., toggle relays, read sensors) via HTTP using structured commands like Power1 1.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ESP32 MCP ServerTurn on the living room light"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ESP32 MCP Server β Connect LLMs with IoT Devices
A lightweight Model Context Protocol (MCP) bridge that lets large language models (LLMs) directly communicate with an ESP32 running Tasmota or similar firmware.
This project demonstrates how an AI assistant (like ChatGPT or Copilot) can reason about user intent and execute physical actions β such as toggling relays or reading sensors β in real time, using standard HTTP commands.
π Overview
Traditional IoT automation relies on fixed rules, MQTT topics, or REST endpoints.
This project replaces all that with a simple concept:
The LLM talks to your ESP32 through a universal protocol β MCP.
No firmware rebuilds, no MQTT brokers, no cloud dependencies.
Just plain human language turned into structured, executable commands.
You can read the full article here:
π Connecting LLMs and IoT: How an ESP32 Can Speak MCP and Follow AI Commands
And watch the walkthrough video:
π₯ ESP32 + MCP + LLM Integration Demo
Related MCP server: mcp2mqtt
π§ What It Does
Bridges MCP (Model Context Protocol) and your ESP32 firmware (e.g., Tasmota)
Exposes a single tool:
tasmota-cmd, letting LLMs send commands like:/tasmota-cmd {"command": "Power1 1"}Works locally β no API keys or external services required
Compatible with Visual Studio Code Copilot Chat or any LLM supporting MCP
βοΈ How It Works
LLM (Copilot/ChatGPT)
β
MCP Protocol
β
Node.js MCP Server
β
ESP32 (Tasmota)The MCP server receives structured requests, converts them into Tasmota commands (e.g. Power1 ON, Backlog PulseTime1 400; Power1 1), and sends them via HTTP to your ESP32 device.
The responses are returned to the model as plain text for reasoning and follow-up actions.
π Quick Start
1. Clone this repo
git clone https://github.com/<your-username>/esp32-mcp-server.git
cd esp32-mcp-server2. Install dependencies
npm install3. Configure your device IP
Edit the constant inside index.js:
const DEVICE_IP = "192.168.1.xxx";4. Run the server
node index.jsYouβll see output similar to:
MCP HTTP server: http://localhost:3000/mcp
Health: http://localhost:3000/health
Debug: http://localhost:3000/debug?command=Power1%201π¬ MCP Server in VS Code
To connect with GitHub Copilot Chat or compatible tools, add this configuration in your .config/github-copilot/ file:
{
"servers": {
"esp32-mcp": {
"url": "http://localhost:3000/mcp",
"type": "http"
}
}
}Reload Copilot, and youβll see your new MCP tool:
/tasmota-cmd {"command": "Power1 1"}π§© Dependencies
Node.js 18+
@modelcontextprotocol/sdkexpresszod
π§° Compatible Firmwares
Firmware | Compatibility | Notes |
Tasmota | β | Full command support (HTTP, MQTT, Serial) |
ESP-AT | βοΈ | Limited GPIO access (requires Driver AT build) |
ESPHome | β οΈ | Static configuration β not ideal for real-time control |
πΊ Reference & Resources
π§ Concept Summary
This project proves that intelligence in IoT doesnβt need more APIs β it needs context.
By combining:
Tasmotaβs readable command interface,
MCPβs standardized AI communication layer, and
ESP32βs hardware flexibility,
you get a device that can understand and act on intent, not just follow hardcoded rules.
π License
MIT License Β© 2025 [Your Name or tinkeriot.com]
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceA bridge connecting physical hardware with AI large language models through the Model Context Protocol (MCP), enabling natural language control of TCP devices.Last updated38MIT
- AlicenseBquality-maintenanceAn MCP server that bridges the physical world and AI models by enabling natural language control of IoT hardware via the MQTT protocol. It supports real-time device monitoring, command publishing, and response handling for seamless integration between AI clients and physical devices.Last updated3
- Flicense-qualityDmaintenanceThis server bridges the Model Context Protocol (MCP) to the MQTT protocol, allowing LLMs to interact with IoT devices and hardware systems through configurable message topics. It enables users to map natural language prompts to specific MQTT commands for controlling devices like Raspberry Pi fans or PWM controllers.Last updated1
- Alicense-qualityDmaintenanceA bridge that enables any LLM to access and interact with documented REST APIs through the Model Context Protocol (MCP).Last updated116MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors β no code.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tinkeriotops/esp32-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server