What prerequisites are needed to run Hass-MCP?
A Home Assistant instance with a long-lived access token. You also need Docker or Python 3.13+ with uv installed.
@voska
基本信息
Control and query Home Assistant from Claude and other LLMs — a Model Context Protocol (MCP) server.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"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"
}
}
}
}Get the Home Assistant version
Get the state of a specific entity with optional field filtering
Perform actions on entities (turn on, off, toggle)
Get a list of entities with optional domain filtering and search
Search for entities matching a query
Get a summary of a domain's entities
Get a list of all automations
Call any Home Assistant service
Restart Home Assistant
Get the state history of an entity (last N hours)
Get state-change history for an entity over an
Get long-term aggregated statistics (mean / min / max
Same, but for an explicit date/time range —
Get the Home Assistant error log, with optional
List entities in a specific area / room
Hass-MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude to interact directly with a Home Assistant instance. It enables querying device states, controlling entities, troubleshooting automations, and more.
Install via Docker (recommended) or Python 3.13+ with uv. Configure the HA_URL and HA_TOKEN environment variables with your Home Assistant URL and a long-lived access token. Add the server to your MCP client (e.g., Claude Desktop, Cursor, Claude Code CLI) using the provided configurations.
A Home Assistant instance with a long-lived access token. You also need Docker or Python 3.13+ with uv installed.
Yes. The README includes setup instructions for Cursor, Claude Code CLI, and any MCP client that supports the streamable HTTP transport.
Yes, it supports MCP streamable HTTP transport. However, HTTP mode exposes full Home Assistant control over the network without built‑in authentication, so you must put it behind a reverse proxy, VPN, or bind to localhost only.
All data is queried directly from the user's Home Assistant instance. The server does not store or log data externally.
The README does not mention explicit limits. It notes token‑efficient JSON responses but does not detail maximum entity count or rate limits.

Operate a real LinkedIn account from your AI agent. 52 tools for the inbox, invitations, network, profiles, Sales Navigator search in plain language, posts and engagement; six playbooks served as MCP prompts that preview

Quantum-inspired keyring for AI coding agents. Secure secrets with superposition, entanglement, tunneling, and teleportation — CLI + 44 MCP tools.

Extract, search and tag any document — invoices, receipts, contracts, forms, or your own templates. 13 tools, one sign-in (OAuth 2.1) or API key, free FileTag tier, data residency in the EU, US, Israel or Asia.
Open-source Node.js FHIR MCP server with SMART Backend Services, metadata-aware search/CRUD tools, compact responses, FHIRPath filtering, safe pagination, audit events, and terminology lookup.
NetFoundry LLM Gateway is an OpenAI-compatible API proxy that routes requests across multiple LLM providers using zero-trust networking. Zero trust LLM gateway. OpenAI-compatible proxy with semantic routing and load bala
评论