Updated March 2026

Install Home Assistant

Pick your client, copy the command, done.

Conare saves your MCP configs so Claude Code remembers them next session. Free.

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "HA_URL=${HA_URL}" -e "HA_TOKEN=${HA_TOKEN}" home-assistant -- uvx ha-mcp
Required:HA_URLHA_TOKEN

Environment Variables

Set these before running Home Assistant.

VariableDescriptionRequired
HA_URLThe base URL of your Home Assistant instanceYes
HA_TOKENLong-lived access token for Home AssistantYes

Available Tools (3)

Once configured, Home Assistant gives your AI agent access to:

control_deviceTurn devices on or off or adjust their settings.
entity_idactiondata
query_stateGet the current state or attributes of a specific entity.
entity_id
manage_automationCreate, update, or debug Home Assistant automations.
automation_idactiondetails

Try It Out

After setup, try these prompts with your AI agent:

Create an automation that turns on the porch light at sunset
Add a weather card to my dashboard
The motion sensor automation isn't working, debug it
Make my morning routine automation also turn on the coffee maker
Create a script that sets movie mode: dim lights, close blinds, turn on TV
Alternative installation methods

Windows

irm https://raw.githubusercontent.com/homeassistant-ai/ha-mcp/master/scripts/install-windows.ps1 | iex

You'll forget this config in a week

Every Home Assistant env var, every tool, every gotcha — saved in Conare. Next time Claude Code asks, it already knows.

Save Home Assistant setup — free