← 全部新手教程

02 · 英文原文 · 授权全文收录

MCP 是什么:协议官方入门

完整收录 MCP 官方概念文章,包括连接对象、应用场景和客户端生态;附中文译文。

原作者:
Model Context Protocol 项目贡献者
核对日期:
2026 年 10 月 17 日
转载许可:
CC BY 4.0 · 作者许可声明

核验范围

已读取 2026-07-28 版本原文并核对项目文档许可;另与微软的服务参考对照。

原文列举的场景不是本次实测成果。使用私人数据或写入工具需要另行授权。

中文译文

中文译文由作舟整理,代码保持原样;原文完整保留在下方。 排版与相对链接已转换,未执行原文中的代码;交叉核验补充另列。转载与译文遵循 CC BY 4.0,不代表原作者为本站背书。

什么是模型上下文协议(MCP)?

MCP(Model Context Protocol,模型上下文协议)是连接 AI 应用与外部系统的开源标准。

通过 MCP,Claude、ChatGPT 等 AI 应用可以连接数据源(如本地文件、数据库)、工具(如搜索引擎、计算器)和工作流程(如特定提示词),从而获取信息并执行任务。

可以把 MCP 理解为 AI 应用的 USB-C 接口:USB-C 为电子设备连接外围设备提供标准接口,MCP 为 AI 应用连接外部系统提供标准方式。

MCP 连接 AI 应用与外部系统的官方示意图

MCP 可以实现什么?

  • Agent 可以访问 Google Calendar 和 Notion,提供更个性化的帮助。
  • Claude Code 可以根据 Figma 设计生成 Web 应用。
  • 企业聊天机器人可以连接组织中的多个数据库,让用户通过对话分析数据。
  • AI 模型可以在 Blender 中创作 3D 设计,并使用 3D 打印机打印。

为什么 MCP 有用?

不同参与者可以从 MCP 获得不同的帮助:

  • 开发者:构建或集成 AI 应用、Agent 时,减少开发时间与复杂度。
  • AI 应用或 Agent:访问数据源、工具和应用生态,扩展能力,改善用户体验。
  • 用户:使用能够在必要时访问用户数据、代表用户执行操作的 AI 应用或 Agent。

生态支持

MCP 是开放协议,有许多客户端和服务端支持。Claude、ChatGPT、Visual Studio Code、Cursor、MCPJam 等产品都支持 MCP。

开始构建

进一步了解

  • 架构:学习核心概念与架构。
  • 安全:了解 MCP 实现的安全注意事项和最佳实践。

社区

查看完整英文原文

What is the Model Context Protocol (MCP)?

MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.

Using MCP, AI applications like Claude or ChatGPT can connect to data sources (e.g. local files, databases), tools (e.g. search engines, calculators) and workflows (e.g. specialized prompts)—enabling them to access key information and perform tasks.

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.

What can MCP enable?

  • Agents can access your Google Calendar and Notion, acting as a more personalized AI assistant.
  • Claude Code can generate an entire web app using a Figma design.
  • Enterprise chatbots can connect to multiple databases across an organization, empowering users to analyze data using chat.
  • AI models can create 3D designs on Blender and print them out using a 3D printer.

Why does MCP matter?

Depending on where you sit in the ecosystem, MCP can have a range of benefits.

  • Developers: MCP reduces development time and complexity when building, or integrating with, an AI application or agent.
  • AI applications or agents: MCP gives them access to an ecosystem of data sources, tools and apps, which enhances their capabilities and improves the end-user experience.
  • End-users: MCP results in more capable AI applications or agents that can access user data and take actions on the user's behalf when necessary.

Broad ecosystem support

MCP is an open protocol supported across a wide range of clients and servers. AI assistants like Claude and ChatGPT, development tools like Visual Studio Code, Cursor, MCPJam, and many others all support MCP — making it easy to build once and integrate everywhere.

Start Building

Build servers

Create MCP servers to expose your data and tools

Build clients

Develop applications that connect to MCP servers

Build MCP Apps

Build interactive apps that run inside AI clients

Learn more

Architecture

Learn the core concepts and architecture of MCP

Security

Understand the security considerations and best practices for MCP

Community

Contributing

Learn how to get involved and contribute to MCP

原文快照 SHA-256:a2314e74bbae7765b14a727f4bf9456895b58b6d2c2ad7cd2996fb5bfd830f6c

交叉核验补充

以下为本站核对说明,与上方原教程区分展示。

协议与具体服务的区别

微软文档提供一个可核验的实现:公开 MCP 端点及搜索、读取、代码示例工具。后面的安装教程收录该服务原仓库完整说明。