Ha MCP For Xiaozhi logo

Ha MCP For Xiaozhi

Community
c1pher-cn

Homeassistant MCP server for 小智AI

Publisherc1pher-cn
Repositoryha-mcp-for-xiaozhi
LanguagePython
Forks
54
Stars
269
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Ha MCP For Xiaozhi exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    269 stars and 54 forks from the linked repository.

ha-mcp-for-xiaozhi

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

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

2.下载插件

3.重启Home Assistant.

配置方法:

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

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

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

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

bd06b555b9e5c24fbf819c43397c97ee


调试说明

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

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

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

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

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


Use Ha MCP For Xiaozhi MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Ha MCP For Xiaozhi is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Ha MCP For Xiaozhi as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Ha MCP For Xiaozhi MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ha-mcp-for-xiaozhi": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Ha MCP For Xiaozhi MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Ha MCP For Xiaozhi MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Ha MCP For Xiaozhi to help me with this task?
Ha MCP For Xiaozhi
Sure. I read it.
Here is what I found using Ha MCP For Xiaozhi.

Frequently asked questions

What is the Ha MCP For Xiaozhi MCP server used for?

Ha MCP For Xiaozhi is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Ha MCP For Xiaozhi MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Ha MCP For Xiaozhi with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Ha MCP For Xiaozhi MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Ha MCP For Xiaozhi connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Ha MCP For Xiaozhi MCP to TypingMind?

Ha MCP For Xiaozhi runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Ha MCP For Xiaozhi MCP provide in TypingMind?

Ha MCP For Xiaozhi exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Ha MCP For Xiaozhi MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Ha MCP For Xiaozhi requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇