Home Assistant MCP (ha-mcp)
Lets your AI agent control smart home devices, read states and manage automations in Home Assistant using plain language.
5.4k stars on GitHubby homeassistant-ai (community)License MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add ha -- uvx ha-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Turn off all the lights in the living room.
What is the temperature in the bedroom right now?
What it is
ha-mcp is an unofficial MCP server that connects AI assistants to your Home Assistant. You can control devices, check states, run services and manage automations by talking to the assistant. The recommended setup is a custom component installed through HACS, and other ways include a Home Assistant app, Docker and PyPI.
What it can do
- Control smart home devices
- Query device and entity states
- Execute Home Assistant services
- Manage automations
ha_config_set_yaml: edit YAML configuration (moved to beta)
When to use
- βΊWhen you want to turn lights or other devices on and off by asking in chat.
- βΊWhen you want help writing or changing a Home Assistant automation.
- βΊWhen you want to check what state a sensor or device is in.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
offensive-z-waveHelps your agent review Z-Wave smart home devices, such as door locks and sensors, for weak network keys and older security modes during approved tests.offensive-zigbee-thread-matterHelps your agent review smart home mesh devices that use Zigbee, Thread and Matter, checking pairing and setup steps during approved security tests.review-homecore-migrationTeaches your agent to review a Home Assistant data migration before anything is written, keeping settings intact and secrets hidden.Frequently asked questions
Is it official?
No. The project calls itself the Unofficial and Awesome Home Assistant MCP Server.
Is it free?
The readme shows a license file and a sponsors link, and there is a demo server you can try without a paid subscription.
Which Home Assistant installs work?
The custom component works on Home Assistant OS, Supervised, Container and Core. The app route needs OS or Supervised.
Is my token safe?
The readme suggests making a separate admin account for HA-MCP with local access only, because your own token works from anywhere if it leaks.
Can I use it away from home?
Yes. Remote access can go through a webhook URL via Nabu Casa or a reverse proxy, or you can keep it local only.
Can I run several installs?
The readme says to configure exactly one install method per client, because duplicates can cause connection hangs.
If it does not work
- βΊUse only one install method per AI client. Two entries for the same server are a known cause of hangs.
- βΊAfter installing the custom component, restart Home Assistant before adding the integration.
- βΊThe readme says stdio has known transport issues. Prefer the custom component or an HTTP method.
5 new skills a week. 1 minute to read.