Hass MCP Server

by ganhammar• 83•• Scanned•Claim this listing•Request removal
Smart Home & IoThacshacs integrationhome assistanthomeassistant integrationmcp

A Home Assistant Custom Component that provides an MCP (Model Context Protocol) server using HTTP transport, allowing AI assistants like Claude to interact with your Home Assistant instance over HTTP

Hass MCP Server is an open-source mcp server by ganhammar, written mainly in Python, with 83 GitHub stars and the MIT license. Its code was last updated Oct 27, 2026.

MCP Server for Home Assistant

Let an AI assistant such as Claude work with your Home Assistant: read what is going on, explain why something happened, and change automations, dashboards and devices for you. It is a custom integration that gives the assistant a set of tools for your Home Assistant, and it works wherever Home Assistant is reachable, including Claude on the web.

Demo: Home Assistant is added to an assistant as a custom connector, Home Assistant's consent screen asks what the assistant, here a made-up one called Wren, may do and Look only is approved, and the question "Describe my home" is answered with the rooms on each floor, the lights that are on, the temperatures and an open balcony door, read through tools such as list_areas and search_entities. The assistant is illustrated; the Home Assistant screens and the data are real.

Things you can ask once it is connected:

  • "Are any lights still on upstairs?"
  • "Why didn't the hallway automation run last night?"
  • "Which automations and dashboards still use light.kitchen? I want to rename it."
  • "Add a card for the new heat pump to the energy view."
  • "Is anything wrong with my system right now?"
  • "Create a scene for movie night and an automation that starts it when the TV turns on."

Why this one

  • It administers the whole instance, not only the entities exposed to Assist as Home Assistant's built-in MCP Server does: 117 tools for automations, dashboards, the registries, integrations, traces and diagnostics. See how the two differ.
  • Everyone signs in as themselves. Clients authenticate through Home Assistant as a real user, with OAuth or a long-lived access token, so there is no shared secret URL and every change is logged with who made it.
  • You decide how far it reaches. When an app connects, you choose what it may do, from Look only to Administer or area by area. On top of that come read-only mode, a switch for every tool, and opt-ins for the groups that reach furthest. A tool that is off is not even shown to the client.
  • It is tested on each change against Home Assistant 2025.6, the oldest supported version, and three newer releases up to 2026.10.

Quick start

You need: Home Assistant 2025.6 or newer, HACS, an administrator account and, for Claude on the web, an HTTPS address for Home Assistant that can be reached from the internet.

  1. Install. In HACS, download "MCP Server" and "OIDC Provider", then restart Home Assistant. The OIDC Provider handles the sign-in for Claude; skip it if you will only use long-lived access tokens.
  2. Add the integrations. Under Settings > Devices & Services > Add Integration, add "OIDC Provider" first, then "MCP Server (HTTP Transport)".
  3. Connect Claude. In Claude, open Customize > Connectors > Add custom connector and enter https://your-home-assistant/api/mcp_http. Claude sends you to Home Assistant to sign in, choose what Claude may do, and approve.

Choose Look only, or start in read-only mode, if you want to see what it does before letting it change anything. Connecting a client covers other clients and long-lived access tokens.

What it can do

AreaExamples
Entities and stateRead and search entities, call any service, history, logbook and long-term statistics
Automations, scripts and scenesList, create, update and delete them, and search their config for a reference
TracesSee step by step why an automation or script ran, did not run, or took the wrong branch
DashboardsRead an outline, change a single card with a patch, or create and remove whole dashboards
HelpersCreate and manage toggles, counters, timers, schedules and the other helper types
Areas, floors, devices and labelsOrganize the instance: create areas and floors, move and rename devices, label things
Integrations (opt-in)Add an integration, change its options, reload, disable or remove it
DiagnosticsSystem status, repair issues, system health, the list of backups, the error log, config validation
Config files (opt-in)Read and edit YAML files, with a snapshot of the top-level files before every change
Cameras and images (opt-in)Capture a camera frame or read a saved image for the assistant to look at
KNXManage KNX entities and read recent telegrams, when KNX is set up

The full reference lists every tool, resource and prompt. A few tools rely on Home Assistant internals and can break on an update; they are marked there.

Staying in control

  • Access per app. The consent screen asks what each app may do: Look only, Control devices, Edit the setup or Administer, or None, Read or Full per area. It needs OIDC Provider 1.9.0 or newer. A connection from before keeps Administer until you change it with Change access under Connected applications, and in read-only mode it is held at Read.
  • Read-only mode offers only the tools that read, to every connection. Nothing can be changed.
  • Disabled tools switches off individual tools, such as restart_ha.
  • Opt-in groups stay off until you enable them: config files, cameras and images, templates, AppDaemon apps and integration management.
  • The audit log and event record who called what, with secrets masked.
  • Only administrators can connect, unless you decide otherwise.

See Configuration and Security and auditing.

Documentation

Updating and removing. HACS shows updates as they are released. To remove it, delete the integration under Settings > Devices & Services, remove it in HACS, restart, and remove the connector in your client.

Help. Questions and bugs go to the issue tracker.

License

MIT

Hass MCP Server alternatives

View more →

Similar mcp servers in Smart Home & IoT, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
Hass MCP Server (this page)
ganhammar
83MITOct 27, 2026Scanned, no flagged issues
Xiaozhi Esp32 Server
xinnan-tech
11kMITNov 1, 2026Scanned, no flagged issues
Esp32 Nat Router
martin-ger
2.2kNone foundOct 21, 2026Not scanned yet
Arduino Mcp2515
autowp
1kMITFeb 27, 2026Scanned, no flagged issues
Home Assistant Vibecode Agent
Coolver
651MITOct 21, 2026Scanned, no flagged issues
Bagel
Extelligence-ai
400Apache-2.0Oct 19, 2026Scanned, no flagged issues