The Unofficial and Awesome Home Assistant MCP Server
About
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with Home Assistant. Using natural language, control smart home devices, query states, execute services and manage your automations.
Security Report
Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
6 files analyzed ยท 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Install command not verified. See the repository for install instructions.
View repositoryDocumentation
View on GitHubFrom the project's GitHub README.
Breaking change (v7.3.0):
ha_config_set_yamlhas been moved to beta.
HA-MCP โ Manage Home Assistant with AI

๐ Get Started
The recommended way to run ha-mcp is the HA-MCP integration. It installs into Home Assistant through the built-in Marketplace, runs the full server in-process, and works on every Home Assistant installation type โ Home Assistant OS, Supervised, Container, and Core โ with full feature parity. It is the easiest setup in every case: setup asks for an administrator access token and how clients may connect.
Add it to Home Assistant via the Marketplace (the preferred install):
Quick start:
Only the current stable Home Assistant release is officially supported. Older releases down to 2026.11.0, the technical floor, may or may not run but are not officially supported. A beta release may be supported, but that is not guaranteed; where it is, a fallback keeps current stable working.
- Install the HA-MCP integration (requires Home Assistant 2026.11.0 or newer; see compatibility details).
Open Settings โ Marketplace, accept its first-run warning, and search for HA-MCP, then Install. HA-MCP is in the default catalog, so installing it and receiving its updates do not require connecting GitHub or adding a custom repository. The badge above also opens its catalog page.
Already installed from the earlier
homeassistant-ai/ha-mcp-integrationrepository? It keeps receiving the same releases. Keep GitHub connected in the Marketplace for its background checks on that custom repository. Older installed releases may still appear as HA-MCP Custom Component; searching for HA-MCP matches both names. - Restart Home Assistant.
- Decide which administrator account the server acts as. Either create a long-lived access token on your own account (your profile โ Security โ Long-lived access tokens โ Create token; it works from anywhere if it leaks, and the server's changes show under your name), or, safer, create an account just for HA-MCP under Settings โ People โ Add person with Allow login, Local access only and Administrator on. Never use your own login for the second option.
- Go to Settings โ Devices & Services โ Add Integration, search for HA-MCP and choose HA-MCP Server. Paste your token, or enter the user name and password of the account you made for HA-MCP (HA-MCP creates its token), pick how clients may connect โ Remote access through Home Assistant (start with Secret URL, the simplest; Home Assistant sign-in adds a login) and/or Network access: Local network โ then click Submit. Both start disabled, so a client on another device needs one of them.
- Copy the connect URL from the entry's Configure screen (Settings โ Devices & Services โ โHA-MCP โ Manage Home Assistant with AIโ โ HA-MCP Server โ Configure). A notification confirms the server started and points you there.
- Paste that URL into your AI client โ done.
Connect URL. The Configure screen gives you a Home Assistant webhook URL for remote clients โ https://<your-ha-domain>/api/webhook/<webhook-id> through Nabu Casa or any reverse proxy already pointed at Home Assistant (locally, http://<ha-host>:8123/api/webhook/<webhook-id>). For clients on the same network, the server is also reachable directly at http://<ha-ip>:9584/private_<random>.
- Replaces other install methods: the in-process server is a complete, standalone ha-mcp install โ it takes the place of the app (add-on), Docker, and standalone Python and Local stdio methods. Run only one; do not run the in-process server alongside another install.
- Local only? Leave remote access disabled at setup (or turn off Remote access via webhook in the entry options) โ no webhook is registered at all, while the direct port and sidebar panel keep working.
- Settings panel: while the server runs, an admin-only HA-MCP panel appears in the Home Assistant sidebar for managing tools, feature flags, backups, and themes. You can export and import your settings there to move between the mirror and catalog installations or from the app, Docker or a standalone server.
- Optional authentication: set Authentication mode to
ha_authto require a Home Assistant account sign-in instead of using the secret URL as the credential. - Manual install (no Marketplace): copy
custom_components/ha_mcp_tools/from this repository into your Home Assistantconfig/custom_components/directory, then restart and add the integration as above.
The component's second entry type, the File & YAML services entry (HA-MCP File & YAML Tools), is only needed if you enable ha-mcp's opt-in file and YAML editing tools (feature flags, off by default) โ skip it otherwise; you can add it later at any time. It works with any server type (in-process, app, Docker, or stdio).
Full in-process server documentation โ ยท Setup Wizard for client-specific config โ
๐ Home Assistant app (add-on)
Prefer to run ha-mcp as a Home Assistant app (add-on)? On Home Assistant OS and Supervised installs it is a close second โ no access token to manage, and it works with Claude Desktop, Claude.ai, ChatGPT, and any other MCP client on your local network or configured for remote access.
-
Add the repository to your Home Assistant instance:
If that opens the App store without an add-repository dialog (a known Home Assistant issue), add it manually: Settings โ Apps โ Install app โ โฎ โ Repositories, then paste
https://github.com/homeassistant-ai/ha-mcp. -
Install "Home Assistant MCP Server" from Settings โ Apps โ Install app and click Start. (Home Assistant 2026.2 renamed "Add-ons" to "Apps"; on older versions this is the Add-on store.)
-
Open the Logs tab to find your unique MCP URL.
-
Connect your AI client to that URL โ no token or credential setup needed.
โ ๏ธ Supported setups
- One server per Home Assistant. The component's in-process server entry, the app, and the Docker and PyPI HTTP servers are independent ways to run the same server. Running two against one instance is not supported; the component's File & YAML Tools entry next to an external server is fine. Keeping two entries for the same server in one client (for example a local
uvx --python 3.14 ha-mcp@latestentry alongside an app or component URL) is a known cause of connection hangs.- No per-client Home Assistant access. ha-mcp has no accounts of its own: clients that share one server share its Home Assistant access, even when a remote-access sign-in decides who may connect. OAuth mode (
ha-mcp-oauth) lets each user enter their own Home Assistant token instead; it runs on the standalone Docker/PyPI server only and is an advanced beta feature, not recommended for regular use.- Concurrent writes. Several clients writing at once, and parallel calls to the same write tool, are not officially supported, even where the server allows them.
ha_tool_concurrency(HA_TOOL_CONCURRENCY) caps Home Assistant tool calls across the whole server; it cannot tell clients apart and does not make simultaneous edits safe.
Other install methods
Most installations should use the HA-MCP integration or the app above. These standalone servers run outside Home Assistant, for advanced setups such as a separate host or a server you manage yourself. The Setup Wizard generates the exact client-specific config for each.
Running the server on the same machine as your AI client? Unless another machine needs to connect, bind it to that machine: MCP_HOST=127.0.0.1 for uvx/pip, or -p 127.0.0.1:8086:8086 for Docker. See SECURITY.md.
- Docker (HTTP server): run
ghcr.io/homeassistant-ai/ha-mcpin HTTP mode, pointed at your Home Assistant URL and a long-lived token (an administrator's is recommended; non-admin tokens work with limitations), and connect your client to its secret URL. See the Setup Wizard for the full command and per-client config. - PyPI / uvx (HTTP server): run the published
ha-mcppackage withuvx --python 3.14 --from ha-mcp@latest ha-mcp-web(or runha-mcp-webafter installing with pip) as a streamable-HTTP server the same way. Details in the Setup Wizard. - Local stdio (deprecated and unsupported): the AI client launches HA-MCP directly. Existing users can migrate their settings to the integration (recommended) or to a standalone server.
- OIDC authentication: gate remote access behind an external identity provider (Authentik, Keycloak, Auth0, etc.) instead of a secret URL โ all authenticated users share the server's Home Assistant credentials. See OIDC Mode.
Using the HA-MCP custom component? You do not need the Webhook Proxy โ the component has its own built-in webhook for remote access (see the Get Started quick start at the top). The proxy is for the app (it can also front another external server via its
mcp_server_urloption). The OpenAI Tunnel below is different: it applies to any install method when Home Assistant isn't publicly reachable at all (no Nabu Casa or reverse proxy).
Already have Nabu Casa or another reverse proxy pointing at your Home Assistant? The Webhook Proxy app routes MCP traffic through your existing setup โ no separate tunnel or port forwarding needed.
- Install the MCP Server app (see above) and the Webhook Proxy app from the same store
- Start the webhook proxy and restart Home Assistant when prompted
- Copy the webhook URL from the app logs:
MCP Server URL (remote): https://xxxxx.ui.nabu.casa/api/webhook/mcp_xxxxxxxx - Configure your AI client with that URL
For other remote access methods (Cloudflare Tunnel, custom reverse proxy), see the Setup Wizard.
ChatGPT / Codex behind a firewall (OpenAI Tunnel). ChatGPT connectors normally require a publicly reachable URL. If you can't (or don't want to) expose one, the community OpenAI Tunnel for HA-MCP integration by @norpol runs OpenAI's tunnel-client inside Home Assistant and connects your local MCP server URL to an OpenAI-hosted tunnel over an outbound-only connection โ no port forwarding, reverse proxy, or public URL. Point it at your ha-mcp URL, then attach the ChatGPT connector to the same tunnel ID. See the FAQ entry and #1811.
Webhook proxy documentation โ
Demo server (Windows / macOS / Linux)
Try HA-MCP with the public demo Home Assistant before connecting your own. In the Setup Wizard, choose uvx (Python) or Docker, enter https://ha-mcp-demo-server.qc-h.net as the Home Assistant URL and demo as the token, then follow the connection instructions for your client. Ask it to list the demo lights. Demo details
๐ง Setup Wizard for 15+ clients
Claude Code, Gemini CLI, ChatGPT, Open WebUI, VSCode, Cursor, and more.
Having issues? Check the FAQ & Troubleshooting
๐ฌ What Can You Do With It?
Just talk to Claude naturally. Here are some real examples:
| You Say | What Happens |
|---|---|
| "Create an automation that turns on the porch light at sunset" | Creates the automation with proper triggers and actions |
| "Add a weather card to my dashboard" | Updates your Lovelace dashboard with the new card |
| "The motion sensor automation isn't working, debug it" | Analyzes execution traces, identifies the issue, suggests fixes |
| "Make my morning routine automation also turn on the coffee maker" | Reads the existing automation, adds the new action, updates it |
| "Create a script that sets movie mode: dim lights, close blinds, turn on TV" | Creates a reusable script with the sequence of actions |
Spend less time configuring, more time enjoying your smart home.
โจ Features
| Category | Capabilities |
|---|---|
| ๐ Search | Fuzzy entity search, deep config search, system overview |
| ๐ Control | Any service, bulk device control, real-time states |
| ๐ง Manage | Automations, scripts, helpers, dashboards, areas, zones, groups, calendars, blueprints |
| ๐ Monitor | History, statistics, camera snapshots and image entities, automation traces, ZHA devices |
| ๐พ System | Backup/restore, updates, apps, device registry |
| ๐ Safety | Read Only Mode toggle, per-tool enable/disable, tool security policies (user approval), automatic edit backups |
Template helper edit backups capture persisted options through the HA-MCP custom component, using either its Server entry or File & YAML Tools entry. Helper edits, generic integration options edits, and deletion capture the stable config-entry identity and entity ID/name mapping. Capture refuses degraded secret scrubbing. Restoring an existing helper requires a fresh safety backup, removes optional settings absent from the snapshot, and verifies persisted options.
For Template backup listing and bulk deletion, filter by the config-entry ID returned as entity_id by capture. Capture accepts an entity alias; the history filters use the stable config-entry ID. Recreation reports its replacement config-entry ID and saved entity mapping separately.
If the original entry has been deleted, restore recreates the helper and reports its new config-entry ID. The saved entity ID and custom name are restored when available; an occupied entity ID is refused before creation. Older snapshots without entity metadata cannot preserve renamed entity IDs. If a collision or verification failure occurs after creation, the new helper and source backup are retained and the result reports the new entry for inspection. Other entity/device registry settings are not restored. Helper and integration edits through the same server wait until restore finishes; other Home Assistant clients are outside this coordination. Failed or uncertain restores report their outcome and safe refusal reasons; inspect the current helper before retrying.
| Category | Tools |
|---|---|
| Apps (add-ons) | ha_get_app, ha_manage_app |
| Areas & Floors | ha_list_floors_areas, ha_remove_area_or_floor, ha_set_area_or_floor |
| Assist | ha_manage_pipeline |
| Automations | ha_config_get_automation, ha_config_remove_automation, ha_config_set_automation |
| Blueprints | ha_manage_blueprints |
| Calendar | ha_config_get_calendar_events, ha_config_remove_calendar_event, ha_config_set_calendar_event |
| Camera | ha_get_camera_image |
| Dashboard | ha_get_dashboard_screenshot (beta) |
| Dashboards | ha_config_delete_dashboard_resource, ha_config_delete_dashboard, ha_config_get_dashboard, ha_config_list_dashboard_resources, ha_config_set_dashboard_resource, ha_config_set_dashboard |
| Developer | ha_dev_manage_server, ha_dev_manage_settings |
| Device Registry | ha_get_device, ha_remove_device, ha_set_device |
| Energy | ha_manage_energy_prefs |
| Entity Registry | ha_get_entity, ha_remove_entity, ha_set_entity |
| Files | ha_delete_file (beta), ha_list_files (beta), ha_read_file (beta), ha_write_file (beta) |
| Groups | ha_config_list_groups, ha_config_remove_group, ha_config_set_group |
| HACS | ha_get_hacs_info, ha_manage_hacs |
| Helper Entities | ha_config_list_helpers, ha_config_set_helper, ha_remove_helpers_integrations |
| History & Statistics | ha_get_automation_traces, ha_get_history, ha_get_logs, ha_manage_logs |
| Integrations | ha_get_integration, ha_get_system_health, ha_set_integration |
| Labels & Categories | ha_config_get_category, ha_config_get_label, ha_config_remove_category, ha_config_remove_label, ha_config_set_category, ha_config_set_label |
| Matter | ha_manage_radio |
| Scenes | ha_config_get_scene, ha_config_remove_scene, ha_config_set_scene |
| Scripts | ha_config_get_script, ha_config_remove_script, ha_config_set_script |
| Search & Discovery | ha_get_overview, ha_get_state, ha_search |
| Service & Device Control | ha_bulk_control, ha_call_event, ha_call_service, ha_get_operation_status, ha_list_services |
| System | ha_config_get_yaml (beta), ha_config_set_yaml (beta), ha_manage_backup, ha_manage_custom_tool (beta), ha_manage_security_policy, ha_manage_theme, ha_manage_updates, ha_reload_core, ha_restart |
| Todo Lists | ha_get_todo, ha_remove_todo_item, ha_set_todo_item |
| Utilities | ha_eval_template, ha_report_issue |
| Zones | ha_get_zone, ha_remove_zone, ha_set_zone |
When calling a service with ha_call_service, pass its domain and service name
separately, for example domain="light" and service="turn_on". Use the exact
lowercase names returned by ha_list_services, including any hyphens.
Z-Wave configuration values can be read through ha_manage_radio with
action="get_config_params" or action="get_config_param", even when their
configuration entities are disabled or absent. Reads use the Z-Wave JS cache
by default; a single full root parameter can explicitly request a device read.
See parameter reads, freshness, and examples.
๐ ha-mcp vs. Home Assistant's built-in MCP Server
Home Assistant ships its own MCP Server integration. It is built on the Assist pipeline, so a connected MCP client can read and control the entities you have exposed to Assist and run the intents Assist understands โ handy for voice-style control of already-exposed devices.
ha-mcp is a standalone server built for configuring, building, and debugging your smart home, not just controlling it. On top of device control, it adds capabilities the built-in integration does not have:
| Capability | Built-in MCP Server | ha-mcp |
|---|---|---|
| Control exposed devices, query states | Yes | Yes |
| Entity scope | Only entities exposed to Assist | Everything in Home Assistant |
| Create / edit automations, scripts, scenes | No | Yes |
| Build & edit dashboards | No | Yes |
| Debug automations from traces, read history & logs | No | Yes |
| Manage helpers, areas, zones, labels, groups | No | Yes |
| Backups, apps, Marketplace, device & entity registry | No | Yes |
Rule of thumb: Use the built-in integration for voice-style control of devices you have already exposed; use ha-mcp when you want an AI assistant that can also build and maintain your Home Assistant setup.
๐ Custom Component (ha_mcp_tools) โ File & YAML Services
The HA-MCP integration also powers a set of privileged tools that standard Home Assistant APIs can't provide: file system access and YAML config editing. (The same component runs the full server in-process โ that's the recommended install in the Get Started section at the top.) Its File & YAML services entry (HA-MCP File & YAML Tools) enables the tools below.
Tools that require the component:
| Tool | Description |
|---|---|
ha_config_set_yaml (beta) | Safely add, replace, or remove top-level YAML keys in configuration.yaml and package files (automatic backup, validation, and config check) |
ha_list_files (beta) | List files in allowed directories |
ha_read_file (beta) | Read files from allowed paths (config YAML, logs, and allowed directories) |
ha_write_file (beta) | Write files to allowed directories |
ha_delete_file (beta) | Delete files from allowed directories |
Template helper edit backups and restores also require the component, using either its Server entry or File & YAML Tools entry. These five tools return an error with installation instructions if the component is missing.
A server that runs outside Home Assistant (the app, Docker or pip) needs the component of its own release for these tools. After a server update, update HA-MCP in the Marketplace and restart Home Assistant; until then they return an error that says so. The in-process server always runs the release its component ships with.
These tools also require beta feature flags. See Beta Features for how to enable them โ including the ENABLE_BETA_FEATURES master flag, which must be on before the filesystem/YAML sub-flags take effect.
Install
Install the HA-MCP File & YAML Tools entry from the same HA-MCP integration:
Requires Home Assistant 2026.11.0 or newer; see compatibility details for manual installs. Open Marketplace, accept the first-run warning, search for HA-MCP, and Install. The main repository is in the default catalog. Or copy custom_components/ha_mcp_tools/ from this repository into your HA config/custom_components/ directory.
After installing, restart Home Assistant, then open Settings > Devices & Services > Add Integration, search for HA-MCP, and add the HA-MCP File & YAML Tools entry.
To run the full ha-mcp server in-process through this same component, see the Get Started section at the top and the full in-process server documentation โ.
๐ง Better Results with Agent Skills
This server gives your AI agent tools to control Home Assistant. For better configurations, pair it with Home Assistant Agent Skills โ domain knowledge that teaches the agent Home Assistant best practices.
An MCP server can create automations, helpers, and dashboards, but it has no opinion on how to structure them. Without domain knowledge, agents tend to over-rely on templates, pick the wrong helper type, or produce automations that are hard to maintain. The skills fill that gap: native constructs over Jinja2 workarounds, correct helper selection, safe refactoring workflows, and proper use of automation modes.
Bundled Skills (built-in)
Skills from homeassistant-ai/skills are bundled and served as MCP resources via skill:// URIs. Any MCP client that supports resources can discover them automatically โ no manual installation needed. Clients that support the MCP Skills extension (protocol 2026-07-28) can also list and fetch them with skills/list and skills/get. For tool-only clients (claude.ai, etc.), the best-practices skill is reachable through the ha_get_skill_guide tool: call it with no arguments to read SKILL.md, or with file set to a path SKILL.md links to read that reference file. Resources are not auto-injected into context โ clients must explicitly request them, so idle context cost is just the metadata listing.
ha_get_skill_guide is a mandatory tool: the catalog always exposes it (it can't be disabled) so tool-only clients never see a silently missing skill surface.
Skills can still be installed manually for clients that prefer local skill files โ see the skills repo for instructions.
๐ Tool Discovery for AI Agents
By default, the full tool catalog (~87 tools) is listed to the client through the standard MCP tools/list response. Clients with deferred / on-demand tool loading (claude.ai, Claude Desktop, Claude Code) handle that fine โ tools are pulled into context only when needed, so idle context cost is near-zero.
For setups without deferred tool support โ models like Claude Haiku, Gemini, OpenAI-compatible local models and smaller open-weights models, or clients that inline all tool schemas regardless of model (e.g. GitHub Copilot CLI) โ listing the full tool catalog up front adds a lot of idle context and can overwhelm smaller models. To address that, the server ships with a search-based discovery mode built on top of FastMCP's BM25 search transform.
Smaller or local LLMs (Ollama, etc.)
If your model can't see the tools or your Home Assistant, it may be getting handed the whole tool catalog at once and struggling with it. It's recommended to try the following to see if it helps:
- Enable tool search (
ENABLE_TOOL_SEARCH=true, or the app option below). Instead of listing every tool up front, the server defers the catalog behind a search interface so the model pulls in only the tools it needs, when it needs them. - Raise the model's context window above the default. Local runtimes ship with small defaults (Ollama's
num_ctxis one example) that can't hold a large tool set plus the conversation โ increase it well beyond the default.
Enable search-based discovery
Set ENABLE_TOOL_SEARCH=true (or toggle the option in the HA app). The full catalog is replaced in the tool list with four entry points plus a small set of always-visible "pinned" tools (ha_search, ha_get_overview, ha_report_issue, etc.). All tools remain callable directly by name once discovered:
| Tool | Purpose |
|---|---|
ha_search_tools | BM25 English-keyword search across all tools, pinned ones included. A hidden tool comes back compact: name, one-line description (the docstring's first paragraph), a one-line params list (types, enum values, required) and the proxy that executes it. ha_search_tools(tools=[...]) returns the full definition (description, input schema and annotations) of the named tools, the second hop before a call. A pinned tool returns a name-only stub (pinned: true) pointing back at the tool list, and does not use up a result slot. |
ha_call_read_tool | Execute a readOnlyHint tool by name. Safe โ clients can auto-approve. |
ha_call_write_tool | Execute a write tool that creates or updates data. |
ha_call_delete_tool | Execute a tool that removes / deletes data. |
The proxy split lets MCP clients apply different permission policies per category (e.g. auto-approve reads, prompt for writes, confirm deletes) without parsing tool docstrings.
A ha_manage_* tool combines several operations, so it is reachable from more than one proxy: ha_call_write_tool and ha_call_delete_tool run the whole tool, while ha_call_read_tool runs only the read actions Read Only Mode approves (the same per-call verdict), so a manage tool with no approved read actions is not reachable there. Search results list each proxy the tool can be reached through. In Read Only Mode only ha_call_read_tool is listed; the other two still answer a client that holds them in a cached tool list, and any write they carry gets the Read Only Mode error rather than Unknown tool.
| Setting | Default | Description |
|---|---|---|
ENABLE_TOOL_SEARCH | false | Replace full tool catalog with search-based discovery (tools deferred behind on-demand search). |
TOOL_SEARCH_MAX_RESULTS | 5 | Max hidden tools returned per ha_search_tools call (range 2โ10); a pinned tool that ranks inside that top count is added as a name-only stub on top of it. |
PINNED_TOOLS | empty | Comma-separated tool names to keep always visible. The web settings UI is the primary way to manage this. |
When to enable
- Claude Haiku, OpenAI-compatible local models, Gemini, or any model without native deferred tool support โ large idle-context savings. The same applies to clients that inline all tool schemas regardless of model (e.g. GitHub Copilot CLI, even when running Claude Sonnet/Opus).
- MCP clients that cap total tool count (some cap at 100) โ surfaces a minimal set (~10 tools) instead of 87.
- Cost-sensitive deployments โ fewer idle tokens per turn.
Leave it off in clients with deferred tool loading (claude.ai, Claude Desktop, Claude Code); the full catalog has no idle cost there, direct calls skip the search step, and the client's built-in tool search is the better choice โ there is no benefit to running ha-mcp's on top of it. Whether tools are deferred depends on the client and model combination: the same model can behave differently per client โ GitHub Copilot CLI running Claude Sonnet/Opus inlines the full catalog and still benefits from tool search here. Some Codex models and ChatGPT include deferred tools too โ check your client/model directly to confirm its features so you don't leave this enabled unnecessarily.
๐ Refresh your client's tool list after changing this (or any) setting. Toggling
ENABLE_TOOL_SEARCH(or changing pinned/disabled tools, Read Only Mode, etc.) changes the tools the server exposes, but your AI client keeps serving its cached tool list until it re-fetches. Restarting the app or Home Assistant does not refresh the client โ reconnect or refresh the MCP server in your client (e.g. in ChatGPT open Settings, then the plugin settings, select the connector and click Refresh tools; disconnect and reconnect a Claude Desktop custom connector; refresh the tools list of a claude.ai connector; or quit and reopen Claude Desktop for a server inclaude_desktop_config.json), then start a new conversation. If you skip this, newly enabled tools won't appear in the client at all, and tools the server no longer exposes still show as available but fail when called (Unknown tool, or the Read Only Mode error for a write tool that mode hides). ChatGPT sometimes keeps serving the stale list even after the connector is removed and re-added under the same name โ if tools are still missing after a refresh, delete the connector and create a new one with a different name. The FAQ has the full steps.
For the HA app, the same option is documented in homeassistant-addon/DOCS.md along with the in-app settings UI for fine-grained tool enable/disable/pin.
Per-URL tool catalog
ENABLE_TOOL_SEARCH defaults to off, and it sets the catalog of the main endpoint only. When several clients share one server, give each the URL for the catalog it needs: a client with built-in tool search keeps the full list, a small-context client gets the search tools. The suffixes are fixed overrides that ignore ENABLE_TOOL_SEARCH:
Main endpoint (follows ENABLE_TOOL_SEARCH): https://example.com/private_your_secret
Always the full catalog: https://example.com/private_your_secret/catalog/full
Always the search tools: https://example.com/private_your_secret/catalog/search
Read-only, search tools: https://example.com/private_your_secret/readonly/catalog/search
Each URL keeps its catalog for the life of the connection, so a client picks its catalog only by the URL it is given. Reconnect the client after changing its URL so it refreshes its tool list. Home Assistant webhook URLs accept the same suffixes, alone or after /readonly: https://your-ha.example/api/webhook/<webhook-id>/catalog/search. This needs an embedded integration or Webhook Proxy app (add-on) release that serves them, with a matching MCP server; an older one returns 404 for a suffixed URL. Stdio runs one client per server process, so set ENABLE_TOOL_SEARCH in that client's server environment instead.
Read-only HTTP connections
Append /readonly to the server's HTTP MCP endpoint to restrict that connection
to the existing Read Only Mode while other clients keep normal access:
Normal: https://example.com/private_your_secret
Read-only: https://example.com/private_your_secret/readonly
OAuth and OIDC connections use the same login/provider: for example,
https://example.com/mcp/readonly. No additional secret or server is required.
Read-only connections hide write tools and block write calls, including calls
through cached tools or search proxies. The global Read Only Mode setting still
restricts both endpoints when enabled. Reconnect the client after changing its URL
so it refreshes its tool list.
This is a connection mode for automated agents, not a separate permission on the
credential: the same credentials still work at the normal endpoint. Home Assistant
webhook URLs also accept the suffix:
https://your-ha.example/api/webhook/<webhook-id>/readonly. This requires the
updated embedded integration or Webhook Proxy dev app (add-on), together with
the updated MCP server.
๐งช Dev Channel
Want early access to new features and fixes? Dev releases (.devN) are published on every push to master.
Dev Channel Documentation โ Instructions for pip/uvx, Docker, and Home Assistant app.
๐ค Contributing
For development setup, testing instructions, and contribution guidelines, see CONTRIBUTING.md.
For comprehensive testing documentation, see tests/README.md.
๐ Privacy
Ha-mcp runs locally on your machine. Your smart home data stays on your network.
- No telemetry today โ anonymous usage stats are a planned future feature (as of June 2026); when it lands it will follow your Home Assistant analytics/telemetry setting (which you can override), announced prominently in the release notes and the web Settings UI at least one month beforehand
- No personal data collection โ we never collect entity names, configs, or device data
- User-controlled bug reports โ only sent with your explicit approval
For full details, see our Privacy Policy.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Home Assistant: Amazing smart home platform (!)
- FastMCP: Excellent MCP server framework
- Model Context Protocol: Standardized AI-application communication
- Claude Code: AI-powered coding assistant
- PolicyLayer: Argument-path predicate DSL shape (
args.domain in [...]witheq/in/regex/contains/exists/...) inspired the per-tool approval rule schema (#966).
๐ฅ Contributors
Maintainers
- @julienld โ Project creator.
- @sergeykad โ Core maintainer.
- @kingpanther13 โ Core maintainer.
- @Patch76 โ Core maintainer.
Contributors
Documentation truncated โ see the full README on GitHub.
Reviews
No reviews yet
Be the first to review this server!
More Other MCP Servers
Toleno
Freeby Toleno ยท Developer Tools
Toleno Network MCP Server โ Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace ยท Developer Tools
Search and install MCP servers from inside your AI client.
mcp-creator-python
Freeby mcp-marketplace ยท Developer Tools
Create, build, and publish Python MCP servers to PyPI โ conversationally.
by Lharries ยท Communication
Read, search, and send WhatsApp messages through your AI assistant
FinAgent
Freeby mcp-marketplace ยท Finance
Free stock data and market news for any MCP-compatible AI assistant.
Memory
Freeby Modelcontextprotocol ยท Productivity
Knowledge graph-based persistent memory across sessions