mcpField
H
Ha Mcp For Xiaozhi

Ha Mcp For Xiaozhi

Local
bilibili.comOther279Updated 2w ago

About Ha Mcp For Xiaozhi

ha-mcp-for-xiaozhi is a Home Assistant integration that lets Home Assistant act as an MCP server connected over WebSocket directly to the Xiaozhi AI server. It targets Home Assistant users who want to control their smart home through Xiaozhi voice interaction.

Key features

  1. 01Home Assistant connects directly as an MCP server
  2. 02Multiple API groups proxied to Xiaozhi together
  3. 03Support for configuring multiple entities
  4. 04Installation through HACS and UI-based setup

Use cases

  1. 01Controlling Home Assistant devices by voice through Xiaozhi AI
  2. 02Proxying other MCP servers connected in Home Assistant to Xiaozhi
  3. 03Reviewing how Xiaozhi handles smart home commands during debugging

MCP support

Home Assistant itself acts as an MCP server over WebSocket to the Xiaozhi AI endpoint, and can also proxy other configured MCP servers.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

ha-mcp-for-xiaozhi

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

Alt Text

Homeassistant MCP server for 小智AI,直连小智AI官方服务器。

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

插件能力介绍
1.HomeAssistant自身作为mcp server 以websocket协议直接对接虾哥服务器,无需中转
2.在一个实体里同时选择多个API组(HomeAssistant自带控制API、用户自己配置的MCPServer)并将它们一起代理给小智
3.支持同时配置多个实体

功能演示(为爱发电不易,有币投投币、没币点点赞、刷几个弹幕也行)

接入演示视频

控制电视演示(通过自定义script实现)

HomeAssistant、LLM、MCP、小智的进阶教程


安装方法:

确保Home Assistant中已安装HACS

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

image

2.下载插件

image

3.重启Home Assistant.

配置方法:

[设置 > 设备与服务 > 添加集成] > 搜索“Mcp” >找到MCP Server for Xiaozhi

image

下一步 > 请填写小智MCP接入点地址、选择需要的MCP > 提交。

注意llm_hass_api 复选框里 Assist 就是ha自带的function,其他选项是你在HomeAssistant里接入的其他mcp server(可以在这里直接代理给小智)

image

配置完成!!!稍等一分钟后到小智的接入点页面点击刷新,检查状态。

bd06b555b9e5c24fbf819c43397c97ee


调试说明

1.暴露的工具取决于你公开给Homeassistant语音助手的实体的种类

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

2.尽量使用最新版本的homeassistant,单单看5月版本跟3月版本提供的工具就有明显差异

3.调试时未达到预期,优先看小智的聊天记录,看看小智对这句指令如何处理的,是否有调用homeassistant的工具。目前已知比较大的问题是灯光控制和音乐控制会和内置的屏幕控制、音乐控制逻辑冲突,需要等下个月虾哥服务器支持内置工具选择后可解。

4.如果流程正确的调用了ha内置的function,可以打开本插件的调试日志再去观测实际的执行情况。


Buy Me A Coffee

Star History Chart

Comments

Markdown supported

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.