Verdure MCP For Xiaozhi logo

Verdure MCP For Xiaozhi

Organization
maker-community

面向多种 AI 助手的 MCP 对接与服务管理平台,支持连接小智、涂鸦等助手端点,并将外部 MCP 工具远程注入到对应助手中,让助手能够通过对话调用各类外部服务。 An MCP integration and service management platform for multiple AI assistants, supporting endpoints such as Xiaozhi and Tuya, and enabling remote injection of external MCP tools so assistants can invoke external services through conversation.

Publishermaker-community
Repositoryverdure-mcp-for-xiaozhi
LanguageC#
Forks
14
Stars
58
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Verdure 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

    58 stars and 14 forks from the linked repository.

Verdure MCP Platform

开源的多租户 MCP 服务管理平台,兼容多种 AI 助手并提供统一的 Model Context Protocol 服务配置和管理能力

.NET Blazor MudBlazor License

English README · 在线体验 · 快速开始 · 视频教程 · 社区交流



🌟 在线服务

立即体验,无需安装!

🔗 在线平台(主入口): https://hub.verdure-hiro.cn/

🔗 兼容入口(旧域名,持续可用): https://xiaozhi.verdure-hiro.cn/

  • ✅ 免费注册,即刻使用
  • ✅ 无需部署,云端托管
  • ✅ 稳定可靠,持续更新

🎬 视频教程

📺 B站视频演示

小智 MCP 转接服务上线与开源

小智MCP转接服务

🎬 点击观看

适合小智商家和小智爱好者

私有化部署与米家智能家居控制

私有化部署教程

🎬 点击观看

手把手教你部署和玩转米家


📖 项目介绍

Verdure MCP Platform 是一个基于 .NET 10 和 Blazor WebAssembly 构建的企业级多租户 SaaS 平台,面向多种 AI 助手提供统一的 Model Context Protocol (MCP) 服务管理与接入能力。

核心功能:

  • 🔐 多租户身份认证系统(基于 Keycloak OpenID Connect)
  • 🌐 每个用户可配置自己的 AI 助手连接(如小智、涂鸦等)
  • 🔗 将不同的 MCP 服务绑定到指定助手节点
  • 🚀 通过 WebSocket 连接提供对应的 MCP 服务
  • 💾 仓储模式 (Repository Pattern) 实现数据访问层
  • 🗄️ 支持 PostgreSQL 和 SQLite 多数据库

🆕 最新进展

✨ 核心特性

🔐 多租户支持

  • 基于 Keycloak 的 OpenID Connect 认证
  • 每个用户独立配置 MCP 服务和小智连接
  • 完整的权限管理和数据隔离
  • 支持多种认证方式(Bearer、Basic、OAuth2、API Key)

🌐 灵活的服务绑定

  • 支持多种 MCP 服务配置
  • 动态绑定服务到小智节点
  • 实时 WebSocket 连接管理
  • 自动故障恢复和重连机制

🚀 现代化技术栈

  • .NET 10 后端 API + Blazor WebAssembly 前端
  • MudBlazor UI 组件库(Material Design 3)
  • .NET Aspire 云原生应用编排
  • Entity Framework Core 10.0 数据访问

🏛️ 优秀的架构设计

  • 领域驱动设计 (DDD)
  • 仓储模式 (Repository Pattern)
  • 前后端分离架构
  • 完整的国际化 (i18n) 支持(中文/英文)

🏗️ 项目架构

verdure-mcp-for-xiaozhi/
├── src/
│   ├── Verdure.McpPlatform.AppHost/           # Aspire 应用宿主
│   ├── Verdure.McpPlatform.ServiceDefaults/   # 共享服务配置
│   ├── Verdure.McpPlatform.Api/               # Web API 项目
│   ├── Verdure.McpPlatform.Web/               # Blazor WebAssembly 前端
│   ├── Verdure.McpPlatform.Domain/            # 领域层
│   ├── Verdure.McpPlatform.Infrastructure/    # 基础设施层
│   ├── Verdure.McpPlatform.Application/       # 应用服务层
│   └── Verdure.McpPlatform.Contracts/         # 共享契约
└── tests/                                      # 测试项目

详细架构说明请参考 AGENTS.md

🚀 快速开始

🎯 三种使用方式,任你选择

🌐 在线使用

最快捷的方式

访问 在线平台(旧域名 https://xiaozhi.verdure-hiro.cn/ 也可访问)

✅ 无需安装 ✅ 即开即用 ✅ 云端托管

立即体验 →

🐳 Docker 部署

最简单的本地部署

一键启动完整环境

✅ 包含所有依赖 ✅ 3-5分钟启动 ✅ 适合私有部署

查看教程 ↓

💻 开发环境

适合二次开发

.NET 10 开发环境

✅ 完整源码 ✅ 灵活定制 ✅ 适合开发者

查看教程 ↓


方式一:本地 Docker 一键启动 (推荐⭐)

最简单的方式,包含完整环境:PostgreSQL + Redis + Keycloak + 应用

前置要求

  • Docker Desktop (Windows/Mac) 或 Docker + Docker Compose (Linux)
  • PowerShell 5.1+ 或 PowerShell Core 7+

一键启动

powershell
# 克隆仓库
git clone https://github.com/maker-community/verdure-mcp-for-xiaozhi.git
cd verdure-mcp-for-xiaozhi

# 启动所有服务(首次启动约需 3-5 分钟)
.\scripts\start-local.ps1

访问应用

演示账号

  • 管理员: admin / admin123
  • 普通用户: demo / demo123

其他命令

powershell
# 查看服务状态
.\scripts\health-check.ps1

# 查看日志
.\scripts\view-logs.ps1

# 停止服务
.\scripts\stop-local.ps1

📖 详细文档: Docker 本地部署指南


方式二:.NET 开发环境

适合需要修改代码的开发者

前置要求

安装步骤

  1. 克隆仓库
bash
git clone https://github.com/maker-community/verdure-mcp-for-xiaozhi.git
cd verdure-mcp-for-xiaozhi
  1. 恢复依赖
bash
dotnet restore
  1. 配置数据库

编辑 src/Verdure.McpPlatform.Api/appsettings.json:

json
{
  "ConnectionStrings": {
    "Redis": "localhost:6379",
    "mcpdb": "",
    "identitydb": ""
  },
}
  1. 运行应用(通过 Aspire)
bash
dotnet run --project src/Verdure.McpPlatform.AppHost

或单独运行各服务:

bash
# 运行 API
dotnet run --project src/Verdure.McpPlatform.Api

# 运行 Web 前端
dotnet run --project src/Verdure.McpPlatform.Web
  1. 访问应用

🎯 使用流程

快速上手指南

详细步骤

  1. 登录系统 - 使用 Keycloak 账号登录平台,或访问在线服务直接注册(旧域名 https://xiaozhi.verdure-hiro.cn/ 同样可用)
  2. 配置助手连接 - 在"助手连接"页面添加你的 AI 助手连接信息(支持小智与 Tuya 等连接类型)
  3. 创建 MCP 服务 - 在"MCP 服务"页面配置服务,支持 Bearer Token、Basic Auth、OAuth2、API Key 等多种认证
  4. 绑定服务到节点 - 在"服务绑定"页面将 MCP 服务绑定到指定助手节点,选择需要的工具
  5. 开始使用 - 在你的 AI 助手中使用绑定 MCP 服务提供的能力

💡 提示: 观看我们的 B站视频教程 获取更详细的操作演示


❓ 常见问题


📚 文档


🌐 社区与支持

加入我们的社区,获取帮助和分享经验!

💬 QQ 交流群

绿荫DIY硬件交流群

群号:1023487000

讨论 AI、MCP 和硬件 DIY

📺 B站 UP主

绿荫阿广

访问主页

获取更多 AI 和创客教程

🐙 GitHub 社区

Maker Community

访问组织

贡献代码,参与开发

📮 联系方式

🤝 贡献

我们欢迎所有形式的贡献!无论是代码、文档、问题反馈还是建议。

如何贡献

  1. 🍴 Fork 本仓库
  2. 🌿 创建特性分支 (git checkout -b feature/AmazingFeature)
  3. 💾 提交更改 (git commit -m 'Add some AmazingFeature')
  4. 📤 推送到分支 (git push origin feature/AmazingFeature)
  5. 🔀 创建 Pull Request

贡献指南

  • 查看 AGENTS.md 了解项目架构和开发规范
  • 遵循现有的代码风格和提交规范
  • 为新功能添加相应的测试和文档
  • 确保所有测试通过后再提交 PR

贡献者

感谢所有为这个项目做出贡献的开发者!

📄 开源协议

本项目采用 MIT License 开源协议。

🙏 致谢

感谢以下开源项目和技术:

特别感谢所有支持和使用本项目的 AI 助手用户和开发者!


⭐ 如果这个项目对你有帮助,请给我们一个 Star!⭐

Made with ❤️ by 绿荫阿广 and the Maker Community

🏠 返回顶部

Use Verdure MCP For Xiaozhi MCP with multiple AI models

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

Use it across models

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

Frequently asked questions

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

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

Yes. TypingMind connects MCP tools at the workspace level, so you can use Verdure 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 Verdure 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 Verdure 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 Verdure MCP For Xiaozhi MCP to TypingMind?

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

Verdure 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 Verdure 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 Verdure 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 👇