Simple Weather MCP Server example from Quickstart
镜像自
这是一个基于 MCP 快速入门 的简易天气服务器示例。
构建步骤
npm install npm run build
Claude 桌面版配置
编辑配置文件:
cursor ~/Library/Application\ Support/Claude/claude_desktop_config.json
添加以下配置:
{
"mcpServers": {
"weather": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather/build/index.js"
]
}
}
}
注意:请将路径替换为您实际的项目路径