gb-climate-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gb-climate-mcp Is the coming week risky for flash floods in Hunza?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gb-climate-mcp
An MCP server that gives Claude (or any MCP client) 35 years of daily weather for Gilgit-Baltistan, Pakistan, and a live flash-flood screening outlook for its valleys.
Ask things like:
Is the coming week risky for flash floods in Hunza?
How has snowfall changed at Skardu since 1990?
How unusual was the rain in Gilgit on 26 August 2022?
Why this exists
Flash floods and glacial outbursts hit Gilgit-Baltistan every summer, and many valleys have little or no local early warning. Public weather data for the region also has a trap in it: at four of the five stations the ERA5 reanalysis jumps by 5 to 6.5 °C on average (up to 10 °C in winter) between December 2016 and January 2017, an artefact of a change in how the model assimilates data. Anyone who pulls the raw series and fits a line finds about +1.4 °C of warming per decade. After correcting the step, the five-station average is about +0.08 °C per decade.
This server bundles the corrected record and is written to stop a model from repeating that kind of mistake. Trend tools warn when a range crosses the break, and the caveats are exposed as a resource the model is told to read.
Related MCP server: Weather MCP Server
Tools
Tool | What it does |
| Five stations from 1,250 m (Chilas) to 4,693 m (Khunjerab), coverage and variables |
| Daily values for one station, up to a year per call |
| Yearly totals or means plus the linear trend per decade |
| One variable across all stations, ordered by elevation |
| What counts as a heavy, extreme or once-in-years rain day at a station |
| Live 1 to 16 day outlook scored against the station's own history |
Resource: gb://methodology covers the source, the correction and what it cannot fix.
All tools are read-only. Only flood_risk_outlook touches the network (the free Open-Meteo forecast API, no key). Everything else works offline.
How the flood outlook works
Each forecast day is scored on three drivers, all relative to that valley's own 35-year record:
Daily rain against the station's 90th, 95th, 99th and 99.9th percentiles
Peak hourly rain, the cloudburst signal a daily total hides
Heat-driven melt: a day hotter than 95% of that station's summer days, scored higher after recent snow
The heat threshold is learned per station, not fixed. A hot summer day is about 36 °C in Gilgit but about 6 °C at Khunjerab, and a single fixed cutoff (the first version of this used 32 °C) fires constantly in the low valleys and never at the pass.
Install
Requires Python 3.10+.
Claude Code
claude mcp add gb-climate -- uvx --from git+https://github.com/nawazxz/gb-climate-mcp gb-climate-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"gb-climate": {
"command": "uvx",
"args": ["--from", "git+https://github.com/nawazxz/gb-climate-mcp", "gb-climate-mcp"]
}
}
}From source
git clone https://github.com/nawazxz/gb-climate-mcp && cd gb-climate-mcp
python -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/pytestData
ERA5 reanalysis (ECMWF / Copernicus) via the Open-Meteo Historical Weather API, 1990 to 2024, 63,920 station-days. Built from the raw series in gilgit-baltistan-era5-weather by scripts/build_data.py. Pre-2017 rows are shifted onto the post-2017 baseline per station, variable and calendar month; the factors are in src/gb_climate_mcp/data/corrections.json.
Station | Elevation | Mean temp trend 1990-2024 (°C/decade) |
Chilas | 1,250 m | +0.11 |
Gilgit | 1,500 m | +0.16 |
Skardu | 2,228 m | +0.02 |
Hunza | 2,438 m | +0.04 |
Khunjerab | 4,693 m | +0.05 |
Limitations
These matter more than the features, so they are spelled out:
Precipitation is for a 25 km grid cell, not the valley floor. ERA5 gives Gilgit about 1,430 mm of rain a year. The Gilgit gauge records about 130 mm, because the town sits in a rain shadow while the grid cell includes the wet mountains around it. The server uses rain only in relative terms (percentiles, anomalies, trends), and the tool descriptions tell the model to do the same.
The break correction absorbs real change. Matching monthly means across 2017 removes the artificial step and also any genuine difference between the two periods, so trends across 2017 are conservative.
The flood outlook is not validated. It has not been tested against recorded flood events yet, the hourly bands (4, 8, 15 mm/h) are hand-set, and the live forecast model is not on exactly the same scale as ERA5. Treat it as a screening signal. Official warnings come from PMD and GBDMA.
Licence
Code: MIT. Data: CC BY 4.0, contains modified Copernicus Climate Change Service information (see DATA_LICENSE).
Available Tools
6 toolsclimate_trendARead-onlyIdempotent
Yearly values and the linear trend per decade for one station and variable.
Rain, snow, precipitation hours and evapotranspiration are yearly totals; everything else is a yearly mean. Partial years are skipped.
Inputs: station (required), variable (required), end_year, start_year. Returns: object
compare_stationsBRead-onlyIdempotent
Compare all stations on one variable: the average yearly value and the trend per decade, low to high elevation.
Inputs: variable (required), end_year, start_year. Returns: object
flood_risk_outlookARead-only
Live flash-flood screening outlook for the next 1-16 days at a station.
Pulls the current Open-Meteo forecast and scores each day against the station's own history: daily rain vs historical percentiles, peak hourly rain (cloudburst signal), and heat-driven melt. Returns a risk level per day (normal, watch, elevated, high, severe) with the reasons. A screening signal, not an official warning.
Inputs: station (required), days. Returns: object
get_daily_weatherARead-onlyIdempotent
Daily values for one station between two dates (inclusive, YYYY-MM-DD), at most 366 days per call.
Pass variables to limit columns (see list_stations); by default temperature min/max, precipitation
and snowfall are returned. For multi-year questions use climate_trend instead.
Inputs: station (required), end_date (required), start_date (required), variables. Returns: object
list_stationsARead-onlyIdempotent
List the weather stations, their location, elevation, date coverage and the variables available.
Inputs: no named parameters. Returns: object
rain_thresholdsARead-onlyIdempotent
What counts as a heavy, extreme or rare rain day at a station, from its 35-year record (percentiles of daily rain).
Values are for the ~25 km ERA5 grid cell, which includes surrounding mountains, so they are much higher than valley-floor gauge readings. Use them to judge how unusual a day is, not how much fell in town.
Inputs: station (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools target clearly distinct outputs: listing stations, daily data, rain percentiles, flood outlook, and cross-station comparison are all separable. The only mild overlap is between compare_stations and climate_trend, since both surface trends-per-decade, but compare_stations is explicitly cross-station while climate_trend is single-station, so the descriptions keep them apart.
All names use consistent snake_case, which is good. However the verb pattern is mixed: some are verb_noun (compare_stations, list_stations, get_daily_weather) while others are noun phrases (rain_thresholds, climate_trend, flood_risk_outlook), a minor deviation from a single predictable pattern.
Six tools is well-scoped for a climate data server, covering discovery, retrieval, trend analysis, thresholds, and forecasting without redundancy. Each tool earns its place.
The surface covers the full lifecycle well: station discovery, daily historical retrieval, long-term trends, cross-station comparison, rain thresholds, and live flood screening. Minor gaps exist (e.g. no explicit station-metadata lookup beyond list_stations, no sub-daily history), but core workflows are covered.
Maintenance
Related MCP Connectors
Smarter Weather MCP: forecasts, alerts, outlooks, observations, AQI, grids, and map imagery.
Weather data, forecast API, climate data, historical weather, alerts, agricultural & travel weather.
Historical weather and climate: 100+ years of station data, normals, extremes, and trends.
Bangladesh's first national public data MCP server and REST API (mcp-bangladesh). Combines 8 live Bangladesh government datasets into a single free, zero-auth endpoint: DGHS dengue and measles stats, FFWC river flood levels (44 stations), BPDB power generation (40 plants), district weather, city air quality (AQI), 6 ministry notice boards, Bangladesh Bank forex/inflation, and geography.
Related MCP Servers
- AlicenseAqualityBmaintenanceExposes Swiss weather forecast data as MCP tools, including rainfall, sunshine, temperature, wind, and more, with local caching.15366 PyPI1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides weather data, analysis, and report saving through MCP tools, with a Next.js chat interface.ISC
- AlicenseAqualityAmaintenanceCombines National Weather Service alerts and forecasts with modern USGS water data, enabling weather and hydrology queries through MCP. No API key required, with persistent local caching.29Creative Commons Zero v1.0 Universal
- AlicenseNot gradedqualityBmaintenanceEnables querying historical and future climate projections (1950–2050) for temperature and precipitation, and comparing climate models to assess agreement and uncertainty.283 npmMIT