Skip to main content
Glama
Home Assistant MCP Server

Home Assistant MCP Server

Home Assistant MCP Server

📖 Installation Guide — quick start, manual setup, and troubleshooting

FastMCP 3.2.0 MCP server and webapp for Home Assistant. Portmanteau tool, sampling, agentic workflow, prompts, and skills. Webapp follows SOTA standards (React, Tailwind, dark theme, ports 10834/10835).

Features

  • MCP tools: ha(operation=...) get_states, get_state, call_service, get_config, get_automations, trigger_automation. ha_help(category). ha_agentic_workflow(goal) with SEP-1577 sampling.

  • Prompts: ha_quick_start, ha_diagnostics.

  • Skills: skills/ha-operator.md.

  • REST API: GET /api/v1/health, /api/v1/states, /api/v1/config, /api/v1/automations; POST /api/v1/services/{domain}/{service}, /api/v1/automations/trigger.

  • Webapp: Dashboard, States (filter by domain), Services (call service form), Automations (list + trigger), Settings, Help, MCP Tools.

Related MCP server: HA Vibecode Agent

Ports

  • Backend: 10835 (REST + MCP SSE)

  • Dashboard: 10834 (Vite)

Quick Start

git clone https://github.com/sandraschi/home-assistant-mcp
cd home-assistant-mcp
just

This opens an interactive dashboard showing all available commands. Run just bootstrap to install dependencies, then just serve or just dev to start.

Manual Setup

If you don't have just installed:

Setup

Clone the repo and install dependencies from the repository root (not web_sota/):

git clone https://github.com/sandraschi/home-assistant-mcp.git
Set-Location home-assistant-mcp
uv sync

Start the webapp from the same clone:

cd web_sota
npm run dev

Set HA_URL (e.g. http://homeassistant.local:8123) and HA_TOKEN (Long-Lived Access Token from HA Profile Long-Lived Access Tokens).

MCP client

{
  "mcpServers": {
    "home-assistant": {
      "url": "http://localhost:10835/sse",
      "transport": "sse"
    }
  }
}

Fleet

Documented in mcp-central-docs (integrations + projects/home-assistant-mcp).

🛡️ Industrial Quality Stack

This project adheres to SOTA 14.1 industrial standards for high-fidelity agentic orchestration:

  • Python (Core): Ruff for linting and formatting. Zero-tolerance for print statements in core handlers (T201).

  • Webapp (UI): Biome for sub-millisecond linting. Strict noConsoleLog enforcement.

  • Protocol Compliance: Hardened stdout/stderr isolation to ensure crash-resistant JSON-RPC communication.

  • Automation: Justfile recipes for all fleet operations (just lint, just fix, just dev).

  • Security: Automated audits via bandit and safety.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server and Home Assistant add-on that enables AI assistants to manage smart homes by creating automations, designing dashboards, and interacting with entities. It features native access to Home Assistant APIs, built-in Git versioning for safe rollbacks, and full management of HACS integrations.
      660
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible AI clients to safely control Home Assistant devices and query MQTT sensors through natural language, using allowlist-guarded actions and pre-defined automations.
      MIT