Skip to content
MCP server

Home Assistant MCP

Let coding agents read Home Assistant state, edit automations and flash ESPHome devices

Runs locally

Home Assistant MCP is an open-source MCP server for smart home. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (2 tools)
Version
0.17.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add home-assistant-mcp --env HA_TOKEN='<HA_TOKEN>' --env VOMEHOME_TOKEN='<VOMEHOME_TOKEN>' -- npx -y @vortitron/home-assistant-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "home-assistant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@vortitron/home-assistant-mcp"
      ],
      "env": {
        "HA_TOKEN": "<HA_TOKEN>",
        "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "home-assistant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@vortitron/home-assistant-mcp"
      ],
      "env": {
        "HA_TOKEN": "<HA_TOKEN>",
        "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "home-assistant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@vortitron/home-assistant-mcp"
      ],
      "env": {
        "HA_TOKEN": "<HA_TOKEN>",
        "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "home-assistant-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vortitron/home-assistant-mcp"
      ],
      "env": {
        "HA_TOKEN": "<HA_TOKEN>",
        "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add home-assistant-mcp --env HA_TOKEN='<HA_TOKEN>' --env VOMEHOME_TOKEN='<VOMEHOME_TOKEN>' -- npx -y @vortitron/home-assistant-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.home-assistant-mcp]
command = "npx"
args = ["-y", "@vortitron/home-assistant-mcp"]
env = { HA_TOKEN = "<HA_TOKEN>", VOMEHOME_TOKEN = "<VOMEHOME_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "home-assistant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@vortitron/home-assistant-mcp"
      ],
      "env": {
        "HA_TOKEN": "<HA_TOKEN>",
        "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e HA_TOKEN='<HA_TOKEN>' -e VOMEHOME_TOKEN='<VOMEHOME_TOKEN>' home-assistant-mcp npx -- -y @vortitron/home-assistant-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "home-assistant-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@vortitron/home-assistant-mcp"
          ],
          "env": {
            "HA_TOKEN": "<HA_TOKEN>",
            "VOMEHOME_TOKEN": "<VOMEHOME_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • HA_URLYour Home Assistant's address, e.g. http://homeassistant.local:8123 (or use VOMEHOME_TOKEN instead)
  • HA_TOKENA Home Assistant long-lived access token
  • HA_ALLOW_WRITESet to true to allow service calls and edits; reads only without it
  • VOMEHOME_TOKENA key from the Vome app's Agent tab, to reach the home through Vome instead of HA_URL and HA_TOKEN

About Home Assistant MCP

The server gives an agent the same loop a person would use: list entities, read live states and history, render a Jinja template against real data, check the configuration, read the logs, then change something and see whether it worked. ha_get_system_log is the suggested first stop for deduplicated, structured errors, and ha_get_trace shows which step of an automation run failed.

Writes are off by default. In direct mode they require HA_ALLOW_WRITE=true, and creating or updating automations also needs HA_ALLOW_CONFIG_WRITE. Connecting uses HA_URL plus a long-lived HA_TOKEN, or a VOMEHOME_TOKEN to reach the home through the Vome service. ESPHome dashboard support covers editing, validating, compiling and flashing firmware.

It is part of the Vome family and an open-source companion to the managed VomeHome. In Claude Code, four side panes show the automation being edited, the ESPHome device being built, a home health score and a dashboard.

Tools this server provides (17)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 2 of 17 tools change data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

ha_get_configName suggests: reads
Returns core config such as version and time zone.
ha_list_entitiesName suggests: reads
Lists entities by domain, search or area.
ha_get_stateName suggests: reads
Returns state and attributes for entities.
ha_get_historyName suggests: reads
Returns state changes over a time window.
ha_render_template
Renders a Jinja2 template against live state.
ha_check_configName suggests: reads
Validates the configuration.
ha_get_system_logName suggests: reads
Returns deduplicated structured errors.
ha_get_error_logName suggests: reads
Tails the raw error log.
ha_list_automationsName suggests: reads
Lists automations with state and last triggered.
ha_get_automationName suggests: reads
Returns an automation's full config.
ha_list_tracesName suggests: reads
Lists recent automation runs.
ha_get_traceName suggests: reads
Shows step-by-step detail of one run.
ha_camera_image
Returns a camera's current still.
ha_get_energy_prefsName suggests: reads
Returns the Energy dashboard setup.
ha_call_service
Calls a Home Assistant service; write-gated.
ha_set_automationName suggests: changes
Creates or updates an automation; write-gated.
ha_set_helperName suggests: changes
Creates or updates a helper; write-gated.

What it does

Entity and history access
Lists entities, areas and devices and reads states, history and logbook.
Template rendering
Tests Jinja2 templates against live state.
Log and trace debugging
Structured system log and per-run automation traces.
Gated writes
Service calls and edits stay off until enabled.
ESPHome workflow
Edit, validate, compile and flash device firmware.
Camera stills
Returns a camera's current image for the agent to see.

Good for

  • Debug an automation that does not fire
  • Create or update a helper without restarting
  • Check why an integration is logging errors
  • Build and flash ESPHome firmware from a chat
  • Review the Energy dashboard setup

Pricing

Open source

Free open-source package

Home Assistant MCP FAQ

Can Home Assistant MCP change my home by default?

No. Writes are refused until HA_ALLOW_WRITE is set to true.

What does Home Assistant MCP need to connect?

A Home Assistant URL and long-lived token, or a Vome key.

Does Home Assistant MCP support ESPHome?

Yes, optionally through the ESPHome dashboard.

Which clients does Home Assistant MCP target?

Cursor, VS Code Copilot, Claude Desktop and other MCP clients.

Is Home Assistant MCP free?

Yes. Home Assistant MCP is open source, so you can use and self-host it for free.

How do I add Home Assistant MCP to Claude Code?

Run this command in your terminal: claude mcp add home-assistant-mcp --env HA_TOKEN='<HA_TOKEN>' --env VOMEHOME_TOKEN='<VOMEHOME_TOKEN>' -- npx -y @vortitron/home-assistant-mcp

What are the best alternatives to Home Assistant MCP?

The closest alternatives to Home Assistant MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers