{"id":38877,"date":"2025-05-21T16:56:07","date_gmt":"2025-05-21T08:56:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38877.html"},"modified":"2025-05-21T16:56:07","modified_gmt":"2025-05-21T08:56:07","slug":"apidog-mcp%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%9e%e6%8e%a5api%e8%a7%84%e8%8c%83%e5%92%8cai%e7%bc%96%e7%a0%81%e5%8a%a9%e6%89%8b%e7%9a%84%e6%a1%a5%e6%a2%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38877.html","title":{"rendered":"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881"},"content":{"rendered":"<p>#\u4f5c\u8005&#xff1a;\u66f9\u4ed8\u6c5f <\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>1.\u4e86\u89e3 MCP<\/li>\n<li>2.\u4ec0\u4e48\u662f Apidog MCP \u670d\u52a1\u5668&#xff1f;<\/li>\n<li>3.Apidog MCP \u670d\u52a1\u5668\u5982\u4f55\u5de5\u4f5c<\/li>\n<li>4.\u5229\u7528\u4eba\u5de5\u667a\u80fd\u6539\u53d8\u5f00\u53d1\u5de5\u4f5c\u6d41\u7a0b<\/li>\n<li>5.\u8bbe\u7f6e Apidog MCP \u670d\u52a1\u5668&#xff1a; \u5206\u6b65\u6307\u5357<\/li>\n<li>5.\u9ad8\u7ea7\u529f\u80fd\u548c\u63d0\u793a<\/li>\n<li>\n<ul>\n<li>5.1 \u4f7f\u7528 OpenAPI \u89c4\u8303<\/li>\n<li>5.2.\u591a\u4e2a\u9879\u76ee\u914d\u7f6e<\/li>\n<li>5.3.\u5b89\u5168\u6700\u4f73\u5b9e\u8df5<\/li>\n<li>5.4.\u5185\u90e8\u90e8\u7f72<\/li>\n<\/ul>\n<\/li>\n<li>6.\u7ed3\u8bba<\/li>\n<\/ul>\n<p>\u968f\u7740\u4eba\u5de5\u667a\u80fd\u8d8a\u6765\u8d8a\u591a\u5730\u878d\u5165\u7f16\u7801\u5de5\u4f5c\u6d41\u7a0b&#xff0c;\u8f6f\u4ef6\u5f00\u53d1\u6b63\u5728\u7ecf\u5386\u4e00\u573a\u6df1\u523b\u7684\u53d8\u9769\u3002\u8be5\u9886\u57df\u6700\u91cd\u8981\u7684\u521b\u65b0\u4e4b\u4e00\u5c31\u662f\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae&#xff08;MCP&#xff09;,\u4e00\u79cd\u5728\u4eba\u5de5\u667a\u80fd\u7f16\u7801\u52a9\u624b\u548c\u5916\u90e8\u77e5\u8bc6\u6e90\u4e4b\u95f4\u5efa\u7acb\u667a\u80fd\u8fde\u63a5\u7684\u7a81\u7834\u6027\u6280\u672f\u3002<\/p>\n<h2>1.\u4e86\u89e3 MCP<\/h2>\n<p>MCP \u4f5c\u4e3a\u4e00\u79cd\u6807\u51c6\u5316\u7684\u901a\u4fe1\u6e20\u9053&#xff0c;\u5141\u8bb8\u5927\u578b\u8bed\u8a00\u6a21\u578b (LLM) \u76f4\u63a5\u8bbf\u95ee\u3001\u7406\u89e3\u548c\u5229\u7528\u6765\u81ea\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\u7684\u4e13\u95e8\u4fe1\u606f\u3002\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u6765\u8bf4&#xff0c;\u8fd9\u610f\u5473\u7740\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u73b0\u5728\u53ef\u4ee5\u5229\u7528\u8bad\u7ec3\u6570\u636e\u4ee5\u5916\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f&#xff0c;\u4f7f\u5176\u5728\u5904\u7406\u7279\u5b9a\u9886\u57df\u4efb\u52a1\u65f6\u66f4\u52a0\u5f3a\u5927\u548c\u7cbe\u786e\u3002 \u8be5\u534f\u8bae\u4ee3\u8868\u4e86\u4eba\u5de5\u667a\u80fd\u8f85\u52a9\u7f16\u7801\u65b9\u5f0f\u7684\u6839\u672c\u8f6c\u53d8\u3002\u542f\u7528\u4e86 MCP \u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u53ef\u4ee5\u5229\u7528\u60a8\u7684\u7279\u5b9a\u6587\u6863\u3001\u4ee3\u7801\u5e93\u548c\u6280\u672f\u89c4\u8303&#xff0c;\u800c\u4e0d\u662f\u4ec5\u4ec5\u4f9d\u8d56\u4e00\u822c\u77e5\u8bc6\u3002\u8fd9\u6837&#xff0c;\u60a8\u5c31\u80fd\u5f97\u5230\u4e00\u4e2a\u66f4\u51c6\u786e\u3001\u66f4\u4e86\u89e3\u4e0a\u4e0b\u6587\u3001\u66f4\u80fd\u7406\u89e3\u60a8\u7279\u5b9a\u9879\u76ee\u7ec6\u5fae\u5dee\u522b\u7684\u7f16\u7801\u52a9\u624b\u3002<\/p>\n<h2>2.\u4ec0\u4e48\u662f Apidog MCP \u670d\u52a1\u5668&#xff1f;<\/h2>\n<p>\u5728\u9019\u4e00\u9769\u547d\u6027\u7684 MCP \u57fa\u790e\u4e0a&#xff0c;Apidog \u958b\u767c\u4e86 Apidog MCP Server &#8211; \u5c08\u70ba API \u958b\u767c\u5de5\u4f5c\u6d41\u7a0b\u800c\u8a2d\u8a08\u7684\u5c08\u9580\u5be6\u73fe\u3002\u8fd9\u4e00\u529f\u80fd\u5f3a\u5927\u7684\u5de5\u5177\u5728\u60a8\u7684 API \u6587\u6863\u548c\u4eba\u5de5\u667a\u80fd\u7f16\u7801\u52a9\u624b\u4e4b\u95f4\u67b6\u8d77\u4e86\u4e00\u5ea7\u76f4\u63a5\u7684\u6865\u6881&#xff0c;\u5b9e\u73b0\u4e86\u5f00\u53d1\u4eba\u5458\u73b0\u5728\u6240\u8bf4\u7684 \u201c\u52a8\u6001\u7f16\u7801\u201d\u2013\u5728\u8fd9\u79cd\u6d41\u7a0b\u72b6\u6001\u4e0b&#xff0c;\u60a8\u4e13\u6ce8\u4e8e\u521b\u9020\u6027\u5730\u89e3\u51b3\u95ee\u9898&#xff0c;\u800c\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u5219\u5728\u5b8c\u5168\u4e86\u89e3\u60a8\u7684 API \u89c4\u8303\u7684\u60c5\u51b5\u4e0b\u5904\u7406\u5b9e\u65bd\u7ec6\u8282\u3002 Apidog MCP \u670d\u52a1\u5668\u5141\u8bb8\u60a8\u5c06 Apidog \u9879\u76ee\u3001Apidog \u53d1\u5e03\u7684\u516c\u5171 API \u6587\u6863\u7ad9\u70b9\u4ee5\u53ca\u4efb\u4f55 OpenAPI Specification (OAS) \u6587\u4ef6\u7528\u4f5c Cursor \u7b49\u4eba\u5de5\u667a\u80fd\u96c6\u6210\u5f00\u53d1\u73af\u5883\u7684\u6570\u636e\u6e90\u3002\u8fd9\u79cd\u5168\u9762\u7684\u96c6\u6210\u610f\u5473\u7740Agentic AI\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u5e76\u4f7f\u7528\u60a8\u7684API\u6587\u6863&#xff0c;\u4ece\u800c\u52a0\u5feb\u5f00\u53d1\u901f\u5ea6&#xff0c;\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<h2>3.Apidog MCP \u670d\u52a1\u5668\u5982\u4f55\u5de5\u4f5c<\/h2>\n<p>\u4e00\u65e6\u8bbe\u7f6e\u597d Apidog MCP \u670d\u52a1\u5668&#xff0c;\u5b83\u5c31\u4f1a\u81ea\u52a8\u4ece\u672c\u5730\u673a\u5668\u4e0a\u7684 Apidog \u9879\u76ee\u6216\u5728\u7ebf\u9879\u76ee\u4e2d\u8bfb\u53d6\u5e76\u7f13\u5b58\u6240\u6709 API \u6587\u6863\u6570\u636e\u3002\u7136\u540e&#xff0c;\u4eba\u5de5\u667a\u80fd\u5c31\u53ef\u4ee5\u65e0\u7f1d\u5730\u68c0\u7d22\u548c\u5229\u7528\u8fd9\u4e9b\u6570\u636e&#xff0c;\u4e3a\u60a8\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u521b\u9020\u4e00\u79cd\u4f53\u9a8c&#xff1a;<\/p>\n<ul>\n<li>\u6839\u636e\u60a8\u51c6\u786e\u7684 API \u89c4\u683c\u751f\u6210\u6216\u4fee\u6539\u4ee3\u7801<\/li>\n<li>\u641c\u7d22 API \u6587\u6863\u5185\u5bb9\u4ee5\u56de\u7b54\u7279\u5b9a\u95ee\u9898<\/li>\n<li>\u521b\u5efa\u7c7b\u578b\u5b89\u5168\u7684 API \u5ba2\u6237\u7aef&#xff0c;\u4e0e\u60a8\u7684 API \u7ed3\u6784\u5b8c\u7f8e\u5339\u914d<\/li>\n<li>\u6839\u636e\u60a8\u7684\u6587\u6863\u8981\u6c42\u5b9e\u65bd\u6570\u636e\u9a8c\u8bc1\u903b\u8f91<\/li>\n<li>\u751f\u6210\u6db5\u76d6\u6240\u6709\u6587\u6863\u573a\u666f\u7684\u7efc\u5408\u6d4b\u8bd5\u6848\u4f8b<\/li>\n<li>\u670d\u52a1\u5668\u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u6307\u793a\u4eba\u5de5\u667a\u80fd\u60a8\u60f3\u901a\u8fc7 API \u6587\u6863\u5b9e\u73b0\u7684\u529f\u80fd\u5373\u53ef\u3002<\/li>\n<li>\u4f8b\u5982\n<ul>\n<li>\u201c\u4f7f\u7528 MCP \u83b7\u53d6 API \u6587\u6863&#xff0c;\u5e76\u4e3a\u4ea7\u54c1\u6a21\u5f0f\u548c\u76f8\u5173\u6a21\u5f0f\u751f\u6210 Java \u8bb0\u5f55<\/li>\n<li>\u201c\u6839\u636e API \u6587\u6863&#xff0c;\u5728\u4ea7\u54c1 DTO \u4e2d\u6dfb\u52a0\u65b0\u5b57\u6bb5<\/li>\n<li>\u201c\u6839\u636e API \u6587\u6863&#xff0c;\u4e3a\u4ea7\u54c1\u7c7b\u4e2d\u7684\u6bcf\u4e2a\u5b57\u6bb5\u6dfb\u52a0\u6ce8\u91ca<\/li>\n<li>\u201c\u6839\u636e API \u6587\u6863\u751f\u6210\u4e0e\u7aef\u70b9\/\u7528\u6237\u76f8\u5173\u7684\u6240\u6709 MVC \u4ee3\u7801<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u76f4\u63a5\u8fde\u63a5\u6d88\u9664\u4e86 API \u5f00\u53d1\u4e2d\u6700\u91cd\u8981\u7684\u6469\u64e6\u70b9\u4e4b\u4e00&#xff1a;\u5728\u6587\u6863\u548c\u5b9e\u73b0\u4e4b\u95f4\u4e0d\u65ad\u5207\u6362\u4e0a\u4e0b\u6587\u3002\u60a8\u73b0\u5728\u53ef\u4ee5\u4f9d\u9760\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u76f4\u63a5\u901a\u8fc7 MCP \u670d\u52a1\u5668\u8bbf\u95ee\u8fd9\u4e9b\u4fe1\u606f&#xff0c;\u800c\u65e0\u9700\u624b\u52a8\u53c2\u8003 API \u89c4\u8303\u6216\u5411\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u89e3\u91ca\u6570\u636e\u6a21\u578b\u3002<\/p>\n<h2>4.\u5229\u7528\u4eba\u5de5\u667a\u80fd\u6539\u53d8\u5f00\u53d1\u5de5\u4f5c\u6d41\u7a0b<\/h2>\n<p>Apidog MCP Server \u4e0e\u4eba\u5de5\u667a\u80fd\u7f16\u7801\u52a9\u624b\u7684\u6574\u5408\u4ea7\u751f\u4e86\u5f3a\u5927\u7684\u534f\u540c\u6548\u5e94&#xff0c;\u4ece\u6839\u672c\u4e0a\u6539\u53d8\u4e86\u5f00\u53d1\u4eba\u5458\u5904\u7406 API \u76f8\u5173\u4efb\u52a1\u7684\u65b9\u5f0f\u3002\u8fd9\u79cd\u7ec4\u5408\u5b9e\u73b0\u4e86\u771f\u6b63\u7684\u4ee3\u7406\u5f0f\u4eba\u5de5\u667a\u80fd\u4f53\u9a8c&#xff0c;\u60a8\u7684\u7f16\u7801\u52a9\u624b\u5c06\u6210\u4e3a\u5f00\u53d1\u6d41\u7a0b\u7684\u79ef\u6781\u53c2\u4e0e\u8005&#xff0c;\u6df1\u5165\u4e86\u89e3\u60a8\u7684\u7279\u5b9a API \u8bbe\u8ba1\u3002 \u5728\u4f7f\u7528 Apidog MCP Server \u65f6&#xff0c;\u60a8\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u7406\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u81ea\u4e3b\u4ee3\u7406&#xff0c;\u5b83\u53ef\u4ee5<\/p>\n<ul>\n<li>\u4ece\u60a8\u7684\u81ea\u7136\u8bed\u8a00\u6307\u4ee4\u4e2d\u5206\u6790\u9700\u6c42<\/li>\n<li>\u76f4\u63a5\u4ece\u60a8\u7684\u6587\u6863\u4e2d\u68c0\u7d22\u76f8\u5173\u7684 API \u89c4\u8303<\/li>\n<li>\u6839\u636e\u8fd9\u4e9b\u89c4\u8303\u751f\u6210\u5b9e\u65bd\u4ee3\u7801<\/li>\n<li>\u89e3\u91ca\u5176\u63a8\u7406\u5e76\u5f3a\u8c03\u91cd\u8981\u7684\u6ce8\u610f\u4e8b\u9879<\/li>\n<li>\u63d0\u51fa\u6539\u8fdb\u5efa\u8bae\u6216\u66ff\u4ee3\u65b9\u6cd5<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u4ee3\u7406\u80fd\u529b\u5927\u5927\u51cf\u8f7b\u4e86\u5f00\u53d1\u4eba\u5458\u7684\u8ba4\u77e5\u8d1f\u62c5\u3002\u5728\u7f16\u5199\u5b9e\u65bd\u4ee3\u7801\u65f6&#xff0c;\u60a8\u4e0d\u5fc5\u518d\u8d39\u5fc3\u5730\u5904\u7406 API \u89c4\u8303&#xff0c;\u800c\u662f\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u66f4\u9ad8\u5c42\u6b21\u7684\u8bbe\u8ba1\u51b3\u7b56\u548c\u95ee\u9898\u89e3\u51b3&#xff0c;\u800c\u60a8\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u5219\u53ef\u4ee5\u7cbe\u786e\u5730\u5904\u7406\u7ec6\u8282\u95ee\u9898\u3002<\/p>\n<h2>5.\u8bbe\u7f6e Apidog MCP \u670d\u52a1\u5668&#xff1a; \u5206\u6b65\u6307\u5357<\/h2>\n<p>\u5f00\u59cb\u4f7f\u7528 Apidog MCP Server \u975e\u5e38\u7b80\u5355\u3002\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u5c06\u60a8\u7684 API \u6587\u6863\u4e0e\u4eba\u5de5\u667a\u80fd\u7f16\u7801\u52a9\u624b\u8fde\u63a5\u8d77\u6765&#xff1a; \u5148\u51b3\u6761\u4ef6: \u5728\u5f00\u59cb\u8bbe\u7f6e\u8fc7\u7a0b\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u60a8\u62e5\u6709<\/p>\n<ul>\n<li>Node.js&#xff08;18 \u6216\u66f4\u9ad8\u7248\u672c&#xff0c;\u6700\u597d\u662f\u6700\u65b0\u7684 LTS \u7248\u672c&#xff09;<\/li>\n<li>\u652f\u6301 MCP \u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff0c;\u5982\u5e26\u6709 Cline \u63d2\u4ef6\u7684 Cursor \u6216 VSCode<\/li>\n<li>\u53ef\u8bbf\u95ee\u60a8\u7684 API \u9879\u76ee\u7684 Apidog \u8d26\u6237<\/li>\n<\/ul>\n<p>\u6b65\u9aa41&#xff1a;\u5728 Apidog \u4e2d\u751f\u6210\u8bbf\u95ee\u4ee4\u724c 1)\u6253\u5f00 Apidog \u5e76\u767b\u5f55\u60a8\u7684\u8d26\u6237 2)\u5c06\u9f20\u6807\u60ac\u505c\u5728\u53f3\u4e0a\u89d2\u60a8\u7684\u4e2a\u4eba\u8d44\u6599\u56fe\u7247\u4e0a 3)\u5355\u51fb &#034;\u5e10\u6237\u8bbe\u7f6e &gt; API \u8bbf\u95ee\u4ee4\u724c 4)\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 API \u8bbf\u95ee\u4ee4\u724c 5)\u5c06\u751f\u6210\u7684\u4ee4\u724c\u590d\u5236\u5230\u4e00\u4e2a\u5b89\u5168\u7684\u4f4d\u7f6e &#8211; \u60a8\u9700\u8981\u5b83\u6765\u8fdb\u884c\u914d\u7f6e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521085606-682d9526974cd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6b65\u9aa42&#xff1a;\u627e\u5230 Apidog \u9879\u76ee ID 1)\u5728 Apidog \u4e2d\u6253\u5f00\u6240\u9700\u7684\u9879\u76ee 2)\u5355\u51fb\u5de6\u4fa7\u8fb9\u680f\u4e2d\u7684 &#034;\u8bbe\u7f6e 3)\u5728 \u201c\u57fa\u672c\u8bbe\u7f6e \u201d\u9875\u9762\u4e2d\u627e\u5230\u9879\u76ee ID 4)\u590d\u5236\u6b64 ID&#xff0c;\u4ee5\u4fbf\u5728\u914d\u7f6e\u4e2d\u4f7f\u7528<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521085606-682d9526afd9b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6b65\u9aa4 3&#xff1a;\u4e3a\u96c6\u6210 MCP \u914d\u7f6e\u96c6\u6210\u5f00\u53d1\u73af\u5883<\/p>\n<li>\u6839\u636e\u60a8\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\u521b\u5efa\u6216\u4fee\u6539 MCP \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/li>\n<ul>\n<li>\u5bf9\u4e8e\u6e38\u6807&#xff1a; \u4f7f\u7528 ~\/.cursor\/mcp.json&#xff08;\u5168\u5c40&#xff09;\u6216 .cursor\/mcp.json &#xff08;\u7279\u5b9a\u4e8e\u9879\u76ee&#xff09;\u3002<\/li>\n<li>\u5bf9\u4e8e Cline&#xff1a; \u6253\u5f00 Cline \u9762\u677f &gt; MCP \u670d\u52a1\u5668 &gt; \u914d\u7f6e MCP \u670d\u52a1\u5668<\/li>\n<\/ul>\n<li>\u5728 MCP \u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b JSON \u914d\u7f6e&#xff1a;<\/li>\n<p>{<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;API specification&#034;: {<br \/>\n      &#034;command&#034;: &#034;npx&#034;,<br \/>\n      &#034;args&#034;: [<br \/>\n        &#034;-y&#034;,<br \/>\n        &#034;apidog-mcp-server&#064;latest&#034;,<br \/>\n        &#034;&#8211;project-id&#061;&lt;project-id&gt;&#034;<br \/>\n      ],<br \/>\n      &#034;env&#034;: {<br \/>\n        &#034;APIDOG_ACCESS_TOKEN&#034;: &#034;&lt;access-token&gt;&#034;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<li>\u66ff\u6362\u5360\u4f4d\u7b26\u503c&#xff1a; \u5c06 \u66ff\u6362\u4e3a\u5b9e\u9645\u7684 Apidog \u9879\u76ee ID \u5c06 \u66ff\u6362\u4e3a\u60a8\u7684 Apidog API \u8bbf\u95ee\u4ee4\u724c \u5bf9\u4e8e Windows \u7528\u6237&#xff0c;\u5982\u679c\u4e0a\u8ff0\u914d\u7f6e\u4e0d\u8d77\u4f5c\u7528&#xff0c;\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u66ff\u4ee3\u65b9\u6cd5&#xff1a;<\/li>\n<p>{<br \/>\n  &#034;mcpServers&#034;: {<br \/>\n    &#034;API specification&#034;: {<br \/>\n      &#034;command&#034;: &#034;cmd&#034;,<br \/>\n      &#034;args&#034;: [<br \/>\n        &#034;\/c&#034;,<br \/>\n        &#034;npx&#034;,<br \/>\n        &#034;-y&#034;,<br \/>\n        &#034;apidog-mcp-server&#064;latest&#034;,<br \/>\n        &#034;&#8211;project-id&#061;&lt;project-id&gt;&#034;<br \/>\n      ],<br \/>\n      &#034;env&#034;: {<br \/>\n        &#034;APIDOG_ACCESS_TOKEN&#034;: &#034;&lt;access-token&gt;&#034;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>\u6b65\u9aa4 4&#xff1a;\u9a8c\u8bc1\u548c\u6d4b\u8bd5\u96c6\u6210 \u2022\u91cd\u542f\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff0c;\u786e\u4fdd\u52a0\u8f7d\u65b0\u7684 MCP \u914d\u7f6e \u2022\u5411\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u63d0\u51fa\u4e00\u4e2a\u6709\u5173 API \u7684\u95ee\u9898\u6765\u6d4b\u8bd5\u96c6\u6210&#xff0c;\u4f8b\u5982&#xff1a;\u201c\u4f7f\u7528 MCP \u83b7\u53d6 API \u6587\u6863\u5e76\u5217\u51fa\u6240\u6709\u53ef\u7528\u7aef\u70b9\u201d&#xff1a;<\/p>\n<ul>\n<li>\u201c\u4f7f\u7528 MCP \u83b7\u53d6 API \u6587\u6863\u5e76\u5217\u51fa\u6240\u6709\u53ef\u7528\u7aef\u70b9<\/li>\n<li>\u201c\u6839\u636e API \u6587\u6863&#xff0c;\u7528\u6237\u6a21\u578b\u4e2d\u6709\u54ea\u4e9b\u5b57\u6bb5&#xff1f;<\/li>\n<\/ul>\n<p>\u2022\u5982\u679c\u96c6\u6210\u5de5\u4f5c\u6b63\u5e38&#xff0c;\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u5e94\u8be5\u80fd\u591f\u8bbf\u95ee\u5e76\u63d0\u4f9b API \u6587\u6863\u4e2d\u7684\u4fe1\u606f&#xff0c;\u800c\u65e0\u9700\u60a8\u624b\u52a8\u5f15\u7528\u6216\u89e3\u91ca\u3002<\/p>\n<h2>5.\u9ad8\u7ea7\u529f\u80fd\u548c\u63d0\u793a<\/h2>\n<h3>5.1 \u4f7f\u7528 OpenAPI \u89c4\u8303<\/h3>\n<p>\u9664 Apidog \u9879\u76ee\u5916&#xff0c;Apidog MCP Server \u8fd8\u80fd\u76f4\u63a5\u8bfb\u53d6 Swagger \u6216 OpenAPI Specification (OAS) \u6587\u4ef6\u3002\u8981\u4f7f\u7528\u6b64\u529f\u80fd<\/p>\n<li>\u5220\u9664 &#8211;project-id&#061; \u53c2\u6570<\/li>\n<li>\u6dfb\u52a0\u2013oas&#061;\u53c2\u6570&#xff0c; \u4f8b\u5982 npx apidog-mcp-server -oas&#061;https:\/\/petstore.swagger.io\/v2\/swagger.json npx apidog-mcp-server &#8211;oas&#061;~\/data\/petstore\/swagger.json<\/li>\n<h3>5.2.\u591a\u4e2a\u9879\u76ee\u914d\u7f6e<\/h3>\n<p>\u5982\u679c\u9700\u8981\u4f7f\u7528\u591a\u4e2a\u9879\u76ee\u7684 API \u6587\u6863&#xff0c;\u53ea\u9700\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u591a\u4e2a MCP \u670d\u52a1\u5668\u914d\u7f6e\u5373\u53ef\u3002\u6bcf\u4e2a\u9879\u76ee\u90fd\u5e94\u6709\u81ea\u5df1\u552f\u4e00\u7684\u9879\u76ee ID\u3002\u4e3a\u6e05\u695a\u8d77\u89c1&#xff0c;\u8bf7\u6309\u7167 \u201cxxx API \u6587\u6863 \u201d\u7684\u683c\u5f0f\u4e3a\u6bcf\u4e2a MCP \u670d\u52a1\u5668\u547d\u540d\u3002<\/p>\n<h3>5.3.\u5b89\u5168\u6700\u4f73\u5b9e\u8df5<\/h3>\n<p>\u5982\u679c\u4f60\u7684\u56e2\u961f\u5c06 MCP \u914d\u7f6e\u6587\u4ef6\u540c\u6b65\u5230\u4ee3\u7801\u5e93&#xff0c;\u5efa\u8bae\u5220\u9664 \u201cAPIDOG_ACCESS_TOKEN \u201d\u884c&#xff1a; \u201c&#034;\u4e00\u884c&#xff0c;\u800c\u662f\u5c06 APIDOG_ACCESS_TOKEN \u914d\u7f6e\u4e3a\u6bcf\u4e2a\u6210\u5458\u673a\u5668\u4e0a\u7684\u73af\u5883\u53d8\u91cf&#xff0c;\u4ee5\u9632\u6b62\u4ee4\u724c\u6cc4\u6f0f\u3002<\/p>\n<h3>5.4.\u5185\u90e8\u90e8\u7f72<\/h3>\n<p>\u5bf9\u4e8e\u5185\u90e8\u90e8\u7f72\u7684\u7528\u6237&#xff0c;\u8bf7\u5728\u96c6\u6210\u5f00\u53d1\u73af\u5883\u4e2d\u7684 MCP \u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u53c2\u6570&#xff1a;\u201c\u2013apidog-api-base-url&#061;&lt;\u5185\u90e8\u670d\u52a1\u5668\u7684 API \u5730\u5740&#xff0c;\u4ee5 http:\/\/ \u6216 https:\/\/&gt; \u5f00\u5934\u201d\u3002 \u6b64\u5916&#xff0c;\u8bf7\u786e\u4fdd\u60a8\u7684\u7f51\u7edc\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee www.npm.com\u3002<\/p>\n<h2>6.\u7ed3\u8bba<\/h2>\n<p>Apidog MCP Server \u4ee3\u8868\u7740\u5f00\u53d1\u4eba\u5458\u5728\u4e0e API \u6587\u6863\u4ea4\u4e92\u548c\u5b9e\u73b0 API \u76f8\u5173\u529f\u80fd\u65b9\u9762\u7684\u91cd\u5927\u8fdb\u6b65\u3002\u901a\u8fc7\u5728\u60a8\u7684 API \u89c4\u8303\u548c\u4eba\u5de5\u667a\u80fd\u7f16\u7801\u52a9\u624b\u4e4b\u95f4\u5efa\u7acb\u76f4\u63a5\u8fde\u63a5&#xff0c;\u8fd9\u4e00\u5f3a\u5927\u7684\u96c6\u6210\u6d88\u9664\u4e86\u4e0a\u4e0b\u6587\u5207\u6362&#xff0c;\u63d0\u9ad8\u4e86\u4ee3\u7801\u8d28\u91cf&#xff0c;\u5e76\u663e\u8457\u52a0\u5feb\u4e86\u5f00\u53d1\u901f\u5ea6\u3002<\/p>\n<p>\u901a\u8fc7\u5c06 Apidog MCP Server \u96c6\u6210\u5230\u60a8\u7684\u5f00\u53d1\u5de5\u4f5c\u6d41\u7a0b\u4e2d&#xff0c;\u60a8\u6240\u91c7\u7528\u7684\u4e0d\u4ec5\u4ec5\u662f\u4e00\u79cd\u65b0\u5de5\u5177&#xff0c;\u800c\u662f\u4e00\u79cd\u4ece\u6839\u672c\u4e0a\u63d0\u9ad8\u5f00\u53d1 API \u9a71\u52a8\u578b\u5e94\u7528\u7a0b\u5e8f\u7684\u6548\u7387\u548c\u4e50\u8da3\u7684\u65b9\u5f0f\u3002\u60a8\u7684\u6587\u6863\u548c\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u4e4b\u95f4\u7684\u65e0\u7f1d\u8fde\u63a5\u6d88\u9664\u4e86\u4e0a\u4e0b\u6587\u5207\u6362&#xff0c;\u51cf\u5c11\u4e86\u9519\u8bef&#xff0c;\u4f7f\u60a8\u80fd\u591f\u4fdd\u6301\u68a6\u5bd0\u4ee5\u6c42\u7684\u6d41\u7a0b\u72b6\u6001&#xff0c;\u5728\u8fd9\u79cd\u72b6\u6001\u4e0b\u8fdb\u884c\u6700\u4f73\u5de5\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf8\u6b21\u3002Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881<\/p>\n","protected":false},"author":2,"featured_media":38875,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3452,50,43,44],"topic":[],"class_list":["post-38877","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","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>Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881 - \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\/38877.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf8\u6b21\u3002Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38877.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-21T08:56:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521085606-682d9526974cd.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\/38877.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38877.html\",\"name\":\"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-21T08:56:07+00:00\",\"dateModified\":\"2025-05-21T08:56:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38877.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38877.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38877.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881\"}]},{\"@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":"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881 - \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\/38877.html","og_locale":"zh_CN","og_type":"article","og_title":"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf8\u6b21\u3002Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881","og_url":"https:\/\/www.wsisp.com\/helps\/38877.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-21T08:56:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521085606-682d9526974cd.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\/38877.html","url":"https:\/\/www.wsisp.com\/helps\/38877.html","name":"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-21T08:56:07+00:00","dateModified":"2025-05-21T08:56:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38877.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38877.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38877.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Apidog MCP\u670d\u52a1\u5668,\u8fde\u63a5API\u89c4\u8303\u548cAI\u7f16\u7801\u52a9\u624b\u7684\u6865\u6881"}]},{"@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\/38877","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=38877"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38877\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38875"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38877"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}