Introduction 介绍
Get started with the Model Context Protocol (MCP)
开始使用模型上下文协议 (MCP)
MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
MCP 是一种开放协议,它标准化了应用程序如何为 LLMs。将 MCP 想象成 AI 应用的 USB-C 端口。正如 USB-C 提供了一种将设备连接到各种外围设备和配件的标准化方式一样,MCP 也提供了一种将 AI 模型连接到不同数据源和工具的标准化方式。
Why MCP? 为什么选择 MCP?
MCP helps you build agents and complex workflows on top of LLMs. LLMs frequently need to integrate with data and tools, and MCP provides:
MCP 可帮助您在 LLMs。LLMs 经常需要与数据和工具集成,MCP 提供:
- A growing list of pre-built integrations that your LLM can directly plug into
越来越多的预构建集成,您的 LLM 可以直接插入其中 - The flexibility to switch between LLM providers and vendors
在 LLM - Best practices for securing your data within your infrastructure
在基础架构中保护数据的最佳实践
General architecture 一般架构
At its core, MCP follows a client-server architecture where a host application can connect to multiple servers:
MCP 的核心遵循客户端-服务器架构,其中主机应用程序可以连接到多个服务器:
- MCP Hosts: Programs like Claude Desktop, IDEs, or AI tools that want to access data through MCP
MCP 主机:希望通过 MCP 访问数据的 Claude Desktop、IDE 或 AI 工具等程序 - MCP Clients: Protocol clients that maintain 1:1 connections with servers
MCP 客户端:与服务器保持 1:1 连接的协议客户端 - MCP Servers: Lightweight programs that each expose specific capabilities through the standardized Model Context Protocol
MCP 服务器:轻量级程序,每个程序都通过标准化的 Model Context Protocol 公开特定功能 - Local Data Sources: Your computer’s files, databases, and services that MCP servers can securely access
本地数据源:MCP 服务器可以安全访问的计算机文件、数据库和服务 - Remote Services: External systems available over the internet (e.g., through APIs) that MCP servers can connect to
远程服务:MCP 服务器可以连接到的 Internet 上可用的外部系统(例如,通过 API)
Get started 开始使用
Choose the path that best fits your needs:
选择最适合您需求的路径:
Quick Starts 快速入门
For Server Developers 面向服务器开发人员
Get started building your own server to use in Claude for Desktop and other clients
开始构建您自己的服务器以在 Claude for Desktop 和其他客户端中使用
For Client Developers 对于客户端开发人员
Get started building your own client that can integrate with all MCP servers
开始构建可与所有 MCP 服务器集成的您自己的客户端
For Claude Desktop Users 对于 Claude 桌面用户
Get started using pre-built servers in Claude for Desktop
开始使用 Claude for Desktop 中的预构建服务器
Examples 例子
Example Servers 示例服务器
Check out our gallery of official MCP servers and implementations
查看我们的官方 MCP 服务器和实施库
Example Clients 示例客户端
View the list of clients that support MCP integrations
查看支持 MCP 集成的客户端列表
Tutorials 教程
Building MCP with LLMs 使用 LLMs
Learn how to use LLMs like Claude to speed up your MCP development
了解如何使用 LLMs (如 Claude)来加速 MCP 开发
Debugging Guide 调试指南
Learn how to effectively debug MCP servers and integrations
了解如何有效地调试 MCP 服务器和集成
MCP Inspector MCP 检查器
Test and inspect your MCP servers with our interactive debugging tool
使用我们的交互式调试工具测试和检查您的 MCP 服务器
Explore MCP 探索 MCP
Dive deeper into MCP’s core concepts and capabilities:
深入了解 MCP 的核心概念和功能:
Core architecture 核心架构
Understand how MCP connects clients, servers, and LLMs
了解 MCP 如何连接客户端、服务器和LLMs
Resources 资源
Expose data and content from your servers to LLMs
将服务器中的数据和内容公开给 LLMs
Prompts 提示
Create reusable prompt templates and workflows
创建可重用的提示模板和工作流
Tools 工具
Enable LLMs to perform actions through your server
启用 LLMs 以通过您的服务器执行操作
Sampling 采样
Let your servers request completions from LLMs
让您的服务器从 LLMs
Transports 运输
Learn about MCP’s communication mechanism
了解 MCP 的通信机制
Contributing 贡献
Want to contribute? Check out our Contributing Guide to learn how you can help improve MCP.
想要做出贡献吗?查看我们的贡献指南,了解如何帮助改进 MCP。
Was this page helpful? 这个页面有帮助吗?