天气服务集成

通过npm构建项目并将天气服务集成到Claude Desktop的MCP服务器配置中。

  • by CDT
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 CDT/mcp_server_demo

使用说明

  1. 跑 npm run build 构建项目。
  2. 打开Claude桌面版,并在你的MCP服务器配置中添加以下内容:
    {
      "mcpServers": {
        "weather": {
          "command": "node",
          "args": ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/index.js"]
        }
      }
    }
    
  3. 重启 Claude 桌面版以使更改生效。