geosphere-mcp-server

MCP server for weather: current conditions, hourly forecasts, and multi-day outlooks for any location worldwide, via the Model Context Protocol.
In Austria and the Alpine region it serves high-resolution GeoSphere Austria data ā the AROME numerical forecast, the INCA analysis/nowcast, and the C-LAEF ensemble for precipitation probability. Everywhere else it falls back automatically to Open-Meteo, so it is a drop-in worldwide weather source. Every response states which source 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 are derived from physical parameters and reported with the Home Assistant condition vocabulary (sunny, partlycloudy, rainy, snowy, ā¦).
Coverage
| Where | get_current_weather | get_hourly_forecast | get_daily_forecast |
|---|
| Austria | GeoSphere INCA + nowcast + AROME | GeoSphere AROME (ā¤60 h) + C-LAEF probability | Open-Meteo (1ā16 days) |
| Alps (non-AT) | GeoSphere AROME only | GeoSphere AROME (ā¤60 h) + C-LAEF probability | Open-Meteo (1ā16 days) |
| Rest of world | Open-Meteo | Open-Meteo (ā¤48 h) | Open-Meteo (1ā16 days) |
Coverage is detected automatically: the server tries GeoSphere first and falls back to Open-Meteo when the point is outside the AROME grid ā no bounding box to configure. The daily forecast always uses Open-Meteo (GeoSphere publishes no forecasts beyond ~60 h).
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.
get_current_weather
Current conditions for a point. GeoSphere (INCA/AROME) inside coverage, Open-Meteo elsewhere.
| 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
Outside GeoSphere coverage the same tool answers from Open-Meteo (sunrise/sunset and the point's own timezone included):
# Current Weather at 38.7223, -9.1393
š”ļø Temperature: 26.1°C (feels like 27.0°C)
š¤ļø Condition: cloudy
š§ Humidity: 58%
šØ Wind: 4.5 m/s from 315° (gusts 9 m/s)
š Pressure: 1014 hPa
āļø Cloud cover: 90%
š
Sunrise: 06:24
š Sunset: 20:52
š Timezone: Europe/Lisbon (WEST)
š” Source: Open-Meteo ā observed 14:00
get_hourly_forecast
Hour-by-hour forecast. GeoSphere AROME (with C-LAEF precipitation probability) up to ~60 h inside coverage; Open-Meteo up to 48 h elsewhere.
| 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 on GeoSphere, 1ā48 on the fallback) |
start | string | now | Optional ISO 8601 start (e.g. 2026-07-22T15:00); forecast begins at/after this instant |
# 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
16:00: 23.9°C ā rainy, 1.2 mm (70% chance), wind 4 m/s
17:00: 22.5°C ā cloudy, wind 3 m/s
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 suggesting get_daily_forecast for days further ahead. Dry hours omit the precipitation and probability parts.
get_daily_forecast
Multi-day outlook, always from Open-Meteo (worldwide, including Austria).
| Parameter | Type | Default | Description |
|---|
latitude | float | required | Decimal latitude (e.g. 48.2208) |
longitude | float | required | Decimal longitude (e.g. 16.3738) |
days | int | 7 | Forecast days from today (clamped to 1ā16). Ignored when start_date/end_date are given |
start_date | str | ā | Optional first forecast day, ISO YYYY-MM-DD |
end_date | str | ā | Optional last forecast day (inclusive), ISO YYYY-MM-DD; defaults to start_date. Span capped at 16 days |
Request either a count of days from today (days) or an explicit calendar range (start_date/end_date). The range is the reliable way to answer a named period ā for "the weekend" or "next Tuesday", the caller resolves today's date, then passes the exact dates rather than converting the period into a day count.
# 3-Day Forecast for 48.2208, 16.3738
Source: Open-Meteo (Europe/Vienna)
Wed 2026-07-22: 16ā27°C ā partlycloudy, wind up to 9 m/s
Thu 2026-07-23: 15ā22°C ā rainy, 4.2 mm (80% chance), wind up to 15 m/s
Fri 2026-07-24: 14ā26°C ā sunny, wind up to 8 m/s
Data sources & attribution
- GeoSphere Austria Dataset API ā AROME forecast, INCA analysis/nowcast, C-LAEF ensemble. Data licensed under CC-BY 4.0. Ā© GeoSphere Austria.
- Open-Meteo ā worldwide forecast API. Data licensed under CC-BY 4.0. Ā© Open-Meteo.
Both APIs are keyless and intended for non-commercial use. When you redistribute their data, keep the attribution.
Rate limits
The GeoSphere Dataset API allows 5 requests/second and 240 requests/hour. Each current/hourly call issues a small burst of concurrent requests; on an HTTP 429 the server retries once (when the API asks for a short wait) and otherwise returns a rate-limit notice ā get_daily_forecast keeps working through Open-Meteo in that case. Open-Meteo has its own generous free-tier limits.
Development
uv sync
ruff check .
ruff format .
pytest -m "not integration"
pytest -m integration
License
MIT