MCP(Model Context Protocol) 是由 Anthropic 推出的开放标准,允许 AI 应用通过统一的接口连接外部工具和数据——而不是为每个应用编写定制的集成。可以将其视为模型与外部世界之间的通用适配器。
Client 和 server
text
MCP SERVER → exposes capabilities to the model:
- TOOLS → actions the model can call (send_email, create_issue, search_files)
- RESOURCES → data the model can read (a file, a Drive doc, a DB row)
- PROMPTS → reusable prompt templates the server offers
MCP CLIENT → the AI app (Claude Desktop, Claude Code, an IDE) that connects to servers
TRANSPORT → stdio (local process) or HTTP (remote), speaking JSON-RPC both ways
