天气信息MCP服务器

momo11234/mcp_weather_server_srtp
Hosted
2 Stars 840 次浏览 更新于 2026-08-23

基于Model Context Protocol (MCP)的天气信息服务器,提供获取指定位置当前天气信息的功能。

MCP 服务配置

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

{
  "mcpServers": {
    "mcp-weather-server": {
      "args": [
        "mcp-weather-server@latest"
      ],
      "command": "uvx"
    }
  }
}

可用工具 (8 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

get_current_weather 1 个参数 需填 1 项

Get current weather information for a specified city. It extracts the current hour's temperature and weather code, maps the weather code to a human-readable description, and returns a formatted summary.

必填参数:city

get_weather_byDateTimeRange 3 个参数 需填 3 项

Get weather information for a specified city between start and end dates.

必填参数:city、start_date、end_date

get_weather_details 2 个参数 需填 1 项

Get detailed weather information for a specified city as structured JSON data. This tool provides raw weather data for programmatic analysis and processing.

必填参数:city

get_current_datetime 1 个参数 需填 1 项

Get current time in specified timezone.

必填参数:timezone_name

get_timezone_info 1 个参数 需填 1 项

Get information about a specific timezone including current time and UTC offset.

必填参数:timezone_name

convert_time 3 个参数 需填 3 项

Convert time from one timezone to another.

必填参数:datetime_str、from_timezone、to_timezone

get_air_quality 2 个参数 需填 1 项

Get air quality information for a specified city including PM2.5, PM10, ozone, nitrogen dioxide, carbon monoxide, and other pollutants. Provides health advisories based on current air quality levels.

必填参数:city

get_air_quality_details 2 个参数 需填 1 项

Get detailed air quality information for a specified city as structured JSON data. This tool provides raw air quality data for programmatic analysis and processing.

必填参数:city

服务介绍

天气信息 MCP 服务器

基于 Model Context Protocol (MCP) 的天气信息服务器,提供获取指定位置当前天气信息的功能。

工具列表

name description
get_current_weather_tool 获取指定位置的当前天气信息

inspector

npx @modelcontextprotocol/inspector uvx mcp-weather-server

MCP 服务器配置

{
  "mcpServers": {
    "mcp-weather-server": {
        "command": "uvx",
        "args": [
          "mcp-weather-server@latest"
        ]
      }
  }
}

相关 MCP 服务