What it is
ha-mcp is the Home Assistant AI project's community MCP server for Home Assistant. It is distributed as a Home Assistant add-on or integration, a Docker image and a PyPI package.
- Maintainer
- Communityhomeassistant-ai on GitHub (organisation account, community project)
- Source
- homeassistant-ai/ha-mcp8,290 GitHub stars · MIT licence
- Transport
- stdio, HTTP (Docker/PyPI), remote access via webhook or OAuth (optional)
- Packages
- ha-mcp pypi · latest 9.4.0 · 669,058 downloads last month
- Latest release
- Dev Build 9.5.0.dev3921 2026-12-05
- Public advisories
- 6GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: yes
- Runs code: no
- Network: no
- Sends: no
Service calls can unlock doors, open garages or change alarms, so a wrong tool call has physical effects.
| Tool | What it can do | Notes |
|---|---|---|
ha_call_service | Writes | Calls any Home Assistant service, including locks, covers and alarms. |
ha_bulk_control | Writes | |
ha_config_set_automation | Writes | |
ha_config_remove_automation | Deletes | |
ha_config_set_script | Writes | |
ha_remove_entity | Deletes | |
ha_remove_device | Deletes | |
ha_write_file | Writes | Beta. |
ha_delete_file | Deletes | Beta. |
ha_config_set_yaml | Writes | Beta. |
ha_manage_backup | Writes, Deletes | |
ha_manage_updates | Writes | |
ha_get_history | Reads | |
ha_get_logs | Reads | |
ha_manage_security_policy | Writes |
README: Complete Tool List (87 tools). The list here is a subset.
Credentials and least privilege
The token acts as the Home Assistant user, and ha-mcp has no per-client access of its own.
| Credential | What it is for | Least privilege |
|---|---|---|
Home Assistant long-lived access token and URL | Authenticates to your Home Assistant. | The README recommends an administrator's token, with limits for non-admin ones. Use a dedicated user, turn on read-only mode, and never share one server between people who should have different access. |
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range. One advisory shows no patched version in the public record as of December 5, 2026. Check the advisory page for status.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-prrg-fp57-vcx4 | Moderate | OAuth 2.1 Temporary HA Credentials Keyed by client_id Instead of Authorization Code Enables Cross-Session LLAT Swap / Race Condition | <= 8.7.0 | 9.0.0 |
| GHSA-mx64-982r-65vg | Moderate | OAuth-mode Settings Routes Missing Authentication | <= 7.13 | 7.14.0 |
| GHSA-q855-8rh5-jfgq | Moderate | Add-on settings and policy routes are reachable without authentication at the bare root path | <= 7.6.0 | n/a |
| GHSA-g39v-cvjh-8fpf | Moderate | YAML config backups written under www/ are served unauthenticated at /local/ | < 7.4.1.dev456 | 7.4.1.dev456 |
| GHSA-fmfg-9g7c-3vq7 · CVE-2026-32111 | Moderate | OAuth 2.1 DCR mode enables network reconnaissance via an error oracle | <=6.7.2 | 7.0.0 |
| GHSA-pf93-j98v-25pv · CVE-2026-32112 | Moderate | XSS via Unescaped HTML in OAuth Consent Form | <=6.7.2 | 7.0.0 |
What stands out
- README: Read Only Mode toggle, per-tool enable and disable, and tool security policies that ask for user approval.
- README: clients sharing one server share its Home Assistant access.
- GitHub lists 6 moderate advisories: OAuth mode issues, unauthenticated settings routes and exposed YAML backups, fixed from 7.0.0 up to 9.0.0.
Safe-install checklist
Install command from the project's docs: uvx ha-mcp.
- Pin the version. Use an exact version, not
latest:uvx ha-mcp==9.4.0. Or the Home Assistant add-on or the ghcr.io/homeassistant-ai/ha-mcp image. - Scope the credential. The README recommends an administrator's token, with limits for non-admin ones. Use a dedicated user, turn on read-only mode, and never share one server between people who should have different access.
- Turn on read-only mode first, and add per-tool approval for lock, alarm and cover services.
- Keep remote access off unless you need it, and run 9.0.0 or later.
- Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itha-mcp:{ "permissions": { "deny": [ "mcp__ha-mcp__ha_call_service", "mcp__ha-mcp__ha_bulk_control", "mcp__ha-mcp__ha_config_set_automation", "mcp__ha-mcp__ha_config_remove_automation", "mcp__ha-mcp__ha_config_set_script", "mcp__ha-mcp__ha_remove_entity", "mcp__ha-mcp__ha_remove_device", "mcp__ha-mcp__ha_write_file" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Home Assistant MCP server (ha-mcp) do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data. Service calls can unlock doors, open garages or change alarms, so a wrong tool call has physical effects.
Does Home Assistant MCP server (ha-mcp) need a token or API key?
Yes, depending on setup: Home Assistant long-lived access token and URL. The token acts as the Home Assistant user, and ha-mcp has no per-client access of its own.
Has Home Assistant MCP server (ha-mcp) had public security advisories?
Yes. 6 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep Home Assistant MCP server (ha-mcp) from changing under me?
Pin the version, for example uvx ha-mcp==9.4.0. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
