Hass-MCP
@voska
关于 Hass-MCP
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"
}
}
}
}工具
15Get 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
概览
What is Hass-MCP?
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.
How to use Hass-MCP?
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.
Key features of Hass-MCP
- Entity management: get states, control devices, search entities
- Domain summaries for high-level entity type info
- Automation support: list and control automations
- Guided conversations for common tasks via prompts
- Smart search for entities by name, type, or state
- Token‑efficient JSON responses to minimize usage
Use cases of Hass-MCP
- Ask your AI for the current state of any device or sensor
- Control lights, switches, and other entities by voice or text
- Troubleshoot failing automations and misbehaving entities
- Generate optimized smart home routines based on usage patterns
- Audit entity naming consistency and dashboard layouts
FAQ from Hass-MCP
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.
Can I use Hass-MCP with clients other than Claude?
Yes. The README includes setup instructions for Cursor, Claude Code CLI, and any MCP client that supports the streamable HTTP transport.
Does Hass-MCP support HTTP transport, and is it secure?
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.
Where does user data live when using Hass-MCP?
All data is queried directly from the user's Home Assistant instance. The server does not store or log data externally.
Are there any known limitations of Hass-MCP?
The README does not mention explicit limits. It notes token‑efficient JSON responses but does not detail maximum entity count or rate limits.
AI 与智能体 分类下的更多 MCP 服务器
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
mcp-hfspace MCP Server 🤗
evalstateMCP Server to Use HuggingFace spaces, easy configuration and Claude Desktop mode.
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
MCP Manager for Claude Desktop
zueaisimple web ui to manage mcp (model context protocol) servers in the claude app
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
评论