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.
Limited trust
36 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, no docs link.
How quality is graded
Where the 36 comes from
0 + 6 + 6 + 10 + 7 + 7 = 36. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 6 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 7 of 10 points.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.
{ "mcpServers": { "jango-blockchained-advanced-homeassistant-mcp": { "command": "npx", "args": [ "-y", "@jango-blockchained/homeassistant-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools 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
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
bunxcommand.
# โก 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
| Method | Command |
|---|---|
| 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 release1.8.0,1.8,1- Tagged versionsdev- 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.
| Category | Tools |
|---|---|
| Lights | list, get, turn on/off, brightness, color temp, RGB, effects |
| Climate | list, get, HVAC modes, target temp, fan mode, humidify |
| Media | list, get, play/pause, volume, source, sound mode, shuffle |
| Covers | list, get, open/close, position, tilt, garage door |
| Locks | list, get, lock/unlock with code support |
| Fans | list, get, speed, oscillation, direction, preset |
| Vacuums | list, get, start/stop/dock, spot clean, fan speed |
| Alarm | list, get, arm home/away/night, disarm |
| Switches | list, get, turn on/off/toggle |
| Scenes | list, activate named scene |
| Automations | list, toggle, trigger, create/edit/delete |
| Notifications | push alerts via HA channels |
| History | query historical states |
| Add-ons | install, configure, control |
| Packages | HACS integrations and custom components |
| Maintenance | orphaned devices, battery warnings, energy analysis |
| Smart Scenarios | nobody-home mode, window/heat conflicts, energy waste |
| Lighting | animations, scenarios, showcase, BPM/beat detection |
| Voice | wake word detection, speech-to-text, voice commands |
| Dashboard | query and manage Lovelace dashboards |
| Templates | render Jinja2 templates via HA |
| To-Do Lists | add, update, remove items |
| Traces | automation/script execution traces |
| Search | full-text entity search with filters |
| Entity State | get current state of any entity |
| Error Log | query 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 serverdist/stdio-server.mjsโ STDIO via fastmcp v3dist/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.
- Fork it
- Branch it
- Code it
- Test it
- 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.







