Moss Xiaozhi MCP logo

Moss Xiaozhi MCP

Community
yokochen222

小智AI MCP功能扩充,包含Onvif摄像头画面截取识别,PC软件控制等

Publisheryokochen222
Repositorymoss-xiaozhi-mcp
LanguagePython
Forks
35
Stars
154
Available tools
0
Transport typestdio
Links
  • Connect tools to AI workflows

    Moss Xiaozhi MCP 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

    154 stars and 35 forks from the linked repository.

可以安装第三方MCP版本

基于nodejs 仓库地址:https://github.com/yokochen222/moss-xiaozhi-node-mcp

本工程基于虾哥 MCP实现

原项目地址:https://github.com/78/mcp-calculator

视频展示

https://www.bilibili.com/video/BV1TpTNzbE3u/?vd_source=3cdb33659e80ec67cacea8b3ce284283

环境要求

  • Python 3.7+
  • websockets>=11.0.3
  • python-dotenv>=1.0.0
  • mcp>=1.8.1
  • pydantic>=2.11.4

环境设置

方式一:venv 环境(推荐)

macOS/Linux 用户

bash
# 自动设置环境
./setup_venv.sh

# 激活环境
./activate_venv.sh
# 或者手动激活: source venv/bin/activate

# 运行项目
python mcp_pipe.py yo_mcp.py

Windows 用户

cmd
# 自动设置环境
setup_venv.bat

# 激活环境
activate_venv.bat
# 或者手动激活: venv\Scripts\activate.bat

# 运行项目
python mcp_pipe.py yo_mcp.py

方式二:conda 环境(传统方式)

bash
# 创建conda环境
conda create -n xiaozhi-mcp python=3.10

# 激活环境
conda activate xiaozhi-mcp

# 安装依赖
pip install -r requirements.txt

💡 推荐使用 venv 环境:更轻量、更标准、启动更快。

配置

依赖安装完毕后别忘了 创建.env文件 内容如下:

bash
# 小智 MCP MCP接入点地址
MCP_ENDPOINT = wss://api.xiaozhi.me/mcp/?token=xxx


# 视觉识别相关配置
# 是否启用网络摄像头MCP 如果没有摄像头此配置 值为 false 反之为 true
ENABLED_IP_CAMERA = false
# ONVIF 摄像头IP地址
ONVIF_CAMERA_IP = 192.168.10.143
# ONVIF 摄像头端口,天地伟业摄像头端口为80,根据自己的摄像头端口修改
ONVIF_CAMERA_PORT = 80
# ONVIF 摄像头账号
ONVIF_CAMERA_USERNAME = admin
# ONVIF 摄像头密码
ONVIF_CAMERA_PASSWORD = 123456
# 是否启用ONVIF云台控制(带云台的摄像头可以开启,不开启将不会开启控制注册)
ONVIF_CAMERA_PTZ_ENABLED = false
# 是否启用ONVIF摄像头识别并保存日志
ONVIF_CAMERA_LOG = false
# 是否启用ONVIF截图保存到本地
ONVIF_CAMERA_CAPTURE = false


# Homeasstant 相关配置
# Homeasstant 服务地址
HA_ADDRESS = http://192.168.1.197:8123
# Homeasstant 访问密钥
HA_AUTH_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxxxxx

启动

bash
python mcp_pipe.py yo_mcp.py

觉得有用的兄弟们 别忘了点个 star 支持下

注意!!!!由于控制PC设备等功能是基于MacOS实现 win的小伙伴需要自行修改

Use Moss Xiaozhi MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Moss Xiaozhi MCP 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 Moss Xiaozhi MCP 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 Moss Xiaozhi MCP 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": {
    "moss-xiaozhi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Moss Xiaozhi MCP 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 Moss Xiaozhi MCP 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 Moss Xiaozhi MCP to help me with this task?
Moss Xiaozhi MCP
Sure. I read it.
Here is what I found using Moss Xiaozhi MCP.

Frequently asked questions

What is the Moss Xiaozhi MCP MCP server used for?

Moss Xiaozhi MCP 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 Moss Xiaozhi MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Moss Xiaozhi MCP 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 Moss Xiaozhi MCP 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 Moss Xiaozhi MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Moss Xiaozhi MCP MCP to TypingMind?

Moss Xiaozhi MCP 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 Moss Xiaozhi MCP MCP provide in TypingMind?

Moss Xiaozhi MCP 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 Moss Xiaozhi MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Moss Xiaozhi MCP 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 👇