← 全部教程库

MCP 是什么:协议官方入门

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

Model Context Protocol 项目贡献者 · 英文原文 · 核对于 2026 年 10 月 17 日

使用前须知

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

中文译文

什么是模型上下文协议(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

作舟补充

协议与具体服务的区别

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

作舟补充:先分清读取权限和执行权限

读取权限与执行权限要分开。能查看资料不等于能修改或发送。

  1. 选一份获准测试的资料。
  2. 核对连接器可读范围和可执行动作。
  3. 先用只读权限验证,写入或发送另行确认。
练习模板

完成[任务]需要哪些资料?只读已授权的内容,修改或发送前先让我确认。

原文 © Model Context Protocol 项目贡献者,按 CC BY 4.0 收录;作舟进行了翻译与排版调整,不代表原作者背书。