Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 83
  • 353 stars
  • MIT
  • Updated

Install Hass MCP

Built from the published package, never by AI.

claude mcp add hass-mcp -- uvx hass-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Hass MCP in Claude Code

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

A

No 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 →

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.

Hass MCP Install

Add to stack

Loading.