Files
LangBot/zh/workshop/mcp-details.mdx
T
Xiaoyu SuandJunyan Chin 310c566148 refactor: migration to mintlify
* 重构文档结构:移除 docs 目录,调整文件组织结构

* Reorder "插件 SDK API" section in docs.json

* Refactor and clarify various documentation sections

* Refine warnings and info boxes across multiple docs

* Refactor and simplify Japanese documentation content

* Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management

* Update blog link and add description in docs.json

---------

Co-authored-by: Junyan Chin <[email protected]>
2026-02-21 23:55:53 +08:00

27 lines
1.2 KiB
Plaintext

---
title: "MCP 生态详解"
---
[MCP协议](https://modelcontextprotocol.io/) 是一种描述应用程序与 LLM 交互的协议,目前已经被多种产品采用。LangBot 可以作为 MCP Client 接入 MCP Server,大量扩展工具供 LLM 在与用户对话时使用。
## 寻找 MCP Server
要在 LangBot 使用 MCP 工具,需要找到已有的 MCP Server 并接入。
市面上有两种类型的 MCP Server:
- 基于 node 或 python 实现的可执行文件,通过 `stdio`(标准输入输出)与 LangBot 通信
- 基于 http 协议的 web 服务,通过 http 协议与 LangBot 通信
<Info title="- 可以到 [MCP Server 列表](https://github.com/punkpeye/awesome-mcp-servers) 查看已有的 MCP Server。">
- 在线托管的 MCP Server 可以到 [Composio MCP](https://mcp.composio.dev/) 查找。
- 自行编写 MCP Server 可以参考 [MCP 协议文档](https://modelcontextprotocol.io/quickstart/server) 和 [MCP Server 示例](https://modelcontextprotocol.io/examples)。
</Info>
## 配置 MCP Server
查看 [系统设置文档](/zh/deploy/settings.html)
配置完成后即可在聊天中通过`!func`命令查看已经注册的 MCP 工具,在与支持 Function Calling 的模型对话时,LangBot 会自动调用 MCP 工具。