Skip to main content

geosphere-mcp-server

PyPI Python License: MIT

MCP server for weather: current conditions, hourly forecasts, storm outlooks, and air quality for Austria and the Alpine region, via the Model Context Protocol.

It serves high-resolution GeoSphere Austria data — the 1 km numerical forecast (nwp-v2-1h-1km, the deterministic run of the C-LAEF AlpeAdria ensemble, called AROME here), the INCA analysis/nowcast, the C-LAEF ensemble for the precipitation-chance estimate and a thunderstorm signal, and the WRF-Chem air-quality forecast. There is no worldwide fallback: a point outside the AROME grid returns an out-of-coverage notice, so pair this with a global weather source if you need one. Every response states which datasets produced it.

Output is compact emoji-markdown with metric units — built for smart-home and voice-assistant LLM pipelines where a terse, readable answer beats a JSON blob. Weather conditions follow GeoSphere's own weather symbol and are reported with the Home Assistant condition vocabulary (sunny, clear-night, partlycloudy, cloudy, fog, rainy, pouring, snowy, snowy-rainy, lightning-rainy); for the current condition, observations decide whether and what is falling.

Coverage

Where get_current_weather get_hourly_forecast get_storm_outlook get_air_quality
Austria INCA + nowcast + AROME AROME (≤60 h) + C-LAEF chance estimate AROME symbol + C-LAEF ensemble WRF-Chem (3 km)
Alps (non-AT) AROME only AROME (≤60 h) + C-LAEF chance estimate AROME symbol + C-LAEF ensemble WRF-Chem (3 km)
Rest of world not served not served not served not served

Coverage is decided by the API, not by a bounding box you configure: GeoSphere answers HTTP 400 for a point outside the grid, and the server renders that as

⚠️ Outside coverage — this server only serves Austria and the Alpine region.

That line is deliberately distinct from the transient failures (⚠️ Timeout…, ⚠️ No weather data available): being outside coverage is a permanent property of the location, so retrying will never help. It names no grid on purpose — the forecast tools query the 1 km forecast grid and get_air_quality queries WRF-Chem (3 km), so a point can be inside one and outside the other.

There is no multi-day forecast. GeoSphere publishes nothing beyond the forecast run's ~60 h, and a run is only available several hours after its start, so the longest answer this server can give is typically 52–55 hours of hourly rows.

Installation

Pass decimal latitude/longitude to every tool. There is no geocoder in the server — the calling LLM geocodes city names to coordinates itself.

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "geosphere": {
      "command": "uvx",
      "args": ["geosphere-mcp-server"]
    }
  }
}

Claude Code

claude mcp add geosphere -- uvx geosphere-mcp-server

From source (development)

{
  "mcpServers": {
    "geosphere": {
      "command": "uvx",
      "args": ["--from", "/path/to/geosphere-mcp-server", "geosphere-mcp-server"]
    }
  }
}

Home Assistant

It is a standard stdio MCP server, so it runs anywhere an stdio MCP server can be hosted — including alongside Home Assistant's Assist pipeline (register it the same way as any other stdio MCP server). Give the voice agent the coordinates of the places it should answer for, or let it geocode names.

Tools

get_current_weather

Current conditions for a point, from INCA, the 15-minute nowcast, and AROME. The nowcast decides whether and what is falling; the rest of the condition is GeoSphere's weather symbol for the current hour, so with nothing falling under a rain or thunder symbol it reads cloudy.

Parameter Type Default Description
latitude float required Decimal latitude (e.g. 48.2208)
longitude float required Decimal longitude (e.g. 16.3738)
# Current Weather at 48.2208, 16.3738

🌡️ Temperature: 24.7°C (feels like 24.2°C)
🌤️ Condition: partlycloudy
💧 Humidity: 52%
💨 Wind: 2.9 m/s from 135° (gusts 7 m/s)
🌧️ Precipitation (last hour): 0 mm
📊 Pressure: 1016 hPa
☁️ Cloud cover: 30%
🕐 Timezone: Europe/Vienna (CEST)
📡 Source: GeoSphere (INCA + nowcast + AROME) — observed 15:20

get_hourly_forecast

Hour-by-hour forecast from AROME, up to ~60 h. Each hour's condition is GeoSphere's weather symbol; the precipitation chance is an estimate derived from the C-LAEF ensemble percentiles (stepped 0/30/70/95 %), not a probability GeoSphere publishes.

Parameter Type Default Description
latitude float required Decimal latitude (e.g. 48.2208)
longitude float required Decimal longitude (e.g. 16.3738)
hours int 24 Forecast hours (clamped to 1–60)
start string now Optional ISO 8601 start (e.g. 2026-07-22T15:00); forecast begins at/after this instant. Without an offset it is Vienna local time, like the output
wait_for_ensemble bool false Wait for the C-LAEF ensemble behind the precipitation chance (up to ~20 s). By default it gets 2 s after the forecast is in; if it is later, the answer comes without the chance and a note says so
# 3-Hour Forecast for 48.2208, 16.3738

AROME model, reference 2026-07-22 12:00 CEST · Source: GeoSphere (AROME + C-LAEF ensemble)

Wed 2026-07-22
  15:00: 24.7°C — partlycloudy, wind 3 m/s, snow limit 3410 m
  16:00: 23.9°C — rainy, 1.2 mm (70% chance), wind 4 m/s, snow limit 3380 m
  17:00: 22.5°C — cloudy, wind 3 m/s, snow limit 3350 m

Precipitation chance is an estimate derived from the C-LAEF ensemble percentiles (0/30/70/95 %), not a probability GeoSphere publishes.

The hours are grouped under a day-divider header (%a %Y-%m-%d in the point's local timezone) that repeats whenever the local date changes, so a window crossing midnight stays unambiguous. Requesting more hours than the AROME horizon provides appends a note naming where the horizon ends — there is nothing further ahead to reach for. Dry hours, and hours whose amount rounds to 0 mm, omit the precipitation and chance parts; the estimate note appears only when a chance is shown. Each hour ends with the forecast snow limit in metres, omitted when the run has none.

get_storm_outlook

Severe-weather outlook: peak gusts and thunderstorm timing. Reports figures, never a severity verdict — what counts as dangerous is the caller's judgement.

Parameter Type Default Description
latitude float required Decimal latitude (e.g. 48.2208)
longitude float required Decimal longitude (e.g. 16.3738)
# Storm Outlook for 48.2208, 16.3738

AROME model, reference 2026-08-10 14:00 CEST · Source: GeoSphere (AROME + C-LAEF ensemble)

💨 Max gust next 1 h: 12 m/s (at Mon 2026-08-10 17:00)
💨 Max gust next 12 h: 24 m/s (at Mon 2026-08-10 20:00)
⛈️ Thunderstorm expected next 1 h: no
⚡ Next thunderstorm: Mon 2026-08-10 20:00 (signal: symbol)
🌡️ Max CAPE next 12 h: 1800 J/kg
🕐 Timezone: Europe/Vienna (CEST)

Horizons round up to whole hours: the "1 h" window covers the hour already under way plus the next one. A thunderstorm timestamp at or before now means one is already in progress.
A thunderstorm hour is one whose GeoSphere weather symbol is a thunderstorm, or where the C-LAEF ensemble's 90th percentiles reach 1000 J/kg CAPE and 0.1 mm precipitation; `signal` names which fired (symbol, ensemble or both). Max CAPE is a diagnostic and decides nothing.

Three behaviours are worth knowing before you build on this:

  • Horizons round up to whole hours. The window starts at the top of the current hour, so the "next 1 h" figure covers the hour already under way plus the next one, and can report an event up to ~2 h out. Compare the returned timestamps yourself if you need a strict 60-minute answer.
  • Next thunderstorm can be in the past, by up to 59 minutes, when the storm hour is the one already under way. That means a storm is in progress — clamp a negative lead time to zero rather than assuming the stamp is in the future.
  • An all-clear names its horizon (none in the next 54 h). The run nominally covers ~60 h, but it is published hours after its start and a stale or truncated run reaches less far, so the span is measured from the rows actually returned. It is not an all-clear beyond the stated span.

A thunderstorm hour is one whose GeoSphere weather symbol is a thunderstorm (codes 26–32), or one where the C-LAEF ensemble's 90th percentiles reach 1000 J/kg CAPE and 0.1 mm of precipitation — the ensemble counts only while its run is less than 12 h old. Either signal suffices, and every thunderstorm answer names it: signal: symbol, ensemble or both. Without a current ensemble run the outlook says so (ℹ️ Ensemble signal: unavailable …) and rests on the symbol alone. Thunderstorm expected reads unknown (no forecast hours in the window) only when no forecast hour falls in the window; an hour with a missing symbol counts as no storm. Max CAPE is the deterministic run's CAPE, a diagnostic that decides nothing.

get_air_quality

Pollutant concentrations now, plus the European Air Quality Index for today, tomorrow and in two days.

Parameter Type Default Description
latitude float required Decimal latitude (e.g. 48.2208)
longitude float required Decimal longitude (e.g. 16.3738)
# Air Quality at 48.2208, 16.3738

🏷️ European AQI: 2 (fair) today · 3 (moderate) tomorrow · 2 (fair) in 2 days
🌫️ Concentrations (16:00): NO₂ 18 µg/m³ · O₃ 92 µg/m³ · PM10 21 µg/m³ · PM2.5 12 µg/m³
🕐 Timezone: Europe/Vienna (CEST)
📡 Source: GeoSphere (WRF-Chem + daily AQI, 3 km)

The AQI is reported as its 1–6 EEA band (1 good … 6 extremely poor), which is what GeoSphere publishes — there is no underlying numeric index to show alongside it. These are model forecasts, not station measurements — expect them to track a nearby monitoring station without matching it.

A point inside the 3 km grid can still come back empty when a WRF-Chem run is stale or incomplete; the response then says No air-quality data available for this location and still names the source, which is a different answer from being out of coverage.

Data sources & attribution

  • GeoSphere Austria Dataset API — the 1 km forecast (nwp-v2-1h-1km) and C-LAEF ensemble (ensemble-v2-1h-1km), INCA analysis/nowcast, WRF-Chem air quality. Data licensed under CC-BY 4.0. © GeoSphere Austria.

The API is keyless and intended for non-commercial use. When you redistribute its data, keep the attribution.

Rate limits

The GeoSphere Dataset API allows 5 requests/second and 240 requests/hour. Current weather sends three concurrent requests per call and air quality two. The hourly forecast and the storm outlook send two only when the forecast cache has no run for the place, and none otherwise; a default hourly call can leave its ensemble request running for a few seconds after it has answered. On an HTTP 429 the server retries once (when the API asks for a short wait) and otherwise returns a rate-limit notice.

Forecast cache

The API often takes several seconds, sometimes up to 20 s, to answer a forecast request, while a forecast run only changes every 3 h. So the hourly forecast and the storm outlook share an in-memory cache: the first call for a place fetches the whole ~60 h run, and every call for that place in the next 3 h answers from it without a request. Concurrent calls share one request, and a failed request is never cached. An ensemble run is also refetched once it is 12 h old, the age past which the storm outlook stops counting it, and the cache keeps at most 64 runs (two per place). Set GEOSPHERE_FORECAST_CACHE_MINUTES to change the lifetime, or to 0 to turn the cache off; the hourly forecast then always waits for the ensemble, since there is nowhere to keep a late one. The cache lives in the server process, so a restart empties it.

Development

# Install dependencies (creates .venv from the locked versions)
uv sync

# Lint & format
ruff check .
ruff format .

# Run unit tests
pytest -m "not integration"

# Run integration tests (hits the live GeoSphere API)
pytest -m integration

License

MIT

Metadata

Release files for geosphere-mcp-server 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geosphere-mcp-server 0.9.0
File Size Uploaded Provenance Actions
geosphere_mcp_server-0.9.0.tar.gz 238.2 kB With provenance Details for geosphere_mcp_server-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geosphere-mcp-server 0.9.0
File Interpreter ABI Platform Actions
geosphere_mcp_server-0.9.0-py3-none-any.whl Python 3 none any Details for geosphere_mcp_server-0.9.0-py3-none-any.whl

Total release size: 285.8 kB

Release files / geosphere_mcp_server-0.9.0.tar.gz

Download URL geosphere_mcp_server-0.9.0.tar.gz
Size 238.2 kB
Tags Source
SHA-256 checksum
How to use checksums
29b99aeee8f83d2e27ebea77a64f4ea6f22ab4760909bcc0b6bee01f748ce6b8
BLAKE2b-256 checksum
How to use checksums
44b0007aebae7d2da6bb65a21a82fce7080241b6f75993e6affd636cb580f847
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / geosphere_mcp_server-0.9.0-py3-none-any.whl

Download URL geosphere_mcp_server-0.9.0-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f494743bbeef10f028d86316924cad36a17bc9d13f100166a74268b7b6462d9
BLAKE2b-256 checksum
How to use checksums
5b620727dc58d5f0d3549b22a4833b641291b6287ceb3c507f240400f9440fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for geosphere-mcp-server 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geosphere_mcp_server-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page