Skip to main content
Glama
Weather API MCP

Weather API MCP

by anslemdavid

🌦️ Weather API MCP

A zero-configuration Model Context Protocol (MCP) weather server for Claude and other MCP clients. It provides current conditions and forecasts using the free Open-Meteo APIs—no weather API key required.

Features

  • Current weather for locations worldwide

  • Forecasts for 1–7 days

  • Celsius or Fahrenheit temperatures

  • No weather API key required

  • Python implementation using the MCP Python SDK

Related MCP server: Simple Weather MCP

SkyWear browser preview

Try the SkyWear preview in Claude.

For local development, open SkyWear on localhost after starting your local preview server. This address only works on the computer running the server; it is not a public website link.

SkyWear is a responsive, animated weather-and-outfit interface. It presents current conditions, hourly and 7-day forecasts, sunrise and sunset, wind, humidity, UV and air-quality details, location favorites, temperature-unit switching, sharing, and English, German, French, Spanish, and Kiswahili language options.

The supplied preview is currently configured with DEMO=true. It shows sample data for Ingolstadt, hides the city-search form, and does not make live weather requests. The HTML contains a live-data path using Open-Meteo geocoding, forecast, and air-quality APIs; set DEMO=false to use that path. Browser geolocation requires a secure context (HTTPS or localhost).

The browser preview is a separate frontend concept; it is not the MCP server itself. The MCP server continues to run over stdio for MCP clients.

Requirements

  • Python 3.10+

  • uv

Install and run

uv sync
uv run weather-mcp

The server uses stdio transport for MCP clients. To install it into the active Python environment instead, run pip install -e . and then weather-mcp.

Configure Claude Desktop

After installing the project with uv sync, add the following to your Claude Desktop MCP configuration, replacing /absolute/path/to/WEATHER_API_MCP with this repository's directory:

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/WEATHER_API_MCP",
        "run",
        "weather-mcp"
      ]
    }
  }
}

Tools

get_weather

Parameters: location (string), unit (celsius or fahrenheit, optional; defaults to Celsius).

Returns the resolved location, temperature, apparent temperature, weather condition, humidity, wind speed, and pressure.

get_forecast

Parameters: location (string), days (integer from 1 to 7, optional; defaults to 5), and unit (celsius or fahrenheit, optional; defaults to 5).

Returns daily high and low temperatures, conditions, and precipitation probabilities.

Data source

Location lookup and weather data are provided by Open-Meteo. Internet access is required for live weather; no account or API key is needed.

Available Tools

2 tools
get_forecastC

Get a daily weather forecast for 1–7 days for a location.

Inputs: location (required), days, unit. Returns: object

get_weatherB

Get current weather for a place. Wind speed is returned in km/h.

Inputs: location (required), unit. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    get_weather and get_forecast have clearly distinct purposes: current conditions versus daily forecast. An agent can easily choose the correct tool based on whether it needs present weather or a multi-day outlook.

    Naming Consistency5/5

    Both tools follow a consistent get_<noun> pattern. The naming is predictable and directly reflects the returned data.

    Tool Count3/5

    Two tools are thin for a weather API surface, though they cover the most common current-weather and forecast use cases. Additional tools for hourly forecasts, alerts, or location lookup would make the set feel more complete.

    Completeness4/5

    The core weather workflow—current conditions and 1–7 day forecasts—is covered without dead ends. Minor gaps remain around hourly forecasts, severe weather alerts, and location resolution/geocoding.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides real-time weather data, hourly forecasts, and daily summaries using the free Open-Meteo API with no API key required. It enables users to search for weather conditions by specific coordinates or city names across multiple measurement units.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A cross-platform MCP server that provides weather forecasts by coordinates, location name, or IP address without requiring API keys. It leverages Open Meteo and OpenStreetMap to deliver fast, single-query weather lookups.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A MCP server for querying real-time weather information for any city worldwide using the free Open-Meteo API, supporting CLI and integration with AI clients like Claude and Cursor.
      28 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A no-API-key-required MCP server that wraps Open-Meteo APIs to provide geocoding and weather forecast data, enabling city lookups and multi-day forecasts through tools, resources, and prompts.
      MIT