天气 查询

blackcomfortable/weather_query
Hosted
4 Stars 3.7k 次浏览 Hamlin 更新于 2026-08-23

MCP 服务配置

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

{
  "mcpServers": {
    "gradio": {
      "args": [
        "mcp-remote",
        "https://blackcomfortable-weather-query.ms.show/gradio_api/mcp/sse",
        "--transport",
        "sse-only"
      ],
      "command": "npx"
    }
  }
}

该服务需要配置环境变量:GaodeMap_API_key

服务介绍

获取指定条件的天气信息(MCP标准化接口)。
解决的核心痛点:替代手动查询天气的重复劳动,支持多场景自动化整合(如旅游攻略、办公提醒、农业预警)。

Args:  
    location (str, 必填): 具体城市/区域(如"北京市朝阳区"、"巴黎"),需明确到城市级;  
    time_range (str, 可选): 时间范围,可选值为["实时", "未来1天", "未来3天"],默认"实时";  
    need_type (str, 可选): 需求类型,可选值为["综合", "温度+降水", "风力+空气质量"],默认"综合"。  

Returns:  
    tuple[Dict, str]: 结构化数据(用于MCP集成)、人性化反馈(用于直接展示)。  

相关 MCP 服务