ESPHome MCP Server
Provides tools for interacting with an ESPHome dashboard, enabling listing devices, checking firmware update availability, viewing device status and versions, reading and editing YAML configurations, validating configurations, streaming device logs, retrieving ESPHome configuration schemas, and compiling/flashing or updating firmware via OTA.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ESPHome MCP Server
An MCP (Model Context Protocol) server for interacting with an ESPHome dashboard. Provides read-only tools to list devices, check for updates, view configurations, and stream logs.
Tools
Tool | Description |
| List all configured devices with versions, addresses, status, and platform info |
| List only the names of all configured devices |
| Check if a firmware update is available for a specific device |
| Check whether a device is online or offline |
| Get the deployed and current firmware versions for a device |
| View the YAML configuration file for a device, or save it to a local file with |
| Stream and collect logs from a device (configurable duration, max 30s) |
| Get the ESPHome configuration schema for a specific version (list components or get a component's schema) |
| Validate a configuration without modifying anything — pass a device name (validates the saved config on the dashboard) or a path to a local YAML file (validated with the ESPHome CLI) |
| Save a new YAML configuration for a device (saves and validates); pass the YAML inline via |
| Compile and flash firmware to a device via OTA |
| Recompile and flash a device with the latest ESPHome version |
Related MCP server: Home Assistant MCP Server (HA-mcp)
Installation
pip install .Or for development:
pip install -e .Configuration
Set the following environment variables:
Variable | Required | Description |
| Yes | Base URL of your ESPHome dashboard (e.g., |
| No | Username for Basic Auth (if dashboard auth is enabled) |
| No | Password for Basic Auth (if dashboard auth is enabled) |
| No | Logging level (default: |
Usage
Standalone
export ESPHOME_DASHBOARD_URL=http://192.168.1.100:6052
esphome-mcpClaude Desktop
Add to your Claude Desktop MCP configuration (claude_desktop_config.json):
{
"mcpServers": {
"esphome": {
"command": "esphome-mcp",
"env": {
"ESPHOME_DASHBOARD_URL": "http://192.168.1.100:6052"
}
}
}
}With authentication
{
"mcpServers": {
"esphome": {
"command": "esphome-mcp",
"env": {
"ESPHOME_DASHBOARD_URL": "http://192.168.1.100:6052",
"ESPHOME_DASHBOARD_USERNAME": "admin",
"ESPHOME_DASHBOARD_PASSWORD": "your-password"
}
}
}
}Claude Code
Add a .claude/settings.json to your project to auto-approve the read-only tools exposed by this server:
{
"permissions": {
"allow": [
"mcp__esphome__list_devices",
"mcp__esphome__list_device_names",
"mcp__esphome__check_device_update",
"mcp__esphome__get_device_status",
"mcp__esphome__get_device_version",
"mcp__esphome__get_device_configuration",
"mcp__esphome__get_device_logs",
"mcp__esphome__get_esphome_schema",
"mcp__esphome__validate_device_configuration"
]
},
"mcpServers": {
"esphome": {
"command": "esphome-mcp",
"env": {
"ESPHOME_DASHBOARD_URL": "http://192.168.1.100:6052"
}
}
}
}Docker
Build the image:
docker build -t esphome-mcp .Run standalone:
docker run --rm \
-e ESPHOME_DASHBOARD_URL=http://192.168.1.100:6052 \
-p 8080:8080 \
esphome-mcpThe Docker image runs the MCP server in HTTP mode on port 8080.
Docker Compose
services:
esphome:
image: ghcr.io/esphome/esphome
volumes:
- ./esphome-config:/config
ports:
- "6052:6052"
restart: unless-stopped
esphome-mcp:
image: ghcr.io/kdkavanagh/esphome-mcp:latest
ports:
- "8080:8080"
environment:
- ESPHOME_DASHBOARD_URL=http://esphome:6052
# Uncomment if your dashboard has auth enabled:
# - ESPHOME_DASHBOARD_USERNAME=admin
# - ESPHOME_DASHBOARD_PASSWORD=your-password
depends_on:
- esphomeTo use the Docker container with Claude Desktop, configure with the HTTP URL:
{
"mcpServers": {
"esphome": {
"type": "http",
"url": "http://localhost:8080/mcp"
}
}
}Disclaimer
I had claude-code write this mcp server, under my (a professional software engineer with 15yrs of experience) supervision.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control and query Heiman smart home devices: lights, AC, curtains, climate, logs and scenes.
Build, run, inspect, and continue AgentScript workflows on connected Super Chrome and Mac clients.
Yeelight home metadata and guarded management workflows.
List, configure, chat with, analyse and embed your Echo AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAccess Home Assistant data and control devices (lights, switches, thermostats, etc).574Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Home Assistant to control smart home devices, query entity states, and manage automations using natural language. It provides over 90 tools for comprehensive system management, including dashboard configuration, service execution, and automation debugging.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to manage ESPHome devices via the 2026.6+ dashboard WebSocket protocol, including listing, configuring, validating, and flashing firmware.37MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage ESPHome devices by listing, inspecting, editing, validating, compiling, and flashing firmware over-the-air via the ESPHome WebSocket API.17MIT