home-assistant-mcp
MCP server by Coolver Community
Lets AI assistants in Cursor, VS Code and Claude Code analyze and build Home Assistant automations, scripts, dashboards and themes. It is built for Home Assistant users who run the HA Vibecode Agent add-on.
Install home-assistant-mcp
Built from the published package, never by AI.
claude mcp add home-assistant-mcp -e HA_AGENT_URL=YOUR_HA_AGENT_URL -e HA_AGENT_KEY=YOUR_HA_AGENT_KEY -- npx -y @coolver/home-assistant-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"home-assistant-mcp": {
"env": {
"HA_AGENT_KEY": "YOUR_HA_AGENT_KEY",
"HA_AGENT_URL": "YOUR_HA_AGENT_URL"
},
"args": [
"-y",
"@coolver/home-assistant-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"home-assistant-mcp": {
"env": {
"HA_AGENT_KEY": "YOUR_HA_AGENT_KEY",
"HA_AGENT_URL": "YOUR_HA_AGENT_URL"
},
"args": [
"-y",
"@coolver/home-assistant-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"home-assistant-mcp": {
"env": {
"HA_AGENT_KEY": "YOUR_HA_AGENT_KEY",
"HA_AGENT_URL": "YOUR_HA_AGENT_URL"
},
"args": [
"-y",
"@coolver/home-assistant-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add home-assistant-mcp --env HA_AGENT_URL=YOUR_HA_AGENT_URL --env HA_AGENT_KEY=YOUR_HA_AGENT_KEY -- npx -y @coolver/home-assistant-mcp{
"mcpServers": {
"home-assistant-mcp": {
"env": {
"HA_AGENT_KEY": "YOUR_HA_AGENT_KEY",
"HA_AGENT_URL": "YOUR_HA_AGENT_URL"
},
"args": [
"-y",
"@coolver/home-assistant-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add home-assistant-mcp npx -y @coolver/home-assistant-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the home-assistant-mcp block.
About
home-assistant-mcp is an MCP server from Coolver that lets AI assistants in IDEs such as Cursor, VS Code and Claude Code work with a Home Assistant setup. It connects to the HA Vibecode Agent add-on running inside Home Assistant, which gives access to configuration, entities, automations, scripts, helpers, dashboards, themes, logs and HACS. The assistant can analyze your setup, create or refactor automations and scripts, and update Lovelace dashboards and themes.
The MCP server runs on your computer next to your IDE and talks to the agent through a controlled API instead of SSH. Changes are versioned in Git with commit messages that explain what changed and why, and they can be rolled back. The project suits Home Assistant owners who want AI to build automations for them, or who prefer to write their own and use the assistant for testing, deployment and log analysis.
Written from the project's README and checked against it.
Tools it gives your assistant
Analyze your setupReads your full configuration, including entities, automations, scripts and helpers.Build intelligenceCreates interconnected automations, helpers, sensors and scripts based on your devices and areas.Dashboards and UICreates and updates Lovelace dashboards, cards, views and themes programmatically.Safe operationsTracks changes in Git, validates configuration before apply and supports rollback.Extend with the communityInstalls and configures HACS and updates HACS repositories and integrations.Monitor and troubleshootAnalyzes Home Assistant logs to help diagnose problems in your setup.
What you need
- Home Assistant running
- HA Vibecode Agent v2.2.0+ add-on installed and started
- Agent Key from the HA Vibecode Agent
- Node.js v20.0.0 or higher on the computer running your IDE
- AI-enabled editor such as Cursor, VS Code with GitHub Copilot or Claude Code
| Setting | Needed | What it is |
|---|---|---|
HA_Environment variable | Required | URL of your on-board Home Assistant Vibecode Agent add-on (generated after installation of the add-on) |
HA_Environment variable, secret | Required | Access key generated by the Home Assistant Vibecode Agent add-on after installation |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Install smart climate control for my radiators
- Analyze my automations and explain how they currently behave
- Create a Lovelace dashboard for my living room with history graphs
Good to know
- Node.js must be installed on your computer, not on the Home Assistant server.
- Requires the HA Vibecode Agent add-on to be running in Home Assistant.
- The Agent Key is stored in your local IDE config and should not be committed to git.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to home-assistant-mcp
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
home-assistant-mcp: common questions
Does this MCP server work without the Home Assistant add-on?
No. The source says the MCP server works together with the HA Vibecode Agent add-on, which runs inside Home Assistant and provides access to its APIs.
Why does this project not use SSH to connect to Home Assistant?
The author says SSH-only tools force the AI to generate and run a new script on every request, which is unpredictable. This design uses a stable API exposed by the agent inside Home Assistant.
Can the assistant change my setup without review?
The source says changes are validated before they are applied, tracked in Git and can be rolled back. It also says the user decides how much to delegate to AI.
How do I install home-assistant-mcp?
In Claude Code run claude mcp add home-assistant-mcp -e HA_AGENT_URL=YOUR_HA_AGENT_URL -e HA_AGENT_KEY=YOUR_HA_AGENT_KEY -- npx -y @coolver/home-assistant-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is home-assistant-mcp the official server?
home-assistant-mcp is a community project by Coolver, not verified by a company domain.
Is home-assistant-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is home-assistant-mcp safe to use?
It scores 73 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to home-assistant-mcp?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does home-assistant-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
