Can Home Assistant MCP access be locked down to read-only and admin-only tools?
The official Home Assistant MCP integration includes its own restriction controls: a Read-only option on the main URL, admin-only access to the Home Assistant tool set, and separate URLs for each tool set. The supplied documentation does not tie these controls to any paid edition, so confirm with the vendor that they apply to your installed version. The main gap is the default: the Expose all AI tools option is on, so an AI app connected to the main URL can use every tool set unless someone changes the settings first.
A reviewer should close four gaps before approval. First, confirm that Read-only is switched on for the main URL, since it is off by default and removes tools such as Call action and Reload config entry along with the Device control tools that change devices. Second, check which tool set each AI client uses, because the individual URLs ignore the main URL options and are never read-only. Third, confirm that only accounts that truly need the Home Assistant tool set are administrators, since that set can read all entities, logs and history and perform any action. Fourth, decide which entities are exposed to voice assistants, because Device control works only on those.
The community ha-mcp server is governed differently and needs its own review. It is a separate MIT licensed project with 87+ tools, including automation management, backup and restore, and camera snapshots, and it generates secret URL paths with 128-bit entropy. Those secret paths are a control to verify, not a substitute for the access rules above, so ask who holds the URL and whether it is rotated. Before approving either server, test the chosen configuration against the restriction settings in the official integration documentation.
Which permission controls the official and community servers provide
This table compares the permission controls in the official Home Assistant MCP integration with those in the community ha-mcp app and the ganhammar/hass-mcp-server project. Each row marks whether a control is built in, needs an outside component, or is not stated in the supplied facts, so reviewers can see what they can enforce without extra tooling. Confirm any edition or version-specific limit with the vendor or project before you approve a rollout.
| Control | Official integration | Community ha-mcp and hass-mcp-server |
|---|---|---|
| Main URL with Read-only option | Built in. Read-only is off by default and removes change-making tools such as Call action and Reload config entry | Not stated for ha-mcp. hass-mcp-server documents a read-only mode that offers only read tools |
| Individual URLs per tool set | Built in. Device control and Home Assistant sets each get their own URL, such as /api/mcp/assist for Device control | Not stated in the supplied facts for ha-mcp |
| Read-only on individual URLs | Not available. Individual URLs ignore main URL options and are never read-only | Not stated for ha-mcp. hass-mcp-server read-only applies to its own server |
| Administrator requirement | Built in. Only administrators can use the Home Assistant tool set; all other individual sets except Device control also require an administrator account | Not stated in the supplied facts. Confirm how the app maps to Home Assistant user roles |
| Exposure of entities to the AI app | Device control uses the entities you expose to voice assistants. Expose all AI tools is on by default, so review it first | Not stated in the supplied facts. Confirm how entity scope is set |
| Tool count and scope | Two built-in tool sets: Device control and Home Assistant | 87+ tools covering device control, automations, dashboards, backup and restore, history and camera snapshots |
| Secret URL paths | Not stated in the supplied facts for the official URL paths | Built in. Generates secret URL paths with 128-bit entropy, so the path acts as a credential that must be kept private |
| Cost of the community option | Included with Home Assistant | No paid subscription is required, per the ha-mcp project. Runs as a custom component, app or stdio server |
How the official integration enforces tool sets and read-only mode
The official Home Assistant MCP integration gives an AI app two built-in tool sets: Device control, which reads and controls the entities you expose to voice assistants, and the Home Assistant set, which reads all entities, logs and history, lists and reloads integrations, and can perform any action. Unless you change the settings, the AI app can use all sets, because the Expose all AI tools option is on by default. Reviewers should confirm that option on every instance before any client connects, since the default is the broadest setting. Access is then decided in three places: the URL the client holds, the Home Assistant user account behind that URL, and the entity exposure settings that determine which devices Device control can reach.
The main URL, typically under /api/mcp, has a Read-only option that is off by default. When enabled, it removes tools that change state, including Call action and Reload config entry, along with the Device control tools that operate devices. This is the control to test first, because it works without relying on the client to behave. Verify it by connecting a test client and confirming that the tool list no longer includes write-capable tools, rather than trusting the setting label alone.
Each tool set also has its own URL under Individual URLs, for example /api/mcp/assist for Device control only. These individual URLs ignore the main URL options and are never read-only, so a read-only main URL does not restrict them. Per the official page, every individual URL except Device control requires an administrator account. Reviewers should therefore check which URLs have been shared with each client, and whether the Home Assistant tool set is reachable through any individual URL under a non-administrator login. Treat each URL as a credential and record who holds it.
Decisions to make before exposing a Home Assistant MCP URL
Each choice below sets how much an AI app can read or change and how well you can prove it later. Most of them can be made in the integration settings before any client connects, so settle them in writing first. Review them together, because the tool sets, the URL you pick, and the accounts you use interact.
Which tool sets to expose
The official integration offers Device control, which reads and controls the entities you expose to voice assistants, and Home Assistant, which manages Home Assistant itself. Decide whether an AI app needs either set at all. Device control limits the AI to entities already exposed to voice assistants, while the Home Assistant set reaches all entities, logs and history, and can perform any action. Record the choice for each client you approve.
MCP integration docsExpose all AI tools setting
The Expose all AI tools option is on by default, which means an AI app can use every tool set unless you change it. Turning it off forces you to pick the sets explicitly. Treat the default as a finding in your review, and confirm the setting after every change to the integration, since a reviewer should not have to infer the effective tool list from the UI.
Main URL with Read-only or individual URLs
The main URL has a Read-only option, off by default, that removes tools that change things, such as Call action and Reload config entry, along with the Device control tools that control devices. Individual URLs, such as /api/mcp/assist, ignore the main URL options and are never read-only. Choose the main URL with Read-only for read-mostly use, and use an individual URL only when the client needs exactly one tool set.
Which accounts hold administrator rights
Every tool set except Device control requires an administrator account, and the Home Assistant set is administrator-only. Any user with admin rights who connects an AI client inherits that reach. Keep AI clients off administrator accounts, use a dedicated non-admin user for Device control, and confirm in your review who holds the admin role. Account changes should go through your normal access review, since the AI client only sees what its user can reach.
Internet reachability for cloud AI apps
If the AI app runs in the cloud, the official docs say the Home Assistant instance must be reachable from the internet, for example through Home Assistant Cloud or another remote access method. Each remote path widens your exposure, so record which access method you use, who can enable it, and how it is monitored. A local-only client avoids this exposure entirely, which is a strong reason to check where each client actually runs.
Official integration or ha-mcp
The community ha-mcp server is MIT licensed, works with Claude, ChatGPT and other assistants, and describes 87+ tools covering automations, dashboards, backup and restore, and camera snapshots. It can run as a custom component or an app, and generates secret URL paths with 128-bit entropy. Its scope is far wider than the official Device control set, so review it as a separate product with its own maintainers, update cycle and access model before choosing it over the official integration.
ha-mcp project siteHow the restriction approach changes by client and setup
A cloud-hosted AI app reaches Home Assistant over the internet, so the instance must be reachable from outside the network, for example through Home Assistant Cloud or another remote access method. That exposure is the first thing a reviewer should weigh, because the restriction options only limit what a connected client can do after it reaches the endpoint.
- Reachability: Confirm exactly which remote access method is used, who controls it, and whether it is the only inbound path to the instance.
- Main URL options: Choose whether the main URL keeps the Read-only option off or on, and confirm that the Expose all AI tools setting, which is on by default, has been changed to match the intended scope.
- Individual URLs: Confirm whether a tool set URL is used instead, since these URLs ignore the main URL options and are never read-only.
- Administrator accounts: Confirm which user the connection authenticates as, because every tool set except Device control requires an administrator account.
- Secret paths: Confirm how the MCP URL is stored and shared, since a URL that is leaked or pasted into a shared tool grants whatever access that URL carries.
Before approving, ask the team to show the exact URL in use, the account behind it, and the remote access route that exposes it.
A local client runs on a workstation or on the same network as Home Assistant and does not need the instance exposed to the internet. The risk shifts from remote reachability to the endpoint itself, the user's account, and what else that workstation can reach.
- Network path: Confirm the client connects over the local network and that the instance is not opened to the internet solely for this use.
- Endpoint control: Confirm the workstation is managed, that the MCP URL is not stored in shared configuration files, and that screen sharing or logs do not expose it.
- Tool set choice: Confirm whether the main URL or an individual URL is used, and whether the Read-only option matches the task the user performs.
- Account scope: Confirm whether the account is an administrator, since administrator accounts unlock the Home Assistant tool set, including actions and config reloads.
- Community servers: If a community server such as ha-mcp is run locally, confirm the install method and whether it is the custom component, the app, or the stdio demo server that the project says it does not recommend.
Before approving, ask which workstations will hold the connection and whether those machines are covered by the organization's endpoint policy.
A read-only monitoring use case lets an AI app read device states, history and logs without changing anything. The official main URL offers a Read-only option that leaves out tools that change things, including Call action and Reload config entry, and the Device control tools that control devices. Reviewers should confirm the option does what the intended use needs and nothing more.
- Read-only option: Confirm the main URL has Read-only turned on, since it is off by default.
- Individual URLs: Avoid pointing monitoring clients at an individual URL for this purpose, because those URLs ignore the main URL options and are never read-only.
- Administrator reads: Confirm whether the Home Assistant tool set is needed, because it can read all entities, logs and history, and only administrators can use it.
- Community read-only modes: If a community server is considered, confirm its documented read-only mode, which is a feature of that project and not of the official integration.
- Scope of reads: Confirm which entities are exposed to the AI tools, since logs and history can contain sensitive activity patterns.
Before approving, ask the team to demonstrate that a write attempt through the monitoring connection is refused.
A team that needs device control but no administrative tools should use the Device control tool set, which reads and controls the entities exposed to voice assistants. This tool set is the only one that does not require an administrator account, so it is the natural fit for non-administrative users. The reviewer should confirm that exposure settings, not the URL alone, define what those users can reach.
- Individual Device control URL: Confirm whether the team uses the Device control URL, which is available to non-administrators, and that it is not used by anyone who needs the Home Assistant tool set.
- Exposed entities: Confirm which entities are exposed to voice assistants, since Device control reads and controls only those entities.
- Main URL alternative: If the main URL is used with Expose all AI tools turned off, confirm which tool sets remain and that the Home Assistant set is excluded.
- Write scope: Confirm that device control is intended, because this set can change devices even when the account is not an administrator.
- Account permissions: Confirm which non-administrator accounts are allowed and that administrators do not share their credentials with the team.
Before approving, ask for the list of exposed entities and a test showing that administrative tools are not offered to the team's client.
How the community ha-mcp server changes the permission model
The community ha-mcp server is a separate project from the official Home Assistant integration, and it does not inherit the official permission model. It is MIT licensed, works with Claude, ChatGPT and other AI assistants, and the project site says no paid subscription is required. It can run as a Home Assistant custom component, as an app (add-on), or as a local stdio demo server, which the project does not recommend for regular use. Before approving it, confirm which of those deployment forms you intend to allow, who maintains the code you install, and how updates reach your instance. The official integration's admin-only tool set, Read-only option and per-set URLs do not carry over automatically, so do not assume any of them apply.
The ha-mcp app documentation describes 87+ tools covering device control, automation management, dashboards, backup and restore, history and camera snapshots. That breadth is the first thing a reviewer should scope. Backup and restore, automation editing and camera snapshots can change or expose more than a device command does, so ask the team to list which of these tools would be exposed to each AI client and whether any can be disabled. The same documentation says the app generates secret URL paths with 128-bit entropy. A long random path limits guessing, but it is still a bearer secret: anyone who obtains the URL, through a chat log, a config file, a screenshot or a shared client setting, gets the same access. Confirm where those URLs are stored, how they are rotated, and whether the Home Assistant instance is exposed to the internet for cloud-hosted clients.
The supplied facts do not describe a read-only mode for ha-mcp. Unlike the official integration, which offers a Read-only option on its main URL, a reviewer cannot rely on a documented switch to remove write tools from this server. Treat ha-mcp as a third-party project whose tool scope and secret URL handling must be assessed directly: review its source and release history, test which tools a client can call against a non-production instance, and confirm the current read-only capability with the maintainers before approval. Where the answer is no, the practical controls are narrower network access, a dedicated low-privilege Home Assistant user, and a restricted client list. If ha-mcp cannot meet the same bar as the official integration, the approved alternative is the official integration with its Read-only option enabled.
Gaps that remain after the built-in controls are set
The official integration's own settings leave several gaps open by default or by design. Each card below names one gap, the control a reviewer usually adds around it, and what to confirm in the live environment. Together they cover tool exposure, read-only coverage, network reach, secret URL handling and third-party server risk.
Default exposes every tool set
The Expose all AI tools option is on by default, so an AI app can use every tool set unless someone changes the settings. Before connecting any client, an administrator should turn that option off and expose only the entities the use case needs. Reviewers should confirm the setting in Settings > System > AI on each instance, and check that no client was connected while the default was still in place. Review the exposed entity list on a schedule, since new devices added to Home Assistant may become reachable to voice-linked tools.
MCP integration docsRead-only option misses individual URLs
The Read-only option applies only to the main URL. Individual URLs ignore the main URL options, so a client pointed at a tool-set URL keeps its write tools even when the main URL is read-only. Reviewers should treat the main URL and each individual URL as separate endpoints, inventory every URL that has been shared, and confirm that clients are configured only with the URL that matches their approved access level.
Individual URLs are never read-only
Individual URLs cannot be set to read-only, so any client holding the Device control URL can change devices, and the Home Assistant tool set can act on the whole system if an administrator account is used. Reviewers should ask whether a read-only use case needs an individual URL at all. Where it does, the control has to come from the network or the identity layer, such as restricting which hosts can reach the URL, rather than from the integration.
Cloud access requires internet reachability
If the AI app runs in the cloud, the official documentation says the Home Assistant instance must be reachable from the internet, for example through Home Assistant Cloud or another remote access method. That exposes the instance to a route it would not otherwise have. Reviewers should confirm which remote access path is in use, whether it is restricted to the approved AI vendors' egress, whether multi-factor sign-in protects the instance, and whether the exposure is recorded in the network inventory.
Remote access in the docsSecret URL paths act as bearer secrets
The official MCP URL path works as a credential: anyone who obtains the URL can use the tools it exposes without a separate sign-in step. Community ha-mcp generates secret paths with 128-bit entropy, which makes guessing hard, but the full URL still has to be protected. Reviewers should require that URLs are stored in the client's secret store, never in shared notes, tickets or repositories, and that a URL is rotated or regenerated when a device, person or client changes.
Community server carries its own risk
The ha-mcp server is a separate community project, MIT licensed, and not part of the official integration, so its code, release cadence and security fixes are controlled by its maintainers. It can also expose more tools than the official integration, including automation management, backup and restore, and camera snapshots. Reviewers should pin a reviewed release, read the source before installation, confirm who maintains it, and decide whether it is permitted in the environment at all.
ha-mcp repositoryOrder of work for a locked-down Home Assistant MCP rollout
This sequence gives a reviewer a restricted Home Assistant MCP connection that exposes only the entities and tools the AI app needs, with each restriction tested before anyone relies on it. It also sets a check to repeat after upgrades, since the tool sets and their defaults can change.
Inventory entities and tool sets
The owner of the Home Assistant instance lists which entities are exposed to voice assistants and which tool sets the official integration offers: Device control, which reads and controls exposed entities, and Home Assistant, which manages the system itself. Remember that the Expose all AI tools option is on by default, so every set is available until someone changes it. The step closes with a written list of entities and sets the AI app actually needs, checked against the exposed-entity settings.
Decide the administrator and account model
The security lead decides which Home Assistant accounts may connect an AI app. The Home Assistant tool set is admin only, and the official documentation states that all tool sets except Device control require an administrator account on their individual URLs. Confirm which people hold administrator rights, and whether a dedicated non-administrator user is enough for the use case. The output is a named account per AI client, with administrator rights kept to the minimum.
Choose the URL type and read-only setting
The administrator chooses between the main URL, which uses the options you set, and the individual URLs, which ignore those options and are never read-only. Where the main URL is used, turn on the Read-only option so that tools such as Call action, Reload config entry and device control tools are left out. Confirm the chosen URL in Settings > System > AI and record which path each AI client receives, so the URL is not shared more widely than intended.
Decide on remote reachability
Decide whether the AI app runs in the cloud. The official documentation says a cloud-hosted AI app requires the Home Assistant instance to be reachable from the internet, for example through Home Assistant Cloud or another remote access method. Each remote path adds an exposure point, so the reviewer should document the path, who approved it and how it is monitored. If the AI app runs on the local network, confirm that no remote path is needed and that none is open.
Test that restricted URLs refuse blocked tools
Before go-live, a tester connects each restricted URL from a test client and attempts a blocked action, such as a device command on a read-only URL or a Home Assistant tool call from a non-administrator account. The tester also confirms that the expected read tools still respond. The step closes with a written test record showing each refusal and each allowed call, which the reviewer checks against the design from the earlier steps.
Confirm logging and access records
The administrator confirms how connections and actions are recorded in the Home Assistant logs and history for the chosen account. Ask the vendor or integration maintainers which events are logged, since the researched facts do not describe the log detail for this integration. The output is a short note on where each AI client's activity can be reviewed and who reviews it.
Set a review cadence after upgrades
The owner sets a recurring review that repeats the inventory, account and URL checks, and the refusal tests, after every Home Assistant upgrade and every change to the MCP integration or the AI client. Community servers such as ha-mcp are maintained separately from the official integration, so any community server in use needs its own review on each update. The step closes with a dated review record and a named owner for the next check.
What a security reviewer asks to see for MCP permissions
This table lists the evidence a reviewer should request for a Home Assistant MCP setup and where each item lives in the product or project. Use it as a checklist during the review, and treat any item the owner cannot show as an open finding. The main takeaway is that the official integration's exposure is defined by several settings that work together, so each one needs its own record.
| Evidence item | What to capture | Where to find it |
|---|---|---|
| Configured URL list | Each MCP URL in use, which AI app holds it, and which tool sets that URL exposes | Settings > System > AI in Home Assistant, main URL and Individual URLs |
| Tool sets per URL | Whether Device control, the Home Assistant tool set, or both are reachable through each URL | Main URL options and each Individual URL such as /api/mcp/assist |
| Expose all AI tools setting | Confirmation that the default has been changed, since it is on by default | Main MCP URL options in Settings > System > AI |
| Read-only setting | Whether Read-only is on for the main URL, with a note that Individual URLs ignore it | Main URL options; Individual URLs are never read-only |
| Administrator accounts | The list of Home Assistant users who hold administrator rights, since only they can use the Home Assistant tool set | Home Assistant user management under Settings > People |
| Entity exposure list | The entities exposed to voice assistants, which define what Device control can read and control | Voice assistant exposure settings in Home Assistant |
| Individual URL decision | A recorded decision on whether Individual URLs are in use, who holds them, and why | Individual URLs section under Settings > System > AI |
| ha-mcp install method | Whether the community server runs as a custom component, an app (add-on), or a local stdio server, and the version in place | Home Assistant installation records and the ha-mcp project documentation |
| ha-mcp secret URL handling | Where secret URL paths are stored, who can view them, and how they are rotated after exposure | ha-mcp configuration in the Home Assistant instance and the team's secrets store |
Questions buyers ask about Home Assistant MCP permissions
Does the official Home Assistant MCP integration require a paid plan?
The researched facts for this page do not state a paid plan for the official Model Context Protocol integration, so do not assume one is required or free without checking. Confirm the current terms on the Home Assistant integration page and in your own instance. Separately, the AI app you connect (for example Claude or ChatGPT) may have its own subscription, and that cost sits with the AI vendor, not Home Assistant. Ask your team to list each AI client and its plan, since those are the costs that recur.
Can our own team lock down the Home Assistant MCP server without outside help?
Yes, the main controls are settings your administrators can change directly: the Read-only option on the main URL, the choice of which entities are exposed to AI tools, and whether the Expose all AI tools option stays on. Because the Home Assistant tool set can perform any action and is limited to administrator accounts, restrict who holds admin rights first. Outside help becomes useful when you need a written test of the configuration, a review of remote access, or evidence for an assessment. DeployOpen can plan and test that work under a written, fixed scope.
What drives the effort of restricting the MCP setup?
The main drivers are the number of entities you must review, the number of AI clients that connect, and whether the instance is reachable from the internet. More entities mean more decisions about what to expose to voice assistants. Each AI client may need its own URL and its own review of which tool sets it uses. Cloud-hosted AI apps require the instance to be reachable from the internet, for example through Home Assistant Cloud or another remote access method, which adds network and authentication review. Ask for a scope that lists each of these items separately.
Does the community ha-mcp server need a subscription?
According to the ha-mcp project site, no paid subscription is required. It can run as a Home Assistant custom component, as an app (add-on), or as a local stdio demo server, which the project does not recommend. Being free does not make it lower risk. Its app describes 87+ tools, including automation management, backup and restore, and camera snapshots, so its effective permissions are broader than many teams expect. Review it as a separate project with its own code, licence and update cycle, and confirm which deployment method you will use.
Does the read-only option block every tool that can change something?
Not necessarily. On the official main URL, the Read-only option is off by default and removes tools that change things, such as Call action and Reload config entry, along with the Device control tools that control devices. However, each individual tool set URL ignores the main URL options and is never read-only. Those URLs also mean an administrator account is required for every set except Device control. Verify each URL your clients use, and test it, rather than relying on the main URL setting alone.
What should we ask the vendor or project before approving it?
For the official integration, ask Home Assistant or your Home Assistant administrators to confirm the current tool list in each set, the behaviour of the Expose all AI tools option, and which URLs each client uses. For ha-mcp, ask the project to confirm how its secret URL paths are generated and rotated, which tools can change configuration or call services, how updates are published, and what is logged. Also ask whether a third-party project such as ganhammar/hass-mcp-server offers a read-only mode, and whether it matches the behaviour you need. Record the answers in writing before rollout.
Is an AI assistant safe to connect to Home Assistant if it only reads state?
A read-only connection reduces the risk of changes, but it still exposes the current state of the home, such as occupancy, sensors and camera-related data, to whichever AI app is connected. Reviewers should decide which entities an AI client may read, not just whether it can write. Confirm which read tools the Home Assistant tool set exposes, including logs and history, since those can reveal patterns of use. Limit reads to the entities that the use case needs.
How DeployOpen tests and locks down a Home Assistant MCP setup
DeployOpen plans, implements, hardens and tests self-hosted platforms inside the client's own infrastructure, and runs security testing that includes AI systems and agents. For Home Assistant MCP server security, that means working from a written scope that names which MCP endpoints, tool sets and admin accounts are in play, then testing and documenting the lockdown before staff rely on it.
How we scope
- Confirm which Home Assistant MCP URLs are in use: the main URL, individual tool set URLs, or both.
- Record which AI clients connect, whether they run locally or in the cloud, and how remote access reaches the instance.
- Agree in writing which entities are exposed to the AI app and which administrator accounts can reach the Home Assistant tool set.
How we build
- Set the main URL to read-only where the use case allows it, and confirm the change-making tools are absent from the list the client sees.
- Remove or restrict Individual URLs that bypass main URL options, and verify that administrator-only sets stay limited to named admins.
- Review any community ha-mcp deployment for secret URL path handling, enabled tool sets and the hosting method chosen.
How we hand over
- Deliver a findings report covering prompt injection, tool permissions, exposed entities, credential handling and admin settings.
- Provide a configuration record listing each URL, tool set, read-only state and access group so reviewers can verify it independently.
- Retest the setup after fixes and document the results alongside the original findings.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer when the Home Assistant setup or the AI clients change.
- Ask for a quote based on the written scope, since DeployOpen does not publish a price list.

