hass-mcp
by voska·★ 296·Score 48
Hass-MCP enables AI assistants to interact with Home Assistant through device control, entity queries, and automation management.
Overview
Hass-MCP is a comprehensive MCP server that bridges AI assistants with Home Assistant smart home systems. It provides tools for querying device states, controlling lights and switches, managing automations, and troubleshooting issues. The server implements multiple MCP endpoints including tools for entity actions, domain summaries, and automation support, along with resources for accessing detailed entity information. With optimized JSON responses for token efficiency, it's designed for seamless integration with Claude Desktop and other MCP-compatible clients.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose Hass-MCP if you want AI-powered control of your Home Assistant smart home devices through natural language interactions.
When NOT to choose this
Don't choose Hass-MCP if you use a smart home platform other than Home Assistant or need advanced automation not supported by the available tools.
Tools this server exposes
12 tools extracted from the READMEget_versionGet the Home Assistant version
get_entityGet the state of a specific entity with optional field filtering
entity_actionPerform actions on entities (turn on, off, toggle)
list_entitiesGet a list of entities with optional domain filtering and search
search_entities_toolSearch for entities matching a query
domain_summary_toolGet a summary of a domain's entities
list_automationsGet a list of all automations
call_service_toolCall any Home Assistant service
restart_haRestart Home Assistant
get_historyGet the state history of an entity
get_error_logGet the Home Assistant error log
create_automationGuide for creating Home Assistant automations based on trigger type
Comparable tools
Installation
Docker Installation (Recommended)
- Pull the Docker image:
docker pull voska/hass-mcp:latest- Add to Claude Desktop config:
{
"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"
}
}
}
}- Replace token and URL, then restart Claude Desktop.
FAQ
- What permissions does Hass-MCP require?
- Hass-MCP needs a Home Assistant long-lived access token with sufficient permissions to control devices and access entity data.
- Can I use Hass-MCP with other AI assistants besides Claude?
- Yes, Hass-MCP is compatible with any MCP client that implements the Model Context Protocol, including Cursor and Claude Code CLI.
On Hacker News
Recent discussion from the developer community.
- Story by voska · 2025-03-17
- Story by voska · 2025-08-21
Compare hass-mcp with
Last updated · Auto-generated from public README + GitHub signals.