天气

kuifeng/weather
0 Stars 3.0k 次浏览 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "weather": {
      "args": [
        "weather_server.py"
      ],
      "command": "python",
      "env": {
        "PYTHONUNBUFFERED": "1"
      }
    }
  }
}

服务介绍

工具列表

  • get_alerts(state: str) 返回指定州当前预警
  • get_forecast(latitude: float, longitude: float) 返回未来 5 段预报

相关 MCP 服务