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

Homeassistant MCP

MCP server by OrellBuehler Verified · npm:@orellbuehler

Lets AI agents inspect a Home Assistant instance, validate YAML, render templates and write automations without controlling devices. Built for people who author Home Assistant configs with MCP clients.

  • Score 80
  • 4 stars
  • 586 a week
  • MIT
  • Updated

Install Homeassistant MCP

Built from the published package, never by AI.

claude mcp add homeassistant-mcp -- npx -y @orellbuehler/homeassistant-mcp

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

Step-by-step: install Homeassistant 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 homeassistant-mcp block.

About

Homeassistant MCP is a Model Context Protocol server that connects an AI assistant to a Home Assistant instance. It lets the agent list and inspect entities, services, events, areas, devices and labels, read state history and logbook, and render Jinja2 templates against live state. It also runs Home Assistant's config check and reads the error log.

The server is built to author and validate configuration and automations rather than control devices. It can create, edit and delete UI-managed automations, configure the Energy dashboard, and rename or enable registry entities. It has no call_service, set_state or fire_event tools. It is aimed at people who want AI agents to write Home Assistant configs.

Written from the project's README and checked against it.

Tools it gives your assistant

  • list_entitiesCompact summary of live entities, filterable by domain and search.
  • get_entityFull state object for one entity, including all attributes.
  • render_templateRenders a Jinja2 template against live state for template sensors and conditions.
  • check_configValidates the YAML config on the server.
  • get_error_logReturns the Home Assistant error log as text, tailed to a set number of lines.
  • upsert_automationCreates a new automation or replaces an existing one's config, validated by HA.
  • delete_automationDeletes a UI-managed automation.
  • rename_entitySets an entity's registry name and or its new entity_id.
  • set_entity_enabledEnables or disables entities in the registry in batch, with per-entity results.
  • list_tracesLists recent execution traces for an automation or script entity.

What you need

  • A Home Assistant instance with a Long-Lived Access Token
  • An admin token for write tools
  • Node.js 20 or later

Try asking

  • Create an automation that turns on the porch light 30 minutes before sunset.
  • My goodnight automation didn't fire last night. Figure out why.
  • Write a template sensor for grid power and validate it against live state.

Good to know

  • Write tools for automations, registry and Energy settings require an admin token.
  • Automations defined in YAML without an id are not reachable.
  • Energy preference saves are read-modify-write, so simultaneous UI edits can be overwritten.
  • There are no tools to call services, set state or fire events.

Security check

A

No 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 Homeassistant MCP

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

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.

AAA Remote 24k
Sim simstudioai
100

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.

AAA Remote 30k
Omnara omnara-ai
98

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.

AAA Remote 3.5k
strata Klavis-AI
95

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.

AAA Remote 5.8k
voicemode mbailey
95

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.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

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.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Homeassistant MCP: common questions

Can this MCP server turn my lights or devices on and off?

No. The source says there is deliberately no call_service, set_state or fire_event tool, so the agent writes config and cannot control devices directly.

Which token permissions are needed?

The token inherits the permissions of the user who creates it. The source says writes require an admin token, and you can create a dedicated user to limit what the agent can see.

Can it help debug automations?

Yes. The list_traces and get_trace tools are read-only and provide step-by-step execution traces for automation and script entities.

How do I install Homeassistant MCP?

In Claude Code run claude mcp add homeassistant-mcp -- npx -y @orellbuehler/homeassistant-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Homeassistant MCP the official server?

Homeassistant MCP is published by npm:@orellbuehler from its verified domain in the official MCP Registry.

Is Homeassistant MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Homeassistant MCP safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality C. 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 Homeassistant MCP?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Homeassistant 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.

Homeassistant MCP Install

Add to stack

Loading.