trackmcp
Back to directory
jango-blockchained

advanced-homeassistant-mcp

View on GitHub

An advanced MCP server for Home Assistant. ๐Ÿ”‹ Batteries included.

34 stars TypeScriptAI & Machine Learning Updated Oct 16, 2025
home-assistantllmmcp-serverspeech-recognitionspeech-to-text

Documentation

๐Ÿ  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

Cursor โ€” add to .cursor/mcp.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"
      }
    }
  }
}

VS Code + MCP Extension

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`
npx`npx @jango-blockchained/homeassistant-mcp@latest`
Docker`docker run -d -p 7123:7123 --env-file .env ghcr.io/jango-blockchained/advanced-homeassistant-mcp:1.7.0`
From source`git clone ... && bun install && bun run build:all && bun run start:stdio`
npm global`npm 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:

code
"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.

Full tool reference (all 50+ tools)

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

code
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  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. ๐Ÿ”‹

Frequently asked questions

What is advanced-homeassistant-mcp?

advanced-homeassistant-mcp is An advanced MCP server for Home Assistant. ๐Ÿ”‹ Batteries included.

How do I install advanced-homeassistant-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is advanced-homeassistant-mcp open source?

Yes โ€” it is hosted on GitHub at https://github.com/jango-blockchained/advanced-homeassistant-mcp and has 34 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP