光轨资源网 / 开源项目
homeassistant-ai/ha-mcp
使用Claude、ChatGPT和其他AI助手配置和自动化Home Assistant。
可以做什么
运行ha-mcp的推荐方法是HA-MCP集成。它通过HACS ( Home Assistant 2026.11+上的内置Marketplace )安装到Home Assistant中,运行整个进程中的服务器,并在每种Home Assistant安装类型( Home Assistant OS、监督、容器和Core )上运行,并具有完整的功能。在任何情况下,这是最简单的设置:设置要求管理员访问令牌以及客户端如何连接。
怎么部署
Other install methods
These run the server outside Home Assistant — useful for Container / Core installs (which can't run apps) or a separate host. The Setup Wizard generates the exact client-specific config for each.
- Docker (HTTP server): run
ghcr.io/homeassistant-ai/ha-mcpin HTTP mode, pointed at your Home Assistant URL and a long-lived token (an administrator's is recommended; non-admin tokens work with limitations), and connect your client to its secret URL. See the Setup Wizard for the full command and per-client config. - PyPI / uvx (HTTP server): run the published
ha-mcppackage withuvx ha-mcp@latest(or pip) as a streamable-HTTP server the same way. Details in the Setup Wizard. - Local stdio (not recommended): runs ha-mcp on your own machine over stdio. The one-command installers in the Demo server section below use this path; the Setup Wizard covers connecting it to your own Home Assistant.
- OIDC authentication: gate remote access behind an external identity provider (Authentik, Keycloak, Auth0, etc.) instead of a secret URL — all authenticated users share the server's Home Assistant credentials. See [OIDC Mode](docs/oidc.md).
> ⚠️ stdio has known transport issues. The stdio transport has connection problems that streamable HTTP does not (#1713). It is recommend
项目信息
项目地址:https://github.com/homeassistant-ai/ha-mcp
语言:Python
Star 数:5526(2026-11-09 采集)
原文简介(English)
Configure and automate Home Assistant with Claude, ChatGPT, and other AI assistants.
本站资源用于学习与开发参考,请遵守对应授权协议。