{"id":2728,"date":"2026-08-07T02:02:51","date_gmt":"2026-08-06T18:02:51","guid":{"rendered":"https:\/\/virtualcardx.com\/2026\/08\/07\/mcp-model-context-protocol-guide\/"},"modified":"2026-08-07T02:02:51","modified_gmt":"2026-08-06T18:02:51","slug":"mcp-model-context-protocol-guide","status":"publish","type":"post","link":"https:\/\/virtualcardx.com\/en\/2026\/08\/07\/mcp-model-context-protocol-guide\/","title":{"rendered":"A Beginner's Guide to the MCP Protocol: Connecting AI to Your Data and Tools"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u6240\u6709\u4eba\u7a81\u7136\u90fd\u5728\u804a MCP<\/h2>\n<p>2024\u5e74\u5e95 Anthropic \u53d1\u5e03\u4e86\u4e00\u4e2a\u53eb Model Context Protocol \u7684\u4e1c\u897f\uff0c\u7b80\u79f0 MCP\u3002\u534a\u5e74\u8fc7\u53bb\uff0cCursor\u3001VS Code\u3001Claude Desktop\u3001ChatGPT \u90fd\u63a5\u5165\u4e86\u5b83\uff0cGitHub \u4e0a\u5192\u51fa\u4e0a\u5343\u4e2a MCP Server\uff0c\u8fde HN \u7684\u70ed\u95e8\u699c\u9694\u4e09\u5dee\u4e94\u5c31\u6709\u76f8\u5173\u9879\u76ee\u3002\u4e00\u4e2a\u534f\u8bae\u80fd\u8fd9\u4e48\u5feb\u88ab\u6574\u4e2a\u5f00\u53d1\u8005\u793e\u533a\u63a5\u53d7\uff0c\u4e0d\u7b97\u5e38\u89c1\u3002<\/p>\n<p>\u539f\u56e0\u5176\u5b9e\u7b80\u5355\u3002\u5927\u8bed\u8a00\u6a21\u578b\u5f88\u5f3a\uff0c\u4f46\u6709\u4e2a\u786c\u4f24\uff1a\u5b83\u63a5\u89e6\u4e0d\u5230\u4f60\u7684\u5b9e\u9645\u6570\u636e\u3002\u4f60\u7684\u4ee3\u7801\u4ed3\u5e93\u3001\u6570\u636e\u5e93\u3001\u6587\u4ef6\u7cfb\u7edf\u3001\u65e5\u5386\u3001API\uff0c\u6a21\u578b\u90fd\u770b\u4e0d\u5230\u3002\u4ee5\u524d\u8981\u6253\u901a\u8fd9\u4e9b\uff0c\u6bcf\u4e2a\u5de5\u5177\u5f97\u5355\u72ec\u5199\u9002\u914d\uff0c\u5de5\u4f5c\u91cf\u5de8\u5927\u8fd8\u5bb9\u6613\u51fa bug\u3002MCP \u505a\u7684\u4e8b\u5c31\u662f\u5b9a\u4e00\u4e2a\u7edf\u4e00\u6807\u51c6\uff0c\u8ba9\u4efb\u4f55 AI \u5e94\u7528\u90fd\u80fd\u901a\u8fc7\u540c\u4e00\u5957\u534f\u8bae\u8fde\u63a5\u5916\u90e8\u7cfb\u7edf\u3002<\/p>\n<p>\u5b98\u65b9\u6709\u4e2a\u6bd4\u55bb\u6211\u89c9\u5f97\u633a\u5230\u4f4d\uff1aMCP \u5c31\u662f AI \u5e94\u7528\u7684 USB-C \u63a5\u53e3\u3002\u4f60\u4e0d\u7528\u5173\u5fc3\u8fde\u7684\u662f\u786c\u76d8\u8fd8\u662f\u663e\u793a\u5668\uff0c\u63d2\u4e0a\u5c31\u884c\u3002<\/p>\n<h2>MCP \u5230\u5e95\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898<\/h2>\n<p>\u5148\u8bf4\u4e2a\u5b9e\u9645\u573a\u666f\u3002\u5047\u8bbe\u4f60\u8ba9 Claude Code \u5e2e\u4f60\u6539\u4e00\u4e2a\u9879\u76ee\u91cc\u7684 bug\uff0c\u5b83\u9700\u8981\u8bfb\u4ee3\u7801\u4ed3\u5e93\u3001\u67e5\u6570\u636e\u5e93 schema\u3001\u770b Git \u5386\u53f2\u3002\u6ca1\u6709 MCP \u7684\u8bdd\uff0c\u4f60\u5f97\u624b\u52a8\u628a\u8fd9\u4e9b\u4fe1\u606f\u590d\u5236\u7c98\u8d34\u7ed9\u6a21\u578b\u3002\u5982\u679c\u9879\u76ee\u7a0d\u5fae\u5927\u4e00\u70b9\uff0c\u5149\u662f\u6765\u56de\u7c98\u8d34\u5c31\u591f\u4f60\u5fd9\u6d3b\u534a\u5c0f\u65f6\u3002<\/p>\n<p>\u6709\u4e86 MCP\uff0c\u4f60\u5728 Claude Desktop \u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u52a0\u51e0\u884c JSON\uff0c\u5b83\u5c31\u80fd\u76f4\u63a5\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u3001\u67e5 Git \u65e5\u5fd7\u3001\u8fde PostgreSQL \u8bfb\u8868\u7ed3\u6784\u3002\u6a21\u578b\u81ea\u5df1\u51b3\u5b9a\u4ec0\u4e48\u65f6\u5019\u8c03\u7528\u4ec0\u4e48\u5de5\u5177\uff0c\u6574\u4e2a\u8fc7\u7a0b\u4f60\u53ea\u9700\u8981\u7ed9\u51fa\u9700\u6c42\u63cf\u8ff0\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u4ec0\u4e48\u65b0\u6982\u5ff5\uff0cFunction Calling \u548c Tool Use \u65e9\u5c31\u6709\u4e86\u3002\u533a\u522b\u5728\u4e8e\u6807\u51c6\u5316\u3002Function Calling \u6bcf\u5bb6\u5382\u5546\u7684\u683c\u5f0f\u4e0d\u4e00\u6837\uff0cOpenAI \u4e00\u5957\u5199\u6cd5\uff0cAnthropic \u4e00\u5957\u5199\u6cd5\uff0cGoogle \u53c8\u4e00\u5957\u3002\u4f60\u5199\u4e86\u4e00\u4e2a\u5de5\u5177\u9002\u914d OpenAI\uff0c\u6362\u5230 Claude \u5c31\u5f97\u91cd\u5199\u3002MCP \u628a\u8fd9\u4e2a\u5c42\u62bd\u8c61\u51fa\u6765\u4e86\uff0c\u5199\u4e00\u6b21\uff0c\u5230\u5904\u8dd1\u3002<\/p>\n<h2>\u6838\u5fc3\u6982\u5ff5\u62c6\u89e3<\/h2>\n<p>MCP \u7684\u67b6\u6784\u5206\u4e24\u7aef\uff1aClient \u548c Server\u3002Client \u8dd1\u5728\u4f60\u7684 AI \u5e94\u7528\u91cc\uff08Claude Desktop\u3001Cursor \u7b49\uff09\uff0c\u8d1f\u8d23\u53d1\u8d77\u8bf7\u6c42\u3002Server \u662f\u4f60\u914d\u7f6e\u7684\u5916\u90e8\u5de5\u5177\uff0c\u8d1f\u8d23\u54cd\u5e94\u3002\u901a\u4fe1\u8d70\u7684\u662f JSON-RPC\uff0c\u652f\u6301\u672c\u5730 stdio \u548c\u8fdc\u7a0b HTTP \u4e24\u79cd\u4f20\u8f93\u65b9\u5f0f\u3002<\/p>\n<p>Server \u53ef\u4ee5\u63d0\u4f9b\u4e09\u79cd\u80fd\u529b\uff1a<\/p>\n<p><strong>Tools\uff08\u5de5\u5177\uff09<\/strong>\uff1a\u8ba9\u6a21\u578b\u6267\u884c\u64cd\u4f5c\u3002\u6bd4\u5982\u67e5\u6570\u636e\u5e93\u3001\u8c03 API\u3001\u64cd\u4f5c\u6587\u4ef6\u3002\u8fd9\u662f\u6700\u5e38\u7528\u7684\u7c7b\u578b\uff0c\u76f8\u5f53\u4e8e\u7ed9\u6a21\u578b\u88c5\u4e86\u4e00\u53cc\u624b\u3002<\/p>\n<p><strong>Resources\uff08\u8d44\u6e90\uff09<\/strong>\uff1a\u7ed9\u6a21\u578b\u63d0\u4f9b\u53ea\u8bfb\u6570\u636e\u3002\u6bd4\u5982\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u3001\u4e00\u6bb5\u6587\u6863\u3001\u4e00\u4e2a API \u54cd\u5e94\u3002\u6a21\u578b\u4e0d\u4f1a\u4fee\u6539\u5b83\uff0c\u53ea\u662f\u8bfb\u53d6\u4f5c\u4e3a\u4e0a\u4e0b\u6587\u3002<\/p>\n<p><strong>Prompts\uff08\u63d0\u793a\u8bcd\u6a21\u677f\uff09<\/strong>\uff1a\u9884\u8bbe\u597d\u7684\u63d0\u793a\u8bcd\uff0c\u8ba9\u7528\u6237\u4e00\u952e\u89e6\u53d1\u7279\u5b9a\u4efb\u52a1\u3002\u6bd4\u5982&#8221;\u5ba1\u67e5\u8fd9\u6bb5\u4ee3\u7801\u7684\u5b89\u5168\u6027&#8221;\uff0c\u80cc\u540e\u7684 prompt \u6a21\u677f\u7531 Server \u5b9a\u4e49\u3002<\/p>\n<p>\u8fd9\u4e09\u8005\u4e0d\u662f\u5fc5\u987b\u5168\u6709\u3002\u5927\u90e8\u5206 Server \u53ea\u5b9e\u73b0 Tools \u5c31\u591f\u7528\u4e86\u3002Resources \u548c Prompts \u662f\u9526\u4e0a\u6dfb\u82b1\u3002<\/p>\n<h2>\u5b9e\u64cd\uff1a\u4e94\u5206\u949f\u642d\u4e00\u4e2a MCP Server<\/h2>\n<p>\u5b98\u65b9\u63d0\u4f9b\u4e86 10 \u79cd\u8bed\u8a00\u7684 SDK\uff0cPython \u548c TypeScript \u7528\u5f97\u6700\u591a\u3002\u8fd9\u91cc\u7528 Python \u505a\u4e2a\u6700\u7b80\u5355\u7684\u4f8b\u5b50\u3002<\/p>\n<p>\u5148\u88c5\u4f9d\u8d56\uff1a<\/p>\n<p><code>pip install mcp<\/code><\/p>\n<p>\u7136\u540e\u5199\u4e00\u4e2a\u6700\u5c0f\u7684 Server\uff0c\u66b4\u9732\u4e00\u4e2a\u67e5\u5929\u6c14\u7684\u5de5\u5177\uff1a<\/p>\n<p><code>from mcp.server import Server<br \/>\nimport mcp.server.stdio<br \/>\nfrom mcp.types import Tool, TextContent<br \/>\nimport asyncio<\/code><\/p>\n<p><code>server = Server(\"weather-server\")<\/code><\/p>\n<p><code>@server.list_tools()<br \/>\nasync def list_tools():<br \/>\n    return [Tool(<br \/>\n        name=\"get_weather\",<br \/>\n        description=\"\u67e5\u8be2\u6307\u5b9a\u57ce\u5e02\u7684\u5929\u6c14\",<br \/>\n        inputSchema={<br \/>\n            \"type\": \"object\",<br \/>\n            \"properties\": {<br \/>\n                \"city\": {\"type\": \"string\", \"description\": \"\u57ce\u5e02\u540d\u79f0\"}<br \/>\n            },<br \/>\n            \"required\": [\"city\"]<br \/>\n        }<br \/>\n    )]<\/code><\/p>\n<p><code>@server.call_tool()<br \/>\nasync def call_tool(name, arguments):<br \/>\n    if name == \"get_weather\":<br \/>\n        city = arguments.get(\"city\", \"\")<br \/>\n        # \u8fd9\u91cc\u6362\u6210\u5b9e\u9645\u7684\u5929\u6c14 API \u8c03\u7528<br \/>\n        return [TextContent(type=\"text\", text=f\"{city}\u4eca\u5929\u6674\uff0c25\u00b0C\")]<\/code><\/p>\n<p><code>async def main():<br \/>\n    async with mcp.server.stdio.stdio_server() as (r, w):<br \/>\n        await server.run(r, w)<\/code><\/p>\n<p><code>asyncio.run(main())<\/code><\/p>\n<p>\u7136\u540e\u5728 Claude Desktop \u7684\u914d\u7f6e\u6587\u4ef6\u91cc\uff08<code>~\/Library\/Application Support\/Claude\/claude_desktop_config.json<\/code>\uff0cWindows \u8def\u5f84\u662f <code>%APPDATA%\\Claude\\claude_desktop_config.json<\/code>\uff09\u52a0\u4e0a\uff1a<\/p>\n<p><code>{<br \/>\n  \"mcpServers\": {<br \/>\n    \"weather\": {<br \/>\n      \"command\": \"python\",<br \/>\n      \"args\": [\"\/path\/to\/your\/weather_server.py\"]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/code><\/p>\n<p>\u91cd\u542f Claude Desktop\uff0c\u5b83\u5c31\u80fd\u56de\u7b54\u5929\u6c14\u95ee\u9898\u4e86\u3002\u6a21\u578b\u4f1a\u81ea\u52a8\u5224\u65ad\u4ec0\u4e48\u65f6\u5019\u8c03\u7528\u8fd9\u4e2a\u5de5\u5177\u3002<\/p>\n<p>\u6574\u4e2a\u6d41\u7a0b\u7684\u4f53\u9a8c\u662f\uff1a\u4ece\u5199\u4ee3\u7801\u5230\u6a21\u578b\u7528\u4e0a\u5de5\u5177\uff0c\u4e2d\u95f4\u6ca1\u6709\u590d\u6742\u7684\u7f51\u7edc\u914d\u7f6e\u3001\u6ca1\u6709 API Gateway\u3001\u6ca1\u6709\u8ba4\u8bc1\u6846\u67b6\u3002\u8fd9\u662f MCP \u6700\u8ba8\u559c\u7684\u5730\u65b9\u3002<\/p>\n<h2>\u5b98\u65b9\u53c2\u8003 Server \u6709\u54ea\u4e9b\u53ef\u4ee5\u76f4\u63a5\u7528<\/h2>\n<p>\u4e0d\u60f3\u81ea\u5df1\u5199\u7684\u8bdd\uff0c\u5b98\u65b9\u4ed3\u5e93\u91cc\u5df2\u7ecf\u6709\u4e0d\u5c11\u5f00\u7bb1\u5373\u7528\u7684 Server\uff1a<\/p>\n<p><strong>Filesystem<\/strong>\uff1a\u8ba9\u6a21\u578b\u8bfb\u5199\u672c\u5730\u6587\u4ef6\u3002\u914d\u7f6e\u65f6\u6307\u5b9a\u5141\u8bb8\u8bbf\u95ee\u7684\u76ee\u5f55\uff0c\u6a21\u578b\u53ea\u80fd\u5728\u8303\u56f4\u5185\u64cd\u4f5c\u3002<\/p>\n<p><strong>Git<\/strong>\uff1a\u8bfb\u53d6 Git \u4ed3\u5e93\u7684\u63d0\u4ea4\u5386\u53f2\u3001\u5206\u652f\u4fe1\u606f\u3001diff\u3002\u914d\u5408 Claude Code \u4f7f\u7528\uff0c\u6a21\u578b\u80fd\u7406\u89e3\u9879\u76ee\u7684\u7248\u672c\u63a7\u5236\u4e0a\u4e0b\u6587\u3002<\/p>\n<p><strong>Memory<\/strong>\uff1a\u57fa\u4e8e\u77e5\u8bc6\u56fe\u8c31\u7684\u6301\u4e45\u8bb0\u5fc6\u3002\u8de8\u5bf9\u8bdd\u4fdd\u5b58\u4fe1\u606f\uff0c\u89e3\u51b3&#8221;\u6a21\u578b\u8bb0\u4e0d\u4f4f\u4e0a\u6b21\u8bf4\u4e86\u4ec0\u4e48&#8221;\u7684\u8001\u95ee\u9898\u3002<\/p>\n<p><strong>Fetch<\/strong>\uff1a\u6293\u53d6\u7f51\u9875\u5185\u5bb9\u5e76\u8f6c\u6362\u6210\u9002\u5408\u6a21\u578b\u9605\u8bfb\u7684\u683c\u5f0f\u3002\u6bd4\u76f4\u63a5\u7c98\u8d34 URL \u94fe\u63a5\u9760\u8c31\u5f97\u591a\u3002<\/p>\n<p><strong>Sequential Thinking<\/strong>\uff1a\u8ba9\u6a21\u578b\u5206\u6b65\u9aa4\u63a8\u7406\u590d\u6742\u95ee\u9898\u3002\u67d0\u79cd\u7a0b\u5ea6\u4e0a\u662f\u5728 prompt \u5c42\u9762\u505a\u601d\u7ef4\u94fe\u5de5\u7a0b\u3002<\/p>\n<p>\u8fd9\u4e9b Server \u90fd\u80fd\u901a\u8fc7 npx \u6216 uvx \u76f4\u63a5\u542f\u52a8\uff0c\u4e0d\u7528\u5168\u5c40\u5b89\u88c5\u3002\u6bd4\u5982 Filesystem\uff1a<\/p>\n<p><code>npx -y @modelcontextprotocol\/server-filesystem \/path\/to\/allowed\/dir<\/code><\/p>\n<h2>\u751f\u6001\u73b0\u72b6\u548c\u6211\u7684\u5224\u65ad<\/h2>\n<p>\u622a\u81f3 2026 \u5e74\u4e2d\uff0cMCP Registry \u91cc\u5df2\u7ecf\u6536\u5f55\u4e86\u5927\u91cf\u793e\u533a Server\u3002\u5934\u90e8\u7528\u4f8b\u96c6\u4e2d\u5728\u51e0\u4e2a\u65b9\u5411\uff1a\u6570\u636e\u5e93\u67e5\u8be2\uff08PostgreSQL\u3001MySQL\u3001SQLite\uff09\u3001\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff08GitHub\u3001GitLab\uff09\u3001\u9879\u76ee\u7ba1\u7406\uff08Linear\u3001Jira\uff09\u3001\u6587\u6863\u534f\u4f5c\uff08Notion\u3001Google Drive\uff09\u3001\u6d88\u606f\u5e73\u53f0\uff08Slack\u3001Discord\uff09\u3002<\/p>\n<p>\u51e0\u4e2a\u503c\u5f97\u5173\u6ce8\u7684\u8d8b\u52bf\u3002<\/p>\n<p>\u8fdc\u7a0b Server \u6210\u4e86\u65b0\u7684\u53d1\u529b\u70b9\u3002\u65e9\u671f MCP Server \u57fa\u672c\u90fd\u8dd1\u5728\u672c\u5730\uff0c\u901a\u8fc7 stdio \u901a\u4fe1\u3002\u73b0\u5728 Streamable HTTP \u4f20\u8f93\u65b9\u5f0f\u6210\u719f\u4e86\uff0cServer \u53ef\u4ee5\u90e8\u7f72\u5728\u4e91\u7aef\uff0c\u591a\u4e2a\u5ba2\u6237\u7aef\u5171\u4eab\u3002\u8fd9\u5bf9\u4f01\u4e1a\u573a\u666f\u610f\u4e49\u91cd\u5927\u2014\u2014IT \u56e2\u961f\u53ef\u4ee5\u7edf\u4e00\u90e8\u7f72 MCP Server\uff0c\u5458\u5de5\u5404\u81ea\u8fde\u63a5\u3002<\/p>\n<p>MCP Registry \u4e0a\u7ebf\u540e\uff0c\u53d1\u73b0\u548c\u5b89\u88c5 Server \u7684\u4f53\u9a8c\u597d\u4e86\u5f88\u591a\u3002\u4ee5\u524d\u4f60\u5f97\u5728 GitHub \u4e0a\u624b\u52a8\u627e\uff0c\u73b0\u5728\u7c7b\u4f3c npm \u7684\u6a21\u5f0f\uff0c\u4e00\u6761\u547d\u4ee4\u5c31\u80fd\u88c5\u3002\u5f53\u7136 registry \u7684\u5ba1\u6838\u548c\u5b89\u5168\u7ba1\u7406\u8fd8\u5728\u5b8c\u5584\u4e2d\u3002<\/p>\n<p>\u4e5f\u6709\u9690\u60a3\u3002\u5b89\u5168\u662f\u6700\u5927\u7684\u95ee\u9898\u3002\u7ed9\u6a21\u578b\u5de5\u5177\u8c03\u7528\u6743\u9650\uff0c\u610f\u5473\u7740\u6a21\u578b\u53ef\u4ee5\u6267\u884c\u6587\u4ef6\u64cd\u4f5c\u3001\u6570\u636e\u5e93\u67e5\u8be2\u3001API \u8c03\u7528\u3002\u5982\u679c Server \u7684\u6743\u9650\u63a7\u5236\u6ca1\u505a\u597d\uff0c\u4e00\u6b21\u5e7b\u89c9\u5c31\u53ef\u80fd\u9020\u6210\u771f\u5b9e\u7834\u574f\u3002\u5b98\u65b9\u6587\u6863\u91cc\u53cd\u590d\u5f3a\u8c03\u4e86\u6700\u5c0f\u6743\u9650\u539f\u5219\uff0c\u4f46\u5b9e\u9645\u4f7f\u7528\u4e2d\u591a\u5c11\u4eba\u8ba4\u771f\u914d\u7f6e\u4e86\u6743\u9650\u8fb9\u754c\uff0c\u4e0d\u597d\u8bf4\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u95ee\u9898\u662f\u6027\u80fd\u3002\u591a\u8f6e\u5de5\u5177\u8c03\u7528\u4f1a\u8ba9\u5bf9\u8bdd token \u81a8\u80c0\u5f88\u5feb\uff0c\u5c24\u5176\u6d89\u53ca\u5927\u91cf\u6587\u4ef6\u6216\u6570\u636e\u5e93\u8fd4\u56de\u7684\u65f6\u5019\u3002\u672c\u5730\u6a21\u578b\u7684 context window \u5403\u7d27\uff0c\u8fd9\u4e2a\u95ee\u9898\u4f1a\u66f4\u660e\u663e\u3002<\/p>\n<h2>\u8be5\u4e0d\u8be5\u73b0\u5728\u6295\u5165\u7cbe\u529b\u5b66 MCP<\/h2>\n<p>\u5982\u679c\u4f60\u662f\u72ec\u7acb\u5f00\u53d1\u8005\u6216\u5c0f\u56e2\u961f\uff0c\u6211\u7684\u5efa\u8bae\u662f\uff1a\u73b0\u5728\u5c31\u5f00\u59cb\u3002<\/p>\n<p>\u7406\u7531\u5f88\u5b9e\u5728\u3002\u7b2c\u4e00\uff0cClaude Code\u3001Cursor\u3001VS Code Copilot \u8fd9\u4e9b\u4f60\u5df2\u7ecf\u7528\u7684\u5de5\u5177\u90fd\u652f\u6301\u4e86 MCP\uff0c\u914d\u7f6e\u6210\u672c\u6781\u4f4e\u3002\u7b2c\u4e8c\uff0c\u5b98\u65b9 Server \u7684\u8986\u76d6\u9762\u5df2\u7ecf\u591f\u5e7f\uff0c\u5c31\u7b97\u4e0d\u81ea\u5df1\u5199 Server\uff0c\u628a\u73b0\u6210\u7684\u63a5\u4e0a\u4e5f\u591f\u7528\u3002\u7b2c\u4e09\uff0c\u5bf9\u4e8e\u505a AI \u5e94\u7528\u7684\u4eba\u6765\u8bf4\uff0c\u7406\u89e3 MCP \u67b6\u6784\u5df2\u7ecf\u6210\u4e3a\u57fa\u672c\u7d20\u517b\uff0c\u5c31\u50cf\u7406\u89e3 REST API \u4e00\u6837\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u4f01\u4e1a IT \u8d1f\u8d23\u4eba\uff0c\u53ef\u4ee5\u89c2\u671b\u4e00\u4e0b\u5b89\u5168\u6846\u67b6\u548c registry \u7684\u6210\u719f\u5ea6\u3002OAuth 2.1 \u7684\u652f\u6301\u5df2\u7ecf\u5728\u63a8\u8fdb\u4e2d\uff0c\u4f01\u4e1a\u7ea7\u6743\u9650\u7ba1\u7406\u7684\u89c4\u8303\u4e5f\u5728\u8ba8\u8bba\u3002<\/p>\n<p>\u4f46\u6709\u4e00\u70b9\u662f\u786e\u5b9a\u7684\uff1a\u5de5\u5177\u8c03\u7528\u534f\u8bae\u7684\u6807\u51c6\u5316\u5df2\u7ecf\u5728\u53d1\u751f\uff0cMCP \u76ee\u524d\u662f\u552f\u4e00\u7684\u5019\u9009\u6807\u51c6\u3002\u6ca1\u6709\u7ade\u4e89\u8005\u3002\u8fd9\u610f\u5473\u7740\u54ea\u6015\u534f\u8bae\u540e\u7eed\u6709\u53d8\u52a8\uff0c\u65e9\u671f\u79ef\u7d2f\u7684\u7ecf\u9a8c\u4e5f\u4e0d\u4f1a\u767d\u8d39\u3002<\/p>\n<h2>\u4e0a\u624b\u5efa\u8bae<\/h2>\n<p>\u522b\u88ab\u6587\u6863\u7684\u4f53\u91cf\u5413\u5230\u3002MCP \u7684\u6838\u5fc3\u5176\u5b9e\u5c31\u4e09\u4ef6\u4e8b\uff1a\u5199 Tool \u5b9a\u4e49\u3001\u5199 Tool \u5904\u7406\u51fd\u6570\u3001\u914d\u7f6e Client \u8fde\u63a5\u3002\u7406\u89e3\u4e86\u8fd9\u4e09\u6b65\uff0c\u540e\u9762\u90fd\u662f\u7ec6\u8282\u3002<\/p>\n<p>\u5b9e\u9645\u64cd\u4f5c\u8def\u5f84\u63a8\u8350\u8fd9\u6837\u8d70\uff1a\u5148\u88c5\u4e00\u4e2a Filesystem Server\uff0c\u5728 Claude Desktop \u91cc\u8dd1\u901a\uff0c\u611f\u53d7\u4e00\u4e0b\u6a21\u578b\u81ea\u4e3b\u8c03\u7528\u5de5\u5177\u7684\u8fc7\u7a0b\u3002\u7136\u540e\u8bd5\u8bd5 Git Server\uff0c\u770b\u770b\u6a21\u578b\u600e\u4e48\u7406\u89e3\u4f60\u7684\u4ee3\u7801\u4ed3\u5e93\u3002\u6700\u540e\u518d\u5c1d\u8bd5\u5199\u4e00\u4e2a\u81ea\u5df1\u7684 Server\uff0c\u628a\u4f60\u7684\u67d0\u4e2a\u5e38\u7528 API \u63a5\u8fdb\u53bb\u3002\u6574\u4e2a\u8fc7\u7a0b\u5927\u6982\u4e00\u4e2a\u4e0b\u5348\u3002<\/p>\n<p>\u5b98\u65b9\u6587\u6863\u5728 modelcontextprotocol.io\uff0c\u5199\u5f97\u5f88\u6e05\u695a\u3002GitHub \u4e0a\u7684 modelcontextprotocol\/servers \u4ed3\u5e93\u91cc\u6709\u5b8c\u6574\u7684\u53c2\u8003\u5b9e\u73b0\u3002\u9047\u5230\u95ee\u9898\u53bb\u793e\u533a\u8ba8\u8bba\u533a\uff0cAnthropic \u56e2\u961f\u548c\u793e\u533a\u8d21\u732e\u8005\u7684\u54cd\u5e94\u90fd\u633a\u5feb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why is everyone suddenly talking about MCP 2024 \u2026 <\/p>\n<p class=\"read-more-container\"><a title=\"A Beginner&#039;s Guide to the MCP Protocol: Connecting AI to Your Data and Tools\" class=\"read-more button\" href=\"https:\/\/virtualcardx.com\/en\/2026\/08\/07\/mcp-model-context-protocol-guide\/#more-2728\" aria-label=\"Read more about the MCP Protocol Getting Started Guide: Connecting AI to Your Data and Tools\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2728","post","type-post","status-publish","format-standard","hentry","category-technology-share"],"_links":{"self":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts\/2728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/comments?post=2728"}],"version-history":[{"count":0,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/posts\/2728\/revisions"}],"wp:attachment":[{"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/media?parent=2728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/categories?post=2728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualcardx.com\/en\/wp-json\/wp\/v2\/tags?post=2728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}