{"id":39612,"date":"2025-05-24T11:26:05","date_gmt":"2025-05-24T03:26:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39612.html"},"modified":"2025-05-24T11:26:05","modified_gmt":"2025-05-24T03:26:05","slug":"%e5%a6%82%e4%bd%95%e7%94%a8-5-%e8%a1%8c-%e4%bb%a3%e7%a0%81-%e6%9e%84%e5%bb%ba-mcp-%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39612.html","title":{"rendered":"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668"},"content":{"rendered":"<h3>\u5f15\u8a00<\/h3>\n<p>\u968f\u7740\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u7684\u5e7f\u6cdb\u5e94\u7528&#xff0c;\u5982\u4f55\u4e3a LLM \u6269\u5c55\u5b9a\u5236\u5316\u529f\u80fd\u6210\u4e3a\u5f00\u53d1\u8005\u5173\u6ce8\u7684\u91cd\u70b9\u3002\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae&#xff08;MCP&#xff09; \u7684\u51fa\u73b0\u63d0\u4f9b\u4e86\u4e00\u79cd\u6807\u51c6\u5316\u65b9\u6848&#xff0c;\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u670d\u52a1\u5668\u66b4\u9732\u5de5\u5177\u63a5\u53e3&#xff0c;\u4f9b LLM \u76f4\u63a5\u8c03\u7528\u3002\u800c Gradio \u7684\u6700\u65b0\u66f4\u65b0&#xff0c;\u4f7f\u5f97\u4ec5\u9700\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u5feb\u901f\u642d\u5efa MCP \u670d\u52a1\u5668&#xff0c;\u5c06\u4efb\u610f Python \u51fd\u6570\u8f6c\u5316\u4e3a LLM \u53ef\u7528\u7684\u5de5\u5177\u3002<\/p>\n<hr \/>\n<h3>\u5feb\u901f\u4e0a\u624b&#xff1a;5 \u884c\u4ee3\u7801\u5b9e\u73b0\u5b57\u6bcd\u8ba1\u6570\u5de5\u5177<\/h3>\n<h4>\u5b89\u88c5\u4f9d\u8d56<\/h4>\n<p>pip <span class=\"token function\">install<\/span> <span class=\"token string\">&#034;gradio[mcp]&#034;<\/span><\/p>\n<h4>\u793a\u4f8b\u4ee3\u7801<\/h4>\n<p><span class=\"token keyword\">import<\/span> gradio <span class=\"token keyword\">as<\/span> gr<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">letter_counter<\/span><span class=\"token punctuation\">(<\/span>word<span class=\"token punctuation\">,<\/span> letter<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u7edf\u8ba1\u6307\u5b9a\u5b57\u6bcd\u5728\u5355\u8bcd\u4e2d\u7684\u51fa\u73b0\u6b21\u6570&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> word<span class=\"token punctuation\">.<\/span>lower<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>count<span class=\"token punctuation\">(<\/span>letter<span class=\"token punctuation\">.<\/span>lower<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>demo <span class=\"token operator\">&#061;<\/span> gr<span class=\"token punctuation\">.<\/span>Interface<span class=\"token punctuation\">(<\/span>fn<span class=\"token operator\">&#061;<\/span>letter_counter<span class=\"token punctuation\">,<\/span> inputs<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;text&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;text&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> outputs<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;number&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\ndemo<span class=\"token punctuation\">.<\/span>launch<span class=\"token punctuation\">(<\/span>mcp_server<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd0\u884c\u6548\u679c<\/p>\n<li>\u542f\u52a8 Gradio Web \u754c\u9762&#xff08;\u9ed8\u8ba4\u5730\u5740 http:\/\/localhost:7860&#xff09;<\/li>\n<li>\u81ea\u52a8\u751f\u6210 MCP \u670d\u52a1\u7aef\u70b9&#xff1a;http:\/\/localhost:7860\/gradio_api\/mcp\/sse<\/li>\n<li>\u51fd\u6570\u6587\u6863\u5b57\u7b26\u4e32\u81ea\u52a8\u8f6c\u5316\u4e3a\u5de5\u5177\u63cf\u8ff0&#xff0c;\u652f\u6301 MCP \u5ba2\u6237\u7aef&#xff08;\u5982 Cursor\u3001Cline&#xff09;\u89e3\u6790\u8c03\u7528\u3002<\/li>\n<hr \/>\n<h3>\u6df1\u5165\u914d\u7f6e&#xff1a;\u4ece\u672c\u5730\u5230\u4e91\u7aef<\/h3>\n<h4>1. \u73af\u5883\u53d8\u91cf\u63a7\u5236<\/h4>\n<p><span class=\"token comment\"># \u901a\u8fc7\u73af\u5883\u53d8\u91cf\u5168\u5c40\u542f\u7528 MCP \u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">GRADIO_MCP_SERVER<\/span><span class=\"token operator\">&#061;<\/span>True<\/p>\n<h4>2. \u5904\u7406\u6587\u4ef6\u4e0e\u56fe\u50cf<\/h4>\n<p>Gradio \u81ea\u52a8\u5b8c\u6210\u4ee5\u4e0b\u8f6c\u6362&#xff1a;<\/p>\n<ul>\n<li>Base64 \u7f16\u7801\u5b57\u7b26\u4e32 \u2194 \u6587\u4ef6\u6570\u636e<\/li>\n<li>\u56fe\u50cf\u683c\u5f0f\u81ea\u52a8\u9002\u914d&#xff08;\u652f\u6301 PNG\/JPEG \u7b49\u5e38\u89c1\u683c\u5f0f&#xff09;<\/li>\n<li>\u4e34\u65f6\u6587\u4ef6\u5b58\u50a8\u7ba1\u7406<\/li>\n<\/ul>\n<p>\u6700\u4f73\u5b9e\u8df5&#xff1a;\u8f93\u5165\u6587\u4ef6\u5efa\u8bae\u4f7f\u7528\u5b8c\u6574 URL&#xff08;\u5982 https:\/\/example.com\/image.png&#xff09;&#xff0c;\u907f\u514d\u672c\u5730\u8def\u5f84\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<h4>3. \u56fd\u5185\u6258\u7ba1\u4e0e\u672c\u5730\u90e8\u7f72\u65b9\u6848<\/h4>\n<p>\u82e5\u9700\u6258\u7ba1 Gradio MCP \u670d\u52a1\u5668&#xff0c;\u53ef\u9009\u62e9\u4ee5\u4e0b\u65b9\u6848&#xff1a;<\/p>\n<hr \/>\n<h5>\u65b9\u6848\u4e00&#xff1a;\u963f\u91cc\u4e91\u5f39\u6027\u8ba1\u7b97&#xff08;ECS&#xff09;<\/h5>\n<p>\u963f\u91cc\u4e91\u63d0\u4f9b\u5f39\u6027\u4e91\u670d\u52a1\u5668&#xff08;ECS&#xff09;&#xff0c;\u652f\u6301\u5feb\u901f\u90e8\u7f72 Gradio \u5e94\u7528\u5e76\u5bf9\u5916\u63d0\u4f9b MCP \u670d\u52a1\u3002 \u6b65\u9aa4&#xff1a;<\/p>\n<li>\u6ce8\u518c\u963f\u91cc\u4e91\u8d26\u53f7\u5e76\u521b\u5efa ECS \u5b9e\u4f8b&#xff08;\u63a8\u8350\u9009\u62e9\u6309\u91cf\u4ed8\u8d39\u6a21\u5f0f&#xff09;\u3002<\/li>\n<li>\u5728\u5b9e\u4f8b\u4e2d\u5b89\u88c5 Python \u548c Gradio \u4f9d\u8d56&#xff1a;pip <span class=\"token function\">install<\/span> <span class=\"token string\">&#034;gradio[mcp]&#034;<\/span>\n <\/li>\n<li>\u4e0a\u4f20\u5e76\u8fd0\u884c\u4f60\u7684 Gradio \u811a\u672c&#xff08;\u5982 app.py&#xff09;&#xff0c;\u786e\u4fdd\u542f\u7528 MCP \u670d\u52a1\u5668&#xff1a;demo<span class=\"token punctuation\">.<\/span>launch<span class=\"token punctuation\">(<\/span>mcp_server<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span> server_name<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;0.0.0.0&#034;<\/span><span class=\"token punctuation\">)<\/span>\n <\/li>\n<li>\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u914d\u7f6e\u5b89\u5168\u7ec4\u89c4\u5219&#xff0c;\u5f00\u653e\u5bf9\u5e94\u7aef\u53e3&#xff08;\u5982 7860&#xff09;\u3002<\/li>\n<li>\u901a\u8fc7\u516c\u7f51 IP \u6216\u7ed1\u5b9a\u7684\u57df\u540d\u8bbf\u95ee MCP \u670d\u52a1&#xff0c;\u793a\u4f8b\u914d\u7f6e&#xff1a;<span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;mcpServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;gradio&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string\">&#034;url&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;http:\/\/&lt;\u4f60\u7684\u963f\u91cc\u4e91\u516c\u7f51IP&gt;:7860\/gradio_api\/mcp\/sse&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<hr \/>\n<h5>\u65b9\u6848\u4e8c&#xff1a;\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668<\/h5>\n<p>\u817e\u8baf\u4e91\u63d0\u4f9b\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668&#xff0c;\u9002\u5408\u5feb\u901f\u90e8\u7f72\u4e2d\u5c0f\u578b\u5e94\u7528\u3002 \u6b65\u9aa4&#xff1a;<\/p>\n<li>\u6ce8\u518c\u817e\u8baf\u4e91\u8d26\u53f7\u5e76\u521b\u5efa\u8f7b\u91cf\u670d\u52a1\u5668\u5b9e\u4f8b\u3002<\/li>\n<li>\u914d\u7f6e\u73af\u5883\u5e76\u90e8\u7f72 Gradio \u5e94\u7528&#xff08;\u540c\u4e0a&#xff09;\u3002<\/li>\n<li>\u7ed1\u5b9a\u516c\u7f51 IP \u5e76\u5f00\u653e\u9632\u706b\u5899\u7aef\u53e3\u3002<\/li>\n<li>\u4f7f\u7528\u516c\u7f51 IP \u6216\u57df\u540d\u914d\u7f6e MCP \u5ba2\u6237\u7aef&#xff1a;<span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;mcpServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;gradio&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string\">&#034;url&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;http:\/\/&lt;\u817e\u8baf\u4e91\u516c\u7f51IP&gt;:7860\/gradio_api\/mcp\/sse&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<hr \/>\n<h5>\u65b9\u6848\u4e09&#xff1a;\u672c\u5730\u90e8\u7f72 &#043; \u5185\u7f51\u7a7f\u900f<\/h5>\n<p>\u82e5\u9700\u5728\u672c\u5730\u673a\u5668\u8fd0\u884c MCP \u670d\u52a1\u5668\u5e76\u901a\u8fc7\u516c\u7f51\u8bbf\u95ee&#xff0c;\u53ef\u4f7f\u7528\u5185\u7f51\u7a7f\u900f\u5de5\u5177&#xff08;\u5982 frp \u6216 ngrok&#xff09;\u3002 \u6b65\u9aa4&#xff1a;<\/p>\n<li>\u672c\u5730\u8fd0\u884c Gradio \u5e94\u7528&#xff1a;demo<span class=\"token punctuation\">.<\/span>launch<span class=\"token punctuation\">(<\/span>mcp_server<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">)<\/span>\n <\/li>\n<li>\u914d\u7f6e\u5185\u7f51\u7a7f\u900f\u5de5\u5177&#xff0c;\u5c06\u672c\u5730\u7aef\u53e3&#xff08;\u5982 7860&#xff09;\u6620\u5c04\u4e3a\u516c\u7f51 URL&#xff08;\u5982 https:\/\/your-ngrok-url.com&#xff09;\u3002<\/li>\n<li>\u914d\u7f6e MCP \u5ba2\u6237\u7aef&#xff1a;<span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;mcpServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;gradio&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string\">&#034;url&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;https:\/\/your-ngrok-url.com\/gradio_api\/mcp\/sse&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<hr \/>\n<h5>\u65b9\u6848\u56db&#xff1a;Wisemodel&#xff08;\u56fd\u5185\u6a21\u578b\u6258\u7ba1\u5e73\u53f0&#xff09;<\/h5>\n<p>Wisemodel \u662f\u56fd\u5185\u4e13\u4e3a AI \u6a21\u578b\u8bbe\u8ba1\u7684\u5171\u4eab\u4e0e\u90e8\u7f72\u5e73\u53f0&#xff0c;\u652f\u6301\u5feb\u901f\u53d1\u5e03\u548c\u6258\u7ba1 Gradio \u5e94\u7528\u3002 \u6b65\u9aa4&#xff1a;<\/p>\n<li>\u6ce8\u518c Wisemodel \u8d26\u53f7\u5e76\u521b\u5efa\u65b0\u9879\u76ee\u3002<\/li>\n<li>\u4e0a\u4f20 Gradio \u4ee3\u7801\u5e76\u914d\u7f6e\u8fd0\u884c\u73af\u5883\u3002<\/li>\n<li>\u5b8c\u6210\u90e8\u7f72\u540e&#xff0c;\u5e73\u53f0\u4f1a\u751f\u6210\u516c\u5f00\u8bbf\u95ee\u7684 URL&#xff0c;\u793a\u4f8b\u914d\u7f6e&#xff1a;<span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;mcpServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;gradio&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string\">&#034;url&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;https:\/\/wisemodel.cn\/&lt;\u4f60\u7684\u9879\u76ee\u8def\u5f84&gt;\/gradio_api\/mcp\/sse&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<hr \/>\n<h4>4. \u517c\u5bb9\u6027\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>\u5bf9\u4e8e\u4e0d\u652f\u6301 SSE \u534f\u8bae\u7684\u5ba2\u6237\u7aef&#xff08;\u5982 Claude Desktop&#xff09;&#xff0c;\u53ef\u901a\u8fc7 mcp-remote \u8f6c\u53d1\u670d\u52a1\u517c\u5bb9&#xff1a;<\/p>\n<p><span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> -g mcp-remote<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;mcpServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;gradio&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;npx&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;mcp-remote&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;http:\/\/your-server:port\/gradio_api\/mcp\/sse&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<hr \/>\n<h3>\u6838\u5fc3\u4f18\u52bf\u4e0e\u573a\u666f<\/h3>\n<h4>\u81ea\u52a8\u5316\u5de5\u5177\u751f\u6210<\/h4>\n<ul>\n<li>\u6bcf\u4e2a API \u7aef\u70b9\u81ea\u52a8\u6620\u5c04\u4e3a MCP \u5de5\u5177<\/li>\n<li>\u51fd\u6570\u7b7e\u540d\u4e0e\u6587\u6863\u5b57\u7b26\u4e32\u81ea\u52a8\u751f\u6210 Schema<\/li>\n<li>\u652f\u6301\u590d\u6742\u7c7b\u578b&#xff08;\u5982\u56fe\u50cf\u3001\u97f3\u9891\u3001\u6587\u4ef6&#xff09;<\/li>\n<\/ul>\n<h4>\u5178\u578b\u5e94\u7528\u573a\u666f<\/h4>\n<ul>\n<li>\u6570\u636e\u5904\u7406&#xff1a;\u8d28\u56e0\u6570\u5206\u89e3\u3001\u6587\u672c\u7edf\u8ba1<\/li>\n<li>\u591a\u5a92\u4f53\u751f\u6210&#xff1a;\u56fe\u50cf\u7f16\u8f91\u3001\u97f3\u9891\u5408\u6210<\/li>\n<li>\u9886\u57df\u4e13\u7528\u5de5\u5177&#xff1a;\u7a0e\u52a1\u8ba1\u7b97\u3001\u79d1\u5b66\u6a21\u62df<\/li>\n<\/ul>\n<hr \/>\n<h3>\u603b\u7ed3<\/h3>\n<p>Gradio \u7684 MCP \u96c6\u6210\u6781\u5927\u964d\u4f4e\u4e86\u4e3a LLM \u6269\u5c55\u529f\u80fd\u7684\u6280\u672f\u95e8\u69db\u3002\u5f00\u53d1\u8005\u53ea\u9700\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5f00\u53d1&#xff0c;\u5373\u53ef\u5feb\u901f\u6784\u5efa\u6807\u51c6\u5316\u5de5\u5177\u63a5\u53e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb753\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf23\u6b21\u3002Gradio \u7684 MCP \u96c6\u6210\u6781\u5927\u964d\u4f4e\u4e86\u4e3a LLM \u6269\u5c55\u529f\u80fd\u7684\u6280\u672f\u95e8\u69db\u3002\u5f00\u53d1\u8005\u53ea\u9700\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5f00\u53d1\uff0c\u5373\u53ef\u5feb\u901f\u6784\u5efa\u6807\u51c6\u5316\u5de5\u5177\u63a5\u53e3\u3002\u7acb\u5373\u5c1d\u8bd5\u5c06\u4f60\u7684 Python \u51fd\u6570\u8f6c\u5316\u4e3a LLM \u5de5\u5177\u5427\uff01<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,50,190],"topic":[],"class_list":["post-39612","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-50","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668 - \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\/39612.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb753\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf23\u6b21\u3002Gradio \u7684 MCP \u96c6\u6210\u6781\u5927\u964d\u4f4e\u4e86\u4e3a LLM \u6269\u5c55\u529f\u80fd\u7684\u6280\u672f\u95e8\u69db\u3002\u5f00\u53d1\u8005\u53ea\u9700\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5f00\u53d1\uff0c\u5373\u53ef\u5feb\u901f\u6784\u5efa\u6807\u51c6\u5316\u5de5\u5177\u63a5\u53e3\u3002\u7acb\u5373\u5c1d\u8bd5\u5c06\u4f60\u7684 Python \u51fd\u6570\u8f6c\u5316\u4e3a LLM \u5de5\u5177\u5427\uff01\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39612.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-24T03:26:05+00:00\" \/>\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\/39612.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39612.html\",\"name\":\"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-24T03:26:05+00:00\",\"dateModified\":\"2025-05-24T03:26:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39612.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39612.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39612.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668\"}]},{\"@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":"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668 - \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\/39612.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb753\u6b21\uff0c\u70b9\u8d5e20\u6b21\uff0c\u6536\u85cf23\u6b21\u3002Gradio \u7684 MCP \u96c6\u6210\u6781\u5927\u964d\u4f4e\u4e86\u4e3a LLM \u6269\u5c55\u529f\u80fd\u7684\u6280\u672f\u95e8\u69db\u3002\u5f00\u53d1\u8005\u53ea\u9700\u4e13\u6ce8\u4e1a\u52a1\u903b\u8f91\u5f00\u53d1\uff0c\u5373\u53ef\u5feb\u901f\u6784\u5efa\u6807\u51c6\u5316\u5de5\u5177\u63a5\u53e3\u3002\u7acb\u5373\u5c1d\u8bd5\u5c06\u4f60\u7684 Python \u51fd\u6570\u8f6c\u5316\u4e3a LLM \u5de5\u5177\u5427\uff01","og_url":"https:\/\/www.wsisp.com\/helps\/39612.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-24T03:26:05+00:00","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\/39612.html","url":"https:\/\/www.wsisp.com\/helps\/39612.html","name":"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-24T03:26:05+00:00","dateModified":"2025-05-24T03:26:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39612.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39612.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39612.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u7528 5 \u884c \u4ee3\u7801 \u6784\u5efa MCP \u670d\u52a1\u5668"}]},{"@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\/39612","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=39612"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39612\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39612"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}