# meteoswiss-mcp [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/malkreide/meteoswiss-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/meteoswiss-mcp

## Description
MeteoSwiss Open Data for weather, climate normals, warnings

## Tools
Capabilities this server exposes over MCP:

- **meteo_stations** — <use_case>
    Liefert eine Übersicht der SwissMetNet (SMN)-Messstationen, die in diesem
    Server eingebettet sind. Nützlich, um Stationskürzel für meteo_current
    oder meteo_climate_normals zu finden.
    </use_case>

    <important_notes>
    - Kuratierte Auswahl (~20 Stationen) mit Schul-/Stadtplanungs-Fokus
    - Datenquelle: MeteoSwiss SMN-Katalog (160+ Stationen total)
    - Lizenz: CC BY 4.0 – Quelle: MeteoSchweiz
    </important_notes>

    <example>
    meteo_stations(canton="ZH")
    → KLO, SMA, REH, REC, WAE
    </example>

    Schul-Tipp: Station REH (Zürich/Affoltern) ist die nächste SMN-Station
    zum Schulhaus Leutschenbach.

    Args:
        params (StationsInput):
            - canton: Kantonskürzel (z.B. 'ZH') – leer = alle
            - response_format: 'markdown' oder 'json'

    Returns:
        str: Stationsliste mit Kürzel, Name, Kanton, Koordinaten und Höhe.
    
- **meteo_current** — <use_case>
    Aktuelle 10-Minuten-Wettermesswerte einer SwissMetNet-Station abrufen
    (Temperatur, Niederschlag, Sonnenschein, Wind, Feuchte, Druck).
    </use_case>

    <important_notes>
    - Granularität: 10-Minuten-Werte, letzte ~6 Beobachtungen
    - Quelle: BGDI STAC API (data.geo.admin.ch)
    - Live-Daten — Tool ist NICHT idempotent
    - Bei Upstream-Ausfall: Fallback mit Direktlinks statt Hard-Fail
    </important_notes>

    <example>
    meteo_current(station="REH")  → Zürich/Affoltern (nächste SMN-Station
                                     zum Schulhaus Leutschenbach)
    </example>

    Args:
        params (CurrentInput):
            - station: SMN-Kürzel, z.B. 'KLO', 'SMA', 'REH', 'BER'
            - response_format: 'markdown' oder 'json'

    Returns:
        str: Aktuelle Messwerte mit Zeitstempel, oder Fallback mit Direktlinks.
    
- **meteo_forecast** — <use_case>
    1-16 Tage Wetterprognose für einen Ortsnamen oder Koordinaten — basierend
    auf dem MeteoSwiss-ICON-Modell (1-2 km Auflösung). Liefert Tageswerte
    (Temperatur Min/Max, Niederschlag, Wind, UV, Sonnenstunden, WMO-Code)
    und optional Stundenwerte.
    </use_case>

    <important_notes>
    - Modell: MeteoSwiss ICON-CH1/CH2 via Open-Meteo für Tag 1-5; darüber
      hinaus sowie für den UV-Index Open-Meteo best_match, weil ICON nur
      5 Tage weit reicht und keinen UV-Index führt. Welcher Teil woher
      stammt, steht in jeder Antwort (Markdown-Fussnote bzw. JSON-Feld
      `modell` / `modell_details`)
    - location wird geokodiert (Fuzzy-Fallback bei Misserfolg); lat/lon
      überschreibt location und spart einen HTTP-Roundtrip
    - Stündliche Daten füllen die ersten 48 Stunden, nicht den vollen Range
    - Bei Upstream-Ausfall: Direktlinks statt Hard-Fail
    </important_notes>

    <example>
    meteo_forecast(location="Schulhaus Leutschenbach Zürich", days=7)
    meteo_forecast(latitude=47.3769, longitude=8.5417, days=3, hourly=True)
    </example>

    Args:
        params (ForecastInput):
            - location: Ortsname (geokodiert) ODER lat/lon direkt
            - days: Prognosetage (1–16, Standard: 7)
            - hourly: True für Stundenwerte
            - response_format: 'markdown' oder 'json'

    Returns:
        str: Tages- (und optional Stunden-)Prognose mit Wettercode und Planung.
    
- **meteo_school_check** — <use_case>
    Aggregiert Geocoding + 7-Tage-Forecast + Schwellenwert-Check zu einer
    Ampel-Bewertung (🟢/🟡/🔴) für Schulveranstaltungen im Freien. Ein
    Tool-Call ersetzt die Kombi meteo_forecast + manuelle Bewertung.
    </use_case>

    <important_notes>
    Schwellenwerte:
    - Temperatur: 5–33 °C (sonst zu kalt / zu heiss)
    - Niederschlag: < 1.5 mm/Tag
    - Wind: < 50 km/h
    - UV-Index ≥ 6: Warnung (Sonnenschutz)
    Quelle: SUVA / BAG / MeteoSchweiz-Warnklassen.
    Bei date-Parameter: nur dieser eine Tag wird zurückgegeben.
    </important_notes>

    <example>
    meteo_school_check(location="Zürich Oerlikon", activity="Sporttag")
    meteo_school_check(location="Lugano", date="2026-06-15", activity="Schulreise")
    </example>

    Args:
        params (SchoolCheckInput):
            - location: Ort (geokodiert), z.B. 'Zürich Oerlikon'
            - date: Optional – spezifischer Tag (YYYY-MM-DD)
            - activity: Art der Aktivität ('Sporttag', 'Schulreise', etc.)

    Returns:
        str: Ampel-Bewertung für die nächsten 7 Tage (oder Einzeltag).
    
- **meteo_climate_normals** — <use_case>
    Monatliche 30-Jahres-Klimanormwerte (Temperatur ∅, Niederschlag,
    Sonnenstunden) für eine MeteoSwiss-Station. Referenz für «typisches
    Wetter» — Schuljahresplanung, Veranstaltungs-Budgetierung, Vergleich
    mit aktuellen Messwerten.
    </use_case>

    <important_notes>
    - Periode: 1991–2020 (WMO-Standard)
    - Eingebettete Normwerte verfügbar: KLO, SMA, BER, LUG, GVE
    - Für andere Stationen: Tool gibt Liste verfügbarer Codes + opendata.swiss-Link
    - Statische Daten — Tool ist idempotent, kein Netzwerk-Roundtrip
    </important_notes>

    <example>
    meteo_climate_normals(station="KLO")  → Zürich/Kloten Jahresgang
    meteo_climate_normals(station="LUG", response_format="json")
    </example>

    Args:
        params (ClimateNormalsInput):
            - station: SMN-Kürzel (z.B. 'KLO', 'SMA', 'BER')
            - response_format: 'markdown' oder 'json'

    Returns:
        str: Monatliche Klimanormwerte-Tabelle 1991–2020.
    
- **meteo_warnings** — <use_case>
    Aktive amtliche MeteoSwiss-Wetterwarnungen (Gewitter, Sturm, Starkregen,
    Schnee, Hitze, Frost, Waldbrand, ...) live abrufen — landesweit, pro Kanton
    oder ortsgenau via PLZ. Ergänzt um Warnkarte, MeteoAlarm und OGD-Katalog.
    </use_case>

    <important_notes>
    - Live-Quelle ist das öffentliche MeteoSwiss-App-Backend
      (`app-prod-ws.meteoswiss-app.ch/v1/plzDetail`); es gibt keinen landesweiten
      Sammel-Endpoint, daher wird ohne `plz`/`canton` je eine Kantonshauptort-PLZ
      pro Kanton abgefragt und aggregiert. Für ortsgenaue Warnungen `plz` setzen.
    - Warnstufen-Skala: 1=Keine/gering, 2=Gering, 3=Mässig, 4=Stark, 5=Sehr stark.
    - Bei aktiven Warnungen Stufe 4+: Aussenveranstaltungen verschieben.
    - `MCP_WARNINGS_API_URL` überschreibt die App-Quelle (Vorbereitung auf die
      künftige offizielle OGD-Warnings-REST-API).
    </important_notes>

    <example>
    meteo_warnings(plz="8001")    → ortsgenaue Warnungen für Zürich-City
    meteo_warnings(canton="TI")   → Warnungen für das Tessin
    meteo_warnings()              → landesweite Aggregation über alle Kantone
    </example>

    Args:
        params (WarningsInput):
            - canton: Kantonskürzel zum Filtern (z.B. 'ZH')
            - plz: 4-stellige PLZ für ortsgenaue Warnungen (z.B. '8001')
            - language: 'de' | 'fr' | 'it' | 'en' (Sprache der Warntexte)
            - response_format: 'markdown' oder 'json'

    Returns:
        str: Aktive Warnungen + Warnkarte/MeteoAlarm-Links.
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "meteoswiss-mcp": {
    "command": "uvx",
    "args": ["meteoswiss-mcp"]
  }
}
```

## Documentation

## What meteoswiss-mcp does

meteoswiss-mcp exposes Swiss weather and climate data to MCP-compatible AI applications. Its tools focus on MeteoSwiss and related Swiss public-data services, including the SwissMetNet measurement network, MeteoSwiss ICON forecasts, official warning data, and embedded climate normals.

The server is read-only: its tools retrieve or evaluate information but do not create, modify, or delete external data. Responses can generally be returned as Markdown or JSON, depending on the tool input.

## How it works

Station-oriented tools use SwissMetNet station codes such as KLO, SMA, REH, BER, LUG, and GVE. The station listing is a curated set of roughly 20 locations rather than the complete network of more than 160 stations. Live observations come from the BGDI STAC API and provide recent 10-minute measurements such as temperature, precipitation, wind, humidity, pressure, and sunshine.

Forecast requests accept either a place name or coordinates. Place names are geocoded, while supplying latitude and longitude avoids that lookup. MeteoSwiss ICON-CH1/CH2 data is used for the first five days through Open-Meteo; longer forecasts and UV values use Open-Meteo best-match data. Hourly output covers the first 48 hours when requested, and responses identify the applicable model details.

The school-event tool combines location lookup, a seven-day forecast, and predefined thresholds. It evaluates temperature, daily precipitation, wind, and UV exposure to produce a green, yellow, or red planning result. Warning queries can target a postal code, canton, or the whole country and support German, French, Italian, and English text.

## Setup and configuration

For Claude Desktop, run the package with `uvx`:

```json
{
  "mcpServers": {
    "meteoswiss": {
      "command": "uvx",
      "args": ["meteoswiss-mcp"]
    }
  }
}
```

Local development can use `uv run --directory /path/to/meteoswiss-mcp meteoswiss-mcp`. The default transport is stdio. Streamable HTTP is available by setting `MCP_TRANSPORT=streamable-http`; `MCP_PORT` controls the port and `MCP_HOST` controls the bind address. For container or cloud use, `MCP_ALLOW_ANY_HOST=1` permits binding beyond the loopback interface.

Optional configuration includes API-key protection with `MCP_API_KEY`, allowed origins with `MCP_ALLOWED_ORIGINS`, structured logging through `MCP_LOG_LEVEL`, stateless HTTP mode with `MCP_STATELESS_HTTP`, and cache controls for upstream data. `MCP_WARNINGS_API_URL` can replace the default warnings source, while `MCP_CLIMATE_NORMALS_PATH` can add climate-normal data from a JSON file.

## Tools and capabilities

- `meteo_stations`: Lists the curated station set, optionally filtered by canton.
- `meteo_current`: Retrieves recent live measurements for a SwissMetNet station.
- `meteo_forecast`: Returns daily forecasts for one to 16 days, with optional hourly values.
- `meteo_school_check`: Rates outdoor school activities against weather thresholds.
- `meteo_climate_normals`: Provides monthly 1991–2020 averages for temperature, precipitation, and sunshine at supported stations.
- `meteo_warnings`: Retrieves active warnings by postal code, canton, or nationwide aggregation.

## Limitations and notes

Live observations, forecasts, school checks, and warnings depend on upstream services and can change between calls. When selected upstream services fail, the affected tools may return direct links instead of failing outright. Climate normals are static and available directly for KLO, SMA, BER, LUG, and GVE; additional values can be supplied through configuration or runtime lookup.

The nationwide warning query aggregates canton-level requests because the underlying application source does not provide one nationwide endpoint. For precise local results, provide a four-digit postal code. Forecast hourly data is limited to the first 48 hours, and the school check applies fixed thresholds rather than a user-defined risk model.

_Full upstream README: https://allmcps.com/mcp/meteoswiss-mcp/readme_

