Home Assistant Model Context Protocol (MCP) logo

Home Assistant Model Context Protocol (MCP)

Community
jango-blockchained

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

Publisherjango-blockchained
Repositoryadvanced-homeassistant-mcp
LanguageJavaScript
Forks
22
Stars
56
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Home Assistant Model Context Protocol (MCP) exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    56 stars and 22 forks from the linked 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. 🔋

Installation

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

Use Home Assistant Model Context Protocol (MCP) MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Home Assistant Model Context Protocol (MCP) is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Home Assistant Model Context Protocol (MCP) as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Home Assistant Model Context Protocol (MCP) MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "advanced-homeassistant-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jango-blockchained/homeassistant-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Home Assistant Model Context Protocol (MCP) MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Home Assistant Model Context Protocol (MCP) MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Home Assistant Model Context Protocol (MCP) to help me with this task?
Home Assistant Model Context Protocol (MCP)
Sure. I read it.
Here is what I found using Home Assistant Model Context Protocol (MCP).

Option 2: Add an MCP server URL

Use this when Home Assistant Model Context Protocol (MCP) is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for Home Assistant Model Context Protocol (MCP).
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Home Assistant Model Context Protocol (MCP) connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Home Assistant Model Context Protocol (MCP) tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Home Assistant Model Context Protocol (MCP) tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Home Assistant Model Context Protocol (MCP) to help me with this task?
Home Assistant Model Context Protocol (MCP)
Sure. I read it.
Here is what I found using Home Assistant Model Context Protocol (MCP).

Frequently asked questions

What is the Home Assistant Model Context Protocol (MCP) MCP server used for?

Home Assistant Model Context Protocol (MCP) is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Home Assistant Model Context Protocol (MCP) MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Home Assistant Model Context Protocol (MCP) with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Home Assistant Model Context Protocol (MCP) MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Home Assistant Model Context Protocol (MCP) connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Home Assistant Model Context Protocol (MCP) MCP to TypingMind?

Home Assistant Model Context Protocol (MCP) can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does Home Assistant Model Context Protocol (MCP) MCP provide in TypingMind?

Home Assistant Model Context Protocol (MCP) exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Home Assistant Model Context Protocol (MCP) MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Home Assistant Model Context Protocol (MCP) requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇