SuperAPIAI Directory

mcp_weather_server

github.com · AI developer platforms

Get weather information from the Open-Meteo API.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

mcp_weather_server is a Model Context Protocol (MCP) server used to retrieve weather, air quality, and time information from the Open-Meteo API. It is designed to be called by MCP clients (such as Claude Desktop) or web applications to provide real-time weather and environmental data.

Main capabilities

  • Weather information: Retrieve comprehensive current weather metrics, including temperature, humidity, dew point, wind speed, wind direction, gusts, precipitation (rain/snow) and probability, atmospheric pressure, cloud cover, UV index, visibility, "feels like" temperature, and sunrise/sunset times (local time).
  • Query by date range: Retrieve hourly weather details for a specified date range, including temperature trends, precipitation patterns, wind condition assessments, UV trends, weather warnings and recommendations, etc.
  • Detailed weather data: Return detailed weather information in structured JSON for programmatic use.
  • Air quality: Retrieve pollutant data such as PM2.5, PM10, ozone, nitrogen dioxide, carbon monoxide, sulfur dioxide, ammonia, dust, and aerosol optical depth, along with air quality classifications (good/moderate/unhealthy/hazardous), health recommendations, and comparisons with WHO and EPA standards.
  • Time and time zones: Retrieve the current date and time in any time zone, time zone information, and convert times between different time zones.
  • Transport modes: Support stdio (standard MCP, desktop clients), SSE (Server-Sent Events, web applications), and streamable-http (modern MCP Streamable HTTP protocol, with stateful/stateless support), and can provide RESTful API endpoints via Starlette.

Usage

  • Installation: Can be installed via pip, or automatically installed via Smithery (suitable for MCP clients such as Claude Desktop). Manual configuration requires adding the server configuration in the client's cline_mcp_settings.json . HTTP mode requires additional dependencies (starlette, uvicorn).
  • Run: Runs in stdio mode by default; SSE mode uses python -m mcp_weather_server --mode sse, with endpoints http://localhost:8080/sse and http://localhost:8080/messages/; Streamable HTTP mode uses python -m mcp_weather_server --mode streamable-http, with endpoints http://localhost:8080/mcp.
  • Docker deployment: Provides a Docker Hub image dog830228/mcp_weather_server:latest or versioned tags, and can also be built from source.
  • Available tools:get_current_weather、get_weather_by_datetime_range、get_weather_details、get_air_quality、get_air_quality_details、get_current_datetime、get_timezone_info、convert_time.

Applicable scenarios

  • Integrate weather and air quality data into AI assistants or chatbots.
  • Retrieve environmental information in real time in web applications via SSE or Streamable HTTP.
  • Applications that need to analyze weather trends or air quality changes over a time range.
  • Tool requirements related to time and time zone conversion.

Limitations

  • City names are supported only in English and may need to include the country (e.g., "Paris, France").
  • The date format must be ISO 8601 (YYYY-MM-DD), and start_date must be earlier than end_date.
  • HTTP mode requires ensuring dependencies are installed, ports are not blocked by a firewall, and endpoints are verified as correct.
  • The server itself does not require an API key, but depends on the availability of the Open-Meteo API.
  • Some error responses are structured error messages, which need to be handled carefully.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools