Skip to content
MCP server

Advanced Homeassistant MCP Server

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

Advanced Homeassistant Mcp scores 36 (Limited), licensed Apache-2.0 and written in JavaScript. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 58 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by jango-blockchainedApache-2.0JavaScript58 stars
Trust score
36Limited
Trust score 36 of 100, Limited

Limited trust

36 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 36 comes from

0 + 6 + 6 + 10 + 7 + 7 = 36. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity6 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 6 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security7 / 10

Not archived, a secure install path, a pinned version.

Security: 7 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "jango-blockchained-advanced-homeassistant-mcp": {      "command": "npx",      "args": [        "-y",        "@jango-blockchained/homeassistant-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

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

# โšก 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:

{
  "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

{
  "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:

{
  "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:

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.8.0, 1.8, 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

Code Mode (optional)

Instead of sending 50+ tool schemas on every turn, set CODE_MODE=only to expose just two tools:

  • search โ€” write JavaScript against the server's tool catalog (spec) and return only the matches you need.
  • execute โ€” write JavaScript against a sandboxed Home Assistant SDK (hass.getStates(), hass.callService(), hass.request(), tools.call(), โ€ฆ).

Generated code is model-written JavaScript run in a QuickJS WebAssembly sandbox: no filesystem, no environment variables, no require/import, and no network of its own โ€” the only host capability is a JSON-in/JSON-out bridge, and hass.request is pinned to the configured HASS_HOST. Each execution gets a per-execution host-call budget (default 100 bridge calls) and the server caps concurrent sandboxes (default 4). CODE_MODE=both adds the two tools alongside the classic list while you migrate. Code Mode is off by default.

CODE_MODE=only bun run start:stdio

Tuning knobs (all optional; defaults shown):

CODE_MODE=off                     # off (default) | only | both
CODE_MODE_TIMEOUT_MS=30000        # wall-clock budget per call
CODE_MODE_MAX_OUTPUT_BYTES=262144 # larger results are rejected, not truncated
CODE_MODE_MEMORY_LIMIT_BYTES=67108864
CODE_MODE_MAX_STACK_BYTES=1048576
CODE_MODE_MAX_HOST_CALLS=100      # host bridge calls per execution
CODE_MODE_MAX_CONCURRENT=4        # sandboxes running at once
CODE_MODE_ALLOW_TOOL_CALLS=true   # allow tools.call from sandboxed code
CODE_MODE_ALLOW_RAW_HTTP=true     # allow hass.request from sandboxed code

See Guides > Code Mode for the SDK and security model.


๐ŸŽ™๏ธ 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:

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:

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

Optional:

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

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 Server?

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

How do I install Advanced Homeassistant MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Advanced Homeassistant MCP Server runs locally from the npm package @jango-blockchained/homeassistant-mcp with the command npx -y @jango-blockchained/homeassistant-mcp.

Is Advanced Homeassistant MCP Server free and open source?

Yes. Advanced Homeassistant MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Advanced Homeassistant MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Advanced Homeassistant MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Advanced Homeassistant MCP Server's trust score calculated?

Advanced Homeassistant MCP Server scores 36 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server