Skip to main content
Glama
README.md
# Climate Risk MCP Server: open-source physical climate risk screening for TCFD, ISSB and CSRD

[![Licence: Apache 2.0](https://img.shields.io/badge/licence-Apache%202.0-blue.svg)](LICENSE)
[![MCP](https://img.shields.io/badge/MCP-Streamable%20HTTP%20%7C%20stdio-5b5bd6.svg)](https://modelcontextprotocol.io)
[![Tests](https://github.com/air-and-flood-consultants/climate-risk-mcp/actions/workflows/test.yml/badge.svg)](https://github.com/air-and-flood-consultants/climate-risk-mcp/actions/workflows/test.yml)

An open-source [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that screens buildings, sites and
whole asset portfolios anywhere in the world for **physical climate risk**: flooding, tropical cyclones, wildfire,
extreme heat, drought, rainfall change, warming and sea level rise, today and in 2030, 2050 and 2100 under SSP and RCP
climate scenarios, with expected damage, downtime and **climate value at risk**. Connect it to Claude, ChatGPT, OpenAI
Codex, Cursor, VS Code or any MCP client and ask for a climate risk assessment in plain English.

It is the engine behind the Climate Risk Screener by [Air & Flood Consultants](https://www.airandfloodconsultants.co.uk/?utm_source=github&utm_medium=readme&utm_campaign=climate-risk-mcp&utm_content=intro)
(AFC), a UK flood risk and environmental consultancy, published openly so that anyone can check the method, reuse it
and propose improvements.

```text
Hosted endpoint (Streamable HTTP, free, no sign-up, no key):
https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp
```

**Contents:** [What it does](#what-it-does) · [Connect it](#connect-it-to-claude-chatgpt-codex-cursor-and-vs-code) ·
[Example](#what-comes-back) · [Hazards and data](#hazards-scenarios-and-data) ·
[TCFD, ISSB and CSRD](#using-it-for-tcfd-issb-ifrs-s2-csrd-esrs-e1-and-esg-reporting) · [Limits](#limits) ·
[Run your own copy](#run-your-own-copy) · [Contributing](#contributing) · [Roadmap](#roadmap)

## What it does

- **Nine hazards.** Acute: river flooding, coastal flooding, tropical cyclones, wildfire, extreme heat. Chronic:
  temperature rise, changing rainfall, drying and drought, sea level rise.
- **19 climate views.** Today, plus 2030, 2050 and 2100 under SSP1-2.6, SSP2-4.5 and SSP5-8.5 (CMIP6) or RCP2.6,
  RCP4.5 and RCP8.5 (CMIP5).
- **Scores you can explain.** Every hazard is banded 1 (Very low) to 5 (Very high) from a named physical measure,
  such as the depth of a 1-in-100-year flood or days a year above 35 C, with the value and data source behind it.
- **Impacts.** Expected annual damage as a share of value (flood, cyclone wind, wildfire), downtime days, days
  affected and working days lost to heat, from published damage and disruption curves for the asset type.
- **Value at risk.** With asset values (and optionally revenue): annual losses and the present value of losses to
  2050 and 2100 for each scenario, discounted at 3.5% a year.
- **Portfolio summary.** Assets and share of value at High or above for every view, the physical risk metric asked
  for by IFRS S2 paragraph 29(c).
- **Files.** An Excel workbook (every asset, hazard and view, with the method), a PDF report with charts, and a CSV.
- **Open data only.** WRI Aqueduct Floods, World Bank CCKP CMIP6, the IPCC AR6 Atlas, NOAA IBTrACS, STORM, GFED5,
  FLOPROS and others, all with open licences. Screening calls no paid API and needs no key.
- **Fast.** All hazard data ship as pre-processed tiles, so 60 assets screen in under a second.

**Who it is for:** sustainability and ESG reporting teams, asset and fund managers, real estate owners, lenders,
insurers, auditors, consultants and developers who need a first, transparent view of physical climate risk across
many locations before deciding where to look closer.

## Connect it to Claude, ChatGPT, Codex, Cursor and VS Code

The hosted endpoint speaks MCP over Streamable HTTP and needs no authentication. The local build runs the same engine
over stdio on your own machine (Node.js 20 or later).

### Claude (claude.ai and Claude Desktop)

Open **Settings**, then **Connectors**, choose **Add custom connector**, name it *Climate Risk Screener* and paste:

```text
https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp
```

No authentication is needed. In Claude Desktop you can also run the local build: add this to
`claude_desktop_config.json` (on a Mac, `~/Library/Application Support/Claude/`) and restart Claude.

```json
{
  "mcpServers": {
    "climate-risk": { "command": "npx", "args": ["-y", "github:air-and-flood-consultants/climate-risk-mcp"] }
  }
}
```

### Claude Code

```bash
claude mcp add --transport http climate-risk https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp
```

Or the local build, which saves the Excel, PDF and CSV files to `~/climate-risk-reports`:

```bash
claude mcp add climate-risk -- npx -y github:air-and-flood-consultants/climate-risk-mcp
```

### ChatGPT

Air & Flood Consultants publishes this engine as the **Climate Risk Screener** app for ChatGPT, with an interactive
result card: a world map coloured by risk, a sortable table, charts, CSV or Excel upload of up to 250 assets, and
downloads. It has been submitted to OpenAI and will appear in the ChatGPT app directory once review is complete.
Until then, ChatGPT users with developer mode turned on can add the hosted endpoint as a custom connector.

### OpenAI Codex

```bash
codex mcp add climate-risk --url https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp
```

or in `~/.codex/config.toml`:

```toml
[mcp_servers.climate-risk]
url = "https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp"
```

### Cursor

In `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):

```json
{
  "mcpServers": {
    "climate-risk": { "url": "https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp" }
  }
}
```

### VS Code (GitHub Copilot agent mode)

In `.vscode/mcp.json`:

```json
{
  "servers": {
    "climate-risk": { "type": "http", "url": "https://afc-climate-risk.airandfloodconsultants.workers.dev/mcp" }
  }
}
```

### Gemini CLI, Windsurf, Zed, Goose, Cline and other MCP clients

Add the URL above as a Streamable HTTP server (in Gemini CLI, `"httpUrl"` under `mcpServers` in
`~/.gemini/settings.json`), or add `npx -y github:air-and-flood-consultants/climate-risk-mcp` as a stdio server.
To try it without a chat client, run `npx @modelcontextprotocol/inspector` and connect to the URL.

## Example prompts

- *Screen these five warehouses for physical climate risk for our TCFD report, and tell me which are High under
  SSP5-8.5 in 2050.* (then paste names with addresses or coordinates)
- *Here is our property list (CSV). What share of portfolio value is at High or Very high physical risk today and in
  2050, and what is the present value of expected losses to 2050 under SSP2-4.5 and SSP5-8.5?*
- *Is our data centre at 25.7617, -80.1918 exposed to hurricanes and coastal flooding, and how does that change by 2100
  under RCP8.5?*
- *Draft the physical risk paragraph of our IFRS S2 disclosure from this screening, with the limits stated.*

## What comes back

Clients without the ChatGPT card (Claude Code, Codex, Cursor, VS Code, the local build) get a Markdown report plus
links to, or saved copies of, the Excel, PDF and CSV files. An excerpt, for three assets (real output, some columns left out):

> Screened 3 assets for physical climate risk (3 located). Checked 2026-12-04.

| # | Asset | Country | Overall Today | Overall 2050 SSP5-8.5 | Overall 2100 SSP5-8.5 | Main hazards 2050 SSP5-8.5 | Expected damage % of value | Working days lost to heat |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | Canary Wharf office | United Kingdom | 2 Low | 3 Medium | 5 Very high | Wildfire, Drought | 0.000% → 0.000% | 0.0 → 0.0 |
| 2 | Phoenix logistics hub | United States | 5 Very high | 5 Very high | 5 Very high | Heat | 0.072% → 0.102% | 35.1 → 42.9 |
| 3 | Rotterdam port warehouse | Netherlands | 2 Low | 3 Medium | 5 Very high | Wildfire, Drought, Sea level | 0.006% → 0.010% | 0.0 → 0.0 |

> **Why the High and Very high scores (2050, SSP5-8.5)**
> - **Phoenix logistics hub**: River flood 4 High (1.4 m deep in a 1-in-100-year river flood); Heat 5 Very high
>   (169 days a year above 35 C; 66 with a heat index of 35 C or more (142 above 35 C in 1995-2014)); Warming 4 High
>   (+2.3 C on 1995-2014 (mean 25.7 C a year)); Drought 4 High (Drier: SPEI-12 drought index -0.64; longest dry
>   spell 83 days (+4))

The full report also has the portfolio table for all 19 views, a hazard-by-hazard score table, present values of
losses by scenario, assets that could not be located, and the method and limits. In ChatGPT the result card shows
the same results on a map.

## The tool

One read-only tool, `screen_climate_risk`. Pass up to 60 assets a call (the ChatGPT card takes files of up to 250).

| Field | Required | Meaning |
| --- | --- | --- |
| `name` | yes | Asset or site name |
| `latitude`, `longitude` | one of these or `address` | Decimal degrees |
| `address`, `city`, `country` | one of these or coordinates | Looked up on OpenStreetMap Nominatim (25 a screening at most) |
| `type` | no | Office, retail, hotel, healthcare, residential, data centre, warehouse and logistics, industrial or agricultural (free text is matched to these); sets the damage curves and heat work intensity |
| `value` | no | Asset value in any currency, for damage in money and the share of value at risk |
| `revenue` | no | Annual revenue, rent or net operating income (same currency), to value disruption |
| `ref` | no | Your own asset ID |

## Hazards, scenarios and data

| Hazard | What is measured | Main dataset |
| --- | --- | --- |
| River flooding | Depth of a 1-in-100-year flood at the asset (about 1 km grid); damage over return periods 2 to 1000 years above local protection | WRI Aqueduct Floods v2, FLOPROS |
| Coastal flooding | As river, with sea level rise and subsidence | WRI Aqueduct Floods v2, FLOPROS |
| Tropical cyclones | Hurricane and typhoon-force passages within 100 km, 1980-2024; damage from wind return periods | NOAA IBTrACS, STORM |
| Wildfire | Share of the surrounding land burnt each year, damped in dense urban areas, scaled by fire weather | GFED5, Quilcaille et al. 2023, GPW v4 |
| Extreme heat | Days above 35 C or with a heat index of 39 C or more; working days lost | World Bank CCKP CMIP6, IPCC AR6 Atlas CMIP5 |
| Temperature rise | Change in mean annual temperature from 1995-2014 | CCKP CMIP6, AR6 Atlas CMIP5 |
| Changing rainfall | Change in annual rainfall or in the wettest 5 days | CCKP CMIP6, AR6 Atlas CMIP5 |
| Drying and drought | Change in SPEI-12 and the longest dry spell | CCKP CMIP6 |
| Sea level rise | Coastal 1-in-100-year flood area with sea level rise, local projected rise | Aqueduct coastal maps, NASA / IPCC AR6 via CCKP |

Every band, threshold, curve and source, with the checks made against historical events, is in
[docs/METHODOLOGY.md](docs/METHODOLOGY.md). Licences and attributions are in [DATA-LICENCES.md](DATA-LICENCES.md).

## Value at risk

Expected annual loss = expected annual damage x asset value + operations lost x annual revenue, where operations lost
combines downtime (net of FEMA Hazus recapture) and heat working days lost (at a 40% labour share). The present value
sums expected annual losses from 2026 to 2050 and to 2100, interpolated between the horizons and discounted at 3.5% a
year; damage is capped at the asset's value. Portfolio figures are simple sums and do not model one event hitting
several assets.

## Using it for TCFD, ISSB IFRS S2, CSRD ESRS E1 and ESG reporting

The screener produces the evidence most physical risk disclosures start from:

| Framework | Where the screening helps |
| --- | --- |
| **TCFD** | Strategy (b) and (c): physical risks and resilience under different scenarios; Risk Management (a): how physical risks are identified; Metrics and Targets: assets exposed |
| **ISSB IFRS S2** (and UK SRS based on it) | Climate-related physical risks and their time horizons; climate resilience and scenario analysis (paragraph 22); the cross-industry metric for physical risks, amount and percentage of assets vulnerable (paragraph 29(c)) |
| **CSRD / ESRS E1** | Identifying physical climate hazards and screening assets against them, including a high emissions scenario such as SSP5-8.5; anticipated financial effects of physical risk |
| **EU Taxonomy** | A first screen of the physical climate risks in the climate risk and vulnerability assessment (do no significant harm to adaptation) |
| **UK climate-related financial disclosures, GRESB, CDP** | Scenario-based exposure of assets to acute and chronic physical hazards |

It is a screening, not a disclosure: you still decide materiality, add your own adaptation measures, insurance and
local knowledge, and commission site assessments where the screening points to high risk.

## Limits

- Indicative screening at single points, for portfolio prioritisation. Not a site-specific risk assessment, flood risk
  assessment, valuation, insurance loss estimate or investment advice.
- Flood maps are on a 1 km grid and climate indicators on a 25 km grid, so local features (defences, drainage, ground
  levels, building design) are not represented.
- River flood maps exclude surface water (pluvial) flooding and groundwater; protection comes from FLOPROS standards,
  not the defences at a site.
- Projections are ensemble medians; individual models and years vary widely around them.
- Damage and disruption use generic curves for the asset type. Treat them as orders of magnitude for comparing assets.
- Known weak spots, such as built-up coastal cities on the 1 km coastal maps and landscape fire near cities, are listed
  in [the methodology](docs/METHODOLOGY.md#7-known-weak-spots). Help fixing them is very welcome.

## Run your own copy

```bash
git clone https://github.com/air-and-flood-consultants/climate-risk-mcp.git
cd climate-risk-mcp
npm install
```

### Local stdio build

```bash
node bin/climate-risk-mcp.mjs
```

| Variable | Default | Meaning |
| --- | --- | --- |
| `CLIMATE_RISK_TILES_DIR` | `./public` if it holds `grids/` | Folder with `grids/clim` and `grids/flood` |
| `CLIMATE_RISK_TILES_URL` | the hosted endpoint | Where tiles are fetched from when there is no local folder (each tile once) |
| `CLIMATE_RISK_CACHE_DIR` | `~/.cache/climate-risk-mcp/v2` | Cache for fetched tiles |
| `CLIMATE_RISK_OUTPUT_DIR` | `~/climate-risk-reports` | Where the Excel, PDF and CSV files are saved |
| `NOMINATIM_USER_AGENT` | names this repository | Your app name and contact for OpenStreetMap address searches |

### Hazard data (tiles)

The tiles (about 7,400 files, 520 MB) are not in git. Three ways to get them:

1. **Do nothing**: the stdio build fetches the tiles it needs from the hosted endpoint and caches them.
2. **Download the release**: `grids-clim.tar` and `grids-flood.tar` from the
   [latest release](https://github.com/air-and-flood-consultants/climate-risk-mcp/releases/latest), unpacked into `public/`:
   ```bash
   gh release download --repo air-and-flood-consultants/climate-risk-mcp --pattern 'grids-*.tar'
   ```
   ```bash
   for f in grids-*.tar; do tar -xf "$f" -C public; done
   ```
3. **Rebuild from the source datasets** with the Python builders in `scripts/grids/` (instructions at the top of each).

For the tests only, `npm run tiles:test` downloads the 25 MB the tests need.

### Deploy to Cloudflare Workers

```bash
npm run deploy
```

On a fresh clone this first copies `wrangler.example.jsonc` to `wrangler.jsonc`; edit the Worker name, set
`NOMINATIM_USER_AGENT`, and add a KV namespace if you want download links (see the comments in the file). The full
tile set must be in `public/grids` before you deploy. `npm run dev:slim` runs a local Worker with only the tiles the
tests need.

### HTTP API

The Worker also answers plain JSON, for scripts and spreadsheets:

```bash
curl -s https://afc-climate-risk.airandfloodconsultants.workers.dev/api/screen \
  -H 'Content-Type: application/json' \
  -d '{"assets":[{"name":"Rotterdam DC","latitude":51.952,"longitude":4.045,"type":"warehouse","value":22000000}]}'
```

The reply has `structured` (every asset, hazard and view as JSON) and `text` (a short summary). Up to 250 assets a call.

## Tests

```bash
npm run tiles:test
```
```bash
npm run test:unit
```
```bash
npm run test:stdio
```

The unit suite (444 checks, no network once the tiles are there) pins the scores of a 12-asset sample portfolio on six
continents, checks the impact curves against published reference values, and covers the exports, the HTTP API and MCP
for both card and text clients. `npm run test:e2e` runs the official MCP client against a running Worker.

## Contributing

Corrections, better open datasets, validation against real losses and new hazards are all welcome. Read
[CONTRIBUTING.md](CONTRIBUTING.md), then open an [issue](https://github.com/air-and-flood-consultants/climate-risk-mcp/issues/new/choose)
or a pull request. Method and data changes need a source, a licence that allows reuse, and before-and-after results for
the sample portfolio.

This repository is the source of the hosted endpoint and the ChatGPT app, so an accepted change reaches all of them.

## Roadmap

- Zoomed hazard maps for each asset, with toggles for asset, hazard, year and scenario.
- Maps in the PDF reports, giving a report per asset and hazard.
- A ZIP export with every chart and map as PNG, the PDF reports and the Excel workbook.
- Better coastal flooding for built-up low ground (Deltares Global Flood Maps, a Low Elevation Coastal Zone).
- Water stress (WRI Aqueduct 4.0) as a tenth hazard.

## About Air & Flood Consultants

[Air & Flood Consultants](https://www.airandfloodconsultants.co.uk/?utm_source=github&utm_medium=readme&utm_campaign=climate-risk-mcp&utm_content=about)
is a UK consultancy for flood risk assessments, drainage and SuDS strategies, air quality and climate risk. For a
site-specific flood or climate risk assessment,
[ask for a quote](https://www.airandfloodconsultants.co.uk/get-a-quote?utm_source=github&utm_medium=readme&utm_campaign=climate-risk-mcp&utm_content=get-a-quote).

## Citation

If you use the screener in research or a report, please cite it (see [CITATION.cff](CITATION.cff)) and the datasets in
[DATA-LICENCES.md](DATA-LICENCES.md):

> Air & Flood Consultants (2026). Climate Risk MCP Server: open-source physical climate risk screening, version 2.0.0.
> https://github.com/air-and-flood-consultants/climate-risk-mcp

## Licence

Code: [Apache License 2.0](LICENSE), © 2026 Air & Flood Consultants; keep the [NOTICE](NOTICE) file when you
redistribute. Data: each source's own licence, mostly CC BY 4.0; see [DATA-LICENCES.md](DATA-LICENCES.md).