Skip to main content
Glama

Weather MCP

Ein FastMCP-Server, der Wetterdaten von Open-Meteo bereitstellt und über MCP Apps ein interaktives Wetter-Dashboard rendert.

Weather MCP-Dashboard

Funktionen

  • Orte nach Stadt oder Ortsnamen durchsuchen

  • Aktuelle Bedingungen und bis zu 16 Prognosetage abrufen

  • Zwischen Celsius und Fahrenheit umschalten

  • Wetterbeschreibungen und Wettersymbole anzeigen

  • Orts- und Prognoseantworten fünf Minuten lang zwischenspeichern

  • Das Dashboard direkt in kompatiblen MCP-Hosts rendern

Related MCP server: bridgemcp-server-weather

Voraussetzungen

  • Python 3.14+

  • uv

  • Einen MCP-Host, der MCP Apps für das interaktive Dashboard unterstützt

Einrichtung

Installieren Sie die Projektabhängigkeiten:

uv sync

Für die normale nicht-kommerzielle Nutzung von Open-Meteo ist kein Wetter-API-Schlüssel erforderlich.

Server ausführen

Führen Sie den Server über den standardmäßigen stdio-Transport aus:

uv run python main.py

Untersuchen Sie die registrierten Tools:

uv run fastmcp list main.py

Dashboard-Vorschau

FastMCP enthält eine lokale Browser-Vorschau für App-Tools:

uv run fastmcp dev apps main.py

Öffnen Sie die angezeigte lokale URL und wählen Sie weather_dashboard. Das Dashboard unterstützt die Suche nach einem anderen Ort und das Umschalten der Temperatureinheiten.

MCP-Tools

search_locations

Findet passende Orte und gibt deren Koordinaten, Land, Region und Zeitzone zurück.

get_weather

Ruft das aktuelle Wetter und eine Tagesprognose für einen Ort ab.

Argumente:

  • location: Stadt oder Ortsname

  • forecast_days: Anzahl der Prognosetage von 1 bis 16

  • temperature_unit: celsius oder fahrenheit

weather_dashboard

Öffnet das interaktive Wetter-Dashboard mit denselben Wetterargumenten.

Projektstruktur

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

Datenquelle

Die Wetterdaten werden von Open-Meteo bereitgestellt, das Prognosen mehrerer nationaler Wetterdienste kombiniert. Prüfen Sie die Open-Meteo-Nutzungsbedingungen und Lizenzbestimmungen vor der kommerziellen Bereitstellung.

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.
      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.
      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
      200 PyPI
      1
      MIT