Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyOther

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

A running Home Assistant and an administrator access token (a long-lived token, or an account made for HA-MCP). The custom component route needs HACS or the built-in Marketplace on Home Assistant 2026.11+. The app route needs Home Assistant OS or Supervised.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.