{"id":81239,"date":"2026-07-25T00:35:03","date_gmt":"2026-07-24T16:35:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/81239.html"},"modified":"2026-07-25T00:35:03","modified_gmt":"2026-07-24T16:35:03","slug":"mcp-%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%9c%ac%e5%9c%b0%e9%83%a8%e7%bd%b2%e5%ae%9e%e6%88%98%e3%80%902026%e3%80%91%ef%bc%9apython-node-js-%e6%90%ad%e5%bb%ba-claude-cursor-trae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/81239.html","title":{"rendered":"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE"},"content":{"rendered":"<h2>MCP \u670d\u52a1\u5668\u600e\u4e48\u642d\u5efa&#xff1a;\u4ece\u96f6\u5230\u672c\u5730\u90e8\u7f72\u5b8c\u6574\u5165\u95e8\u6307\u5357&#xff08;2026&#xff09;<\/h2>\n<p>MCP&#xff08;Model Context Protocol&#xff09;\u662f Anthropic \u4e8e 2024 \u5e74\u63a8\u51fa\u7684 AI \u5de5\u5177\u6269\u5c55\u63a5\u53e3\u6807\u51c6&#xff0c;\u57fa\u4e8e JSON-RPC 2.0 \u534f\u8bae&#xff0c;\u8ba9 AI \u6a21\u578b\u53ef\u4ee5\u901a\u8fc7\u6807\u51c6\u5316\u65b9\u5f0f\u8c03\u7528\u5916\u90e8\u5de5\u5177\u3001\u8bfb\u53d6\u8d44\u6e90\u548c\u4f7f\u7528\u63d0\u793a\u6a21\u677f\u30022026 \u5e74&#xff0c;Cursor\u3001TRAE\u3001Claude Code\u3001OpenClaw \u5df2\u5168\u7ebf\u63a5\u5165 MCP&#xff0c;\u5f00\u53d1\u8005\u53ea\u9700\u642d\u5efa\u4e00\u6b21 MCP \u670d\u52a1\u5668&#xff0c;\u5c31\u80fd\u5728\u6240\u6709\u652f\u6301 MCP \u7684 AI \u5ba2\u6237\u7aef\u91cc\u76f4\u63a5\u8c03\u7528\u81ea\u5b9a\u4e49\u5de5\u5177\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724163459-6a6394337cd15.jpg\" alt=\"\u56fe1\" \/><\/p>\n<hr \/>\n<h3>MCP \u7684\u4e09\u5927\u80fd\u529b\u4e0e\u4e24\u79cd\u4f20\u8f93\u65b9\u5f0f<\/h3>\n<p>\u7406\u89e3\u8fd9\u4e24\u7ec4\u6982\u5ff5&#xff0c;\u662f\u642d\u5efa MCP \u670d\u52a1\u5668\u7684\u524d\u63d0\u3002<\/p>\n<h4>\u4e09\u5927\u80fd\u529b<\/h4>\n<table>\n<tr>\u80fd\u529b\u7c7b\u578b\u4f5c\u7528\u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>Tools&#xff08;\u5de5\u5177&#xff09;<\/td>\n<td>AI \u53ef\u4e3b\u52a8\u8c03\u7528\u7684\u51fd\u6570&#xff0c;\u6267\u884c\u64cd\u4f5c\u5e76\u8fd4\u56de\u7ed3\u679c<\/td>\n<td>\u67e5\u6570\u636e\u5e93\u3001\u8c03 API\u3001\u64cd\u4f5c\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>Resources&#xff08;\u8d44\u6e90&#xff09;<\/td>\n<td>AI \u53ef\u8bfb\u53d6\u7684\u6570\u636e\u6216\u4fe1\u606f&#xff0c;\u7c7b\u4f3c\u53ea\u8bfb\u6587\u4ef6\u7cfb\u7edf<\/td>\n<td>\u8bfb\u53d6\u672c\u5730\u6587\u6863\u3001\u8bbf\u95ee\u77e5\u8bc6\u5e93<\/td>\n<\/tr>\n<tr>\n<td>Prompts&#xff08;\u63d0\u793a\u6a21\u677f&#xff09;<\/td>\n<td>\u9884\u5b9a\u4e49\u7684\u63d0\u793a\u8bcd\u6a21\u677f&#xff0c;\u4f9b AI \u6309\u9700\u8c03\u7528<\/td>\n<td>\u4ee3\u7801\u5ba1\u67e5\u6a21\u677f\u3001\u62a5\u544a\u683c\u5f0f\u6a21\u677f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5927\u591a\u6570\u573a\u666f\u53ea\u9700\u5b9e\u73b0 Tools \u5373\u53ef\u6ee1\u8db3\u9700\u6c42\u3002<\/p>\n<h4>\u4e24\u79cd\u4f20\u8f93\u65b9\u5f0f<\/h4>\n<p>STDIO&#xff08;\u6807\u51c6\u8f93\u5165\u8f93\u51fa&#xff09;&#xff1a;\u672c\u5730\u8fdb\u7a0b\u95f4\u901a\u4fe1&#xff0c;AI \u5ba2\u6237\u7aef\u76f4\u63a5\u542f\u52a8 MCP \u670d\u52a1\u8fdb\u7a0b&#xff0c;\u6700\u7b80\u5355&#xff0c;\u9002\u5408\u672c\u5730\u4f7f\u7528\u3002<\/p>\n<p>SSE \/ Streamable HTTP&#xff1a;\u8fdc\u7a0b HTTP \u670d\u52a1&#xff0c;\u9002\u5408\u56e2\u961f\u5171\u4eab\u6216\u4e91\u7aef\u90e8\u7f72&#xff0c;\u9700\u8981\u670d\u52a1\u5668\u5730\u5740\u548c\u7aef\u53e3\u3002<\/p>\n<p>\u9009\u62e9\u539f\u5219&#xff1a;\u4e2a\u4eba\u5f00\u53d1\u548c\u672c\u5730\u6d4b\u8bd5\u9009 STDIO&#xff1b;\u56e2\u961f\u5171\u4eab\u6216\u9700\u8981\u8fdc\u7a0b\u8bbf\u95ee\u9009 HTTP\u3002<\/p>\n<hr \/>\n<h3>\u65b9\u6848\u4e00&#xff1a;Python \u642d\u5efa MCP \u670d\u52a1\u5668&#xff08;\u63a8\u8350\u65b0\u624b&#xff09;<\/h3>\n<p>FastMCP \u662f Python \u7248 MCP \u5b98\u65b9 SDK \u7684\u9ad8\u5c42\u5c01\u88c5&#xff0c;\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u5b9a\u4e49\u5de5\u5177\u3002<\/p>\n<h4>\u73af\u5883\u51c6\u5907<\/h4>\n<p><span class=\"token comment\"># \u63a8\u8350\u4f7f\u7528 uv \u7ba1\u7406 Python \u73af\u5883&#xff08;\u6bd4 pip \u5feb 10-100 \u500d&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u5b89\u88c5 uv&#xff08;macOS\/Linux&#xff09;<\/span><br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-LsSf<\/span> https:\/\/astral.sh\/uv\/install.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">sh<\/span><\/p>\n<p><span class=\"token comment\"># \u521d\u59cb\u5316\u9879\u76ee<\/span><br \/>\nuv init MyMcpServer<br \/>\n<span class=\"token builtin class-name\">cd<\/span> MyMcpServer<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u865a\u62df\u73af\u5883\u5e76\u5b89\u88c5\u4f9d\u8d56<\/span><br \/>\nuv venv<br \/>\n<span class=\"token builtin class-name\">source<\/span> .venv\/bin\/activate          <span class=\"token comment\"># macOS\/Linux<\/span><br \/>\n<span class=\"token comment\"># .venv\\\\Scripts\\\\activate           # Windows<\/span><\/p>\n<p>uv <span class=\"token function\">add<\/span> <span class=\"token string\">&#034;mcp[cli]&#034;<\/span> httpx<\/p>\n<h4>\u7f16\u5199\u7b2c\u4e00\u4e2a MCP \u670d\u52a1\u5668<\/h4>\n<p>\u521b\u5efa server.py&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> mcp<span class=\"token punctuation\">.<\/span>server<span class=\"token punctuation\">.<\/span>fastmcp <span class=\"token keyword\">import<\/span> FastMCP<br \/>\n<span class=\"token keyword\">import<\/span> os<\/p>\n<p><span class=\"token comment\"># \u521d\u59cb\u5316 MCP \u670d\u52a1\u5668\u5b9e\u4f8b<\/span><br \/>\nmcp <span class=\"token operator\">&#061;<\/span> FastMCP<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6211\u7684\u5de5\u5177\u7bb1&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u6ce8\u518c Tool&#xff1a;\u8bfb\u53d6\u672c\u5730\u6587\u4ef6\u5185\u5bb9<\/span><br \/>\n<span class=\"token decorator annotation punctuation\">&#064;mcp<span class=\"token punctuation\">.<\/span>tool<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">def<\/span> <span class=\"token function\">read_file<\/span><span class=\"token punctuation\">(<\/span>path<span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u8bfb\u53d6\u6307\u5b9a\u8def\u5f84\u7684\u6587\u4ef6\u5185\u5bb9&#xff0c;\u8fd4\u56de\u6587\u672c&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">try<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">with<\/span> <span class=\"token builtin\">open<\/span><span class=\"token punctuation\">(<\/span>path<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;r&#034;<\/span><span class=\"token punctuation\">,<\/span> encoding<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;utf-8&#034;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> f<span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token keyword\">return<\/span> f<span class=\"token punctuation\">.<\/span>read<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">except<\/span> Exception <span class=\"token keyword\">as<\/span> e<span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;\u8bfb\u53d6\u5931\u8d25&#xff1a;<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u6ce8\u518c Tool&#xff1a;\u5217\u51fa\u76ee\u5f55\u6587\u4ef6<\/span><br \/>\n<span class=\"token decorator annotation punctuation\">&#064;mcp<span class=\"token punctuation\">.<\/span>tool<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">def<\/span> <span class=\"token function\">list_files<\/span><span class=\"token punctuation\">(<\/span>directory<span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">[<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u5217\u51fa\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u540d&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">try<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> os<span class=\"token punctuation\">.<\/span>listdir<span class=\"token punctuation\">(<\/span>directory<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">except<\/span> Exception <span class=\"token keyword\">as<\/span> e<span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;\u9519\u8bef&#xff1a;<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token comment\"># \u6ce8\u518c Resource&#xff1a;\u66b4\u9732\u672c\u5730\u6587\u6863<\/span><br \/>\n<span class=\"token decorator annotation punctuation\">&#064;mcp<span class=\"token punctuation\">.<\/span>resource<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;docs:\/\/readme&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">def<\/span> <span class=\"token function\">get_readme<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u8fd4\u56de\u9879\u76ee\u8bf4\u660e\u6587\u6863&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;\u8fd9\u662f\u6211\u7684 MCP \u5de5\u5177\u7bb1&#xff0c;\u652f\u6301\u6587\u4ef6\u8bfb\u5199\u64cd\u4f5c\u3002&#034;<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> __name__ <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;__main__&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    mcp<span class=\"token punctuation\">.<\/span>run<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>   <span class=\"token comment\"># \u9ed8\u8ba4 STDIO \u6a21\u5f0f<\/span><\/p>\n<h4>\u672c\u5730\u8c03\u8bd5<\/h4>\n<p><span class=\"token comment\"># \u542f\u52a8 MCP Inspector&#xff08;\u53ef\u89c6\u5316\u6d4b\u8bd5\u5de5\u5177&#xff09;<\/span><br \/>\nfastmcp dev server.py<br \/>\n<span class=\"token comment\"># \u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:5173 \u8fdb\u884c\u4ea4\u4e92\u6d4b\u8bd5<\/span><\/p>\n<hr \/>\n<h3>\u65b9\u6848\u4e8c&#xff1a;Node.js \u642d\u5efa MCP \u670d\u52a1\u5668<\/h3>\n<p>\u9002\u5408\u5df2\u6709 Node.js \u9879\u76ee\u6216\u9700\u8981\u96c6\u6210\u524d\u7aef\u751f\u6001\u7684\u573a\u666f\u3002<\/p>\n<p><span class=\"token function\">npm<\/span> init <span class=\"token parameter variable\">-y<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> &#064;modelcontextprotocol\/sdk zod<\/p>\n<p>\u521b\u5efa server.js&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> McpServer <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;modelcontextprotocol\/sdk\/server\/mcp.js&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> StdioServerTransport <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;modelcontextprotocol\/sdk\/server\/stdio.js&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> z <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;zod&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">const<\/span> server <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">McpServer<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">name<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;node-tools&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">version<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;1.0.0&#039;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u6ce8\u518c\u5de5\u5177&#xff1a;\u4e24\u6570\u76f8\u52a0<\/span><br \/>\nserver<span class=\"token punctuation\">.<\/span><span class=\"token function\">tool<\/span><span class=\"token punctuation\">(<\/span><br \/>\n  <span class=\"token string\">&#039;add&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">a<\/span><span class=\"token operator\">:<\/span> z<span class=\"token punctuation\">.<\/span><span class=\"token function\">number<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">b<\/span><span class=\"token operator\">:<\/span> z<span class=\"token punctuation\">.<\/span><span class=\"token function\">number<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token keyword\">async<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\"><span class=\"token punctuation\">{<\/span> a<span class=\"token punctuation\">,<\/span> b <span class=\"token punctuation\">}<\/span><\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">content<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">type<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;text&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">text<\/span><span class=\"token operator\">:<\/span> <span class=\"token function\">String<\/span><span class=\"token punctuation\">(<\/span>a <span class=\"token operator\">&#043;<\/span> b<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">]<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u542f\u52a8 STDIO \u4f20\u8f93&#xff08;\u6ce8\u610f&#xff1a;\u53ea\u80fd\u7528 console.error \u6253\u65e5\u5fd7&#xff0c;console.log \u4f1a\u6c61\u67d3\u901a\u4fe1\u901a\u9053&#xff09;<\/span><br \/>\n<span class=\"token keyword\">const<\/span> transport <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">StdioServerTransport<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">await<\/span> server<span class=\"token punctuation\">.<\/span><span class=\"token function\">connect<\/span><span class=\"token punctuation\">(<\/span>transport<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nconsole<span class=\"token punctuation\">.<\/span><span class=\"token function\">error<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u2705 MCP \u670d\u52a1\u5668\u542f\u52a8\u6210\u529f&#xff08;STDIO \u6a21\u5f0f&#xff09;&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<hr \/>\n<h3>\u63a5\u5165\u4e3b\u6d41 AI \u5ba2\u6237\u7aef<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724163500-6a6394345ce9e.jpg\" alt=\"\u56fe2\" \/><\/p>\n<h4>\u63a5\u5165 Claude Desktop<\/h4>\n<p>\u914d\u7f6e\u6587\u4ef6\u8def\u5f84&#xff1a;<\/p>\n<ul>\n<li>macOS&#xff1a;~\/Library\/Application Support\/Claude\/claude_desktop_config.json<\/li>\n<li>Windows&#xff1a;C:\\\\Users\\\\\u7528\u6237\u540d\\\\AppData\\\\Roaming\\\\Claude\\\\claude_desktop_config.json<\/li>\n<\/ul>\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;my-tools&#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;python&#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;\/Users\/\u4f60\u7684\u7528\u6237\u540d\/MyMcpServer\/server.py&#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;PYTHONPATH&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\/Users\/\u4f60\u7684\u7528\u6237\u540d\/MyMcpServer&#034;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;node-tools&#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;\/Users\/\u4f60\u7684\u7528\u6237\u540d\/node-mcp\/server.js&#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<p>\u4fdd\u5b58\u540e\u91cd\u542f Claude Desktop&#xff0c;\u5728\u5bf9\u8bdd\u4e2d\u8f93\u5165&#034;\u4f60\u6709\u54ea\u4e9b\u5de5\u5177&#xff1f;&#034;\u9a8c\u8bc1\u662f\u5426\u751f\u6548\u3002<\/p>\n<h4>\u63a5\u5165 Claude Code&#xff08;\u547d\u4ee4\u884c&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u6dfb\u52a0 MCP \u670d\u52a1\u5668<\/span><br \/>\nclaude mcp <span class=\"token function\">add<\/span> my-tools python \/\u7edd\u5bf9\u8def\u5f84\/server.py<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5df2\u6dfb\u52a0\u7684 MCP \u670d\u52a1\u5668\u5217\u8868<\/span><br \/>\nclaude mcp list<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u67d0\u4e2a\u670d\u52a1\u5668<\/span><br \/>\nclaude mcp remove my-tools<\/p>\n<h4>\u63a5\u5165 Cursor<\/h4>\n<p>Settings \u2192 MCP \u2192 Add new MCP server&#xff0c;\u586b\u5199&#xff1a;<\/p>\n<ul>\n<li>Type&#xff1a;command<\/li>\n<li>Name&#xff1a;\u81ea\u5b9a\u4e49\u540d\u79f0&#xff08;\u5982 my-tools&#xff09;<\/li>\n<li>Command&#xff1a;python \/\u7edd\u5bf9\u8def\u5f84\/server.py<\/li>\n<\/ul>\n<h4>\u63a5\u5165 TRAE<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u521b\u5efa .trae\/mcp.json&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;servers&#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;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;my-tools&#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;python&#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;\/\u7edd\u5bf9\u8def\u5f84\/server.py&#034;<\/span><span class=\"token punctuation\">]<\/span><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 string\">&#034;stdio&#034;<\/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>\u4e0d\u60f3\u81ea\u5df1\u5199&#xff1f;\u76f4\u63a5\u5b89\u88c5\u8fd9 5 \u4e2a\u70ed\u95e8 MCP \u670d\u52a1\u5668<\/h3>\n<p>\u5f00\u6e90\u793e\u533a\u5df2\u6709\u5927\u91cf\u9ad8\u8d28\u91cf MCP \u670d\u52a1\u5668\u53ef\u76f4\u63a5\u4f7f\u7528&#xff0c;\u65e0\u9700\u4ece\u96f6\u7f16\u5199&#xff1a;<\/p>\n<table>\n<tr>MCP \u670d\u52a1\u5668\u529f\u80fdGitHub Stars\u5b89\u88c5\u547d\u4ee4<\/tr>\n<tbody>\n<tr>\n<td>chrome-devtools-mcp<\/td>\n<td>\u6d4f\u89c8\u5668\u81ea\u52a8\u5316&#xff0c;26 \u4e2a\u5de5\u5177<\/td>\n<td>18.5k<\/td>\n<td>npx chrome-devtools-mcp&#064;latest<\/td>\n<\/tr>\n<tr>\n<td>github-mcp<\/td>\n<td>GitHub API \u96c6\u6210&#xff0c;\u7ba1\u7406 Issue\/PR<\/td>\n<td>10k&#043;<\/td>\n<td>npx &#064;modelcontextprotocol\/server-github<\/td>\n<\/tr>\n<tr>\n<td>postgres-mcp<\/td>\n<td>PostgreSQL \u6570\u636e\u5e93\u64cd\u4f5c<\/td>\n<td>5k&#043;<\/td>\n<td>npx &#064;modelcontextprotocol\/server-postgres<\/td>\n<\/tr>\n<tr>\n<td>filesystem-mcp<\/td>\n<td>\u589e\u5f3a\u6587\u4ef6\u7cfb\u7edf\u8bfb\u5199<\/td>\n<td>3k&#043;<\/td>\n<td>npx &#064;modelcontextprotocol\/server-filesystem<\/td>\n<\/tr>\n<tr>\n<td>web-search-mcp<\/td>\n<td>\u7f51\u7edc\u641c\u7d22\u529f\u80fd<\/td>\n<td>2k&#043;<\/td>\n<td>npx &#064;modelcontextprotocol\/server-brave-search<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5 Claude Desktop \u63a5\u5165 GitHub MCP \u4e3a\u4f8b&#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;github&#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;npx&#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;&#064;modelcontextprotocol\/server-github&#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;GITHUB_PERSONAL_ACCESS_TOKEN&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;ghp_\u4f60\u7684token&#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><\/p>\n<p>\u5bf9\u4e8e\u4e0d\u60f3\u7ef4\u62a4\u672c\u5730\u73af\u5883\u7684\u56e2\u961f&#xff0c;\u4e5f\u53ef\u4ee5\u63a5\u5165\u6258\u7ba1\u578b MCP \u7f16\u6392\u5e73\u53f0\u2014\u2014\u4f8b\u5982\u4e03\u725b\u4e91 MCP \u670d\u52a1\u652f\u6301\u6807\u51c6\u5316\u6a21\u578b\u80fd\u529b\u7f16\u6392&#xff0c;\u65e0\u9700\u672c\u5730\u90e8\u7f72\u670d\u52a1\u5668\u5373\u53ef\u6784\u5efa Agent \u5e94\u7528&#xff0c;\u5177\u4f53\u63a5\u5165\u65b9\u5f0f\u89c1\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<hr \/>\n<h3>\u5e38\u89c1\u95ee\u9898<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724163501-6a6394353fa68.jpg\" alt=\"\u56fe3\" \/><\/p>\n<p>Q&#xff1a;MCP \u548c\u666e\u901a\u51fd\u6570\u8c03\u7528&#xff08;Function Calling&#xff09;\u6709\u4ec0\u4e48\u533a\u522b&#xff1f; Function Calling \u662f\u5404\u5bb6\u5927\u6a21\u578b\u79c1\u6709\u5b9e\u73b0&#xff0c;\u683c\u5f0f\u4e0d\u7edf\u4e00&#xff0c;\u6362\u6a21\u578b\u5c31\u8981\u6539\u4ee3\u7801\u3002MCP \u662f\u8de8\u6a21\u578b\u7684\u6807\u51c6\u534f\u8bae&#xff0c;\u4e00\u5957 MCP \u670d\u52a1\u5668\u53ef\u4ee5\u88ab Claude\u3001GPT\u3001Cursor\u3001TRAE \u7b49\u4efb\u610f\u652f\u6301 MCP \u7684\u5ba2\u6237\u7aef\u8c03\u7528&#xff0c;\u4e0d\u9700\u8981\u4e3a\u6bcf\u4e2a\u5ba2\u6237\u7aef\u5355\u72ec\u9002\u914d\u3002<\/p>\n<p>Q&#xff1a;STDIO \u6a21\u5f0f\u4e0b console.log \u4e3a\u4ec0\u4e48\u4f1a\u8ba9 MCP \u670d\u52a1\u5668\u51fa\u9519&#xff1f; STDIO \u6a21\u5f0f\u4f7f\u7528\u6807\u51c6\u8f93\u5165\u8f93\u51fa\u4f5c\u4e3a\u901a\u4fe1\u901a\u9053&#xff0c;console.log \u8f93\u51fa\u7684\u5185\u5bb9\u4f1a\u88ab\u5ba2\u6237\u7aef\u8bef\u8ba4\u4e3a JSON-RPC \u6d88\u606f&#xff0c;\u5bfc\u81f4\u89e3\u6790\u62a5\u9519\u3002Node.js \u4e2d\u5fc5\u987b\u7528 console.error \u6253\u5370\u65e5\u5fd7&#xff08;\u8d70 stderr&#xff09;&#xff0c;Python \u4e2d\u4f7f\u7528 import sys; print(&#034;log&#034;, file&#061;sys.stderr)\u3002<\/p>\n<p>Q&#xff1a;MCP \u670d\u52a1\u5668\u7684 args \u8def\u5f84\u5fc5\u987b\u662f\u7edd\u5bf9\u8def\u5f84\u5417&#xff1f; \u662f\u7684&#xff0c;\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 args \u5fc5\u987b\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u3002\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u4f1a\u56e0\u4e3a\u5ba2\u6237\u7aef\u7684\u5de5\u4f5c\u76ee\u5f55\u4e0d\u786e\u5b9a\u800c\u5bfc\u81f4\u627e\u4e0d\u5230\u6587\u4ef6\u3002\u53ef\u4ee5\u7528 $(pwd)\/server.py \u5728\u7ec8\u7aef\u91cc\u6253\u5370\u5f53\u524d\u8def\u5f84\u518d\u7c98\u8d34\u8fdb\u914d\u7f6e\u3002<\/p>\n<p>Q&#xff1a;\u5982\u4f55\u8ba9\u56e2\u961f\u5171\u4eab\u540c\u4e00\u4e2a MCP \u670d\u52a1\u5668&#xff0c;\u800c\u4e0d\u662f\u6bcf\u4eba\u672c\u5730\u8dd1\u4e00\u4efd&#xff1f; \u5c06 MCP \u670d\u52a1\u5668\u6539\u4e3a HTTP \u6a21\u5f0f\u90e8\u7f72\u5230\u4e91\u670d\u52a1\u5668&#xff0c;\u5ba2\u6237\u7aef\u914d\u7f6e\u4e2d\u5c06 command \u66ff\u6362\u4e3a url \u6307\u5411\u8fdc\u7a0b\u5730\u5740\u3002Python FastMCP \u5207\u6362 HTTP \u6a21\u5f0f\u53ea\u9700 mcp.run(transport&#061;&#034;streamable-http&#034;, port&#061;8000)&#xff0c;\u4e0d\u9700\u8981\u4fee\u6539\u5de5\u5177\u903b\u8f91\u4ee3\u7801\u3002<\/p>\n<p>Q&#xff1a;MCP Inspector \u662f\u4ec0\u4e48&#xff0c;\u6709\u4ec0\u4e48\u7528&#xff1f; MCP Inspector \u662f\u5b98\u65b9\u63d0\u4f9b\u7684\u53ef\u89c6\u5316\u8c03\u8bd5\u5de5\u5177&#xff0c;\u8fd0\u884c fastmcp dev server.py \u540e\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u6d4b\u8bd5\u6bcf\u4e2a Tool \u7684\u8f93\u5165\u8f93\u51fa&#xff0c;\u4e0d\u9700\u8981\u8fde\u63a5\u771f\u5b9e AI \u5ba2\u6237\u7aef\u3002\u5f00\u53d1\u9636\u6bb5\u5f3a\u70c8\u63a8\u8350\u5148\u7528 Inspector \u9a8c\u8bc1\u5de5\u5177\u903b\u8f91&#xff0c;\u518d\u63a5\u5165 Claude\/Cursor\u3002<\/p>\n<hr \/>\n<h3>\u5ef6\u4f38\u8d44\u6e90<\/h3>\n<ul>\n<li>\u6258\u7ba1\u578b MCP \u670d\u52a1&#xff08;\u65e0\u9700\u672c\u5730\u90e8\u7f72&#xff0c;\u6807\u51c6\u5316\u6a21\u578b\u80fd\u529b\u7f16\u6392&#xff09;&#xff1a;\u4e03\u725b\u4e91 MCP \u670d\u52a1\u6587\u6863<\/li>\n<li>\u591a\u6a21\u578b API \u7edf\u4e00\u63a5\u5165&#xff08;Claude \/ DeepSeek \/ Kimi&#xff0c;\u517c\u5bb9 OpenAI \u683c\u5f0f&#xff09;&#xff1a;\u4e03\u725b\u4e91 AI \u63a8\u7406 API Key<\/li>\n<li>MCP \u5b98\u65b9 Python SDK&#xff1a;github.com\/modelcontextprotocol\/python-sdk<\/li>\n<li>\u5f00\u6e90 MCP \u670d\u52a1\u5668\u76ee\u5f55&#xff1a;github.com\/modelcontextprotocol\/servers<\/li>\n<\/ul>\n<hr \/>\n<p>\u628a\u672c\u6587&#034;\u63a5\u5165 Claude Desktop&#034;\u4e00\u8282\u7684\u914d\u7f6e\u6a21\u677f\u52a0\u5165\u56e2\u961f Runbook&#xff0c;\u65b0\u6210\u5458 15 \u5206\u949f\u5185\u5373\u53ef\u5b8c\u6210 MCP \u73af\u5883\u642d\u5efa&#xff0c;\u4e0d\u4f9d\u8d56\u53e3\u53e3\u76f8\u4f20\u7684\u53e3\u5934\u6587\u6863\u3002<\/p>\n<p>\u672c\u6587\u5185\u5bb9\u57fa\u4e8e 2026 \u5e74 5 \u6708 MCP \u5b98\u65b9 Python SDK\u3001Node.js SDK \u53ca\u5404\u5ba2\u6237\u7aef\u6700\u65b0\u6587\u6863&#xff0c;\u4ee3\u7801\u793a\u4f8b\u5df2\u5728 Python 3.12 \/ Node.js 22 \u73af\u5883\u9a8c\u8bc1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MCP \u670d\u52a1\u5668\u600e\u4e48\u642d\u5efa&#xff1a;\u4ece\u96f6\u5230\u672c\u5730\u90e8\u7f72\u5b8c\u6574\u5165\u95e8\u6307\u5357&#xff08;2026&#xff09;<br \/>\nMCP&#xff08;Model Context Protocol&#xff09;\u662f Anthropic \u4e8e 2024 \u5e74\u63a8\u51fa\u7684 AI \u5de5\u5177\u6269\u5c55\u63a5\u53e3\u6807\u51c6&#xff0c;\u57fa\u4e8e JSON-RPC 2.0 \u534f\u8bae&#xff0c;\u8ba9 AI \u6a21\u578b\u53ef\u4ee5\u901a\u8fc7\u6807\u51c6\u5316\u65b9\u5f0f\u8c03\u7528\u5916\u90e8\u5de5\u5177\u3001\u8bfb\u53d6\u8d44\u6e90\u548c\u4f7f\u7528\u63d0\u793a\u6a21\u677f\u30022026 \u5e74&#xff0c;Cursor\u3001TRAE\u3001Claude Code\u3001Ope<\/p>\n","protected":false},"author":2,"featured_media":81236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[186,81,43],"topic":[],"class_list":["post-81239","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-node-js","tag-python","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE - \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\/81239.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"MCP \u670d\u52a1\u5668\u600e\u4e48\u642d\u5efa&#xff1a;\u4ece\u96f6\u5230\u672c\u5730\u90e8\u7f72\u5b8c\u6574\u5165\u95e8\u6307\u5357&#xff08;2026&#xff09; MCP&#xff08;Model Context Protocol&#xff09;\u662f Anthropic \u4e8e 2024 \u5e74\u63a8\u51fa\u7684 AI \u5de5\u5177\u6269\u5c55\u63a5\u53e3\u6807\u51c6&#xff0c;\u57fa\u4e8e JSON-RPC 2.0 \u534f\u8bae&#xff0c;\u8ba9 AI \u6a21\u578b\u53ef\u4ee5\u901a\u8fc7\u6807\u51c6\u5316\u65b9\u5f0f\u8c03\u7528\u5916\u90e8\u5de5\u5177\u3001\u8bfb\u53d6\u8d44\u6e90\u548c\u4f7f\u7528\u63d0\u793a\u6a21\u677f\u30022026 \u5e74&#xff0c;Cursor\u3001TRAE\u3001Claude Code\u3001Ope\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/81239.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T16:35:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724163459-6a6394337cd15.jpg\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81239.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/81239.html\",\"name\":\"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T16:35:03+00:00\",\"dateModified\":\"2026-07-24T16:35:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/81239.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/81239.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81239.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE\"}]},{\"@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 \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE - \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\/81239.html","og_locale":"zh_CN","og_type":"article","og_title":"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"MCP \u670d\u52a1\u5668\u600e\u4e48\u642d\u5efa&#xff1a;\u4ece\u96f6\u5230\u672c\u5730\u90e8\u7f72\u5b8c\u6574\u5165\u95e8\u6307\u5357&#xff08;2026&#xff09; MCP&#xff08;Model Context Protocol&#xff09;\u662f Anthropic \u4e8e 2024 \u5e74\u63a8\u51fa\u7684 AI \u5de5\u5177\u6269\u5c55\u63a5\u53e3\u6807\u51c6&#xff0c;\u57fa\u4e8e JSON-RPC 2.0 \u534f\u8bae&#xff0c;\u8ba9 AI \u6a21\u578b\u53ef\u4ee5\u901a\u8fc7\u6807\u51c6\u5316\u65b9\u5f0f\u8c03\u7528\u5916\u90e8\u5de5\u5177\u3001\u8bfb\u53d6\u8d44\u6e90\u548c\u4f7f\u7528\u63d0\u793a\u6a21\u677f\u30022026 \u5e74&#xff0c;Cursor\u3001TRAE\u3001Claude Code\u3001Ope","og_url":"https:\/\/www.wsisp.com\/helps\/81239.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T16:35:03+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724163459-6a6394337cd15.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/81239.html","url":"https:\/\/www.wsisp.com\/helps\/81239.html","name":"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T16:35:03+00:00","dateModified":"2026-07-24T16:35:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/81239.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/81239.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/81239.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MCP \u670d\u52a1\u5668\u672c\u5730\u90e8\u7f72\u5b9e\u6218\u30102026\u3011\uff1aPython\/Node.js \u642d\u5efa + Claude\/Cursor\/TRAE"}]},{"@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\/81239","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=81239"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81239\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/81236"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=81239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=81239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=81239"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=81239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}