Skip to content

Home Assistant MCP Server

Home Assistant's built-in MCP Server integration lets an assistant control exposed devices and entities through the Assist API and read a live snapshot of your home's state.

Capabilities
Control devices Read entity states Assist API intents Home context snapshot
Maintained by
Home Assistant
Hosting
Hosted by the vendor
Authentication
OAuth sign-in
Last checked

Add the Model Context Protocol Server integration (Home Assistant 2025.2+); clients without OAuth can use a long-lived access token.

How to connect the Home Assistant MCP server

Pick your AI client and paste the snippet. Swap the YOUR_… placeholders for your own values. New to this? Our guide to how MCP clients and servers fit together explains what each piece does.

Claude Code

Terminal
claude mcp add --transport http home-assistant https://YOUR_HOME_ASSISTANT_URL/api/mcp

Then run /mcp inside Claude Code and choose Authenticate to sign in.

Full Claude Code setup guide →

Claude Desktop and claude.ai

Settings → Connectors → Add custom connector
Name: Home Assistant
Remote MCP server URL: https://YOUR_HOME_ASSISTANT_URL/api/mcp

Custom connectors need a Pro, Max, Team or Enterprise plan. On Team and Enterprise an owner adds them in admin settings.

Full Claude Desktop setup guide →

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project)
{
  "mcpServers": {
    "home-assistant": {
      "url": "https://YOUR_HOME_ASSISTANT_URL/api/mcp"
    }
  }
}
Full Cursor setup guide →

VS Code

.vscode/mcp.json
{
  "servers": {
    "home-assistant": {
      "type": "http",
      "url": "https://YOUR_HOME_ASSISTANT_URL/api/mcp"
    }
  }
}
Full VS Code setup guide →

ChatGPT

Business, Enterprise and Edu plans (and Pro, read-only) can add this endpoint as an app in developer mode. ChatGPT setup guide →

Frequently asked questions

What is the Home Assistant MCP server?

It is a Model Context Protocol (MCP) server — a small piece of software that gives AI assistants like Claude a secure, governed connection to Home Assistant. Home Assistant's built-in MCP Server integration lets an assistant control exposed devices and entities through the Assist API and read a live snapshot of your home's state.

Is there an official Home Assistant MCP server?

Yes. The Home Assistant MCP server is an official integration, maintained by the vendor or the Model Context Protocol project, which makes it the safest default for business use. It is maintained by Home Assistant.

Is the Home Assistant MCP server hosted, or do I run it myself?

It is hosted. Home Assistant runs the endpoint at https://YOUR_HOME_ASSISTANT_URL/api/mcp, so there is nothing to install: you add the URL to your AI client and sign in with your Home Assistant account.

Do I need an API key for the Home Assistant MCP server?

No API key is needed for the hosted server. You sign in through Home Assistant's own OAuth screen, and the assistant only gets the access your account has.

What can an AI assistant actually do with Home Assistant?

Through this server an assistant can work with control devices, read entity states, assist api intents, home context snapshot — reading from and acting on Home Assistant directly instead of you copy-pasting between windows. What you allow it to do is controlled by the permissions you grant.

How do I set this up for my business?

The setup section above has copy-paste config for Claude Code, Claude Desktop, Cursor and VS Code. If you want it rolled out across a team with permissions, governance and support handled, that is what Crox's Build engagement covers.

New to MCP? Start with our plain-English guide to the Model Context Protocol or see how to connect AI to your business tools without writing code .

More IoT & Smart Home servers
Done-for-you integration

Want this connected to your business — with governance handled?

Crox maps your processes, connects AI to the tools you already use, and keeps it working as models change. Start with a readiness assessment or talk to us about a build.