Skip to main content

xiaozhi MCP Aggregate | 小智 MCP 集合项目

A powerful interface for extending AI capabilities through remote control, calculations, email operations, knowledge search, and more.

一个强大的接口,用于通过远程控制、计算、邮件操作、知识搜索等方式扩展AI能力。

Overview | 概述

MCP (Model Context Protocol) is a protocol that allows servers to expose tools that can be invoked by language models. Tools enable models to interact with external systems, such as querying databases, calling APIs, or performing computations. Each tool is uniquely identified by a name and includes metadata describing its schema.

MCP(模型上下文协议)是一个允许服务器向语言模型暴露可调用工具的协议。这些工具使模型能够与外部系统交互,例如查询数据库、调用API或执行计算。每个工具都由一个唯一的名称标识,并包含描述其模式的元数据。

Tools | 工具集

  • conversation_dingtalk: Send conversation to dingtalk | 将会话内容发送到钉钉群机器人
  • email_qq: Send email with qq mail account | 使用QQ邮箱发送邮件
  • system: Get server status | 获取服务器状态监控信息包含 CPU、内存、磁盘等使用情况
  • web_webpilot: Web search by WebPilot | 通过 WebPilot 实现联网搜索

Features | 特性

  • 🔌 Bidirectional communication between AI and external tools | AI与外部工具之间的双向通信
  • 🔄 Automatic reconnection with exponential backoff | 具有指数退避的自动重连机制
  • 📊 Real-time data streaming | 实时数据流传输
  • 🛠️ Easy-to-use tool creation interface | 简单易用的工具创建接口
  • 🔒 Secure WebSocket communication | 安全的WebSocket通信

Quick Start | 快速开始

  1. Install dependencies | 安装依赖:
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
  1. Set up environment variables | 设置环境变量:
# Copy the .env.example file to your own configuration file, e.g., .env.xiaozhi1
# 参考 .env.example 文件,复制到你自己的配置文件例如 .env.xiaozhi1
  1. Run the example | 运行示例:
# You can run different XiaoZhi MCP access points through different configuration files
# 可以通过不同的配置文件,来运行到不同的多个小智MCP接入点
python mcp_pipe.py aggregate.py --env-file .env.xiaozhi1

Creating Your Own MCP Tools | 创建自己的MCP工具

Here's a simple example of creating an MCP tool | 以下是一个创建MCP工具的简单示例:

  • According to the example in the tools folder, create your own tool | 根据 tools 文件夹中的示例创建自己的工具
  • The tool name is distinguished by function_channel, for example, email_google indicates that it is a Google Mail MCP tool | 工具命名以 功能_渠道区分,例如 email_google 表明是谷歌邮箱的MCP工具
  • Register your tool in aggregate.py | 在 aggregate.py 中注册你的工具
  • Configure the environment variables for your tool in the .env.xxx file (if any) | 在 .env.xxx 文件中配置你的工具的环境变量(如果有的话)
  • If you want to contribute code, you also need to add the environment variables for your tool (if any) in the .env.example file | 如果要贡献代码的话还需要在 .env.example 文件中添加你的工具的环境变量(如果有的话)

Use Cases | 使用场景

  • Mathematical calculations | 数学计算
  • Email operations | 邮件操作
  • Knowledge base search | 知识库搜索
  • Remote device control | 远程设备控制
  • Data processing | 数据处理
  • Custom tool integration | 自定义工具集成

Requirements | 环境要求

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

FAQ | 常见问题

  • MCP_PIPE - ERROR - Connection error: python-socks is required to use a SOCKS proxy
关闭电脑的系统代理
Close the system proxy on your computer

Contributing | 贡献指南

Contributions are welcome! Please feel free to submit a Pull Request.

欢迎贡献代码!请随时提交Pull Request。

License | 许可证

This project is licensed under the MIT License - see the LICENSE file for details.

本项目采用MIT许可证 - 详情请查看LICENSE文件。

Acknowledgments | 致谢

  • https://github.com/78/mcp-calculator | 完全根据78前辈的计算器mcp,做的外扩
  • Thanks to all contributors who have helped shape this project | 感谢所有帮助塑造这个项目的贡献者
  • Inspired by the need for extensible AI capabilities | 灵感来源于对可扩展AI能力的需求

Metadata

Release files for iflow-mcp_avxxoo-xiaozhi-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_avxxoo-xiaozhi-mcp 0.1.0
File Size Uploaded
iflow_mcp_avxxoo_xiaozhi_mcp-0.1.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_avxxoo-xiaozhi-mcp 0.1.0
File Interpreter ABI Platform
iflow_mcp_avxxoo_xiaozhi_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / iflow_mcp_avxxoo_xiaozhi_mcp-0.1.0.tar.gz

Download URL iflow_mcp_avxxoo_xiaozhi_mcp-0.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
01a83d5c632284b1fd03d9ab1d6617698b73750835a372ad1ec286a1c3ff7eda
BLAKE2b-256 checksum
How to use checksums
7f03cc3e085fe093494cae87d26cb07421019e43e6534a1318133343795da203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_avxxoo_xiaozhi_mcp-0.1.0-py3-none-any.whl

Download URL iflow_mcp_avxxoo_xiaozhi_mcp-0.1.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f936719beefb070c83f7efa8da3daaccb54e3486cc0999108e629aba0163e9ee
BLAKE2b-256 checksum
How to use checksums
5bdaddb69cf36afc5df6351493e3dc937bad0d4495e68e58d3a4c7984f177ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page