ha-mcp
MCP server by homeassistant-ai Community
Configures and automates Home Assistant from AI assistants such as Claude and ChatGPT. It is aimed at Home Assistant users who want their assistant to manage their smart home setup.
Install ha-mcp
Built from the published package, never by AI.
claude mcp add ha-mcp -- uvx ha-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ha-mcp": {
"args": [
"ha-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ha-mcp": {
"args": [
"ha-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ha-mcp": {
"args": [
"ha-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ha-mcp -- uvx ha-mcp{
"mcpServers": {
"ha-mcp": {
"args": [
"ha-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add ha-mcp uvx ha-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 ha-mcp block.
About
HA-MCP is an MCP server that lets AI assistants configure and automate Home Assistant. The recommended way to run it is the HA-MCP integration, which installs through the Home Assistant Marketplace and runs the server inside Home Assistant. After setup, the server gives clients a connect URL that you paste into your AI client.
The server works with Home Assistant OS, Supervised, Container and Core installs and needs Home Assistant Core 2026.12 or newer. Setup asks for an administrator access token and how clients may connect, either through remote access or on the local network. A Home Assistant app (add-on), Docker and PyPI/uvx HTTP servers are also documented as alternatives, and the project asks users to run only one server per Home Assistant instance. It is intended for Home Assistant users who want AI assistants to help manage their setup.
Written from the project's README and checked against it.
Tools it gives your assistant
ha_config_set_yamlSets Home Assistant YAML configuration. Moved to beta in version 7.3.0.Settings panelAdmin-only sidebar panel for managing tools, feature flags, backups and themes.ha_tool_concurrencySetting that caps Home Assistant tool calls across the whole server.
What you need
- Home Assistant Core 2026.12 or newer
- Administrator access token or a dedicated administrator account in Home Assistant
- Python 3.14 for the uvx or pip install methods
- Docker for the Docker HTTP server method
Try asking
- Update my Home Assistant YAML configuration for the living room lights
- Show the HA-MCP feature flags and tools I have enabled
- Connect Claude Desktop to my Home Assistant through the HA-MCP connect URL
Good to know
- ha_config_set_yaml has been moved to beta.
- Several clients writing at once, and parallel writes to the same tool, are not officially supported.
- ha-mcp has no per-client accounts. Clients that share one server share its Home Assistant access.
- Local stdio is deprecated and unsupported. OAuth mode is an advanced beta feature.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ha-mcp
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
ha-mcp: common questions
Do I need to run more than one ha-mcp server?
No. The source says to run only one server per Home Assistant instance, because running two against one instance is not supported. Keeping two entries for the same server in one client can cause connection hangs.
Can I keep ha-mcp local only?
Yes. Leave remote access disabled at setup, or turn off Remote access via webhook in the entry options. No webhook is registered, while the direct port and sidebar panel keep working.
Which Home Assistant version does HA-MCP need?
The integration requires Home Assistant Core 2026.12 or newer, including December prereleases. The source says the current stable release is supported, along with the next beta while one is out.
How do I install ha-mcp?
In Claude Code run claude mcp add ha-mcp -- uvx ha-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is ha-mcp the official server?
ha-mcp is a community project by homeassistant-ai, not verified by a company domain.
Is ha-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ha-mcp safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. 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 ha-mcp?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does ha-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.
