ERA5 SMI
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., "@ERA5 SMI Calculate the monthly soil moisture index for Berlin from ERA5-Land data."
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.
ERA5 SMI
Calculate monthly soil moisture index (SMI) for any region based on ERA5-Land. Data comes in via an MCP server, the index is computed with a KDE transformation. Figures are generated using SKILLS.md files.
What you need
A CDS account and API key in
~/.cdsapirc(see https://cds.climate.copernicus.eu/api-how-to)
Related MCP server: DMAP-AI MCP Server
Setup
cd mcp/era5-mcp && uv sync && cd ../..
uv syncTo use the MCP server, point your client at mcp.json in the root.
Run the MCP server in VS Code
Install the environments (first time only):
cd mcp/era5-mcp && uv sync && cd ../.. uv syncMake the launcher executable (first time only):
chmod +x mcp/era5-mcp/start_era5_mcp.shRegister the server: create
.vscode/mcp.jsonin the project root with the path to the launcher. A relative path works if you open VS Code from the project folder; use an absolute path otherwise:{ "servers": { "era5": { "type": "stdio", "command": "/absolute/path/to/era5-smi-project/mcp/era5-mcp/start_era5_mcp.sh", "args": [] } } }Reload the window:
Ctrl+Shift+P→ "Developer: Reload Window". The server is listed under "MCP: Manage Servers" and should show as running (green).Use it: ask the agent to call the tools
fetch_era5_land_soil_moistureandextract_point_timeseries. The server only starts when the agent invokes it. Logs (with[DEBUG]lines) appear in the Output panel → MCP.
To verify the server works on its own, run bash mcp/era5-mcp/start_era5_mcp.sh
in a terminal — it starts and waits on stdio (that's normal), Ctrl+C to stop.
Usage
Download data with the MCP tool
fetch_era5_land_soil_moisture.Extract your point with
extract_point_timeseries.Use the
calculate-smiskill to compute the index (seeskills/calculate-smi/SKILL.md).Use the
plot-smiskill to make the figures (seeskills/plot-smi/SKILL.md).
The skills are the interface; never run the scripts under
skills/*/scripts/ directly.
Layout
AGENTS.md— instructions for running the pipelinepyproject.toml— environment for the skills (numpy, pandas, scipy, ...)mcp.json— config to connect an MCP client to the era5 servermcp/era5-mcp/— MCP server, the only thing that talks to the CDS APIera5_server.py— the server and its MCP toolsstart_era5_mcp.sh— launcher for the serverpyproject.toml— server environment (cdsapi, fastmcp, xarray)
skills/calculate-smi/— turns a soil moisture CSV into an SMI seriesSKILL.md— docs for the skillscripts/calculate_smi.py— the script
plot-smi/— turns an SMI CSV into figuresSKILL.md— docs for the skillscripts/plot_smi.py— the script
data/raw/— downloaded NetCDF filesprocessed/— extracted CSVs and SMI CSVsfigures/— output PNGs
Available Tools
7 toolsextract_point_timeseriesA
Extracts the nearest-pixel monthly time series from a downloaded NetCDF
file and writes it as a CSV with columns year,month,date,.
This CSV is the expected input format for the calculate-smi skill.
Inputs: lat (required), lon (required), filepath (required), output_csv (required), +1 more. Returns: result
fetch_era5_hourly_pressure_levelsB
Downloads ERA5 hourly data on specific pressure levels.
Inputs: day (required), year (required), month (required), variable (required), +6 more. Returns: result
fetch_era5_hourly_single_levelsB
Downloads ERA5 hourly surface data.
Inputs: day (required), year (required), month (required), variable (required), +5 more. Returns: result
fetch_era5_land_soil_moistureA
Downloads ERA5-Land monthly mean volumetric soil water content for one soil layer. This is the primary data source for the SMI pipeline (see skills/calculate-smi).
Inputs: year (required), layer (required), month (required), output_filename (required), +4 more. Returns: result
fetch_era5_pressure_levelsA
Downloads ERA5 monthly mean data on specific pressure levels for a given month across one or more years.
Inputs: year (required), month (required), variable (required), pressure_level (required), +5 more. Returns: result
fetch_era5_single_levelsB
Downloads ERA5 monthly mean surface data.
Inputs: year (required), month (required), variable (required), output_filename (required), +4 more. Returns: result
inspect_netcdfA
Inspects a NetCDF file and returns a summary of its contents (dimensions, variables, coordinates).
Inputs: filepath (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct data source or processing step: inspect_netcdf for inspection, the fetch tools are differentiated by time resolution (hourly vs monthly mean) and data type (pressure levels, single levels, land soil moisture), and extract_point_timeseries is the only output-writing tool. There is no meaningful overlap between tool purposes.
The naming follows a consistent snake_case verb_noun pattern, with fetch_era5_* clearly grouped by data type and time resolution. Minor deviation: tools without 'hourly' are implicitly monthly mean (e.g., fetch_era5_pressure_levels), which is not explicitly reflected in the name, and inspect/extract use generic verbs rather than the fetch_ prefix.
Seven tools cover the full data-preparation workflow for the ERA5 SMI pipeline: inspection, downloading multiple ERA5 variants, and extracting point timeseries. The count is well-scoped, not bloated or sparse, and each tool has a clear role.
The tool surface covers the main data types (pressure levels, single levels, land soil moisture) in both hourly and monthly resolutions, plus inspection and extraction. Minor gaps: there is no tool for directly listing available variables or fetching ERA5-Land hourly soil moisture, but these are not critical given the stated SMI focus.
Maintenance
Related MCP Connectors
Unofficial Climate MCP — wraps Open-Meteo Climate API (free, no auth)
Open-Meteo MCP — weather forecast + historical reanalysis + sister APIs
EnergyPlus weather files (EPW, DDY, STAT) and design conditions for any site, OpenStudio-MCP ready.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEU Crop Intelligence MCP Server — Yield forecasts, weather analysis, and phenology models for 15 countries. AI agent-native, multi-source intelligence (NASA POWER, Eurostat, Open-Meteo).MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for DMAP-AI drought monitoring and SPI drought analysis using NASA POWER and ERA5-Land/CDS data.-
- AlicenseNot gradedqualityCmaintenanceMCP server for NASA POWER climate data, offering a climatology tool to retrieve long-term monthly averages for any coordinate. Supports natural language queries through the Pipeworx gateway.124 npmMIT
- AlicenseNot gradedqualityBmaintenanceGeocode places, fetch global weather forecasts, ERA5 historical climate, marine conditions, air quality, and terrain elevation via MCP. Provides 11 tools over STDIO or Streamable HTTP.367 npm13Apache 2.0