本示例借助高德地图的天气接口,可轻松获取当前城市的天气信息,为你提供便捷的天气查询体验。
请按照以下步骤完成安装与配置:
gaodeweather 的服务,指定其命令为 uvx 并传入参数 mcp-gaodeweather-server。GAODE_KEY 为你的高德API Key。{
"mcpServers": {
"gaodeweather": {
"name": "gaodeweather",
"command": "uvx",
"args": [
"mcp-gaodeweather-server"
],
"env": {
"GAODE_KEY": "your_apikey_here"
}
}
}
}
要通过 Smithery 自动安装 mcp-gaodeweather-server 到Claude Desktop,可执行以下命令:
npx -y @smithery/cli install @kevinkelin/mcp-gaodeweather-server --client claude
your_apikey_here 替换为你的高德API Key。