返回市场
高可用mcp小智服务器

高可用mcp小智服务器

作者:c1pher-cn166 星标更新:2025-10-10

项目介绍

ha-mcp-for-xiaozhi

GitHub Repo stars GitHub forks GitHub release (latest by date) GitHub release (latest by date) GitHub release (latest by date)

<p align="center"> <img src="https://gips2.baidu.com/it/u=426287921,1262194427&fm=3081&app=3081&f=PNG?w=256&h=256" alt="Alt Text" align="center"> </p> <p align="center"> 面向Homeassistant的小智AI MCP服务器,直接连接到小智AI官方服务器。 </p>

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

插件功能简介

1. HomeAssistant自身作为MCP服务器,通过WebSocket协议直接连接到小智服务器,无需中间环节

2. 在一个实体中选择多个API组(HomeAssistant内置控制API,用户配置的MCPServer),并将其代理到小智

3. 支持同时配置多个实体


功能演示(爱不易谋生,如果有硬币,请捐赠;如果没有,点赞或留言也行)

<a href="https://www.bilibili.com/video/BV1XdjJzeEwe" > 访问演示视频 </a>

<a href="https://www.bilibili.com/video/BV18DM8zuEYV" > 电视控制演示(通过自定义脚本实现)</a>

<a href="https://www.bilibili.com/video/BV1SruXzqEW5" > HomeAssistant、LLM、MCP和小智的高级教程 </a>


安装方法:

确保Home Assistant中已安装HACS

1. 打开HACS,搜索xiaozhi或ha-mcp-for-xiaozhi

<img width="2316" height="238" alt="image" src="https://gips2.baidu.com/it/u=2598256536,895255889&fm=3081&app=3081&f=PNG?w=2316&h=238" />

2. 下载插件

<img width="748" height="580" alt="image" src="https://gips3.baidu.com/it/u=739565494,287843862&fm=3081&app=3081&f=PNG?w=748&h=580" />

3. 重启Home Assistant

配置方法:

[设置 > 设备与服务 > 添加集成] > 搜索"Mcp" > 查找小智MCP服务器

<img width="888" height="478" alt="image" src="https://gips0.baidu.com/it/u=33759025,3161346973&fm=3081&app=3081&f=PNG?w=888&h=478" />

下一步 > 请输入小智MCP接入点地址,选择所需的MCP > 提交。

注意,llm_hass_api中的“辅助”复选框指的是HomeAssistant的内置功能,而其他选项是您连接到HomeAssistant的额外MCP服务器(可以直接在这里代理到小智)

<img width="774" height="632" alt="image" src="https://gips1.baidu.com/it/u=1805222478,2907887255&fm=3081&app=3081&f=PNG?w=774&h=632" />

配置完成!!!等待一分钟,然后前往小智的接入点页面点击刷新查看状态。

bd06b555b9e5c24fbf819c43397c97ee


调试指南

暴露的工具取决于您向Homeassistant语音助手公开的实体类型

设置 -> 语音助手 -> 公开

2. 尽量使用最新版本的Home Assistant,因为5月版和3月版提供的工具差异明显

3. 在调试过程中,如果未能达到预期结果,首先检查小智的聊天记录,看看小智如何处理此命令以及是否调用了HomeAssistant工具。目前主要已知的问题是灯光控制和音乐控制与内置屏幕控制和音乐控制逻辑之间的冲突。这些问题将在下个月的小智服务器支持内置工具选择后得到解决。

4. 如果过程正确调用了内置的ha函数,您可以启用此插件的调试日志以观察实际执行情况。


<a href="https://buymeacoffee.com/c1pher_cn" target="_blank" rel="noreferrer noopener"> <img src="https://gips0.baidu.com/it/u=2811292181,1350118012&fm=3081&app=3081&f=PNG?w=545&h=153" alt="Buy Me A Coffee"> </a>

<a href="https://star-history.com/#c1pher-cn/ha-mcp-for-xiaozhi&Date"></a>

<picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=c1pher-cn/ha-mcp-for-xiaozhi&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=c1pher-cn/ha-mcp-for-xiaozhi&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=c1pher-cn/ha-mcp-for-xiaozhi&type=Date" /> </picture> </a>