About mcp_ha_xiaozhi
mcp_ha_xiaozhi connects the official Xiaozhi server with Home Assistant’s MCP server using mcp_proxy. It is for users running both services, and is configured with their endpoints and a Home Assistant long-lived access token; it can run in Docker.
Key features
- 01Bridge Xiaozhi and Home Assistant MCP
- 02Configure both MCP endpoints
- 03Authorize with a long-lived token
- 04Run with Docker
Use cases
- 01Connect the official Xiaozhi server to Home Assistant
- 02Set access authorization for Home Assistant MCP
MCP support
It links the official Xiaozhi server and the Home Assistant MCP server, bridging their MCP capabilities.
Details
From the project READMEmcp_ha_xiaozhi
小智官方服务器(虾哥)对接home assistant的mcp server
原理
使用小智官方给的示例代码,结合mcp_proxy,实现小智官方服务器和home assistant的mcp server打通
参数
XIAOZHI_MCP_ENDPOINT:你的小智 MCP 接入点 HA_MCP_ENDPOINT:你的 HA MCP SERVER 地址 API_ACCESS_TOKEN:你的长效 API 令牌
- 小智 MCP 接入点: 登录小智官方服务器即可获取。
- HA MCP SERVER 地址: 通过 HA 官方的
mcp_server集成获取。- 点击此链接:Home Assistant MCP Server 集成直达安装
- 或 在 Home Assistant 中,前往 设置 > 设备和服务 > 添加集成。
- 从列表中选择“模型上下文协议服务器”,并按照屏幕上的说明完成设置。
- 长效 API 令牌: 用于授权访问你的 Home Assistant 实例。
- 访问你的 Home Assistant 账户配置文件设置,进入“安全”选项卡。
- 创建长期访问令牌。
docker运行
docker run -d --name mcp_ha_xiaozhi \
-e XIAOZHI_MCP_ENDPOINT="你的小智MCP接入点" \
-e HA_MCP_ENDPOINT="你的HA MCP SERVER地址" \
-e API_ACCESS_TOKEN="你的长时效API令牌" \
shawn68/mcp_ha_xiaozhi
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.