使用说明
weather-mcp
使用高德接口搭建的天气MCP。
使用
-
获取API_KEY = 👉 https://console.amap.com/dev/key/app (免费)
-
MCP配置(注意:不同的ide或客户端配置方式有所不同)
# stdio模式
node ./build/index.js --stdio API_KEY=<YOUR_API_KEY>
# sse模式
node ./build/index.js API_KEY=<YOUR_API_KEY>
高德天气接口
👉 https://lbs.amap.com/api/webservice/guide/api-advanced/weatherinfo)