Skip to main content
Glama
mcp-meteoblue
by unixfox

mcp-meteoblue

Ein MCP-Server für die meteoblue Weather API, geschrieben in JavaScript. Er ermöglicht es MCP-Clients, Orte zu suchen, Vorhersagen mithilfe der im Free Weather API verfügbaren Pakete abzurufen und Vorhersage-Meteogrammbilder anzufordern.

Tools

  • search_locations löst Städte, Postleitzahlen und IATA/ICAO-Flughafencodes mit der meteoblue Location Search auf.

  • get_forecast akzeptiert entweder einen Ortsnamen oder Koordinaten und gibt den Vorhersage-JSON zurück. Standardmäßig werden aktuelle, stündliche und tägliche Wetterdaten geliefert.

  • get_forecast_image akzeptiert entweder einen Ortsnamen oder Koordinaten und gibt ein Vorhersagebild direkt an den MCP-Client zurück.

Ortsnamen, die an Vorhersage– oder Bildtools übergeben werden, werden immer über die offizielle meteoblue Location Search API aufgelöst. Die Eingaben für Vorhersagepakete sind auf die in der Free Weather API-Dokumentation aufgeführten Pakete beschränkt.

[!NOTE] Die aktuelle Free Weather API-Dokumentation von meteoblue besagt, dass Bilder eine höhere Zugriffsstufe erfordern. Das Bildtool ist für Schlüssel mit einer Image-API-Berechtigung enthalten und gibt andernfalls einen klaren Autorisierungsfehler zurück.

Related MCP server: mcp-weather

Anforderungen

Den Schlüssel privat halten. Dieser Server liest ihn aus METEOBLUE_API_KEY; er ist niemals Teil der Paket– oder MCP-Toolargumente.

Von npm ausführen

Fügen Sie diesen stdio-Server zu Ihrer MCP-Client-Konfiguration hinzu:

{
  "mcpServers": {
    "meteoblue": {
      "command": "npx",
      "args": ["-y", "mcp-meteoblue"],
      "env": {
        "METEOBLUE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Oder führen Sie ihn direkt aus:

METEOBLUE_API_KEY=your_api_key_here npx -y mcp-meteoblue

Der Server verwendet stdio und erzeugt deshalb absichtlich keine normale Terminalausgabe, während er auf einen MCP-Client wartet.

Docker

Erstellen Sie das Image lokal:

docker build -t mcp-meteoblue .

Konfigurieren Sie einen Docker-basierten stdio-Server in Ihrem MCP-Client:

{
  "mcpServers": {
    "meteoblue": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--env",
        "METEOBLUE_API_KEY",
        "mcp-meteoblue"
      ],
      "env": {
        "METEOBLUE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Der Container läuft als unprivilegierter node-Benutzer. Lassen Sie stdin mit -i offen, da die MCP-Kommunikation stdio verwendet.

Lokal entwickeln

npm install
npm test
METEOBLUE_API_KEY=your_api_key_here npm start

Richten Sie einen MCP-Client auf node /absolute/path/to/mcp-meteoblue/src/index.js aus und setzen Sie die Umgebungsvariable in dessen Konfiguration.

Veröffentlichungen

GitHub Actions führt bei jedem Push und Pull Request die Testsuite aus und validiert das npm-Tarball auf Node.js 20, 22, 24 und 26. Dependabot prüft wöchentlich die npm- und GitHub-Actions-Abhängigkeiten.

Das Pushen eines v*-Git-Tags löst .github/workflows/publish.yml aus. Der Workflow verwendet npm Trusted Publishing (OIDC) und hängt automatisch Provenance an. Konfigurieren Sie den npm Trusted Publisher mit:

  • GitHub-Inhaber: unixfox

  • Repository: mcp-meteoblue

  • Workflow: publish.yml

  • Umgebung: npm

Wenn Trusted Publishing konfiguriert ist, wird kein npm-Token in GitHub gespeichert.

API-Umfang

Der Server ruft nur auf:

  • https://www.meteoblue.com/{language}/server/search/query3

  • https://my.meteoblue.com/packages/{packages}

  • https://my.meteoblue.com/images/{forecast-image-type}

Er stellt nicht die meteoblue History, Dataset, Maps, Measurements oder andere APIs bereit.

Lizenz

MIT

Available Tools

3 tools
get_forecastGet meteoblue weather forecastA

Get meteoblue forecast JSON by place name or coordinates. Place names are resolved through the Location Search API. Only packages documented for the Free Weather API are accepted.

Inputs: language, latitude, location, packages, +9 more.

get_forecast_imageGet meteoblue forecast imageA

Generate a meteoblue forecast meteogram by place name or coordinates. Returns the PNG directly. Image access depends on the API key's meteoblue entitlement.

Inputs: type, options, language, latitude, +4 more.

search_locationsSearch meteoblue locationsB

Resolve a city, place, postal code, IATA code, or ICAO code to coordinates and elevation using the meteoblue Location Search API.

Inputs: query (required), page, limit, language, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: location resolution, raw forecast data, and forecast image generation. The two forecast tools are differentiated by output format (JSON vs PNG), so there is no practical ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern: search_locations, get_forecast, get_forecast_image. The naming clearly communicates both the action and the target.

    Tool Count5/5

    Three tools is well-scoped for a small weather API server: one for geocoding, one for data, one for imagery. Each tool serves a distinct step in the core location-to-forecast workflow.

    Completeness4/5

    The surface covers the essential meteorology workflow: resolve a location, retrieve forecast data, and generate a forecast image. A minor gap is the lack of separate current-conditions or historical-weather tools, but forecasts likely include current data and the core purpose is well covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables to interact with comprehensive weather data through the MCP protocol, including current conditions, multi-day forecasts, hourly forecasts, and geocoding.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects MCP clients to Weathersight weather data APIs, enabling queries about historical observations, typical climate, extremes, degree days, and long-term trends for locations worldwide.
      MIT