{"id":41671,"date":"2025-06-04T03:23:00","date_gmt":"2025-06-03T19:23:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/41671.html"},"modified":"2025-06-04T03:23:00","modified_gmt":"2025-06-03T19:23:00","slug":"mcp%e5%8d%8f%e8%ae%ae%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/41671.html","title":{"rendered":"MCP\u534f\u8bae\u5b66\u4e60"},"content":{"rendered":"<h2>MCP\u534f\u8bae\u51fa\u73b0\u7684\u80cc\u666f<\/h2>\n<p>MCP&#xff08;Model Context Protocol&#xff0c;\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae&#xff09;\u7531Anthropic\u516c\u53f8\u4e8e2024\u5e7411\u6708\u63a8\u51fa&#xff0c;\u65e8\u5728\u89e3\u51b3\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u4e0e\u5916\u90e8\u6570\u636e\u6e90\u3001\u5de5\u5177\u548c\u670d\u52a1\u4e4b\u95f4\u7684\u6807\u51c6\u5316\u4ea4\u4e92\u95ee\u9898\u3002\u4f8b\u5982\u67d0\u91d1\u878d\u79d1\u6280\u516c\u53f8\u9700\u5f00\u53d1\u4e00\u6b3e\u667a\u80fd\u6295\u987e\u5de5\u5177&#xff0c;\u8981\u6c42 LLM&#xff08;\u5982 GPT-4&#xff09;\u80fd\u5b9e\u65f6\u8c03\u7528\u5916\u90e8\u91d1\u878d\u6570\u636e\u6e90&#xff08;\u5982 Bloomberg\u3001\u540c\u82b1\u987a&#xff09;\u83b7\u53d6\u80a1\u7968\u884c\u60c5\u3001\u8d22\u62a5\u6570\u636e&#xff0c;\u5e76\u7ed3\u5408\u5206\u6790\u6a21\u578b\u751f\u6210\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n<p>MCP\u7684\u63d0\u51fa\u7c7b\u4f3c\u4e8e\u786c\u4ef6\u9886\u57df\u7684USB-C\u63a5\u53e3&#xff0c;\u65e8\u5728\u4e3aAI\u5e94\u7528\u63d0\u4f9b\u7edf\u4e00\u7684\u201c\u4e07\u80fd\u63d2\u5934\u201d&#xff0c;\u7b80\u5316\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u5927\u6a21\u578b\u4e0e\u5916\u90e8\u5de5\u5177\u8054\u52a8\u5f00\u53d1\u7684\u6d41\u7a0b\u3002<\/p>\n<h2>MCP\u67b6\u6784\u7b80\u4ecb<\/h2>\n<ul>\n<li>\u200b\u6807\u51c6\u5316\u63a5\u53e3\u200b&#xff1a;\u5b9a\u4e49\u901a\u7528\u7684\u901a\u4fe1\u534f\u8bae\u3001\u6570\u636e\u683c\u5f0f&#xff08;JSON-RPC 2.0&#xff09;\u548c\u89c4\u5219&#xff0c;\u652f\u6301\u6587\u672c\u3001\u56fe\u50cf\u7b49\u591a\u6a21\u6001\u6570\u636e\u3002<\/li>\n<li>\u200b\u5206\u5c42\u67b6\u6784\u200b&#xff1a;\n<ul>\n<li>\u200bMCP Host\u200b&#xff1a;\u53d1\u8d77\u8bf7\u6c42\u7684AI\u5e94\u7528&#xff08;\u5982Claude Desktop&#xff09;\u3002<\/li>\n<li>MCP Client\u200b&#xff1a;\u534f\u8bae\u8f6c\u6362\u5c42&#xff0c;\u7ef4\u62a4\u4e0e\u670d\u52a1\u5668\u7684\u8fde\u63a5\u3002<\/li>\n<li>MCP Server\u200b&#xff1a;\u5c01\u88c5\u6570\u636e\u6e90\u6216\u5de5\u5177\u80fd\u529b&#xff08;\u5982\u6570\u636e\u5e93\u3001API&#xff09;\u3002<\/li>\n<li>\u672c\u5730\u6570\u636e\u6e90&#xff1a;MCP \u670d\u52a1\u5668\u53ef\u5b89\u5168\u8bbf\u95ee\u7684\u60a8\u8ba1\u7b97\u673a\u4e2d\u7684\u6587\u4ef6\u3001\u6570\u636e\u5e93\u548c\u670d\u52a1<\/li>\n<li>\u8fdc\u7a0b\u670d\u52a1&#xff1a;MCP \u670d\u52a1\u5668\u53ef\u901a\u8fc7\u4e92\u8054\u7f51\u8fde\u63a5\u7684\u5916\u90e8\u7cfb\u7edf&#xff08;\u5982\u901a\u8fc7 API \u8bbf\u95ee\u7684\u7cfb\u7edf&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250603192259-683f4b938b0e2.png\" alt=\"\u56fe1\" \/> \u4ece\u67b6\u6784\u56fe\u4e2d\u53ef\u770b\u5230Host\u4e2d\u901a\u8fc7MCP Client\u4e0eServer\u8fdb\u884c\u901a\u8baf&#xff0c;\u4f7f\u7528Server\u63d0\u4f9b\u7684\u80fd\u529b\u3002Server\u53ef\u80fd\u662f\u672c\u5730\u90e8\u7f72\u6216\u8fdc\u7a0b\u670d\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>MCP\u534f\u8bae\u6982\u8ff0<\/h2>\n<p>\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae&#xff08;MCP&#xff09;[2] \u7531\u591a\u4e2a\u534f\u540c\u5de5\u4f5c\u7684\u5173\u952e\u4e0d\u5206\u6784\u6210&#xff1a;<\/p>\n<ul>\n<li>\u57fa\u7840\u534f\u8bae&#xff1a;\u6838\u5fc3 JSON-RPC \u6d88\u606f\u7c7b\u578b&#xff08;\u5982\u8bf7\u6c42\u3001\u54cd\u5e94\u3001\u901a\u77e5&#xff09;<\/li>\n<li>\u751f\u547d\u5468\u671f\u7ba1\u7406&#xff1a;\u5b9a\u4e49\u4e86\u5b8c\u6574\u4ea4\u4e92\u7684\u591a\u4e2a\u9636\u6bb5<\/li>\n<li>\u6570\u636e\u4f20\u8f93&#xff1a;\u5b9a\u4e49\u4e86\u53ef\u7528\u7684\u901a\u4fe1\u4f20\u8f93\u534f\u8bae<\/li>\n<li>\u6743\u9650\u63a7\u5236&#xff1a;\u5b9a\u4e49\u8eab\u4efd\u8ba4\u8bc1\u3001\u8bbf\u95ee\u63a7\u5236<\/li>\n<li>\u5b9e\u7528\u5de5\u5177&#xff1a;\u8bf7\u6c42\u53d6\u6d88\u3001Ping\u673a\u5236\u3001<\/li>\n<\/ul>\n<h3>\u57fa\u7840\u534f\u8bae<\/h3>\n<p>\u57fa\u7840\u534f\u8bae\u4e0d\u5206\u5185\u5bb9\u4e3b\u8981\u4ecb\u7ecd\u4e86 MCP \u534f\u8bae\u4e2d\u6d88\u606f\u4ea4\u4e92\u7684\u89c4\u8303&#xff0c;\u57fa\u4e8e JSON-RPC 2.0 \u6807\u51c6&#xff0c;\u5b9a\u4e49\u4e86\u4e09\u79cd\u6d88\u606f\u7c7b\u578b\u53ca\u5176\u683c\u5f0f\u8981\u6c42\u3002<\/p>\n<ul>\n<li>\u8bf7\u6c42&#xff08;Requests&#xff09;&#xff1a;\u6a21\u578b\u6216\u5de5\u5177\u4e3b\u52a8\u53d1\u8d77\u64cd\u4f5c&#xff08;\u6bd4\u5982 \u201c\u5e2e\u6211\u67e5\u4e0b\u4eca\u5929\u7684\u5929\u6c14\u201d&#xff09;&#xff0c;\u5fc5\u987b\u5e26\u4e00\u4e2a\u552f\u4e00 \u201c\u7f16\u53f7\u201d&#xff08;ID&#xff09;&#xff0c;\u907f\u514d\u6df7\u4e71\u3002<\/li>\n<li>\u54cd\u5e94&#xff08;Responses&#xff09;&#xff1a;\u5bf9\u8bf7\u6c42\u7684\u56de\u590d&#xff08;\u6bd4\u5982 \u201c\u4eca\u5929\u6674\u5929&#xff0c;\u6e29\u5ea6 25\u2103\u201d&#xff09;&#xff0c;\u5fc5\u987b\u548c\u8bf7\u6c42\u7684 \u201c\u7f16\u53f7\u201d \u5bf9\u5e94&#xff0c;\u8981\u4e48\u8fd4\u56de\u7ed3\u679c&#xff0c;\u8981\u4e48\u62a5\u9519&#xff08;\u6bd4\u5982 \u201c\u67e5\u4e0d\u5230\u5929\u6c14\u201d&#xff09;\u3002<\/li>\n<li>\u901a\u77e5&#xff08;Notifications&#xff09;&#xff1a;\u5355\u5411\u6d88\u606f&#xff08;\u6bd4\u5982\u5de5\u5177\u4e3b\u52a8\u544a\u8bc9\u6a21\u578b \u201c\u6570\u636e\u66f4\u65b0\u4e86\u201d&#xff09;&#xff0c;\u4e0d\u9700\u8981\u56de\u590d&#xff0c;\u5c31\u50cf\u53d1\u4e00\u6761\u5fae\u4fe1\u6d88\u606f\u4e0d\u8981\u6c42\u5bf9\u65b9\u5fc5\u987b\u56de\u3002<\/li>\n<\/ul>\n<h3>\u751f\u547d\u5468\u671f\u7ba1\u7406<\/h3>\n<p>\u751f\u547d\u5468\u671f\u7ba1\u7406\u4ecb\u7ecd\u4e86MCP\u4e2d\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u8fde\u63a5\u7684\u751f\u547d\u5468\u671f\u7ba1\u7406&#xff0c;\u6838\u5fc3\u662f\u786e\u4fdd\u53cc\u65b9\u5728\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u80fd\u6b63\u786e\u534f\u5546\u80fd\u529b\u5e76\u7ba1\u7406\u72b6\u6001\u3002<\/p>\n<p>MCP \u89c4\u5b9a\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7684\u8fde\u63a5\u5fc5\u987b\u7ecf\u5386\u4e09\u4e2a\u9636\u6bb5&#xff0c;\u5c31\u50cf\u4e24\u4e2a\u4eba\u6253\u7535\u8bdd\u8981\u5148 \u201c\u6253\u62db\u547c\u786e\u8ba4\u8eab\u4efd\u201d&#xff0c;\u518d \u201c\u6b63\u5f0f\u804a\u5929\u201d&#xff0c;\u6700\u540e \u201c\u793c\u8c8c\u6302\u65ad\u201d \u4e00\u6837&#xff1a;<\/p>\n<ul>\n<li>\u521d\u59cb\u5316\u9636\u6bb5&#xff08;Initialization&#xff09;&#xff1a;\u53cc\u65b9\u5148 \u201c\u4e92\u76f8\u8ba4\u8bc6\u201d&#xff0c;\u786e\u8ba4\u80fd\u542c\u61c2\u5bf9\u65b9\u7684 \u201c\u8bed\u8a00\u201d&#xff08;\u534f\u8bae\u7248\u672c&#xff09;&#xff0c;\u5e76\u544a\u8bc9\u5bf9\u65b9\u81ea\u5df1\u4f1a\u4ec0\u4e48 \u201c\u6280\u80fd\u201d&#xff08;\u652f\u6301\u7684\u529f\u80fd&#xff09;\u3002<\/li>\n<li>\u64cd\u4f5c\u9636\u6bb5&#xff08;Operation&#xff09;&#xff1a;\u53cc\u65b9\u6309\u7167\u521d\u59cb\u5316\u65f6\u534f\u5546\u597d\u7684 \u201c\u6280\u80fd\u201d&#xff0c;\u6b63\u5f0f\u5f00\u59cb\u901a\u4fe1\u548c\u6267\u884c\u4efb\u52a1&#xff08;\u6bd4\u5982\u8c03\u7528\u5de5\u5177\u3001\u67e5\u8be2\u6570\u636e&#xff09;\u3002<\/li>\n<li>\u5173\u95ed\u9636\u6bb5&#xff08;Shutdown&#xff09;&#xff1a;\u53cc\u65b9 \u201c\u793c\u8c8c\u6302\u65ad\u7535\u8bdd\u201d&#xff0c;\u5e72\u51c0\u5229\u843d\u5730\u65ad\u5f00\u8fde\u63a5&#xff0c;\u907f\u514d\u8d44\u6e90\u6d6a\u8d39\u3002<\/li>\n<\/ul>\n<p>\u751f\u547d\u4e2d\u671f\u7ba1\u7406\u5c31\u50cf\u4e24\u4e2a\u4eba\u5408\u4f5c\u5b8c\u6210\u4efb\u52a1\u524d\u9700\u8981\u5148 \u201c\u786e\u8ba4\u5f7c\u6b64\u80fd\u914d\u5408\u201d \u4e00\u6837&#xff0c;MCP \u7684\u751f\u547d\u5468\u671f\u7ba1\u7406\u786e\u4fdd&#xff1a;<\/p>\n<ul>\n<li>\u517c\u5bb9\u6027&#xff1a;\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7528\u76f8\u540c\u7684 \u201c\u8bed\u8a00\u201d&#xff08;\u534f\u8bae\u7248\u672c&#xff09;\u6c9f\u901a&#xff0c;\u907f\u514d \u201c\u9e21\u540c\u9e2d\u8bb2\u201d\u3002<\/li>\n<li>\u5b89\u5168\u6027&#xff1a;\u901a\u8fc7\u534f\u5546\u80fd\u529b&#xff0c;\u9650\u5236\u53cc\u65b9\u53ea\u80fd\u4f7f\u7528\u5141\u8bb8\u7684\u529f\u80fd&#xff0c;\u9632\u6b62\u8d8a\u6743\u64cd\u4f5c&#xff08;\u6bd4\u5982\u670d\u52a1\u5668\u4e0d\u80fd\u968f\u4fbf\u8bbf\u95ee\u5ba2\u6237\u7aef\u672a\u6388\u6743\u7684\u6587\u4ef6&#xff09;\u3002<\/li>\n<li>\u7a33\u5b9a\u6027&#xff1a;\u660e\u786e\u7684\u8fde\u63a5\u5efa\u7acb\u548c\u5173\u95ed\u6d41\u7a0b&#xff0c;\u52a0\u4e0a\u8d85\u65f6\u673a\u5236&#xff0c;\u907f\u514d\u8fde\u63a5 \u201c\u50f5\u6b7b\u201d \u6216\u8d44\u6e90\u6d6a\u8d39\u3002<\/li>\n<\/ul>\n<h3>\u6570\u636e\u4f20\u8f93<\/h3>\n<p>\u4f20\u8f93\u4e3b\u8981\u8bb2\u4e86 \u201c\u6a21\u578b\u548c\u5de5\u5177\u4e4b\u95f4\u901a\u8fc7\u4ec0\u4e48\u901a\u9053\u6253\u7535\u8bdd\u201d \u7684\u95ee\u9898\u3002\u4f20\u8f93\u5305\u62ec\u5982\u4e0b\u4e09\u79cd\u65b9\u5f0f<\/p>\n<ul>\n<li>stdio&#xff08;\u6807\u51c6\u8f93\u5165 \/ \u8f93\u51fa&#xff0c;\u7c7b\u4f3c\u547d\u4ee4\u884c\u901a\u4fe1&#xff09;<\/li>\n<li>HTTP&#xff08;\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae&#xff0c;\u7f51\u9875\u5e38\u7528\u7684\u901a\u4fe1\u65b9\u5f0f&#xff09;<\/li>\n<li>WebSocket&#xff08;\u5168\u53cc\u5de5\u901a\u4fe1&#xff0c;\u5b9e\u65f6\u4ea4\u4e92\u5fc5\u5907&#xff09;<\/li>\n<\/ul>\n<p>MCP \u534f\u8bae\u652f\u6301\u591a\u79cd\u4f20\u8f93\u65b9\u5f0f\u662f\u4e3a\u4e86\u9002\u914d\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f<\/p>\n<ul>\n<li>\u9002\u914d\u4e0d\u540c\u573a\u666f&#xff1a;\u672c\u5730\u5de5\u5177\u7528 stdio \u66f4\u7b80\u5355&#xff0c;\u8fdc\u7a0b\u5de5\u5177\u7528 HTTP\/HTTPS \u66f4\u901a\u7528&#xff0c;\u5b9e\u65f6\u4ea4\u4e92\u7528 WebSocket \u66f4\u9ad8\u6548\u3002<\/li>\n<li>\u7075\u6d3b\u6027\u548c\u517c\u5bb9\u6027&#xff1a;\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5de5\u5177\u7684\u90e8\u7f72\u73af\u5883&#xff08;\u672c\u5730 \/ \u4e91\u7aef&#xff09;\u3001\u6570\u636e\u4f20\u8f93\u9700\u6c42&#xff08;\u5b9e\u65f6\u6027 \/ \u5b89\u5168\u6027&#xff09;\u9009\u62e9\u6700\u5408\u9002\u7684 \u201c\u901a\u9053\u201d&#xff0c;\u5c31\u50cf\u9009\u62e9\u6700\u9002\u5408\u7684\u4ea4\u901a\u65b9\u5f0f&#xff08;\u8d70\u8def \/ \u5f00\u8f66 \/ \u5750\u98de\u673a&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u6743\u9650\u63a7\u5236\u89c4\u5219<\/h3>\n<p>\u6743\u9650\u63a7\u5236\u89c4\u5219&#xff0c;\u4e5f\u5c31\u662f\u89e3\u51b3 \u201c\u6a21\u578b\u548c\u5de5\u5177\u4e4b\u95f4\u5982\u4f55\u5b89\u5168\u5730\u4e92\u76f8\u4fe1\u4efb\u3001\u907f\u514d\u8d8a\u6743\u64cd\u4f5c\u201d \u7684\u95ee\u9898\u3002\u89c4\u5b9a\u4e86 \u201c\u8c01\u80fd\u8bbf\u95ee\u4ec0\u4e48\u8d44\u6e90&#xff0c;\u4ee5\u53ca\u5982\u4f55\u9a8c\u8bc1\u8eab\u4efd\u548c\u6743\u9650\u201d\u3002<\/p>\n<p>\u4f8b&#xff1a;\u8ba9\u667a\u80fd\u52a9\u624b&#xff08;\u6a21\u578b&#xff09;\u5e2e\u4f60\u67e5\u7535\u8111\u91cc\u7684\u6587\u4ef6&#xff0c;\u4f46\u80af\u5b9a\u4e0d\u5e0c\u671b\u5b83\u672a\u7ecf\u5141\u8bb8\u5c31\u5220\u9664\u6587\u4ef6\u6216\u8bbf\u95ee\u9690\u79c1\u6570\u636e\u3002MCP \u7684\u6743\u9650\u63a7\u5236\u5c31\u662f\u4e3a\u4e86\u786e\u4fdd:<\/p>\n<ul>\n<li>\u6a21\u578b\u53ea\u80fd\u8bbf\u95ee\u5b83\u88ab\u5141\u8bb8\u7684\u5de5\u5177\u548c\u6570\u636e&#xff08;\u6bd4\u5982\u53ea\u80fd\u67e5\u8d22\u52a1\u6570\u636e&#xff0c;\u4e0d\u80fd\u6539\u5de5\u8d44\u8868&#xff09;\u3002<\/li>\n<li>\u5de5\u5177\u53ea\u80fd\u6267\u884c\u6a21\u578b\u6388\u6743\u7684\u64cd\u4f5c&#xff08;\u6bd4\u5982\u6570\u636e\u5e93\u5de5\u5177\u53ea\u80fd\u6267\u884c\u67e5\u8be2&#xff0c;\u4e0d\u80fd\u6267\u884c\u5220\u9664\u8bed\u53e5&#xff09;\u3002<\/li>\n<li>\u9632\u6b62\u574f\u4eba\u5192\u5145\u6a21\u578b\u6216\u5de5\u5177\u641e\u7834\u574f&#xff08;\u6bd4\u5982\u9ed1\u5ba2\u4f2a\u88c5\u6210\u6a21\u578b\u9a97\u53d6\u5de5\u5177\u7684\u654f\u611f\u6570\u636e&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u56e0\u6b64\u4e3b\u8981\u89e3\u51b3\u4e0b\u97623\u4e2a\u95ee\u9898<\/p>\n<ul>\n<li>\u8eab\u4efd\u8ba4\u8bc1&#xff08;\u8c01\u5728\u8bbf\u95ee&#xff1f;&#xff09;<\/li>\n<li>\u6743\u9650\u6388\u6743&#xff08;\u5141\u8bb8\u8bbf\u95ee\u4ec0\u4e48&#xff1f;&#xff09;<\/li>\n<li>\u8bbf\u95ee\u63a7\u5236&#xff08;\u5982\u4f55\u963b\u6b62\u8d8a\u6743&#xff1f;&#xff09;<\/li>\n<\/ul>\n<h3>\u5b9e\u7528\u5de5\u5177<\/h3>\n<p>MCP\u5b9a\u4e49\u4e86\u8bf7\u6c42\u53d6\u6d88\u673a\u5236\u3001\u957f\u64cd\u4f5c\u8fdb\u5ea6\u8ddf\u8e2a\u673a\u5236\u3001Ping\u673a\u5236<\/p>\n<ul>\n<li>\u8bf7\u6c42\u53d6\u6d88\u673a\u5236&#xff1a;\u4e5f\u5c31\u662f\u89e3\u51b3 \u201c\u5f53\u6a21\u578b\u6216\u5de5\u5177\u53d1\u51fa\u8bf7\u6c42\u540e&#xff0c;\u5982\u4f55\u4e2d\u9014\u53d6\u6d88\u4e0d\u518d\u9700\u8981\u7684\u64cd\u4f5c\u201d \u7684\u95ee\u9898\u3002\u7528\u5927\u767d\u8bdd\u6765\u8bf4&#xff0c;\u5c31\u50cf\u4f60\u70b9\u5916\u5356\u540e\u7a81\u7136\u4e0d\u60f3\u5403\u4e86&#xff0c;\u9700\u8981\u53d6\u6d88\u8ba2\u5355\u4e00\u6837&#xff0c;MCP \u534f\u8bae\u89c4\u5b9a\u4e86\u5982\u4f55\u5b89\u5168\u5730\u7ec8\u6b62\u4e00\u4e2a\u6b63\u5728\u8fdb\u884c\u7684\u8bf7\u6c42\u3002<\/li>\n<li>\u957f\u64cd\u4f5c\u8fdb\u5ea6\u8ddf\u8e2a\u673a\u5236&#xff1a;\u8ba9\u6a21\u578b\u548c\u5de5\u5177\u5b9e\u65f6\u540c\u6b65\u4efb\u52a1\u8fdb\u5c55\u201d \u7684\u95ee\u9898&#xff0c;\u7c7b\u4f3c\u4e0b\u8f7d\u6587\u4ef6\u65f6\u663e\u793a\u7684\u8fdb\u5ea6\u6761\u3002<\/li>\n<li>Ping\u673a\u5236&#xff1a;\u68c0\u9a8c\u901a\u4fe1\u53cc\u65b9\u662f\u5426\u5b58\u6d3b<\/li>\n<\/ul>\n<h2>\u5176\u5b83 &#8211; \u5e94\u7528\u4ea4\u4e92\u6982\u8ff0<\/h2>\n<p>\u5927\u6a21\u578b\u662f\u4e0d\u4f1a\u6267\u884c\u4ee3\u7801&#xff0c;\u8fd9\u4e2a\u8fc7\u7a0b\u662fMCP server\u63d0\u4f9b\u7684\u5de5\u5177\u5b8c\u6210\u3002\u5f53\u5411\u5927\u6a21\u578b\u53d1\u8d77\u63d0\u95ee&#xff0c;\u5927\u6a21\u578b\u5206\u6790\u51fa\u9700\u8981\u6267\u884c\u5de5\u5177\u65f6&#xff0c;\u4f1a\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9client&#xff0c;\u7531client\u8bf7\u6c42mcp server\u83b7\u53d6\u7ed3\u679c\u3002\u5f97\u5230\u7ed3\u679c\u540e\u5c06\u5386\u53f2\u95ee\u9898\u52a0\u5de5\u5177\u7ed3\u679c\u7edf\u4e00\u63d0\u4ea4\u7ed9\u5927\u6a21\u578b\u5206\u6790&#xff0c;\u6700\u7ec8\u5927\u6a21\u578b\u4f9d\u8d56\u5b8c\u6574\u7684\u4fe1\u606f\u7ed9\u51fa\u5206\u6790\u7ed3\u679c\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p>[1]mcp\u4ecb\u7ecd&#xff0c;https:\/\/modelcontextprotocol.io\/introduction [2]\u534f\u8bae\u89c4\u8303&#xff0c;https:\/\/modelcontextprotocol.io\/specification\/2025-03-26\/basic<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb687\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf8\u6b21\u3002MCP\u534f\u8bae\uff1a\u5927\u8bed\u8a00\u6a21\u578b\u4e0e\u5916\u90e8\u5de5\u5177\u7684\u6807\u51c6\u5316\u6865\u6881 Anthropic\u516c\u53f8\u4e8e2024\u5e74\u63a8\u51faMCP\uff08Model Context Protocol\uff09\uff0c\u65e8\u5728\u7edf\u4e00\u5927\u8bed\u8a00\u6a21\u578b\uff08\u5982GPT-4\uff09\u4e0e\u5916\u90e8\u6570\u636e\u6e90\/\u5de5\u5177\u7684\u4ea4\u4e92\u6807\u51c6\u3002\u8be5\u534f\u8bae\u91c7\u7528\u5206\u5c42\u67b6\u6784\uff08Host-Client-Server\uff09\u548cJSON-RPC 2.0\u901a\u4fe1\u89c4\u8303\uff0c\u652f\u6301\u591a\u6a21\u6001\u6570\u636e\u4f20\u8f93\uff0c\u6db5\u76d6\u4e09\u5927\u6838\u5fc3\u4ea4\u4e92\u9636\u6bb5\uff08\u521d\u59cb\u5316\u3001\u64cd\u4f5c\u3001\u5173\u95ed\uff09\u3002MCP\u63d0\u4f9b\u591a\u79cd\u4f20\u8f93\u65b9\u5f0f\uff08stdio\/HTTP\/WebSocket\uff09\u9002\u914d\u4e0d\u540c\u573a\u666f\uff0c\u5e76\u901a\u8fc7\u4e25\u683c\u7684\u6743\u9650\u63a7\u5236\u786e\u4fdd\u5b89\u5168\u6027\uff0c\u540c\u65f6\u5185\u7f6e\u8bf7\u6c42\u53d6\u6d88\u3001\u8fdb\u5ea6\u8ddf\u8e2a\u7b49\u5b9e\u7528\u673a\u5236\u3002<\/p>\n","protected":false},"author":2,"featured_media":41670,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[53,75],"topic":[],"class_list":["post-41671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-llm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MCP\u534f\u8bae\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/41671.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MCP\u534f\u8bae\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb687\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf8\u6b21\u3002MCP\u534f\u8bae\uff1a\u5927\u8bed\u8a00\u6a21\u578b\u4e0e\u5916\u90e8\u5de5\u5177\u7684\u6807\u51c6\u5316\u6865\u6881 Anthropic\u516c\u53f8\u4e8e2024\u5e74\u63a8\u51faMCP\uff08Model Context Protocol\uff09\uff0c\u65e8\u5728\u7edf\u4e00\u5927\u8bed\u8a00\u6a21\u578b\uff08\u5982GPT-4\uff09\u4e0e\u5916\u90e8\u6570\u636e\u6e90\/\u5de5\u5177\u7684\u4ea4\u4e92\u6807\u51c6\u3002\u8be5\u534f\u8bae\u91c7\u7528\u5206\u5c42\u67b6\u6784\uff08Host-Client-Server\uff09\u548cJSON-RPC 2.0\u901a\u4fe1\u89c4\u8303\uff0c\u652f\u6301\u591a\u6a21\u6001\u6570\u636e\u4f20\u8f93\uff0c\u6db5\u76d6\u4e09\u5927\u6838\u5fc3\u4ea4\u4e92\u9636\u6bb5\uff08\u521d\u59cb\u5316\u3001\u64cd\u4f5c\u3001\u5173\u95ed\uff09\u3002MCP\u63d0\u4f9b\u591a\u79cd\u4f20\u8f93\u65b9\u5f0f\uff08stdio\/HTTP\/WebSocket\uff09\u9002\u914d\u4e0d\u540c\u573a\u666f\uff0c\u5e76\u901a\u8fc7\u4e25\u683c\u7684\u6743\u9650\u63a7\u5236\u786e\u4fdd\u5b89\u5168\u6027\uff0c\u540c\u65f6\u5185\u7f6e\u8bf7\u6c42\u53d6\u6d88\u3001\u8fdb\u5ea6\u8ddf\u8e2a\u7b49\u5b9e\u7528\u673a\u5236\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/41671.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-03T19:23:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250603192259-683f4b938b0e2.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/41671.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/41671.html\",\"name\":\"MCP\u534f\u8bae\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-03T19:23:00+00:00\",\"dateModified\":\"2025-06-03T19:23:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/41671.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/41671.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/41671.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MCP\u534f\u8bae\u5b66\u4e60\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MCP\u534f\u8bae\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/41671.html","og_locale":"zh_CN","og_type":"article","og_title":"MCP\u534f\u8bae\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb687\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf8\u6b21\u3002MCP\u534f\u8bae\uff1a\u5927\u8bed\u8a00\u6a21\u578b\u4e0e\u5916\u90e8\u5de5\u5177\u7684\u6807\u51c6\u5316\u6865\u6881 Anthropic\u516c\u53f8\u4e8e2024\u5e74\u63a8\u51faMCP\uff08Model Context Protocol\uff09\uff0c\u65e8\u5728\u7edf\u4e00\u5927\u8bed\u8a00\u6a21\u578b\uff08\u5982GPT-4\uff09\u4e0e\u5916\u90e8\u6570\u636e\u6e90\/\u5de5\u5177\u7684\u4ea4\u4e92\u6807\u51c6\u3002\u8be5\u534f\u8bae\u91c7\u7528\u5206\u5c42\u67b6\u6784\uff08Host-Client-Server\uff09\u548cJSON-RPC 2.0\u901a\u4fe1\u89c4\u8303\uff0c\u652f\u6301\u591a\u6a21\u6001\u6570\u636e\u4f20\u8f93\uff0c\u6db5\u76d6\u4e09\u5927\u6838\u5fc3\u4ea4\u4e92\u9636\u6bb5\uff08\u521d\u59cb\u5316\u3001\u64cd\u4f5c\u3001\u5173\u95ed\uff09\u3002MCP\u63d0\u4f9b\u591a\u79cd\u4f20\u8f93\u65b9\u5f0f\uff08stdio\/HTTP\/WebSocket\uff09\u9002\u914d\u4e0d\u540c\u573a\u666f\uff0c\u5e76\u901a\u8fc7\u4e25\u683c\u7684\u6743\u9650\u63a7\u5236\u786e\u4fdd\u5b89\u5168\u6027\uff0c\u540c\u65f6\u5185\u7f6e\u8bf7\u6c42\u53d6\u6d88\u3001\u8fdb\u5ea6\u8ddf\u8e2a\u7b49\u5b9e\u7528\u673a\u5236\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/41671.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-03T19:23:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250603192259-683f4b938b0e2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/41671.html","url":"https:\/\/www.wsisp.com\/helps\/41671.html","name":"MCP\u534f\u8bae\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-03T19:23:00+00:00","dateModified":"2025-06-03T19:23:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/41671.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/41671.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/41671.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MCP\u534f\u8bae\u5b66\u4e60"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/41671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=41671"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/41671\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/41670"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=41671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=41671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=41671"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=41671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}