homeassistant-ai/ha-mcp

View on GitHub ↗

The Unofficial and Awesome Home Assistant MCP Server

4,403 ★191 forksPythonUpdated 1mo ago

What you need to know

Unofficial but comprehensive Home Assistant MCP server (87 tools, built on FastMCP) that lets AI assistants control, configure, build, and debug a smart home via natural language — device control, automations, scripts, dashboards, traces, history, backups, and add-ons.

Install

Install the HA-MCP Custom Component via HACS (recommended; runs the server in-process)
uvx ha-mcp@latest   (PyPI streamable-HTTP)
Docker: ghcr.io/homeassistant-ai/ha-mcp   (HTTP mode)

Usage

  • •Recommended: add the HA-MCP Custom Component via HACS, restart, add the HA-MCP Server integration, then paste the webhook URL into your AI client
  • •Or run as a Home Assistant add-on / Docker / uvx and point the client at the server URL
  • •Ask e.g. "Create an automation that turns on the porch light at sunset" or "The motion sensor automation isn't working, debug it"

Key features

  • ✓87 tools: search, control (any service, bulk), manage (automations/scripts/dashboards/areas/zones/helpers), monitor (history, stats, camera snapshots, automation traces), system (backups, updates, add-ons, device/entity registry)
  • ✓Search-based tool discovery (BM25) for smaller/local LLMs without deferred tool loading
  • ✓Bundled skills served as MCP resources via skill:// URIs
  • ✓Safety: Read Only Mode, per-tool enable/disable, tool security policies (user approval), automatic edit backups
  • ✓OIDC authentication option for remote access; OpenAI Tunnel option for firewalled ChatGPT setups

Caveats

  • ⚠stdio transport has known connection issues — HTTP or the custom component is recommended
  • ⚠Configure exactly one install method per client; duplicate entries are a known cause of connection hangs
  • ⚠File & YAML tools require the custom component plus beta feature flags (ha_config_set_yaml moved to beta in v7.3.0)
  • ⚠Runs locally; client toollists must be refreshed after changing server settings
Platforms: Home Assistant OS · Supervised · Container · Core · Windows · macOS · LinuxClients: Claude Desktop · Claude.ai · Claude Code · ChatGPT · Gemini CLI · Open WebUI · VS Code · Cursor · Codex · GitHub Copilot CLI
Documentation ↗

Reviewed 2026-08-07

Topics

aiclaudehacshome-assistanthome-automationllmmcpmodel-context-protocol
Stars
4,403★
Forks
191
Language
Python
License
MIT
Created
2025-09-14
Last push
2026-08-17