Hass MCP
MCP server by voska Verified · gh:voska
Hass MCP lets Claude and other LLMs query and control Home Assistant through the Model Context Protocol. It suits people who run a Home Assistant smart home and want an AI assistant to manage it.
Install Hass MCP
Built from the published package, never by AI.
claude mcp add hass-mcp -- uvx hass-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"hass-mcp": {
"args": [
"hass-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"hass-mcp": {
"args": [
"hass-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"hass-mcp": {
"args": [
"hass-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add hass-mcp -- uvx hass-mcp{
"mcpServers": {
"hass-mcp": {
"args": [
"hass-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add hass-mcp uvx hass-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 hass-mcp block.
About
Hass-MCP is a Model Context Protocol server that connects AI assistants such as Claude to a Home Assistant instance. Once connected, the assistant can read device and sensor states, control lights, switches and other entities, search for entities, summarize domains, list automations, and read history and error logs. It can also read and edit Lovelace dashboards over Home Assistant's WebSocket API, with automatic backups and a dry-run preview.
The server runs locally over stdio using Docker or uvx, and it can also run in streamable HTTP mode. It is configured with a Home Assistant URL and a long-lived access token. The README says it is built for people who run Home Assistant and want to use Claude Desktop, Cursor, Claude Code or other MCP clients to manage their smart home.
Written from the project's README and checked against it.
Tools it gives your assistant
get_entityGet the state of a specific entity with optional field filtering.entity_actionPerform actions on entities such as turn on, off, or toggle.list_entitiesGet a list of entities with optional domain filtering and search.search_entities_toolSearch for entities matching a query.domain_summary_toolGet a summary of a domain's entities.list_automationsGet a list of all automations.call_service_toolCall any Home Assistant service.get_historyGet the state history of an entity for the last N hours.get_error_logGet the Home Assistant error log with optional level and search filters.get_entities_by_areaList entities in a specific area or room.
What you need
- Home Assistant instance
- Home Assistant long-lived access token
- Docker, or Python 3.13+ and uv
Try asking
- What's the current state of my living room lights?
- Turn off all the lights in the kitchen
- Show me the last 50 ERROR lines from the Home Assistant log
Good to know
- HTTP mode exposes full Home Assistant control over the network and needs auth in front of it.
- Dashboard editing requires the long-lived token to belong to an admin user.
- Only storage-mode dashboards can be edited. YAML-mode dashboards are rejected.
- Dashboard changes are whole-config writes because Home Assistant has no partial-edit API.
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 Hass MCP
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Hass MCP: common questions
Does Hass MCP work with Claude Desktop?
The README includes setup steps for Claude Desktop, using either Docker or uvx. It also lists Cursor and Claude Code as clients.
Can Hass MCP edit Home Assistant dashboards?
Yes. It can read and edit Lovelace dashboards over the WebSocket API, with automatic backups and a dry-run option. Only storage-mode dashboards with an admin token can be edited.
Is it safe to run the HTTP transport on the internet?
The README warns against it. HTTP mode gives anyone who can reach the port full control of Home Assistant, so it must sit behind a reverse proxy, VPN or zero-trust network.
How do I install Hass MCP?
In Claude Code run claude mcp add hass-mcp -- uvx hass-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Hass MCP the official server?
Hass MCP is published by gh:voska from its verified domain in the official MCP Registry.
Is Hass MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Hass MCP safe to use?
It scores 83 of 100. Grades: maintenance A, 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 Hass MCP?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Hass 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.
