HomeAssistant MCP
Provides a flexible interface for Home Assistant device management and automation through a REST API and WebSocket/SSE connections, enabling basic device control, state updates, and automation rule management.
Enables GPU-accelerated speech processing capabilities when using NVIDIA GPUs with CUDA support, improving performance for wake word detection and speech-to-text features.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
๐ 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 claudeRelated MCP server: smartthings-mcp
๐ฆ All Install Options
Method | Command |
Smithery (easiest) |
|
bunx (no install) |
|
npx |
|
Docker |
|
From source |
|
npm global |
|
Available Docker tags:
latest- Latest stable release1.7.3,1.7,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
๐๏ธ 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 -dSee 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 tokenOptional:
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 checkingBuilt 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. ๐
This server cannot be deployed
Maintenance
Related MCP Connectors
Control a Loxone Miniserver smart home: lights, blinds, climate, scenes and energy.
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each deviceโs supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Smart home product intelligence: 1,080+ products with expert consensus scores and compatibility.
Home energy for AI assistants: live Power flow, Energy history, solar forecast, and device control.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAccess Home Assistant data and control devices (lights, switches, thermostats, etc).6 npm576Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA lightweight server for Samsung SmartThings, offering tools to manage devices and rooms. Features include room mapping, device listing, status checks, and command execution. #IoT, #Python, #HomeAutomation #Smartthings5MIT
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive control and monitoring of Home Assistant smart home devices, automations, scenes, and system management through AI assistants. Supports lights, climate, media players, notifications, history tracking, and advanced automation workflows.3 npm2MIT
- FlicenseNot gradedqualityDmaintenanceEnables controlling smart home devices like lights, fans, air conditioners, and Android TVs through natural language commands, with persistent state and TV content search/playback via ADB.2-