drio
Open app

Hass-MCP

Source

Home Assistant MCP Server

Catalog onlyCatalog onlyDocker

Overview

Hass-MCP is a Model Context Protocol (MCP) server designed for integrating AI assistants like Claude with Home Assistant, enabling seamless interaction with smart home devices.

To use Hass-MCP, set up a Home Assistant instance with a Long-Lived Access Token, install the server via Docker or Python, and configure it within your AI assistant's settings.

  • Entity Management: Control devices and query states. - Domain Summaries: Get high-level information about entity types. - Automation Support: Manage and control automations. - Guided Conversations: Use prompts for common tasks. - Smart Search: Efficiently find entities by various criteria. - Token Efficiency: Minimized JSON responses to save on token usage.
  1. Querying the state of smart home devices.
  2. Automating tasks like turning on lights at specific times.
  3. Troubleshooting issues with automations and entities.
  4. Creating guided conversations for user-friendly interactions with smart home systems.

Add to your AI client

Use these steps to connect Hass-MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "hass-mcp-voska": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "voska/hass-mcp"
      ],
      "env": {
        "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN",
        "HA_URL": "http://homeassistant.local:8123"
      }
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "hass-mcp-voska": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "voska/hass-mcp"
      ],
      "env": {
        "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN",
        "HA_URL": "http://homeassistant.local:8123"
      }
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "hass-mcp-voska": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "voska/hass-mcp"
      ],
      "env": {
        "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN",
        "HA_URL": "http://homeassistant.local:8123"
      }
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "hass-mcp-voska": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "voska/hass-mcp"
      ],
      "env": {
        "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN",
        "HA_URL": "http://homeassistant.local:8123"
      }
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "hass-mcp-voska": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "voska/hass-mcp"
      ],
      "env": {
        "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN",
        "HA_URL": "http://homeassistant.local:8123"
      }
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "hass-mcp-voska": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "voska/hass-mcp"
      ],
      "env": {
        "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN",
        "HA_URL": "http://homeassistant.local:8123"
      }
    }
  }
}

FAQ

Can Hass-MCP work with any AI assistant?

Yes! It is designed to integrate with various AI assistants that support MCP.

Is Hass-MCP free to use?

Yes! Hass-MCP is open-source and free to use.

What are the prerequisites for using Hass-MCP?

You need a Home Assistant instance and either Docker or Python 3.13+.