Logo vun Home Assistant Model Context Protocol (MCP)

Home Assistant Model Context Protocol (MCP)

Communautéit
jango-blockchained

MCP server that gives AI assistants control over your Home Assistant. Including 50+ tools over 3 transports. Batteries included 🔋

Editeurjango-blockchained
Repositoryadvanced-homeassistant-mcp
SproochJavaScript
Forks
22
StÀren
56
Disponibel Tools
0
Transporttypstdio, streamable-http
Kategorien
LizenzApache-2.0
Linken
  • Tools mat KI-Workflows verbannen

    Home Assistant Model Context Protocol (MCP) stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopĂ©ieren

    Benotzt d'Installatiounsbeispiller, fir dĂ«se Server an Ärem bevorzugte MCP-Client ze konfigurĂ©ieren.

  • Indicateure fir Open Source

    56 StÀren an 22 Forks aus dem verlinkte Repository.

🏠 Home Assistant MCP

Smithery Release npm Docker CI Bun Node License

Talk to your house. Your AI assistant (Claude, GPT, Cursor, Copilot) — connected to Home Assistant through the Model Context Protocol. 50+ tools, three transports, one bunx command.

bash
# ⚡ Fastest way to try it
bunx github:jango-blockchained/advanced-homeassistant-mcp

🚀 Quick Start

You need a Home Assistant instance and a long-lived access token (create one here).

Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "homeassistant-mcp": {
      "command": "bunx",
      "args": ["github:jango-blockchained/advanced-homeassistant-mcp"],
      "env": {
        "HASS_HOST": "http://your-ha-instance:8123",
        "HASS_TOKEN": "your_long_lived_access_token"
      }
    }
  }
}

Restart Claude. You're done. Ask it to turn on the lights.

Cursor / VS Code

json
{
  "mcpServers": {
    "homeassistant-mcp": {
      "command": "bunx",
      "args": ["github:jango-blockchained/advanced-homeassistant-mcp"],
      "env": {
        "HASS_HOST": "http://your-ha-instance:8123",
        "HASS_TOKEN": "your_long_lived_access_token"
      }
    }
  }
}

Set your env vars in a .env file and use the pre-configured .vscode/mcp.json:

json
{
  "mcp.servers": {
    "homeassistant-mcp": {
      "type": "stdio",
      "command": "bun",
      "args": ["run", "dist/stdio-server.mjs"],
      "env": {
        "HASS_HOST": "${env:HASS_HOST}",
        "HASS_TOKEN": "${env:HASS_TOKEN}"
      }
    }
  }
}

Smithery (One-Click)

Install directly from the Smithery registry — no config files needed:

bash
npx @smithery/cli install @jango-blockchained/advanced-homeassistant-mcp --client claude

📩 All Install Options

MethodCommand
Smithery (easiest)npx @smithery/cli install @jango-blockchained/advanced-homeassistant-mcp --client claude
bunx (no install)bunx github:jango-blockchained/advanced-homeassistant-mcp
npxnpx @jango-blockchained/homeassistant-mcp@latest
Dockerdocker run -d -p 7123:7123 --env-file .env ghcr.io/jango-blockchained/advanced-homeassistant-mcp:1.7.0
From sourcegit clone ... && bun install && bun run build:all && bun run start:stdio
npm globalnpm add -g @jango-blockchained/homeassistant-mcp && homeassistant-mcp

Available Docker tags:

  • latest - Latest stable release
  • 1.7.3, 1.7, 1 - Tagged versions
  • dev - Latest development build from main branch

🎯 What You Can Do

Once connected, you talk to your house like you talk to a human:

"Turn off all lights in the bedroom"
"Set the thermostat to 72°F"
"Lock all doors and start the vacuum"
"Show me energy consumption this week"
"What's the temperature in the living room?"
"Activate the movie scene"
"Notify everyone that dinner is ready"
"Check my Home Assistant health"
"Find orphaned devices with low battery"
"Analyze my light usage patterns"

Every command maps to one of 50+ tools — lights, climate, media, locks, covers, fans, vacuums, alarms, scenes, automations, notifications, history, energy monitoring, maintenance, and more.

CategoryTools
Lightslist, get, turn on/off, brightness, color temp, RGB, effects
Climatelist, get, HVAC modes, target temp, fan mode, humidify
Medialist, get, play/pause, volume, source, sound mode, shuffle
Coverslist, get, open/close, position, tilt, garage door
Lockslist, get, lock/unlock with code support
Fanslist, get, speed, oscillation, direction, preset
Vacuumslist, get, start/stop/dock, spot clean, fan speed
Alarmlist, get, arm home/away/night, disarm
Switcheslist, get, turn on/off/toggle
Sceneslist, activate named scene
Automationslist, toggle, trigger, create/edit/delete
Notificationspush alerts via HA channels
Historyquery historical states
Add-onsinstall, configure, control
PackagesHACS integrations and custom components
Maintenanceorphaned devices, battery warnings, energy analysis
Smart Scenariosnobody-home mode, window/heat conflicts, energy waste
Lightinganimations, scenarios, showcase, BPM/beat detection
Voicewake word detection, speech-to-text, voice commands
Dashboardquery and manage Lovelace dashboards
Templatesrender Jinja2 templates via HA
To-Do Listsadd, update, remove items
Tracesautomation/script execution traces
Searchfull-text entity search with filters
Entity Stateget current state of any entity
Error Logquery HA error logs with filtering

Full docs: Tools Reference


đŸŽ™ïž Speech Features (Voice Control)

Transform your setup into a fully voice-controlled smart home assistant. The speech integration provides local, privacy-focused voice processing.

  • Wake Word Detection: Powered by wyoming-openwakeword (default: "Hey Jarvis").
  • Speech-to-Text: Fast, local transcription using faster-whisper.
  • Audio Integration: Direct PulseAudio integration for seamless microphone access.

To enable speech features, use the dedicated Docker Compose file:

bash
docker-compose -f docker-compose.speech.yml up -d

See the Speech Features Guide for detailed configuration and setup instructions.


đŸ§± Architecture

┌──────────────┐     ┌─────────────────────┐     ┌──────────────────┐
│  AI Assistant │◄───â–ș│   Home Assistant    │◄───â–ș│  Your Smart Home │
│ (Claude/GPT)  │     │    MCP Server       │     │  (Home Assistant)│
└──────────────┘     └─────────────────────┘     └──────────────────┘
                         │           │
                    ┌────┘           └────┐
                    ▌                     ▌
              ┌────────────┐      ┌──────────────┐
              │  HTTP/WS   │      │    STDIO     │
              │ (Express)  │      │ (fastmcp v3) │
              └────────────┘      └──────────────┘

Three transports, one codebase. Pick the one that fits your setup — all expose the same 50+ tools.

  • STDIO — for Claude Desktop, Cursor, VS Code (local editor integrations)
  • HTTP+WS — for remote AI hosts, with JWT auth, rate limiting, and WebSocket streaming
  • HTTP (fastmcp) — lightweight HTTP transport without bespoke middleware

⚙ Configuration

Minimal setup. Two variables are required:

env
HASS_HOST=http://homeassistant.local:8123
HASS_TOKEN=eyJ...                          # long-lived access token

Optional:

env
PORT=7123                                  # HTTP server port (default: 4000)
LOG_LEVEL=info                             # debug | info | warn | error
JWT_SECRET=...                             # for HTTP/WS auth (min 32 chars)

For the full list of 20+ environment variables, see the Configuration docs.


đŸ› ïž Development

bash
bun install              # install dependencies
bun run build:all        # build all three entry points
bun test                 # run test suite (80% coverage threshold)
bun run lint             # ESLint + Prettier
bun run typecheck        # TypeScript type checking

Built with Bun, TypeScript, and fastmcp. Three entry points:

  • dist/index.cjs — HTTP+WS on a custom Express-based MCP server
  • dist/stdio-server.mjs — STDIO via fastmcp v3
  • dist/http-server.mjs — HTTP via fastmcp v3

📖 Docs

Full documentation lives at jango-blockchained.github.io/advanced-homeassistant-mcp — covers installation, configuration, all 50+ tools, deployment (HTTP, STDIO, Smithery), architecture deep-dives, and guides.


đŸ€ Contributing

PRs welcome. Keep it simple — same code style, add tests, update docs if you touch public APIs.

  1. Fork it
  2. Branch it
  3. Code it
  4. Test it
  5. PR it

See CONTRIBUTING.md for the full guidelines.


📄 License

MIT — go build something cool.


Your smart home speaks MCP. Now your AI speaks it too. đŸ âšĄđŸ€–đŸ”‹

Batteries included. 🔋

Installatioun

TypingMind
{
  "mcpServers": {
    "advanced-homeassistant-mcp": {
      "command": "bun",
      "args": [
        "run",
        "dist/index.js",
        "--stdio"
      ]
    }
  }
}

Home Assistant Model Context Protocol (MCP) MCP mat verschiddene KI-Modeller benotzen

TypingMind verbĂ«nnt MCP-Tools um Niveau vum AarbechtsberĂ€ich. Soubal Home Assistant Model Context Protocol (MCP) verbonnen ass, kĂ«nnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dir kĂ«nnt MCP lokal op Ärem Apparat ausfĂ©ieren oder Iech mat enger Remote-MCP-Server-URL verbannen.

Optioun 1: De lokale Connector benotzen

Benotzt dĂ«s Optioun, wann den MCP-Server ZougrĂ«ff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „DĂ«sen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „DĂ«sen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „DĂ«sen Apparat“, kopĂ©iert de Befeel aus TypingMind a fĂ©iert en am Terminal aus. Loosst de Prozess lafen, wĂ€rend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. BestÀtegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wÀrend Dir MCP-Tools benotzt.
3

Home Assistant Model Context Protocol (MCP) als Server derbÀisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren Ă€nneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren Ă€nneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Home Assistant Model Context Protocol (MCP) an.
  4. SpÀichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem KnĂ€ppchen „Serveren Ă€nneren“
{
  "mcpServers": {
    "advanced-homeassistant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jango-blockchained/homeassistant-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

SpĂ€ichert d'ServerlĂ«scht, maacht „Plugins“ op an aktivĂ©iert d'MCP-Tools vu Home Assistant Model Context Protocol (MCP). Wielt dann e belibegen Ă«nnerstĂ«tzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'SĂ€it „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Home Assistant Model Context Protocol (MCP).
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Home Assistant Model Context Protocol (MCP)?
Home Assistant Model Context Protocol (MCP)
Jo. Ech hunn et gelies.
Dat hunn ech mat Home Assistant Model Context Protocol (MCP) fonnt.

Optioun 2: Eng MCP-Server-URL derbÀisetzen

Benotzt dĂ«s Optioun, wann Home Assistant Model Context Protocol (MCP) scho remote gehost gĂ«tt oder Är Ekipp ee gemeinsame Connector wĂ«llt, op dee mĂ©i Benotzer kĂ«nnen zougrĂ€ifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbĂ€isetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbĂ€isetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbÀizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinĂ©iert HTTP-Headeren oder OAuth-Clientastellungen derbĂ€i, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat Home Assistant Model Context Protocol (MCP) an.
  3. Setzt eng Beschreiwung an e Symbol derbÀi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbÀi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zerĂ©ck op d'Plugin-LĂ«scht a kontrollĂ©iert, ob dĂ©i nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat Home Assistant Model Context Protocol (MCP) als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivĂ©iert d'Tools vu Home Assistant Model Context Protocol (MCP) Ă«nner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-AarbechtsberĂ€ich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. AktivĂ©iert d'Tools vu Home Assistant Model Context Protocol (MCP) Ă«nner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Home Assistant Model Context Protocol (MCP)?
Home Assistant Model Context Protocol (MCP)
Jo. Ech hunn et gelies.
Dat hunn ech mat Home Assistant Model Context Protocol (MCP) fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Home Assistant Model Context Protocol (MCP) benotzt?

Home Assistant Model Context Protocol (MCP) ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kĂ«nnt Dir dĂ«se MCP-Server eemol derbĂ€isetzen a seng Tools an Ärem KI-AarbechtsberĂ€ich zur VerfĂŒgung stellen.

Kann ech Home Assistant Model Context Protocol (MCP) MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum AarbechtsberÀich. Sou kënnt Dir Home Assistant Model Context Protocol (MCP) mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Home Assistant Model Context Protocol (MCP) MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte BenotzeruewerflĂ€che fir LLM-Chat, well et mĂ©i KI-Modeller, Prompts, Plugins, KI-Agenten, API-SchlĂ«sselen a MCP-Tools an engem AarbechtsberĂ€ich zesummebrĂ©ngt. Wann Home Assistant Model Context Protocol (MCP) verbonnen ass, kĂ«nnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a glĂ€ichzĂ€iteg Är Chataarbecht an TypingMind organisĂ©ieren.

Wéi verbannen ech Home Assistant Model Context Protocol (MCP) MCP mat TypingMind?

Dir kĂ«nnt Home Assistant Model Context Protocol (MCP) iwwer de lokale MCP-Connector oder iwwer d'URL vun engem Remote-MCP-Server mat TypingMind verbannen. Benotzt de lokale Connector, wann de Server ZougrĂ«ff op Fichieren, Apps oder privat Ressourcen op Ärem Apparat brauch, an eng Server-URL, wann de MCP-Server op Distanz gehost gĂ«tt.

WĂ©i eng Tools stellt Home Assistant Model Context Protocol (MCP) MCP an TypingMind zur VerfĂŒgung?

Home Assistant Model Context Protocol (MCP) stellt MCP-Funktiounen zur VerfĂŒgung, dĂ©i Dir op der Plugins-SĂ€it vun TypingMind aktivĂ©iere kĂ«nnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Home Assistant Model Context Protocol (MCP) MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a lĂ©isst Iech d'Kontroll iwwer Är Modellubidder, API-SchlĂ«sselen, Prompts a MCP-Konfiguratioun. Wann Home Assistant Model Context Protocol (MCP) eng AuthentifizĂ©ierung verlaangt, setzt dĂ©i nĂ©ideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbĂ€i, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

AbonnĂ©iert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukĂŒnfteg GewĂ«nnspiller informĂ©iert ze ginn 👇