climate-example
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., "@climate-exampleprocess the mock climate data and show me the monthly summary plot"
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.
MCP Climate Example Repo
This repository contains a small, deterministic example that can be called through an MCP.
Mock scientific purpose of the example
This is an example that uses mock climate data and aggregates and plots the data. Input: data/mock_climate.csv with date, temperature_c, precipitation_mm, humidity_pct values per day for one month.
The output is (1) outputs/climate_summary.csv with month, avg_temperature_c, total_precipitation_mm for each month. The daily temperature values are aggregated using their mean, while the daily precipitation values are aggregated using their sum; (2) a plot of the data over time.
Related MCP server: baseline-mcp
Mock user workflow
The user workflow is the following:
User obtains
datafrom (server, weather station)User prepares the
configfile for the runUser executes the script using
dataandconfigUser verifies the data by visual inspection of the plot and the summary
This workflow currently requires the user to install the package (hurdle 1), write in a yaml file (hurdle 2), and provide relative paths (hurdle 3). It also requires the user to be in the correct relative directory when running the script (hurdle 4).
Relevant repo content
config/example.yaml: input parameters for the processing rundata/mock_climate.csv: mock climate time-series datascripts/process_climate.py: processing and plotting scriptoutputs/: generated summary CSV and plot filestests/: unit tests for the processing/plotting script and the MCP server
Data processing order in the script
The script does the following in the given order:
Parses the command-line arguments giving the relative position of the config file:
parse_args()Reads the YAML config file:
load_config()Loads the mock climate CSV:
run_pipeline()->pd.read_csv()Cleans and converts the climate data:
prepare_data()Aggregates the daily data to monthly and saves to
outputs/:build_monthly_summary()Creates and exports a plot of the data:
create_plot()
Missing data policy:
The config takes an optional top-level missing_policy block.
The four values and what each does: interpolate / zero_fill / drop / fail.
Defaults: interpolate for temperature_c, zero_fill for precipitation_mm
Installing and executing the script
The necessary dependencies can be installed into a Python environment using pip or uv:
pip install -r requirements.txtThe script is then executed using
python scripts/process_climate.py --config config/example.yamlExpected outputs
The expected outputs are stored in the folder given in the config file, for the default values:
outputs/climate_summary.csvoutputs/climate_plot.png
Unit tests
Unit tests require installing dev dependencies and can then be run via
pip install -r requirements-dev.txt
python -m pytestThis server cannot be deployed
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
Access Pollinations models and API capabilities through agent tools.
Climate MCP — wraps Open-Meteo Climate API (free, no auth)
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to operate a US power-grid data pipeline – ingest, plan, run, and monitor datasets like CAISO, ERCOT, and EIA-930 through MCP tools that mirror the CLI.Apache 2.0
- AlicenseAqualityBmaintenanceMCP server that provides statistically rigorous weather and climate context by exposing the Baseline API as agent tools, enabling queries about climate conditions and comparisons against historical data.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables access to World Bank Climate Change Knowledge Portal data through MCP, allowing AI agents to query climate information using natural language.165 npmMIT
- AlicenseAqualityBmaintenanceWraps a climate data-processing pipeline so agents can inspect the config schema and available sample CSVs, validate an inline JSON config, and run the pipeline to return a monthly summary table plus a rendered plot, with file access sandboxed to the data and outputs directories.4MIT