Weather MCP
MCP server for weather and climate analysis: ensemble exceedance, threshold events, sections and soundings with CAPE, forecast scores, station verification, blob tracking, climate indices and CMIP6 regional change, each result with a provenance record
claude mcp add --scope project clio-weather -- clio-kit mcp-server weather
Install the launcher first. Restart your client after setup. Configuration locations →
Check the connection
clio-kit doctor --server weather --connect
Checks prerequisites and tool discovery. Test on known input to verify results. Native backends may require additional setup.
Tools
era5_fetchSubset ERA5 hourly fields (single and pressure levels) from the analysis-ready ARCO-ERA5 copy on Google Cloud, no key needed: variables by their long names (2m_temperature, mean_sea_level_pressure, geopotential, temperature, specific_humidity, u_component_of_wind, vertical_integral_of_eastward_water_vapour_flux, total_precipitation, ...), a box, a period, optional pressure levels and hours. Refuses subsets larger than max_values.
ensemble_fetchECMWF ensemble (control + 50 perturbed members) from ECMWF open data, no key: one parameter (tp, 2t, 10u, 10v, msl, ...) at the given forecast steps (hours), cut to a point or a box, from the latest run or a given date and run hour. Open data keeps only recent runs.
exceedanceProbabilities that an ensemble exceeds thresholds at a point, per window (e.g. daily 24 h precipitation from an accumulated field): member amounts, percentiles and the fraction of members above each threshold, plus the probability for the whole period. Writes the table and the per-member plume.
threshold_eventsEvents above a calendar-day percentile threshold in a series (for example heat waves: daily maximum 2 m temperature above the 90th percentile of a 1991-2020 baseline for at least 3 days): climatology, threshold and events with duration, peak and anomalies. The series can be a file or a gridded field at a point or averaged over a box; hourly data are reduced to daily.
cross_sectionVertical cross-section of pressure-level fields along a path of [lon, lat] vertices (geodesic legs, MetPy) at one time, with potential and equivalent potential temperature and the wind along and across the path; NetCDF with the path stored for the map.
soundingsVertical profiles at points from pressure-level fields at one time, with surface-based, mixed-layer (100 hPa) and most-unstable CAPE and CIN, lifted index and LCL (MetPy); writes the profiles with the parcel path (for a skew-T) and the index table.
ai_forecastRun an AI weather model with Earth2Studio from initial conditions (ARCO ERA5 for past events, IFS open data or GFS for recent ones): FourCastNet ('fcn') or DLWP ('dlwp'), steps of the model's time step (6 h). Records the checkpoint and its licence, the initial-condition source and time and the device. Needs a CUDA GPU unless allow_cpu (slow); the first call builds a large worker environment.
tc_trackTrack tropical cyclones in a forecast (or reanalysis) field. backend 'tempestextremes' (CPU): DetectNodes on sea-level pressure minima with a closed-contour criterion and StitchNodes into tracks (Zarzycki & Ullrich 2017 style); 'earth2studio' (TCTrackerWuDuan, needs CUDA). Optionally keep the track nearest a start position. Writes a track table with lead time, position, MSLP and wind.
downscaleDownscale coarse fields to about 2 km with NVIDIA CorrDiff where a trained model exists: Earth2Studio's CorrDiffTaiwan (its fixed grid around Taiwan, from ERA5 or GFS inputs). Other regions need a trained model and are refused. Needs a CUDA GPU unless allow_cpu (very slow).
detect_blobsTempestExtremes DetectBlobs then StitchBlobs on a gridded field: tag cells passing a threshold ('var,op,value,distance', e.g. 'ivt,>=,250,0' for atmospheric rivers or a Z500 anomaly for blocks), keep objects of at least min_area_km2, and link them in time with a minimum lifetime and overlap. derive_magnitude computes the field as |(a, b)| first (IVT from the two flux components). Writes the stitched object field (NetCDF). The server finds its TempestExtremes build itself (TEMPESTEXTREMES_BIN or PATH), which a shell may not see; when none is installed the call returns backend_unavailable.
stitch_blobsRe-run TempestExtremes StitchBlobs on an already tagged blob file with a different minimum lifetime or overlap, without detecting again.
blob_statsPer object and time: area, centroid, extent and the mean and maximum of chosen fields under the object (e.g. precipitation); per object: life, peak area and, given a region mask (e.g. coastal land), the first time it reaches the region (landfall) and the field summed over the region while it is there.
climate_indexENSO (Niño 3.4 SST anomaly from a stated base period, ONI, and El Niño / La Niña phases by the ±0.5 °C five-season rule) or NAO (leading EOF of seasonal SLP anomalies over 20-80N, 90W-40E, positive with low pressure over Iceland), with the pattern for NAO.
compositeSeasonal-mean anomaly composites of a field for the years in each phase of an index table (from climate_index), with Welch t-test p-values against the other years.
evaluate_runEvaluate a climate or weather model run against a reference (ERA5) on a common grid: time-mean bias map, zonal-mean bias, monthly seasonal cycles per named region and their RMSE.
cmip_changeRegional change of a CMIP6 variable per model from the Pangeo cloud catalog (no key): future period minus historical period for one scenario, optionally for one season; per-model change, regional series and maps of change, multi-model mean and spread.
scoreScore forecasts against a reference (for example ERA5, or an IFS forecast) by lead time over a region: cos-latitude weighted RMSE and bias, ACC against a climatology if given, and for ensembles fair CRPS and spread; optionally the error map at one lead time.
station_fetchHourly station observations (2 m temperature, dew point, sea-level pressure) from NOAA GHCN-hourly, for stations named by ICAO code (e.g. LPPT), WMO id or GHCNh id, over a period; values with a failed quality code are removed and counted; no key.
station_verifyForecast at each station (bilinear) against the nearest observation in time: pairs, and bias, RMSE and MAE by station and lead time. 'offset' converts units (e.g. -273.15 for K to °C).
ibtracs_fetchBest track of a tropical cyclone from IBTrACS v04r01 (NOAA NCEI), by storm id (SID) or by name and season; subset 'last3years', 'ACTIVE' or a basin ('NA', 'WP', 'EP', 'NI', 'SI', 'SP', 'SA') to keep the download small. Times, positions, pressure and wind: the WMO agency's values, or JTWC's where the WMO agency has none (provisional tracks), with the agency of each row and both agencies' columns (WMO winds are 10-minute means, JTWC's 1-minute).
track_scoreErrors of forecast cyclone tracks (one or many models) against a best track: great-circle position error, central pressure and wind errors by model and lead time.
Examples
Replace example paths with your own files and check the returned results.
Usage
Available tools: era5_fetch, ensemble_fetch, exceedance, threshold_events, cross_section, soundings, ai_forecast, tc_track, downscale, detect_blobs, stitch_blobs, blob_stats, climate_index, composite, evaluate_run, cmip_change, score, station_fetch, station_verify, ibtracs_fetch, track_score.
Inspect the tool input schema in your MCP client before calling it. Use a small known input, check the result and any reported errors, then expand to the intended workload.