模型上下文协议 {Model Context Protocol, MCP}
Model Context Protocol, MCP
https://github.com/modelcontextprotocol
1. 模型上下文协议 (Model Context Protocol, MCP)
https://github.com/modelcontextprotocol
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
Model Context Protocol (MCP) 是一套让大模型 “统一使用工具” 的标准协议,用于连接 AI 应用与外部数据源和工具。可以把 MCP 理解成 AI 应用的 “统一扩展接口”:同一个 MCP Server,可以在 Cursor、Claude Code 等不同支持 MCP 的产品中使用。统一的协议规范让 AI 模型能够标准化地访问各种数据源和工具。从文件系统到数据库,从 API 到本地服务,一套协议解决所有上下文集成需求。
MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.
模型上下文协议 (Model Context Protocol, MCP) 是由 Anthropic 推出的开源协议,旨在实现大语言模型与外部数据源和工具的集成,用来在大模型和数据源之间建立安全双向的连接。该协议通过相同的协议同时处理本地资源 (例如数据库、文件、服务等) 和远程资源 (例如 Slack 或 GitHub 等 API)。
Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect electronic devices, MCP provides a standardized way to connect AI applications to external systems.
AI 应用的 USB-C 接口 Model Context Protocol (MCP)
MCP 是一个标准化协议,旨在通过提供结构化的上下文管理来增强大型语言模型 (LLMs) 与应用程序之间的交互,它使 LLM 应用程序与外部数据源和工具之间能够无缝集成。

1.1. Zread MCP
Zread MCP 当前提供三类原子能力,对应三个工具。你可以在对话中显式调用,也可以由客户端自动选择。
-
search_doc:在 Github 仓库的文档内进行搜索 -
get_repo_structure:查看 Github 仓库或仓库子目录的结构 -
read_file:读取 Github 仓库中单个文件的完整内容
Zread MCP 支持两种接入方式,方便不同客户端使用:
- SSE (Server-Sent Events)
URL (示例):https://open.bigmodel.cn/api/mcp/zread/sse?Authorization=glm_api_key
- Streamable HTTP
URL (示例):https://open.bigmodel.cn/api/mcp/zread/mcp
References
[1] Yongqiang Cheng (程永强), https://yongqiang.blog.csdn.net/
[2] Model Context Protocol 中文, https://mcpcn.com/
[3] Zread MCP, https://zread.ai/mcp
[4] 模型上下文协议 (Model Context Protocol, MCP), https://mp.weixin.qq.com/s/PDkhCLR_-tNZrKW9KPfLcw
454

被折叠的 条评论
为什么被折叠?



