PTS security notes / MCP servers / Home Assistant MCP server (ha-mcp)

Is Home Assistant MCP server (ha-mcp) safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It acts on your Home Assistant with an administrator token and its tools can call any service, edit automations, scripts and YAML, delete entities and manage backups. The README documents a read-only mode, per-tool enable and disable, and tool security policies that ask for user approval. GitHub lists 6 moderate advisories, mostly about remote-access OAuth mode. Use a read-only mode and a limited account.

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.

Service calls can unlock doors, open garages or change alarms, so a wrong tool call has physical effects.

ToolWhat it can doNotes
ha_call_serviceWritesCalls any Home Assistant service, including locks, covers and alarms.
ha_bulk_controlWrites
ha_config_set_automationWrites
ha_config_remove_automationDeletes
ha_config_set_scriptWrites
ha_remove_entityDeletes
ha_remove_deviceDeletes
ha_write_fileWritesBeta.
ha_delete_fileDeletesBeta.
ha_config_set_yamlWritesBeta.
ha_manage_backupWrites, Deletes
ha_manage_updatesWrites
ha_get_historyReads
ha_get_logsReads
ha_manage_security_policyWrites

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.

CredentialWhat it is forLeast privilege
Home Assistant long-lived access token and URLAuthenticates 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.

AdvisorySeveritySummaryAffectedFixed in
GHSA-prrg-fp57-vcx4ModerateOAuth 2.1 Temporary HA Credentials Keyed by client_id Instead of Authorization Code Enables Cross-Session LLAT Swap / Race Condition<= 8.7.09.0.0
GHSA-mx64-982r-65vgModerateOAuth-mode Settings Routes Missing Authentication<= 7.137.14.0
GHSA-q855-8rh5-jfgqModerateAdd-on settings and policy routes are reachable without authentication at the bare root path<= 7.6.0n/a
GHSA-g39v-cvjh-8fpfModerateYAML config backups written under www/ are served unauthenticated at /local/< 7.4.1.dev4567.4.1.dev456
GHSA-fmfg-9g7c-3vq7 · CVE-2026-32111ModerateOAuth 2.1 DCR mode enables network reconnaissance via an error oracle<=6.7.27.0.0
GHSA-pf93-j98v-25pv · CVE-2026-32112ModerateXSS via Unescaped HTML in OAuth Consent Form<=6.7.27.0.0

What stands out

Safe-install checklist

Install command from the project's docs: uvx ha-mcp.

  1. 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.
  2. 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.
  3. Turn on read-only mode first, and add per-tool approval for lock, alarm and cover services.
  4. Keep remote access off unless you need it, and run 9.0.0 or later.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it ha-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"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages