1. Conduid
  2. Developer Tools
  3. Home Assistant
MCP server · Developer Tools

Home Assistant

HACS custom integration that mounts an MCP server inside Home Assistant with generic meta-tools covering the full admin surface.

39Low

Scored 6 days ago · breakdown

About Home Assistant

Home Assistant is an MCP server published by voska in the Developer Tools category: hACS custom integration that mounts an MCP server inside Home Assistant with generic meta-tools covering the full admin surface.

The repository has 2 stars and 0 forks, with the last commit 2 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/voska/hass-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (15)

call_service_toolCall any Home Assistant service

Parameters not published.

domain_summary_toolGet a summary of a domain's entities

Parameters not published.

entity_actionPerform actions on entities (turn on, off, toggle)

Parameters not published.

get_entities_by_areaList entities in a specific area / room

Parameters not published.

get_entityGet the state of a specific entity with optional field filtering

Parameters not published.

get_error_logGet the Home Assistant error log, with optional

Parameters not published.

get_historyGet the state history of an entity (last N hours)

Parameters not published.

get_history_rangeGet state-change history for an entity over an

Parameters not published.

get_statisticsGet long-term aggregated statistics (mean / min / max

Parameters not published.

get_statistics_rangeSame, but for an explicit date/time range —

Parameters not published.

Show all 15 tools
get_versionGet the Home Assistant version

Parameters not published.

list_automationsGet a list of all automations

Parameters not published.

list_entitiesGet a list of entities with optional domain filtering and search

Parameters not published.

restart_haRestart Home Assistant

Parameters not published.

search_entities_toolSearch for entities matching a query

Parameters not published.

Ask AI

✦

Ask AI about Home Assistant

Powered by Claude · Grounded in docs

I know everything about Home Assistant. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

3 checks have not been run yet.

Releases

v0.6.0v0.6.0 · 6 Aug 2026What's Changed Add MCP Toplist rank badge by @chrstphe in https://github.com/voska/hass-mcp/pull/68 feat: live Lovelace dashboard editing via the MCP by @cstosgale in https://github.com/voska/hass-mcp/pull/67 New Contributors @chrstphe…
v0.5.0v0.5.0 · 23 Jun 2026What's Changed feat(error-log): server-side filters (level, integration, search, lines) by @voska in https://github.com/voska/hass-mcp/pull/58 feat(history): long-term statistics + date-range history by @voska in…
v0.4.1v0.4.1 · 17 May 2026What's Changed feat(tls): support custom CA via OS trust store + SSL_CERT_FILE by @voska in https://github.com/voska/hass-mcp/pull/56 docs(changelog): 0.4.1 entry by @voska in https://github.com/voska/hass-mcp/pull/57 Full Changelog**:…
v0.4.0v0.4.0 · 17 May 2026What's Changed docs(changelog): 0.3.0 entry by @voska in https://github.com/voska/hass-mcp/pull/53 feat(areas): resolve entity areas via HA template API by @voska in https://github.com/voska/hass-mcp/pull/54 docs(changelog): 0.4.0 entry by…
v0.3.0v0.3.0 · 17 May 2026What's Changed chore(ci): bump all actions to Node 24 versions by @voska in https://github.com/voska/hass-mcp/pull/49 ci: sync README.md to Docker Hub repo overview by @voska in https://github.com/voska/hass-mcp/pull/50 chore(deps): bump…

README

Hass-MCP

A Model Context Protocol (MCP) server for Home Assistant integration with Claude and other LLMs.

Overview

Hass-MCP enables AI assistants like Claude to interact directly with your Home Assistant instance, allowing them to:

  • Query the state of devices and sensors
  • Control lights, switches, and other entities
  • Get summaries of your smart home
  • Troubleshoot automations and entities
  • Search for specific entities
  • Create guided conversations for common tasks

Screenshots

Features

  • Entity Management: Get states, control devices, and search for entities
  • Domain Summaries: Get high-level information about entity types
  • Automation Support: List and control automations
  • Guided Conversations: Use prompts for common tasks like creating automations
  • Smart Search: Find entities by name, type, or state
  • Token Efficiency: Lean JSON responses to minimize token usage

Installation

Prerequisites

  • Home Assistant instance with Long-Lived Access Token
  • One of the following:
    • Docker (recommended)
    • Python 3.13+ and uv

Setting Up With Claude Desktop

Docker Installation (Recommended)

  1. Pull the Docker image:

    docker pull voska/hass-mcp:latest
    
  2. Add the MCP server to Claude Desktop:

    a. Open Claude Desktop and go to Settings b. Navigate to Developer > Edit Config c. Add the following configuration to your claude_desktop_config.json file:

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

    d. Replace YOUR_LONG_LIVED_TOKEN with your actual Home Assistant long-lived access token e. Update the HA_URL:

    • If running Home Assistant on the same machine: use http://host.docker.internal:8123 (Docker Desktop on Mac/Windows)
    • If running Home Assistant on another machine: use the actual IP or hostname

    f. Save the file and restart Claude Desktop

  3. The "Hass-MCP" tool should now appear in your Claude Desktop tools menu

Note: If you're running Home Assistant in Docker on the same machine, you may need to add --network host to the Docker args for the container to access Home Assistant. Alternatively, use the IP address of your machine instead of host.docker.internal.

uv/uvx

  1. Install uv on your system.

  2. Add the MCP server to Claude Desktop:

    a. Open Claude Desktop and go to Settings b. Navigate to Developer > Edit Config c. Add the following configuration to your claude_desktop_config.json file:

    {
      "mcpServers": {
        "hass-mcp": {
          "command": "uvx",
          "args": ["hass-mcp"],
          "env": {
            "HA_URL": "http://homeassistant.local:8123",
            "HA_TOKEN": "YOUR_LONG_LIVED_TOKEN"
          }
        }
      }
    }
    

    d. Replace YOUR_LONG_LIVED_TOKEN with your actual Home Assistant long-lived access token e. Update the HA_URL:

    • If running Home Assistant on the same machine: use http://host.docker.internal:8123 (Docker Desktop on Mac/Windows)
    • If running Home Assistant on another machine: use the actual IP or hostname

    f. Save the file and restart Claude Desktop

  3. The "Hass-MCP" tool should now appear in your Claude Desktop tools menu

Other MCP Clients

Cursor

  1. Go to Cursor Settings > MCP > Add New MCP Server
  2. Fill in the form:
    • Name: Hass-MCP
    • Type: command
    • Command:
      docker run -i --rm -e HA_URL=http://homeassistant.local:8123 -e HA_TOKEN=YOUR_LONG_LIVED_TOKEN voska/hass-mcp
      
    • Replace YOUR_LONG_LIVED_TOKEN with your actual Home Assistant token
    • Update the HA_URL to match your Home Assistant instance address
  3. Click "Add" to save

Claude Code (CLI)

To use with Claude Code CLI, you can add the MCP server directly using the mcp add command:

Using Docker (recommended):

claude mcp add hass-mcp -e HA_URL=http://homeassistant.local:8123 -e HA_TOKEN=YOUR_LONG_LIVED_TOKEN -- docker run -i --rm -e HA_URL -e HA_TOKEN voska/hass-mcp

Replace YOUR_LONG_LIVED_TOKEN with your actual Home Assistant token and update the HA_URL to match your Home Assistant instance address.

Usage Examples

Here are some examples of prompts you can use with Claude once Hass-MCP is set up:

  • "What's the current state of my living room lights?"
  • "Turn off all the lights in the kitchen"
  • "List all my sensors that contain temperature data"
  • "Give me a summary of my climate entities"
  • "Create an automation that turns on the lights at sunset"
  • "Help me troubleshoot why my bedroom motion sensor automation isn't working"
  • "Search for entities related to my living room"

Available Tools

Hass-MCP provides several tools for interacting with Home Assistant:

  • get_version: Get the Home Assistant version
  • get_entity: Get the state of a specific entity with optional field filtering
  • entity_action: Perform actions on entities (turn on, off, toggle)
  • list_entities: Get a list of entities with optional domain filtering and search
  • search_entities_tool: Search for entities matching a query
  • domain_summary_tool: Get a summary of a domain's entities
  • list_automations: Get a list of all automations
  • call_service_tool: Call any Home Assistant service
  • restart_ha: Restart Home Assistant
  • get_history: Get the state history of an entity
  • get_error_log: Get the Home Assistant error log

Prompts for Guided Conversations

Hass-MCP includes several prompts for guided conversations:

  • create_automation: Guide for creating Home Assistant automations based on trigger type
  • debug_automation: Troubleshooting help for automations that aren't working
  • troubleshoot_entity: Diagnose issues with entities
  • routine_optimizer: Analyze usage patterns and suggest optimized routines based on actual behavior
  • automation_health_check: Review all automations, find conflicts, redundancies, or improvement opportunities
  • entity_naming_consistency: Audit entity names and suggest standardization improvements
  • dashboard_layout_generator: Create optimized dashboards based on user preferences and usage patterns

Available Resources

Hass-MCP provides the following resource endpoints:

  • hass://entities/{entity_id}: Get the state of a specific entity
  • hass://entities/{entity_id}/detailed: Get detailed information about an entity with all attributes
  • hass://entities: List all Home Assistant entities grouped by domain
  • hass://entities/domain/{domain}: Get a list of entities for a specific domain
  • hass://search/{query}/{limit}: Search for entities matching a query with custom result limit

Development

Running Tests

uv run pytest tests/

License

MIT License

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Home Assistant

How do I install Home Assistant?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Home Assistant safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 2 of the 3 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Home Assistant still maintained?

Yes — the latest release is v0.6.0 (6 Aug 2026), and the last commit was 2 months ago. The repository has 2 stars.