Skip to main content
Glama

Weather MCP

A FastMCP server that provides weather data from Open-Meteo and renders an interactive weather dashboard through MCP Apps.

Weather MCP dashboard

Features

  • Search locations by city or place name

  • Get current conditions and up to 16 forecast days

  • Switch between Celsius and Fahrenheit

  • Display weather descriptions and condition symbols

  • Cache location and forecast responses for five minutes

  • Render the dashboard directly inside compatible MCP hosts

Related MCP server: bridgemcp-server-weather

Requirements

  • Python 3.14+

  • uv

  • An MCP host with MCP Apps support for the interactive dashboard

Setup

Install the project dependencies:

uv sync

No weather API key is required for normal non-commercial Open-Meteo usage.

Run Tests

The test suite uses mocked HTTP responses and does not call the live weather API:

uv run pytest

Run The Server

Run the server over the default stdio transport:

uv run python main.py

Inspect the registered tools:

uv run fastmcp list main.py

Preview The Dashboard

FastMCP includes a local browser preview for app tools:

uv run fastmcp dev apps main.py

Open the displayed local URL and select weather_dashboard. The dashboard supports searching for another location and switching temperature units.

MCP Tools

search_locations

Find matching locations and return their coordinates, country, region, and time zone.

get_weather

Get current weather and a daily forecast for a location.

Arguments:

  • location: City or place name

  • forecast_days: Number of forecast days from 1 to 16

  • temperature_unit: celsius or fahrenheit

weather_dashboard

Open the interactive weather dashboard with the same weather arguments.

Project Structure

main.py                         MCP server entry point
src/tools.py                    MCP tool registration and response shaping
src/services/weather_service.py Open-Meteo client and response cache
src/formatting.py               UI-friendly forecast formatting
src/dashboard.py                Prefab MCP App UI

Data Source

Weather data is provided by Open-Meteo, which combines forecasts from multiple national weather services. Review the Open-Meteo terms and licensing before commercial deployment.

License

This project is licensed under the MIT License.

Available Tools

3 tools
get_weatherC

Get current conditions and a daily forecast.

Inputs: location (required), forecast_days, temperature_unit. Returns: object

search_locationsC

Find weather locations matching a place name.

Inputs: query (required). Returns: result

weather_dashboardC

Show an interactive weather dashboard with location and unit controls.

Inputs: location (required), forecast_days, temperature_unit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: location search, weather data retrieval, and an interactive dashboard. No overlap or ambiguity in their functions.

    Naming Consistency4/5

    Two tools follow the verb_noun pattern (search_locations, get_weather), but weather_dashboard breaks the pattern by leading with a noun. This is a minor deviation that doesn't cause confusion.

    Tool Count4/5

    Three tools is lean but appropriately scoped for a weather server. It covers the essential workflows without unnecessary bloat.

    Completeness4/5

    The core workflow of searching locations and getting weather is covered. Missing advanced features like alerts or historical data, but these are not critical for a basic weather service.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time weather updates and city geocoding by integrating the Nominatim and Open-Meteo APIs. It enables users to retrieve current weather conditions for any location through natural language queries in MCP-compatible clients.
      48 npm
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides weather data including current conditions, forecasts, and summaries via Open-Meteo with no API key required, enabling natural language queries through an MCP interface.
      11 PyPI
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for worldwide weather data, using high-resolution GeoSphere Austria data for the Alpine region and Open-Meteo elsewhere. Provides current conditions, hourly forecasts, and daily outlooks with compact emoji-markdown output.
      4
      88 PyPI
      1
      MIT