AI Review Ready
Home / MCP scans / Server directory / homeassistant-ai/ha-mcp
MCP server · homeassistant-ai/ha-mcp

homeassistant-ai/ha-mcp: MCP safety grade A

Hand-checked safety hygiene for the homeassistant-ai/ha-mcp MCP server: tool safety hints, pinned installs and committed configs, with file-and-line evidence.

MCP safety A 90/100

Short answer: at the commit we checked, homeassistant-ai/ha-mcp scores 90/100 (grade A): 90 of 90 tools carry an MCP safety hint, 45 of 45 destructive-like tools say they change things, and its README has at least one launch line with no pinned version. This is a hygiene grade, not a security audit.

What we checked

Repositoryhomeassistant-ai/ha-mcp · MIT · Python · about 8,133 GitHub stars
Commit checked5447a7e, scanned 14–15 Nov 2026, hand-checked 26 Nov 2026. The repository has had 177 commits since then (as of 26 Nov 2026), so the current code may score differently.
Tools the server registers90
Tools with any MCP safety hint90 of 90
Destructive-like tools (delete, write, run, execute…)45, of which 45 carry a hint
README install linehas at least one launch line with no pinned version
Config findingsnone

How the score adds up

Start100
README tells you to launch it without a pinned version−10
Score90 / 100 → grade A

Rules in full: methodology. A–F: A 90+, B 80–89, C 70–79, D 60–69, F below 60.

Evidence from the code

  • How tools are registered: 85 @mcp.tool(...) / @tool(...) decorators (functions and class methods registered via register_tool_methods -> mcp.add_tool) in src/ha_mcp/tools/tools_*.py plus tools/backup.py, auto-discovered by ToolsRegistry (tools/registry.py:159-194); + ha_get_skill_guide registered in server.py:955; + 4 tools that replace the catalog when ENABLE_TOOL_SEARCH is on (ha_search_tools, ha_call_read_tool, ha_call_write_tool, ha_call_delete_tool in transforms/categorized_search.py). Vendored FastMCP/mcp code under src/ha_mcp/_vendor, tests and docs excluded. Names and descriptions read statically (docstring or description= kwarg)
  • How safety hints are set: inline annotations=read_only_hints(...) / write_hints(...) on every decorator; helpers in tools/tool_hints.py return dicts with readOnlyHint, destructiveHint, idempotentHint, openWorldHint. Search-mode proxies carry fixed ToolAnnotations (_PROXY_ANNOTATIONS, _SEARCH_TOOL_ANNOTATIONS)
  • src/ha_mcp/tools/tool_hints.py:17-38 read_only_hints() and write_hints() return readOnlyHint, destructiveHint, idempotentHint, openWorldHint
  • src/ha_mcp/tools/registry.py:159-194 auto-discovers every tools_*.py module plus backup.py and calls its register_*_tools
  • src/ha_mcp/tools/helpers.py:875-886 register_tool_methods adds @tool-decorated class methods via mcp.add_tool
  • src/ha_mcp/tools/*.py: 85 decorated tools, 34 with annotations=read_only_hints(...) and 51 with annotations=write_hints(...)
  • src/ha_mcp/server.py:955-962 ha_get_skill_guide registered with annotations=read_only_hints(...)
  • src/ha_mcp/transforms/categorized_search.py:130-159 ha_call_read_tool / ha_call_write_tool / ha_call_delete_tool / ha_search_tools carry fixed annotations; only served when ENABLE_TOOL_SEARCH is set (config_settings.py:502-504, default False)
  • destructive-like examples: tools_filesystem.py:778 ha_write_file, :961 ha_delete_file, tools_system.py:134 ha_restart ('Execute ...'), tools_utility.py:326 ha_eval_template (readOnlyHint true), all with hints

Using it more safely

  • Pin the version in your MCP config (package@1.2.3 or package==1.2.3, never @latest), so an update can't change what runs without you knowing.
  • Give it the least access it needs: a scoped token or a test account, not your admin credentials, and only the folders or projects the task needs.
  • Check your own config for unpinned servers, broad folders and hard-coded tokens with the free MCP config checker (runs in your browser).

Shipping an AI agent that uses MCP servers and facing a security review? See how to answer the MCP question, or get your agent reviewed.

Compare with similar servers

Category: Productivity, notes & memory MCP servers (all grades side by side, plus the safer setup for this kind of server).

For the maintainers

Add the badge to your README (it links back to this page, and updates when we re-check):

[![MCP safety: A](https://aireviewready.in/badge/mcp/homeassistant-ai-ha-mcp.svg)](https://aireviewready.in/mcp/servers/homeassistant-ai-ha-mcp/)

Fixed something, or think we got it wrong? Ask for a re-check and name the commit. We reply within 7 days. Code-level security issues are never published here; they're reported privately first.