Home Assistant MCP server setup: official vs community and OAuth

The official Home Assistant MCP integration supports OAuth 2.0 with PKCE and requires an administrator account for the Home Assistant tool set. The community ha-mcp server is a separate project with its own install path.

On this page

Does the Home Assistant MCP server support single sign-on for AI apps?

The official Home Assistant MCP integration uses OAuth 2.0 with PKCE for sign-in, and the AI app's sign-in is tied to a Home Assistant user account. The supplied documentation does not describe a connection to an external enterprise identity provider, so do not assume that corporate single sign-on from Okta, Entra ID or a similar service governs these connections. The community ha-mcp server is a separate project with its own installation and access model, and it is not covered by the official integration's sign-in flow. A reviewer should treat each MCP server as its own authentication decision.

Before approving staff use, the reviewer should confirm three things in the specific Home Assistant environment. First, which identity provider, if any, the instance uses for its user accounts, and whether those accounts can be disabled or reviewed centrally when someone leaves the organization. Second, who holds administrator rights, because the main URL requires an administrator account by default and an administrator account is always required when the main URL exposes the Home Assistant tool set. Third, how remote access is exposed. The official documentation says a cloud-hosted AI app needs the instance to be reachable from the internet, for example through Home Assistant Cloud or another remote access method, so the reviewer should record exactly which path is used and who administers it. Each answer determines whether the AI app's access can be traced to a named, governed person.

Which MCP setup options cover which controls

This table compares the official Home Assistant Model Context Protocol integration with the community ha-mcp server on sign-in, administrator requirements, client approval, remote access, licensing and install types. Where the supplied documentation is silent, the cell says what to confirm with the vendor or project before approving a setup.

ControlOfficial Home Assistant MCP integrationCommunity ha-mcp server
Sign-in methodStandard OAuth 2.0 with PKCE, with OAuth Client ID Metadata Documents supported so AI apps set up the client ID and callback automaticallyConfirm the sign-in method for each client in the ha-mcp documentation before approval
Client ID and secretNo client secret; the OAuth client ID must be the base URL of the AI app, such as Confirm how client registration works and whether a client secret is used
Administrator requirementMain URL requires an administrator account by default, and admin is always required when the main URL exposes the full Home Assistant tool setConfirm which account role the server requires and whether it can be limited to non-admin users
Client approval promptsClaude asks permission before each tool use unless the user chooses to always allow itConfirm whether the client shows per-tool approval prompts and whether users can disable them
Remote access for cloud AI appsHome Assistant must be reachable from the internet for cloud-hosted AI apps, for example through Home Assistant Cloud or another remote access methodBuilt-in webhook reachable remotely through Nabu Casa or a reverse proxy
LicensingPart of Home Assistant; the integration code owner is listed as @allenporterMIT licensed; the project states no paid subscription is required
Install typesBuilt into Home Assistant and added from Settings > System > AI, with the server URL path /api/mcpHome Assistant custom component (recommended), app (add-on), or a local stdio demo server the project does not recommend
Vendor support scopePublished by the Home Assistant project with client examples for Claude, ChatGPT, Claude Code, Codex and OpenCodeCommunity project; confirm its release cadence, maintainer commitments and security reporting path with the maintainers

How OAuth sign-in and the MCP URL path fit together

The connection has three parts that a reviewer should be able to name: the AI app acting as the OAuth client, Home Assistant acting as the MCP server, and the network path between them. In the official integration, the MCP server URL is copied from Settings > System > AI, and its main path is /api/mcp. The AI app sends the user to Home Assistant to sign in, receives an access token, and then calls that path. Home Assistant does not use a client secret for MCP OAuth, so the client is identified by its client ID alone, and the ID must be the AI app's base URL (for example, ), not the Home Assistant address. Reviewers should confirm that the OAuth client ID in each approved app matches the vendor's documented value, because that string is the only identity Home Assistant sees for the app.

Where the AI app runs decides where the traffic goes. The official docs state that a cloud-hosted AI app must reach the Home Assistant instance from the internet, through Home Assistant Cloud or another remote access method. Claude, for example, connects from the cloud even when used in Claude Desktop, so the instance must be reachable from outside the home or site network. Each remote path is a new exposure to plan for, and the reviewer should document which path is used, who controls its certificates and access rules, and whether it is covered by the organization's existing remote access policy. A local-only client avoids that internet path but must be confirmed against the client's own documentation.

Account type is the control that matters most inside this flow. By default, the main URL requires an administrator account, and an administrator account is always required when the main URL exposes the Home Assistant tool set. Before approving a client, the reviewer should confirm which user will sign in, whether that person is meant to hold administrator rights, and whether a non-administrator account can reach a narrower URL. Shared administrator logins should be treated as a finding. The reviewer should also ask the vendor and the community project how each client stores the resulting token and how long it stays valid, since neither detail is covered by the official integration page.

How an AI app reaches Home Assistant over MCP

The request starts in the AI app, which may run in the cloud or on the local machine, and reaches Home Assistant's MCP endpoint at the main URL. The official docs say a cloud-hosted AI app needs the Home Assistant instance reachable from the internet, for example through Home Assistant Cloud or another remote access method. Before any tool runs, the user signs in through OAuth 2.0 with PKCE, where the client ID is the AI app's base URL and no client secret is used. Two checks matter for reviewers: the administrator requirement on the main URL, and the per-tool approval prompt the AI client shows unless the user chooses to always allow a tool.

The path from an AI client through sign-in and checks to Home Assistant.

Decisions to make before connecting an AI app

Before any AI app reaches Home Assistant, the team has to settle which clients are allowed, which MCP path they use, who holds administrator rights and how the instance is reached from outside the network. Each choice changes what the AI can see and change, so they should be made together and written down.

Which AI apps are allowed

Decide the approved list of clients, such as Claude, ChatGPT, Claude Code or Codex, before anyone connects. The official docs show OAuth sign-in for each one, but the client ID must be the app's base URL, such as so a reviewer should confirm that value for every client. Cloud-based clients connect from the vendor's servers, so each approved app adds a third party that can reach the instance. Record the list and review it when a new client appears.

MCP integration docs

Main URL or a narrower exposure

The main MCP URL, which is /api/mcp, exposes the Home Assistant tool set, so it is the broadest option. Ask whether a narrower exposure can meet the use case and confirm in the docs and your own test instance what each path grants. The choice sets the blast radius of a stolen token or a misused client, so it should be documented as an explicit decision, not a default.

Official MCP docs

Who holds administrator accounts

The main URL requires an administrator account by default, and an administrator account is always needed when the main URL exposes the Home Assistant tool set. This means any person who signs an AI client in through that path acts with administrator rights. Limit the number of admin accounts, keep a named owner for each one and confirm that AI sign-ins do not reuse shared or personal admin credentials.

Admin requirements

Official integration or ha-mcp

The official Model Context Protocol integration is maintained in the Home Assistant project and supports OAuth 2.0 with PKCE. The community ha-mcp server is MIT licensed, runs without a paid subscription and can be installed as a custom component or add-on. Choose one path per instance, then check its code owner, release cadence and the permissions it grants. Do not run both without a reason, since each adds an entry point to the same home.

ha-mcp repository

Remote reachability method

If the AI app runs in the cloud, the Home Assistant instance must be reachable from the internet. Options include Home Assistant Cloud, which is a Nabu Casa service, or a reverse proxy, and ha-mcp can also use a built-in webhook through Nabu Casa or a reverse proxy. Each method opens a different path into the home, so confirm who operates it, how TLS and sign-in are enforced and what logs the provider keeps.

ha-mcp project site

Approval mode for tool calls

Claude asks for permission before using a tool unless the user chooses to always allow it, so the approval setting is a per-user decision. Ask whether the organization will allow always-allow choices for devices that control locks, alarms or heating. Write a rule for which actions need a person to confirm, and check whether each client offers an admin-side control to enforce it.

Client examples in the docs

How the answer changes by client and deployment

When 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. The official Claude example shows that Claude connects to the MCP server from the cloud, even when the user works in Claude Desktop, so the request path leaves the home network. ChatGPT and Claude Code also use the same HTTPS endpoint pattern in the official examples, which means the main URL path, /api/mcp, is the surface to review.

  • Reachability: The instance must accept inbound connections from the internet, so the remote access method becomes part of the security boundary.
  • Approval: Claude asks for permission before using a tool unless the user chooses to always allow it, and that choice belongs to each user, not to an administrator.
  • Administrator sign-in: The main URL requires an administrator account by default, so a non-administrator who connects will not reach the full Home Assistant tool set.
  • Transport: Claude Code connects to MCP servers over HTTPS only.

Before approving this path, confirm which remote access method your instance uses, who holds administrator accounts, and whether your clients are configured to always allow tools.",

Order of work before a staff rollout

This sequence turns an open question about Home Assistant MCP into a documented, tested decision: which server to use, who may sign in, and which AI clients are approved, with evidence for each choice before any staff member connects.

  1. Confirm the Home Assistant version and remote access method

    The platform owner checks which Home Assistant version runs in the home or site and records how it is reached from outside the local network. The official integration documents that a cloud-hosted AI app needs the instance reachable from the internet, for example through Home Assistant Cloud or another remote access method, so the reviewer should confirm exactly which path is in use and who controls it. Done when the version, the access path and the owner of that path are written in the rollout record.

  2. Decide between the official integration and ha-mcp

    The engineering lead compares the official Model Context Protocol integration with the community ha-mcp server against the organization's support, licensing and review requirements. The official integration is configured from Settings > System > AI, while ha-mcp is a separate community project that can run as a custom component, an app or a local demo server it does not recommend. Done when one server is selected for the rollout, the reason is recorded, and the reviewer has confirmed that the other option is excluded or handled as a separate review.

  3. Restrict administrator accounts

    The identity or Home Assistant administrator reviews which accounts can sign in through the MCP endpoint. The official docs state that the main URL requires an administrator account by default, and an administrator account is always required when the main URL exposes the Home Assistant tool set, so the reviewer should confirm which people hold administrator rights and remove any that are not needed. Done when the list of permitted administrator accounts is short, named and approved, and the reviewer has checked it against the access records.

  4. Test OAuth sign-in with one client

    A pilot user, with the platform owner watching, connects one approved AI client using OAuth 2.0 with PKCE. The official integration supports OAuth Client ID Metadata Documents, and the client ID must be the base URL of the AI app, not the Home Assistant URL, and no client secret is used. Done when the sign-in completes, the session is tied to the expected account, and the owner has recorded the exact client ID and callback behavior the client presented.

  5. Verify the per-tool approval prompt behavior

    The security reviewer runs read and control requests from the pilot client and confirms whether each tool call produces a permission prompt. The official Claude example states that Claude asks for permission before using a tool unless the user chooses to always allow it, so the reviewer should test that the always-allow option is blocked or governed by policy for staff, and confirm the behavior in each client on the approved list. Done when the prompt behavior for every tested client is recorded with the date and the client version.

  6. Document the approved clients

    The governance owner writes the approved client list, the supported sign-in method for each, the administrator accounts allowed to authorize them, and the remote access path. Clients named in the official documentation include Claude, ChatGPT, Claude Code, Codex and OpenCode, and any client outside that list should go through its own review. Done when the list is stored with the rollout record, assigned an owner, and scheduled for review whenever the Home Assistant version, the access path or a client changes.

What a security reviewer asks to see

This table lists the evidence a reviewer should request before approving a Home Assistant MCP connection, and where each item lives in Home Assistant. Use it as a checklist during the review, comparing the official integration with the community ha-mcp server where the two differ. The main takeaway is that the administrator list, the MCP URL exposure method and the tool approval settings are the first items to confirm, because they decide who can reach the server and what it can change.

Evidence itemWhere it comes fromWhat to confirm
Administrator accountsSettings > People in Home Assistant, filtered to admin usersWhich people hold admin rights, since the main URL requires an administrator account by default
MCP URL and exposure methodSettings > System > AI, where the official MCP server URL is copiedWhether the path is the documented /api/mcp and whether the instance is reachable from the internet for a cloud AI app
OAuth client IDs for approved appsThe AI app's base URL, such as as recorded in the connection setupThat each client ID is the app's base URL and not the Home Assistant URL, and that only approved apps are listed
Tool approval settingsThe AI client's own permission prompts and always-allow choicesWhether users are asked before each tool runs, and which users have chosen always allow
Home Assistant logsSettings > System > Logs, plus any log export your team has configuredWhether MCP sign-ins and tool calls can be exported and retained under your log policy
Integration or ha-mcp versionSettings > Devices and services for the integration; the add-on or custom component version for ha-mcpThe exact version in use, so it can be matched against the vendor or project release notes

Questions buyers ask before approving Home Assistant MCP

Is the official Home Assistant MCP integration supported by Home Assistant?

Yes, the Model Context Protocol integration is listed on Home Assistant's own integrations site, so it is part of the official product documentation rather than a third-party add-on. The page lists @allenporter as the code owner and shows an install share of 9.5%. Support expectations still need checking: confirm with your Home Assistant version and release channel which behavior is documented, which features are marked as supported, and what your team must maintain itself. Ask whether the integration's supported features (tools and prompts, and resources only for device control) match the AI client you plan to use, since sampling and notifications are not supported.

Does the ha-mcp community server cost anything to run?

The ha-mcp project states that no paid subscription is required to use it. It is MIT licensed, can run as a Home Assistant custom component, as an app (add-on), or as a local stdio demo server that the project does not recommend. Free licensing does not mean zero cost: your team pays for the time to install, update, test and monitor the server, and for any remote access you add, such as Home Assistant Cloud or a reverse proxy. Before approval, confirm the current license terms in the repository, decide who owns upgrades, and ask whether your Home Assistant edition and hosting method are covered by the project's documentation.

Who must have an administrator account to connect an AI app?

By default, the main MCP URL requires an administrator account, and an administrator account is always required when the main URL exposes the Home Assistant tool set. This means any staff member who connects an AI client through that URL must hold admin rights in Home Assistant, which is a significant grant for a home automation system that can control locks, alarms and heating. Review who holds admin accounts before rollout, separate personal admin accounts from everyday use where your policy allows, and confirm with the official documentation which URL paths are available to non-admin users in your version.

Can staff set up the connection themselves without help?

Technically, yes for a single user with an administrator account. The official integration copies the MCP server URL from Settings, System, AI in Home Assistant, and the official documentation includes client examples for Claude, ChatGPT, Claude Code, Codex and OpenCode. The harder part is the surrounding controls: OAuth sign-in, the requirement that an AI cloud app reach your instance from the internet, and admin-only access. Self-setup works well for a small test group. For wider use, the controls should be written down and approved by the security team first, so that each person does not make their own choices about remote access and client settings.

What makes the effort to roll this out larger or smaller?

The main drivers are how the AI app reaches your home system, how many people connect, and how much the security team must review. A cloud-based AI app needs your Home Assistant instance to be reachable from the internet, through Home Assistant Cloud or another remote access method, so remote access design takes the most time. Choosing between the official integration and the community ha-mcp server changes the amount of maintenance and testing. Adding read-only restrictions, approval prompts and logging adds review time. Ask any vendor or implementer to show, in writing, which of these items are included in their scope and which are left to your team.

When is outside help worth scoping for a Home Assistant MCP rollout?

Outside help is worth scoping when the rollout touches remote access, admin accounts or physical-safety devices and your internal team lacks time to test them. DeployOpen plans and implements self-hosted open-source platforms inside a client's own infrastructure, and runs security testing that includes AI systems and agents. For an AI agent rollout, DeployOpen tests the setup for prompt injection, tool and file permissions, credential handling, SSO and admin settings, and delivers a findings report with fixes and a retest. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a written scope that names the Home Assistant version, the client apps and the controls to be tested.

What should a security reviewer confirm before approving the setup?

Confirm five points in writing before approval: which MCP integration is used, whether the instance is reachable from the internet and how, which accounts are administrators, which tool sets each client can call, and where client sessions and logs are kept. Check the official documentation for the OAuth client ID rule, since Home Assistant does not use a client secret for MCP OAuth and the client ID must be the base URL of the AI app. Also confirm how the AI app asks for permission before using a tool, and whether any user can choose to always allow a tool. Record the answers, then test them against your own environment.

How DeployOpen reviews an AI agent setup on Home Assistant

DeployOpen reviews Home Assistant MCP setups as part of AI agent rollout security reviews, covering the official integration or a community server, OAuth sign-in and the admin settings that decide what an AI client can reach. We test the setup, deliver a findings report with fixes and a retest, and document the controls your security team needs to approve the connection.

How we scope

  • Engagements are fixed-scope, with the systems, clients and admin settings covered agreed in writing before work starts.
  • We confirm which MCP integration is in use, whether it is the official Home Assistant server or the community ha-mcp server.
  • We record how the Home Assistant instance is reached, including whether a cloud-hosted AI app needs internet access to it.

How we build

  • We check the OAuth setup for each client, including the client ID, callback handling and which accounts are granted access.
  • We verify which accounts hold administrator rights and whether the tool sets exposed to the AI client match what the review approved.
  • We test prompt injection, tool approval behavior and exposure of home state data using controlled test cases in your environment.

How we hand over

  • You receive a findings report with the issues found, fixes recommended and the evidence behind each finding.
  • We retest after fixes are applied and document the final configuration for your security and compliance reviewers.
  • Documentation covers the settings to confirm in Home Assistant and in each AI client, so your team can repeat the checks.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when your Home Assistant or client versions change.
  • We can re-review the setup when new AI clients are approved or when the Home Assistant MCP settings change.
  • Any change to scope, such as adding a server or a new client, is agreed in writing before further work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.