跳到正文
Hacker News· rwilinski·· 6 小时前AI 评分22

MCP 是什么:连接 AI 应用与工具数据的开放标准解析

MCP Explained

AI 导读

MCP(Model Context Protocol)是一个把 AI 应用连接到工具和数据的开放标准:server 声明自身能力,应用转达给模型,模型决定调用后由应用请求 server 并回传结果。它基于 JSON-RPC,通过 stdin/stdout 或单个 HTTP endpoint 传输,并定义了方法、能力协商、传输方式与鉴权。模型本身从不直接与 server 通信。

正文 · 原文

Model Context Protocol

What is MCP?

An open standard for connecting AI apps to the tools and data they use. A server says what it can do, the app shows that to the model, and when the model wants something the app calls the server and hands the result back.

Host
the AI app you use: Claude, Cursor, ChatGPT, an agent
Server
a small program exposing tools, data or prompts
Model
decides what to use; never talks to a server directly
Not REST
JSON-RPC over stdin/stdout or one HTTP endpoint, and servers can talk back
Not just JSON-RPC
JSON-RPC is the envelope. MCP defines what goes in it: the methods, capability negotiation, transports and auth

or jump to Tools · the spec time machine · Break it

Spec

#FromToMethodInfo

来源:Hacker News · mcp-explained.com