HA-MCP: Home Assistant MCP server
HA-MCP is a good Home Assistant MCP server when you want an assistant to configure, inspect, and debug your smart home rather than merely control exposed devices. The deployment options and broad tool coverage are substantial, but the server needs careful access-token and remote-access handling.
What HA-MCP Does
HA-MCP is a self-hosted Home Assistant MCP server for Claude, ChatGPT, and other compatible AI clients. It lets those clients control entities, create and edit automations and scripts, configure dashboards, inspect traces, and manage Home Assistant system tasks.
Natural-Language Home Assistant Control
Home Assistant's built-in assistant path is excellent for ordinary entity control, but it leaves a large operational gap when you need an AI client to create automations, edit dashboards, inspect traces, adjust helpers, or troubleshoot a failing script. HA-MCP fills that gap through a dedicated MCP server backed by Home Assistant configuration and runtime tools.
Configuration and Monitoring Capabilities
- โCreate, inspect, modify, and remove automations, scripts, helpers, scenes, groups, zones, and calendars.
- โControl devices through Home Assistant services, including bulk entity control and live state inspection.
- โEdit Lovelace dashboards and other resources, with the dashboard screenshot tool currently marked as beta.
- โDebug behavior through automation traces, logs, history, statistics, camera snapshots, and Z-Wave parameter reads.
- โManage areas, floors, labels, categories, blueprints, integrations, device registry entries, and entity registry entries.
- โHandle Home Assistant system work such as backups, restores, updates, apps, themes, and developer settings.
- โProtect sensitive operations with Read Only Mode, per-tool toggles, security policies, user approval, and automatic edit backups.
- โExpose optional file and YAML tools through a separate File & YAML Tools entry; these features are off by default.
Installing Through Marketplace or HACS
The preferred path is to install HA-MCP as a Home Assistant integration. Home Assistant 2026.11 or newer can use the built-in Marketplace; Home Assistant 2026.8โ2026.10 users can install it through HACS. Restart Home Assistant, add the HA-MCP Server integration, provide an administrator token or dedicated account, choose remote or local access, and copy the resulting connection URL into the AI client. For a manual installation, copy custom_components/ha_mcp_tools/ into the Home Assistant config/custom_components/ directory, restart, and add the integration. The app, Docker, PyPI, uvx, and stdio methods are separate deployment choices; use only one server instance per client.
Strengths
- โCovers configuration, monitoring, and device control rather than limiting AI clients to voice-style commands.
- โThe in-process integration runs across Home Assistant OS, Supervised, Container, and Core installations.
- โSupports local-only operation as well as remote access through a Home Assistant webhook.
- โProvides explicit safety controls such as Read Only Mode, per-tool enablement, approval policies, and edit backups.
- โOffers several deployment paths, including Marketplace or HACS, the Home Assistant app, Docker, PyPI, and uvx.
- โExposes a detailed tool surface for automations, scripts, dashboards, helpers, registries, traces, logs, and system management.
Deployment and Security Constraints
- โณThe in-process integration requires Home Assistant 2026.8.0 or newer, so older installations need a different deployment path or may need upgrading.
- โณAn administrator token or an administrator-capable account is needed for the recommended setup; a compromised credential can affect the whole Home Assistant instance.
- โณRun only one HA-MCP installation per client. Running the integration alongside Docker, uvx, or another server can cause connection hangs.
- โณThe stdio transport has known connection problems and is intended mainly for demos and testing, not production use.
- โณFile and YAML editing tools are opt-in and require the separate File & YAML Tools entry; some tools, including YAML editing, are marked beta.
- โณRemote access through a webhook, OIDC, or another proxy expands the security surface and must be configured deliberately.
HA-MCP Versus Built-In MCP
Frequently Asked Questions
HA-MCP is MIT-licensed open source, and the README states that no paid subscription is required for the demo environment. Claude, ChatGPT, and other connected AI services may still have their own subscription or usage terms.
The HA-MCP integration requires Home Assistant 2026.8.0 or newer. Home Assistant 2026.11 or newer can install it through the Marketplace, while Home Assistant 2026.8โ2026.10 users install it through HACS.
HA-MCP works with Claude, ChatGPT, Gemini CLI, Open WebUI, VS Code, Cursor, and other MCP clients. The client must be configured with the connection URL generated by the HA-MCP setup screen.
HA-MCP should run as only one server per client. The README warns against running the in-process integration alongside Docker, uvx, PyPI, or stdio, because duplicate entries can cause connection hangs.
Prefer a dedicated HA-MCP account with local access and administrator rights, or use an administrator token only when necessary. Keep remote access disabled for local-only use, or require Home Assistant sign-in with ha_auth instead of relying only on a secret URL.
HA-MCP's stdio transport has documented connection problems, while streamable HTTP avoids those known transport issues. The README therefore recommends stdio for demos and testing rather than a real production setup.
Best use cases
- โขCreate an automation from a plain-language request, including triggers, conditions, and actions.
- โขDebug a motion sensor automation by reading its execution trace and identifying the failing step.
- โขEdit a Lovelace dashboard or add a card through an AI client.
- โขCreate a reusable script that coordinates lights, blinds, media, and other smart-home actions.
- โขMonitor entity history, statistics, logs, and camera snapshots from Claude or ChatGPT.
- โขGive a small smart-home team a conversational interface for configuration changes with per-tool approval controls.
Who should try it โ and who should skip
Try HA-MCP if you actively manage automations, scripts, dashboards, helpers, or device issues and want to work with Home Assistant through Claude, ChatGPT, or another MCP client. Skip it if you only need simple voice commands for already-exposed entities, cannot give it suitable credentials, or do not want to manage the extra security choices around a privileged Home Assistant server.
Related repositories
Want a second opinion on ha-mcp?
Ask an AI that can read this page โ one click and you get its take on ha-mcp.
