{"id":18811,"date":"2025-04-19T01:12:06","date_gmt":"2025-04-18T17:12:06","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/18811.html"},"modified":"2025-04-19T01:12:06","modified_gmt":"2025-04-18T17:12:06","slug":"%e5%a6%82%e4%bd%95%e5%88%a9%e7%94%a8dify%e6%90%ad%e5%bb%bamcp%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%9a%e6%9e%84%e5%bb%ba%e7%81%b5%e6%b4%bb%e7%9a%84ai%e5%ba%94%e7%94%a8%e7%94%9f%e6%80%81%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/18811.html","title":{"rendered":"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf"},"content":{"rendered":"<h2>\u4f7f\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\u5b8c\u6574\u6307\u5357<\/h2>\n<h3>\u5f15\u8a00<\/h3>\n<p>\u968f\u7740\u4eba\u5de5\u667a\u80fd\u6280\u672f\u7684\u5feb\u901f\u53d1\u5c55&#xff0c;\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u5e94\u7528\u5df2\u7ecf\u6210\u4e3a\u5404\u884c\u5404\u4e1a\u63d0\u5347\u6548\u7387\u548c\u521b\u65b0\u7684\u91cd\u8981\u5de5\u5177\u3002\u5728\u8fd9\u4e2a\u80cc\u666f\u4e0b&#xff0c;\u5c06AI\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\u4e0e\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae&#xff08;Model Context Protocol&#xff0c;MCP&#xff09;\u76f8\u7ed3\u5408&#xff0c;\u53ef\u4ee5\u521b\u5efa\u66f4\u52a0\u5f3a\u5927\u3001\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf\u3002\u672c\u6307\u5357\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Dify&#xff08;\u4e00\u4e2a\u5f00\u6e90\u7684LLM\u5e94\u7528\u5f00\u53d1\u5e73\u53f0&#xff09;\u642d\u5efaMCP\u670d\u52a1\u5668&#xff0c;\u4f7f\u60a8\u80fd\u591f\u5c06Dify\u5e94\u7528\u65e0\u7f1d\u96c6\u6210\u5230\u652f\u6301MCP\u534f\u8bae\u7684AI\u5ba2\u6237\u7aef&#xff08;\u5982Claude Desktop\u3001Cursor\u7b49&#xff09;\u4e2d\u3002<\/p>\n<h3>\u80cc\u666f\u77e5\u8bc6<\/h3>\n<h4>\u4ec0\u4e48\u662fDify&#xff1f;<\/h4>\n<p>Dify\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u5927\u8bed\u8a00\u6a21\u578b(LLM)\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\u3002\u5b83\u878d\u5408\u4e86\u540e\u7aef\u5373\u670d\u52a1&#xff08;Backend as Service&#xff09;\u548cLLMOps\u7684\u7406\u5ff5&#xff0c;\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u751f\u4ea7\u7ea7\u7684\u751f\u6210\u5f0fAI\u5e94\u7528\u3002\u5373\u4f7f\u662f\u975e\u6280\u672f\u4eba\u5458&#xff0c;\u4e5f\u80fd\u53c2\u4e0e\u5230AI\u5e94\u7528\u7684\u5b9a\u4e49\u548c\u6570\u636e\u8fd0\u8425\u8fc7\u7a0b\u4e2d\u3002<\/p>\n<p>Dify\u5185\u7f6e\u4e86\u6784\u5efaLLM\u5e94\u7528\u6240\u9700\u7684\u5173\u952e\u6280\u672f\u6808&#xff0c;\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u5bf9\u6570\u767e\u4e2a\u6a21\u578b\u7684\u652f\u6301<\/li>\n<li>\u76f4\u89c2\u7684Prompt\u7f16\u6392\u754c\u9762<\/li>\n<li>\u9ad8\u8d28\u91cf\u7684RAG\u5f15\u64ce<\/li>\n<li>\u7a33\u5065\u7684Agent\u6846\u67b6<\/li>\n<li>\u7075\u6d3b\u7684\u6d41\u7a0b\u7f16\u6392<\/li>\n<li>\u6613\u7528\u7684\u754c\u9762\u548cAPI<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u7279\u6027\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u4e13\u6ce8\u4e8e\u521b\u65b0\u548c\u4e1a\u52a1\u9700\u6c42&#xff0c;\u800c\u4e0d\u5fc5\u91cd\u590d\u9020\u8f6e\u5b50\u3002<\/p>\n<h4>\u4ec0\u4e48\u662fMCP\u670d\u52a1\u5668&#xff1f;<\/h4>\n<p>Model Context Protocol (MCP) \u662f\u7531Anthropic\u4e3b\u5bfc\u5e76\u4e8e2024\u5e74\u5f00\u6e90\u7684\u4e00\u79cd\u901a\u4fe1\u534f\u8bae&#xff0c;\u65e8\u5728\u89e3\u51b3\u5927\u578b\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u4e0e\u5916\u90e8\u6570\u636e\u6e90\u53ca\u5de5\u5177\u4e4b\u95f4\u65e0\u7f1d\u96c6\u6210\u7684\u9700\u6c42\u3002MCP\u670d\u52a1\u5668\u662f\u5b9e\u73b0\u8fd9\u4e00\u534f\u8bae\u7684\u670d\u52a1\u7aef\u7ec4\u4ef6&#xff0c;\u5b83\u5141\u8bb8AI\u6a21\u578b\u5b89\u5168\u5730\u4e0e\u672c\u5730\u548c\u8fdc\u7a0b\u8d44\u6e90\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<p>MCP\u91c7\u7528\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u67b6\u6784&#xff1a;<\/p>\n<ul>\n<li>MCP\u5ba2\u6237\u7aef&#xff08;Client&#xff09;&#xff1a;\u901a\u5e38\u662fAI\u5e94\u7528\u7a0b\u5e8f&#xff08;\u5982Claude Desktop\u6216\u5176\u4ed6LLM\u5de5\u5177&#xff09;&#xff0c;\u8d1f\u8d23\u53d1\u8d77\u8bf7\u6c42\u5e76\u4e0e\u670d\u52a1\u5668\u901a\u4fe1\u3002<\/li>\n<li>MCP\u670d\u52a1\u5668&#xff08;Server&#xff09;&#xff1a;\u8f7b\u91cf\u7ea7\u7a0b\u5e8f&#xff0c;\u8d1f\u8d23\u66b4\u9732\u7279\u5b9a\u7684\u6570\u636e\u6e90\u6216\u5de5\u5177\u529f\u80fd&#xff0c;\u5e76\u901a\u8fc7\u6807\u51c6\u5316\u534f\u8bae\u4e0e\u5ba2\u6237\u7aef\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n<p>MCP\u670d\u52a1\u5668\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u8d44\u6e90\u66b4\u9732&#xff1a;\u63d0\u4f9b\u6570\u636e\u5b9e\u4f53&#xff08;\u5982\u6587\u4ef6\u3001\u6570\u636e\u5e93\u8bb0\u5f55\u7b49&#xff09;\u7ed9\u5ba2\u6237\u7aef<\/li>\n<li>\u5de5\u5177\u63d0\u4f9b&#xff1a;\u66b4\u9732\u53ef\u6267\u884c\u529f\u80fd&#xff0c;\u8ba9\u5ba2\u6237\u7aef\u8c03\u7528\u5b8c\u6210\u7279\u5b9a\u4efb\u52a1<\/li>\n<li>\u52a8\u6001\u901a\u77e5&#xff1a;\u5f53\u8d44\u6e90\u53d1\u751f\u53d8\u5316\u65f6\u4e3b\u52a8\u63a8\u9001\u66f4\u65b0<\/li>\n<li>\u4f1a\u8bdd\u7ba1\u7406&#xff1a;\u5904\u7406\u5ba2\u6237\u7aef\u8fde\u63a5\u521d\u59cb\u5316\u3001\u80fd\u529b\u534f\u5546\u548c\u4f1a\u8bdd\u5173\u95ed<\/li>\n<\/ul>\n<h3>\u51c6\u5907\u5de5\u4f5c<\/h3>\n<p>\u5728\u5f00\u59cb\u642d\u5efaDify MCP\u670d\u52a1\u5668\u4e4b\u524d&#xff0c;\u6211\u4eec\u9700\u8981\u51c6\u5907\u4ee5\u4e0b\u73af\u5883\u548c\u5de5\u5177&#xff1a;<\/p>\n<h4>\u7cfb\u7edf\u8981\u6c42<\/h4>\n<ul>\n<li>CPU: \u81f3\u5c112\u6838<\/li>\n<li>RAM: \u81f3\u5c114GB<\/li>\n<li>\u64cd\u4f5c\u7cfb\u7edf: Linux&#xff08;\u63a8\u8350&#xff09;\u3001macOS\u6216Windows&#xff08;\u4f7f\u7528WSL 2&#xff09;<\/li>\n<li>Docker\u548cDocker Compose&#xff08;\u7528\u4e8e\u90e8\u7f72Dify&#xff09;<\/li>\n<li>Node.js\u73af\u5883&#xff08;\u7528\u4e8e\u8fd0\u884cMCP\u670d\u52a1\u5668&#xff09;<\/li>\n<\/ul>\n<h4>\u8f6f\u4ef6\u4f9d\u8d56<\/h4>\n<ul>\n<li>Docker 19.03\u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>Docker Compose 1.28\u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>Git&#xff08;\u7528\u4e8e\u514b\u9686\u4ee3\u7801\u4ed3\u5e93&#xff09;<\/li>\n<li>Node.js 14.0\u6216\u66f4\u9ad8\u7248\u672c&#xff08;\u5bf9\u4e8e\u67d0\u4e9bMCP\u670d\u52a1\u5668\u5b9e\u73b0&#xff09;<\/li>\n<li>Python 3.8\u6216\u66f4\u9ad8\u7248\u672c&#xff08;\u5bf9\u4e8e\u67d0\u4e9bMCP\u670d\u52a1\u5668\u5b9e\u73b0&#xff09;<\/li>\n<\/ul>\n<h3>\u90e8\u7f72Dify\u5e73\u53f0<\/h3>\n<p>\u9996\u5148&#xff0c;\u6211\u4eec\u9700\u8981\u90e8\u7f72Dify\u5e73\u53f0\u4f5c\u4e3a\u6211\u4eec\u7684AI\u5e94\u7528\u5f00\u53d1\u57fa\u7840\u3002\u6709\u4e24\u79cd\u4e3b\u8981\u7684\u90e8\u7f72\u65b9\u5f0f&#xff1a;\u4f7f\u7528Docker Compose\u6216\u672c\u5730\u6e90\u7801\u542f\u52a8\u3002\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528Docker Compose\u65b9\u5f0f&#xff0c;\u56e0\u4e3a\u5b83\u66f4\u7b80\u5355\u4e14\u9002\u5408\u751f\u4ea7\u73af\u5883\u3002<\/p>\n<h4>\u4f7f\u7528Docker Compose\u90e8\u7f72Dify<\/h4>\n<li>\n<p>\u514b\u9686Dify\u6e90\u4ee3\u7801\u4ed3\u5e93&#xff1a;<\/p>\n<p> <span class=\"token function\">git<\/span> clone https:\/\/github.com\/langgenius\/dify.git <span class=\"token parameter variable\">&#8211;branch<\/span> <span class=\"token number\">0.15<\/span>.3<br \/>\n<span class=\"token builtin class-name\">cd<\/span> dify\/docker\n <\/li>\n<li>\n<p>\u590d\u5236\u73af\u5883\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token function\">cp<\/span> .env.example .env\n <\/li>\n<li>\n<p>\u542f\u52a8Docker\u5bb9\u5668&#xff1a; \u6839\u636e\u60a8\u7cfb\u7edf\u4e0a\u7684Docker Compose\u7248\u672c&#xff0c;\u9009\u62e9\u5408\u9002\u7684\u547d\u4ee4\u542f\u52a8\u5bb9\u5668&#xff1a;<\/p>\n<p>\u5bf9\u4e8eDocker Compose V2&#xff1a;<\/p>\n<p> <span class=\"token function\">docker<\/span> compose up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p>\u5bf9\u4e8eDocker Compose V1&#xff1a;<\/p>\n<p> <span class=\"token function\">docker-compose<\/span> up <span class=\"token parameter variable\">-d<\/span>\n <\/li>\n<li>\n<p>\u68c0\u67e5\u5bb9\u5668\u8fd0\u884c\u72b6\u6001&#xff1a;<\/p>\n<p> <span class=\"token function\">docker<\/span> compose <span class=\"token function\">ps<\/span><\/p>\n<p>\u60a8\u5e94\u8be5\u80fd\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u8f93\u51fa&#xff0c;\u663e\u793a\u6240\u6709\u5bb9\u5668\u90fd\u5df2\u542f\u52a8&#xff1a;<\/p>\n<p> [&#043;] Running 11\/11<br \/>\n\u2713 Network docker_ssrf_proxy_network  Created<br \/>\n\u2713 Network docker_default            Created<br \/>\n\u2713 Container docker-redis-1          Started<br \/>\n\u2713 Container docker-ssrf_proxy-1     Started<br \/>\n\u2713 Container docker-sandbox-1        Started<br \/>\n\u2713 Container docker-web-1            Started<br \/>\n\u2713 Container docker-weaviate-1       Started<br \/>\n\u2713 Container docker-db-1             Started<br \/>\n\u2713 Container docker-api-1            Started<br \/>\n\u2713 Container docker-worker-1         Started<br \/>\n\u2713 Container docker-nginx-1          Started\n <\/li>\n<li>\n<p>\u8bbf\u95eeDify\u5e73\u53f0&#xff1a; \u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 http:\/\/localhost:3000&#xff08;\u6216\u60a8\u670d\u52a1\u5668\u7684IP\u5730\u5740&#xff09;&#xff0c;\u60a8\u5e94\u8be5\u80fd\u770b\u5230Dify\u7684\u767b\u5f55\u754c\u9762\u3002\u9996\u6b21\u4f7f\u7528\u65f6&#xff0c;\u60a8\u9700\u8981\u6ce8\u518c\u4e00\u4e2a\u8d26\u6237\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u5e94\u7528&#xff1a; \u767b\u5f55\u540e&#xff0c;\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5e94\u7528\u3002Dify\u652f\u6301\u4e24\u79cd\u7c7b\u578b\u7684\u5e94\u7528&#xff1a;<\/p>\n<ul>\n<li>\u5bf9\u8bdd\u5e94\u7528&#xff1a;\u7c7b\u4f3c\u4e8eChatGPT\u7684\u4ea4\u4e92\u5f0f\u5bf9\u8bdd\u5e94\u7528<\/li>\n<li>\u6587\u672c\u751f\u6210\u5e94\u7528&#xff1a;\u7528\u4e8e\u751f\u6210\u7279\u5b9a\u683c\u5f0f\u7684\u6587\u672c\u5185\u5bb9<\/li>\n<\/ul>\n<p>\u9009\u62e9\u9002\u5408\u60a8\u9700\u6c42\u7684\u5e94\u7528\u7c7b\u578b&#xff0c;\u5e76\u5b8c\u6210\u57fa\u672c\u914d\u7f6e\u3002<\/p>\n<\/li>\n<h3>\u5b9e\u73b0MCP\u670d\u52a1\u5668<\/h3>\n<p>\u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u5f0f\u53ef\u4ee5\u5c06Dify\u4e0eMCP\u96c6\u6210&#xff1a;<\/p>\n<li>\u4f7f\u7528Dify\u63d2\u4ef6\u65b9\u5f0f&#xff08;difyapp_as_mcp_server&#xff09;<\/li>\n<li>\u4f7f\u7528\u72ec\u7acbMCP\u670d\u52a1\u5668\u65b9\u5f0f&#xff08;dify-mcp-server&#xff09;<\/li>\n<p>\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e24\u79cd\u65b9\u6cd5\u3002<\/p>\n<h4>\u65b9\u6cd5\u4e00&#xff1a;\u4f7f\u7528Dify\u63d2\u4ef6\u65b9\u5f0f<\/h4>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7Dify\u7684\u63d2\u4ef6\u7cfb\u7edf&#xff0c;\u5c06Dify\u5e94\u7528\u4f5c\u4e3aMCP\u670d\u52a1\u5668\u66b4\u9732\u7ed9\u652f\u6301MCP\u534f\u8bae\u7684AI\u5ba2\u6237\u7aef\u3002<\/p>\n<li>\n<p>\u514b\u9686\u63d2\u4ef6\u4ed3\u5e93&#xff1a;<\/p>\n<p> <span class=\"token function\">git<\/span> clone https:\/\/github.com\/Yevanchen\/difyapp_as_mcp_server.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> difyapp_as_mcp_server\n <\/li>\n<li>\n<p>\u5c06\u63d2\u4ef6\u6587\u4ef6\u5939\u590d\u5236\u5230Dify\u7684\u63d2\u4ef6\u76ee\u5f55&#xff1a;<\/p>\n<p> <span class=\"token function\">cp<\/span> <span class=\"token parameter variable\">-r<\/span> .\/* \/path\/to\/dify\/extensions\/\n <\/li>\n<li>\n<p>\u91cd\u542fDify\u670d\u52a1\u4ee5\u52a0\u8f7d\u63d2\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token builtin class-name\">cd<\/span> \/path\/to\/dify\/docker<br \/>\n<span class=\"token function\">docker<\/span> compose restart\n <\/li>\n<li>\n<p>\u914d\u7f6e\u63d2\u4ef6&#xff1a; \u5728Dify\u7ba1\u7406\u754c\u9762\u4e2d&#xff0c;\u627e\u5230&#034;\u63d2\u4ef6&#034;\u90e8\u5206&#xff0c;\u542f\u7528&#034;difyapp_as_mcp_server&#034;\u63d2\u4ef6&#xff0c;\u5e76\u914d\u7f6e\u4ee5\u4e0b\u53c2\u6570&#xff1a;<\/p>\n<ul>\n<li>\u5e94\u7528ID&#xff1a;\u60a8\u60f3\u8981\u66b4\u9732\u7684Dify\u5e94\u7528ID<\/li>\n<li>\u5176\u4ed6\u8bbe\u7f6e&#xff1a;\u6839\u636e\u9700\u8981\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u786e\u4fdd\u60a8\u7684Dify\u5e94\u7528\u5305\u542b\u81f3\u5c11\u4e00\u4e2a\u5de5\u4f5c\u6d41&#xff0c;\u5e76\u4e14\u5df2\u7ecf\u6b63\u786e\u914d\u7f6e\u3002<\/p>\n<\/li>\n<h4>\u65b9\u6cd5\u4e8c&#xff1a;\u4f7f\u7528\u72ec\u7acbMCP\u670d\u52a1\u5668\u65b9\u5f0f<\/h4>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u7528\u72ec\u7acb\u7684MCP\u670d\u52a1\u5668\u5b9e\u73b0&#xff0c;\u901a\u8fc7\u96c6\u6210Dify API\u6765\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n<li>\n<p>\u514b\u9686\u670d\u52a1\u5668\u4ed3\u5e93&#xff1a;<\/p>\n<p> <span class=\"token function\">git<\/span> clone https:\/\/github.com\/AI-FE\/dify-mcp-server.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> dify-mcp-server\n <\/li>\n<li>\n<p>\u5b89\u88c5\u4f9d\u8d56&#xff1a;<\/p>\n<p> <span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span>\n <\/li>\n<li>\n<p>\u6784\u5efa\u670d\u52a1\u5668&#xff1a;<\/p>\n<p> <span class=\"token function\">npm<\/span> run build\n <\/li>\n<li>\n<p>\u914d\u7f6eDify API\u5bc6\u94a5&#xff1a; \u5728Dify\u5e73\u53f0\u4e0a\u83b7\u53d6API\u5bc6\u94a5&#xff0c;\u7136\u540e\u5728\u8fd0\u884cMCP\u670d\u52a1\u5668\u65f6\u63d0\u4f9b\u8fd9\u4e2a\u5bc6\u94a5\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884cMCP\u670d\u52a1\u5668&#xff1a;<\/p>\n<p> <span class=\"token assign-left variable\">DIFY_API_KEY<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u60a8\u7684Dify API\u5bc6\u94a5&#034;<\/span> <span class=\"token function\">node<\/span> build\/index.js\n <\/li>\n<h3>\u914d\u7f6eAI\u5ba2\u6237\u7aef\u4f7f\u7528MCP\u670d\u52a1\u5668<\/h3>\n<p>\u4e00\u65e6MCP\u670d\u52a1\u5668\u8bbe\u7f6e\u5b8c\u6210&#xff0c;\u60a8\u9700\u8981\u914d\u7f6eAI\u5ba2\u6237\u7aef&#xff08;\u5982Claude Desktop\u6216Cursor&#xff09;\u6765\u4f7f\u7528\u8fd9\u4e2a\u670d\u52a1\u5668\u3002<\/p>\n<h4>\u914d\u7f6eClaude Desktop<\/h4>\n<li>\u6253\u5f00Claude Desktop\u5ba2\u6237\u7aef<\/li>\n<li>\u8fdb\u5165\u8bbe\u7f6e &gt; MCP\u670d\u52a1\u5668<\/li>\n<li>\u6dfb\u52a0\u65b0\u7684MCP\u670d\u52a1\u5668&#xff0c;URL\u586b\u5199&#xff1a;\n<ul>\n<li>\u5bf9\u4e8e\u63d2\u4ef6\u65b9\u5f0f&#xff1a;https:\/\/\u60a8\u7684Dify\u5b9e\u4f8b\u5730\u5740\/difyapp_as_mcp_server<\/li>\n<li>\u5bf9\u4e8e\u72ec\u7acb\u670d\u52a1\u5668\u65b9\u5f0f&#xff1a;\u670d\u52a1\u5668\u7684\u8bbf\u95ee\u5730\u5740<\/li>\n<\/ul>\n<\/li>\n<li>\u4fdd\u5b58\u5e76\u542f\u7528\u670d\u52a1\u5668<\/li>\n<h4>\u914d\u7f6eCursor<\/h4>\n<li>\u6253\u5f00Cursor\u7f16\u8f91\u5668<\/li>\n<li>\u8fdb\u5165\u8bbe\u7f6e &gt; AI &gt; MCP<\/li>\n<li>\u6dfb\u52a0\u670d\u52a1\u5668\u5730\u5740&#xff1a;\n<ul>\n<li>\u5bf9\u4e8e\u63d2\u4ef6\u65b9\u5f0f&#xff1a;https:\/\/\u60a8\u7684Dify\u5b9e\u4f8b\u5730\u5740\/difyapp_as_mcp_server<\/li>\n<li>\u5bf9\u4e8e\u72ec\u7acb\u670d\u52a1\u5668\u65b9\u5f0f&#xff1a;\u670d\u52a1\u5668\u7684\u8bbf\u95ee\u5730\u5740<\/li>\n<\/ul>\n<\/li>\n<li>\u4fdd\u5b58\u5e76\u542f\u7528<\/li>\n<li>\u5728Cursor Agent\u4e2d\u4f7f\u7528\u60a8\u7684\u5de5\u5177<\/li>\n<h4>\u914d\u7f6eCline&#xff08;\u547d\u4ee4\u884cMCP\u5ba2\u6237\u7aef&#xff09;<\/h4>\n<p>\u5982\u679c\u60a8\u4f7f\u7528Cline\u4f5c\u4e3aMCP\u5ba2\u6237\u7aef&#xff0c;\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e&#xff1a;<\/p>\n<li>\n<p>\u521b\u5efa\u6216\u7f16\u8f91~\/.continue\/config.json\u6587\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;experimental&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;modelContextProtocolServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n      <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;transport&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;stdio&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token string-property property\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;node&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;your\/path\/dify-server\/build\/index.js&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token string-property property\">&#034;env&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;DIFY_API_KEY&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u60a8\u7684Dify API\u5bc6\u94a5&#034;<\/span><br \/>\n          <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><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<li>\n<p>\u6216\u8005&#xff0c;\u521b\u5efacline_mcp_settings.json\u6587\u4ef6&#xff1a;<\/p>\n<p> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;mcpServers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;dify-server&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;node&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;your\/path\/dify-server\/build\/index.js&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;env&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;DIFY_API_KEY&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u60a8\u7684Dify API\u5bc6\u94a5&#034;<\/span><br \/>\n      <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>\n <\/li>\n<h3>\u4f7f\u7528\u548c\u6d4b\u8bd5<\/h3>\n<p>\u4e00\u65e6\u914d\u7f6e\u5b8c\u6210&#xff0c;\u60a8\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528\u548c\u6d4b\u8bd5\u60a8\u7684Dify MCP\u670d\u52a1\u5668\u3002<\/p>\n<h4>\u6d4b\u8bd5MCP\u670d\u52a1\u5668\u8fde\u63a5<\/h4>\n<li>\u5728Claude Desktop\u4e2d&#xff0c;\u6253\u5f00\u8bbe\u7f6e\u5e76\u786e\u8ba4MCP\u670d\u52a1\u5668\u663e\u793a\u4e3a&#034;\u5df2\u8fde\u63a5&#034;\u72b6\u6001\u3002<\/li>\n<li>\u5728Cursor\u4e2d&#xff0c;\u60a8\u53ef\u4ee5\u901a\u8fc7AI\u9762\u677f\u67e5\u770b\u53ef\u7528\u7684\u5de5\u5177\u5217\u8868&#xff0c;\u786e\u8ba4\u60a8\u7684Dify\u5de5\u5177\u5df2\u7ecf\u88ab\u8bc6\u522b\u3002<\/li>\n<h4>\u4f7f\u7528Dify\u5de5\u5177<\/h4>\n<p>\u5728\u652f\u6301MCP\u7684AI\u5ba2\u6237\u7aef\u4e2d&#xff0c;\u60a8\u53ef\u4ee5\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u8bf7\u6c42\u4f7f\u7528Dify\u5e94\u7528&#xff1a;<\/p>\n<li>\u5728Claude Desktop\u4e2d&#xff0c;\u60a8\u53ef\u4ee5\u8bf4&#xff1a;\u201c\u8bf7\u4f7f\u7528[\u5de5\u5177\u540d\u79f0]\u5e2e\u6211\u2026\u201d<\/li>\n<li>\u5728Cursor\u4e2d&#xff0c;\u60a8\u53ef\u4ee5\u5728AI\u9762\u677f\u4e2d\u76f4\u63a5\u9009\u62e9Dify\u5de5\u5177\u5e76\u4f7f\u7528\u3002<\/li>\n<h4>\u8c03\u8bd5MCP\u670d\u52a1\u5668<\/h4>\n<p>\u5982\u679c\u9047\u5230\u95ee\u9898&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u8fdb\u884c\u8c03\u8bd5&#xff1a;<\/p>\n<li>\n<p>\u68c0\u67e5MCP\u670d\u52a1\u5668\u65e5\u5fd7&#xff1a;<\/p>\n<p> <span class=\"token comment\"># \u5bf9\u4e8e\u72ec\u7acb\u670d\u52a1\u5668\u65b9\u5f0f<\/span><br \/>\n<span class=\"token function\">npm<\/span> run inspector\n <\/li>\n<li>\n<p>\u68c0\u67e5Dify\u5e94\u7528\u65e5\u5fd7&#xff1a;<\/p>\n<p> <span class=\"token builtin class-name\">cd<\/span> \/path\/to\/dify\/docker<br \/>\n<span class=\"token function\">docker<\/span> compose logs <span class=\"token parameter variable\">-f<\/span> api\n <\/li>\n<h3>\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/h3>\n<h4>\u8fde\u63a5\u95ee\u9898<\/h4>\n<ul>\n<li>\u786e\u4fddURL\u6b63\u786e\u5e76\u53ef\u4ee5\u8bbf\u95ee<\/li>\n<li>\u68c0\u67e5\u662f\u5426\u5728\u9632\u706b\u5899\u6216\u4ee3\u7406\u540e\u9762<\/li>\n<li>\u9a8c\u8bc1\u670d\u52a1\u5668\u662f\u5426\u6b63\u5e38\u8fd0\u884c<\/li>\n<\/ul>\n<h4>\u5de5\u5177\u4e0d\u53ef\u89c1<\/h4>\n<ul>\n<li>\u786e\u4fdd\u5e94\u7528ID\u914d\u7f6e\u6b63\u786e<\/li>\n<li>\u68c0\u67e5\u5de5\u4f5c\u6d41\u662f\u5426\u5df2\u53d1\u5e03<\/li>\n<li>\u786e\u8ba4Dify API\u5bc6\u94a5\u6709\u8db3\u591f\u6743\u9650<\/li>\n<\/ul>\n<h4>\u5de5\u5177\u6267\u884c\u5931\u8d25<\/h4>\n<ul>\n<li>\u68c0\u67e5Dify\u5e94\u7528\u65e5\u5fd7<\/li>\n<li>\u786e\u8ba4\u5de5\u4f5c\u6d41\u5728Dify\u4e2d\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c<\/li>\n<li>\u9a8c\u8bc1\u8f93\u5165\u53c2\u6570\u662f\u5426\u7b26\u5408\u8981\u6c42<\/li>\n<\/ul>\n<h3>\u9ad8\u7ea7\u914d\u7f6e<\/h3>\n<h4>\u81ea\u5b9a\u4e49MCP\u5de5\u5177<\/h4>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539Dify\u5de5\u4f5c\u6d41\u6765\u81ea\u5b9a\u4e49MCP\u5de5\u5177\u7684\u884c\u4e3a&#xff1a;<\/p>\n<li>\u5728Dify\u5e73\u53f0\u4e2d&#xff0c;\u7f16\u8f91\u60a8\u7684\u5e94\u7528\u5de5\u4f5c\u6d41<\/li>\n<li>\u6dfb\u52a0\u6216\u4fee\u6539\u5de5\u5177\u8282\u70b9<\/li>\n<li>\u4fdd\u5b58\u5e76\u53d1\u5e03\u66f4\u65b0\u540e\u7684\u5de5\u4f5c\u6d41<\/li>\n<li>MCP\u670d\u52a1\u5668\u5c06\u81ea\u52a8\u53cd\u6620\u8fd9\u4e9b\u66f4\u6539<\/li>\n<h4>\u5b89\u5168\u6027\u8003\u8651<\/h4>\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u90e8\u7f72MCP\u670d\u52a1\u5668\u65f6&#xff0c;\u8bf7\u8003\u8651\u4ee5\u4e0b\u5b89\u5168\u63aa\u65bd&#xff1a;<\/p>\n<li>\u4f7f\u7528HTTPS\u52a0\u5bc6\u901a\u4fe1<\/li>\n<li>\u5b9e\u65bd\u9002\u5f53\u7684\u8eab\u4efd\u9a8c\u8bc1\u548c\u6388\u6743\u673a\u5236<\/li>\n<li>\u9650\u5236API\u5bc6\u94a5\u7684\u6743\u9650\u8303\u56f4<\/li>\n<li>\u5b9a\u671f\u5ba1\u6838\u8bbf\u95ee\u65e5\u5fd7<\/li>\n<h3>\u7ed3\u8bba<\/h3>\n<p>\u901a\u8fc7\u672c\u6307\u5357&#xff0c;\u60a8\u5df2\u7ecf\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668&#xff0c;\u5c06Dify\u5e94\u7528\u65e0\u7f1d\u96c6\u6210\u5230\u652f\u6301MCP\u534f\u8bae\u7684AI\u5ba2\u6237\u7aef\u4e2d\u3002\u8fd9\u79cd\u96c6\u6210\u4e3aAI\u5e94\u7528\u5f00\u53d1\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u53ef\u80fd\u6027&#xff0c;\u4f7f\u60a8\u80fd\u591f\u5145\u5206\u5229\u7528Dify\u7684\u5f3a\u5927\u529f\u80fd\u548cMCP\u7684\u4e92\u64cd\u4f5c\u6027\u3002<\/p>\n<p>\u968f\u7740MCP\u534f\u8bae\u7684\u4e0d\u65ad\u53d1\u5c55\u548c\u5b8c\u5584&#xff0c;\u6211\u4eec\u53ef\u4ee5\u671f\u5f85\u66f4\u591a\u521b\u65b0\u7684\u5e94\u7528\u573a\u666f\u548c\u96c6\u6210\u65b9\u5f0f\u3002\u5e0c\u671b\u672c\u6307\u5357\u80fd\u591f\u5e2e\u52a9\u60a8\u5f00\u59cb\u8fd9\u4e00\u4ee4\u4eba\u5174\u594b\u7684\u65c5\u7a0b\u3002<\/p>\n<h3>\u53c2\u8003\u8d44\u6e90<\/h3>\n<ul>\n<li>Dify\u5b98\u65b9\u6587\u6863<\/li>\n<li>Model Context Protocol\u89c4\u8303<\/li>\n<li>difyapp_as_mcp_server\u63d2\u4ef6<\/li>\n<li>dify-mcp-server\u72ec\u7acb\u670d\u52a1\u5668<\/li>\n<li>Claude Desktop\u5b98\u65b9\u6587\u6863<\/li>\n<li>Cursor\u7f16\u8f91\u5668\u5b98\u65b9\u7f51\u7ad9<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf50\u6b21\u3002Dify\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u5927\u8bed\u8a00\u6a21\u578b(LLM)\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\u3002\u5b83\u878d\u5408\u4e86\u540e\u7aef\u5373\u670d\u52a1\uff08Backend as Service\uff09\u548cLLMOps\u7684\u7406\u5ff5\uff0c\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u751f\u4ea7\u7ea7\u7684\u751f\u6210\u5f0fAI\u5e94\u7528\u3002\u5373\u4f7f\u662f\u975e\u6280\u672f\u4eba\u5458\uff0c\u4e5f\u80fd\u53c2\u4e0e\u5230AI\u5e94\u7528\u7684\u5b9a\u4e49\u548c\u6570\u636e\u8fd0\u8425\u8fc7\u7a0b\u4e2d\u3002\u5bf9\u6570\u767e\u4e2a\u6a21\u578b\u7684\u652f\u6301\u76f4\u89c2\u7684Prompt\u7f16\u6392\u754c\u9762\u9ad8\u8d28\u91cf\u7684RAG\u5f15\u64ce\u7a33\u5065\u7684Agent\u6846\u67b6\u7075\u6d3b\u7684\u6d41\u7a0b\u7f16\u6392\u6613\u7528\u7684\u754c\u9762\u548cAPI\u8fd9\u4e9b\u7279\u6027\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u4e13\u6ce8\u4e8e\u521b\u65b0\u548c\u4e1a\u52a1\u9700\u6c42\uff0c\u800c\u4e0d\u5fc5\u91cd\u590d\u9020\u8f6e\u5b50\u3002_dify mcp<\/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":[50,43,44],"topic":[],"class_list":["post-18811","post","type-post","status-publish","format-standard","hentry","category-server","tag-50","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf - \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\/18811.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf50\u6b21\u3002Dify\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u5927\u8bed\u8a00\u6a21\u578b(LLM)\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\u3002\u5b83\u878d\u5408\u4e86\u540e\u7aef\u5373\u670d\u52a1\uff08Backend as Service\uff09\u548cLLMOps\u7684\u7406\u5ff5\uff0c\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u751f\u4ea7\u7ea7\u7684\u751f\u6210\u5f0fAI\u5e94\u7528\u3002\u5373\u4f7f\u662f\u975e\u6280\u672f\u4eba\u5458\uff0c\u4e5f\u80fd\u53c2\u4e0e\u5230AI\u5e94\u7528\u7684\u5b9a\u4e49\u548c\u6570\u636e\u8fd0\u8425\u8fc7\u7a0b\u4e2d\u3002\u5bf9\u6570\u767e\u4e2a\u6a21\u578b\u7684\u652f\u6301\u76f4\u89c2\u7684Prompt\u7f16\u6392\u754c\u9762\u9ad8\u8d28\u91cf\u7684RAG\u5f15\u64ce\u7a33\u5065\u7684Agent\u6846\u67b6\u7075\u6d3b\u7684\u6d41\u7a0b\u7f16\u6392\u6613\u7528\u7684\u754c\u9762\u548cAPI\u8fd9\u4e9b\u7279\u6027\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u4e13\u6ce8\u4e8e\u521b\u65b0\u548c\u4e1a\u52a1\u9700\u6c42\uff0c\u800c\u4e0d\u5fc5\u91cd\u590d\u9020\u8f6e\u5b50\u3002_dify mcp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/18811.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T17:12:06+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/18811.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/18811.html\",\"name\":\"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T17:12:06+00:00\",\"dateModified\":\"2025-04-18T17:12:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/18811.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/18811.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/18811.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf\"}]},{\"@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\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf - \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\/18811.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf50\u6b21\u3002Dify\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u5927\u8bed\u8a00\u6a21\u578b(LLM)\u5e94\u7528\u5f00\u53d1\u5e73\u53f0\u3002\u5b83\u878d\u5408\u4e86\u540e\u7aef\u5373\u670d\u52a1\uff08Backend as Service\uff09\u548cLLMOps\u7684\u7406\u5ff5\uff0c\u4f7f\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u751f\u4ea7\u7ea7\u7684\u751f\u6210\u5f0fAI\u5e94\u7528\u3002\u5373\u4f7f\u662f\u975e\u6280\u672f\u4eba\u5458\uff0c\u4e5f\u80fd\u53c2\u4e0e\u5230AI\u5e94\u7528\u7684\u5b9a\u4e49\u548c\u6570\u636e\u8fd0\u8425\u8fc7\u7a0b\u4e2d\u3002\u5bf9\u6570\u767e\u4e2a\u6a21\u578b\u7684\u652f\u6301\u76f4\u89c2\u7684Prompt\u7f16\u6392\u754c\u9762\u9ad8\u8d28\u91cf\u7684RAG\u5f15\u64ce\u7a33\u5065\u7684Agent\u6846\u67b6\u7075\u6d3b\u7684\u6d41\u7a0b\u7f16\u6392\u6613\u7528\u7684\u754c\u9762\u548cAPI\u8fd9\u4e9b\u7279\u6027\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u4e13\u6ce8\u4e8e\u521b\u65b0\u548c\u4e1a\u52a1\u9700\u6c42\uff0c\u800c\u4e0d\u5fc5\u91cd\u590d\u9020\u8f6e\u5b50\u3002_dify mcp","og_url":"https:\/\/www.wsisp.com\/helps\/18811.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T17:12:06+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/18811.html","url":"https:\/\/www.wsisp.com\/helps\/18811.html","name":"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T17:12:06+00:00","dateModified":"2025-04-18T17:12:06+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/18811.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/18811.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/18811.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5229\u7528Dify\u642d\u5efaMCP\u670d\u52a1\u5668\uff1a\u6784\u5efa\u7075\u6d3b\u7684AI\u5e94\u7528\u751f\u6001\u7cfb\u7edf"}]},{"@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\/18811","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=18811"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/18811\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=18811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=18811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=18811"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=18811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}