Files
nexus/wiki/concepts/MCP.md
2026-04-15 15:02:52 +08:00

34 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "MCP"
type: concept
tags: [llm, protocol, tool-calling]
last_updated: 2025-12-20
---
## 基本信息
- **全称**Model Context Protocol
- **类型**:通信协议
- **来源**:大模型相关术语和框架总结
## 定义
MCP 是一个开放协议,为 LLM 应用提供标准化接口,使其能够连接外部数据源和各种工具进行交互。
## 核心机制
1. **MCP Client**:位于 LLM 应用侧,发送请求
2. **MCP Server**:负责与外部数据源或工具交互,获取数据并按协议格式化返回
## 关键约束
> "大模型是不会自己去调用外部数据源或者工具的,大模型只会告诉我们需要调用哪些工具,而我们需要自己去实现工具的调用。"
## 与 Agent 的关系
MCP + LLM = AgentMCP 协议是智能体实现实际任务执行的关键组件。
## 关联
- [[LLM]] ← 基础层
- [[Agent]] ← LLM + MCP 的产物
- [[LangChain]] ← MCP 集成的开发框架
## Aliases
- Model Context Protocol
- 模型上下文协议