NOAA Climate MCP Server
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., "@NOAA Climate MCP Serverlist available climate datasets"
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.
Public Hosted Server: https://noaa-climate.caseyjhand.com/mcp
Overview
NOAA Climate Data Online (CDO) API v2 for historical weather observations, plus two separate NCEI bulk-CSV corpora — the Storm Events Database and Billion-Dollar Weather and Climate Disasters. Search locations and stations, fetch historical observations with date-range validation and unit conversion, and query severe-weather events or disaster costs from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
Tools
Tool | Description |
| List available CDO datasets with IDs, names, and temporal coverage |
| List data category groups (Temperature, Precipitation, Wind, etc.) |
| List specific measurement labels (TMAX, TMIN, PRCP, SNOW, etc.) by dataset or category |
| List the 12 location categories that scope location search |
| Search geographic locations by category (states, cities, counties, zip codes, climate regions), with an optional name filter |
| Search weather stations by location, bounding box, dataset, and data type |
| Fetch full metadata for a single station by ID |
| Fetch historical observation records for a dataset and date range |
| Search the NCEI Storm Events Database for one year — tornadoes, hail, floods, hurricanes, with damage, casualties, and narratives |
| Query NOAA's Billion-Dollar Weather and Climate Disasters — CPI-adjusted costs and deaths per disaster, or per-year totals by disaster class |
Resources
Resource | Description |
| All CDO datasets with IDs and temporal coverage — injectable context for orienting an agent before querying data |
| Station metadata by ID — name, coordinates, elevation, and data coverage date range |
Related MCP server: MCPWeather
Capability reference
noaa_climate_list_datasets tool
No required parameters — returns all ~11 CDO datasets by default; optional filters by data type, location, station, or date range
Paginated (
limit1–1000, default 25;offset), sortable byid,name,mindate,maxdate, ordatacoverageCommon IDs: GHCND (daily, 1763–present), GSOM (monthly), GSOY (annual), NORMAL_DLY/MLY/ANN/HLY (1981–2010 normals)
noaa_climate_list_data_categories tool
42 categories total (Temperature, Precipitation, Wind, Pressure, Sunshine, Sky cover, Weather Type, and more)
Optional filters by dataset, location, station, or date range; paginated (
limit1–1000, default 25;offset), sortable byidornameUse before
noaa_climate_list_data_typesto narrow by measurement domain
noaa_climate_list_data_types tool
Filter by
datasetId(e.g.GHCND) ordatacategoryId(e.g.TEMP) — hundreds of types exist across all datasetsCommon GHCND types:
TMAX,TMIN,PRCP,SNOW,SNWD,AWNDCoverage fraction and date range are included only when the upstream record carries them
Paginated (
limit1–1000, default 25;offset)
noaa_climate_list_location_categories tool
Returns the 12 category IDs
noaa_climate_find_locationsaccepts aslocationCategoryId:CITY,ST,CNTY,CNTRY,ZIP,US_TERR,CLIM_REG,CLIM_DIV,HYD_ACC,HYD_CAT,HYD_REG,HYD_SUBSortable by
idorname; paginated (limit1–1000, default 25;offset)Pagination and sort only — CDO ignores dataset, location, station, and date filters on this endpoint, so none are offered
noaa_climate_find_locations tool
locationCategoryIdscopes the search (e.g.STreturns all 51 states in one call); omit it to return every location typenameContainssynthesizes the name search CDO lacks by enumerating the category client-side and matching the substring case-insensitively — capped to categories of at most 4,000 locations (every category butZIP, 30,415); adatasetId/datacategoryIdfilter can narrow a larger category under that limitReturns location IDs used by
noaa_climate_find_stationsandnoaa_climate_fetch_data—FIPS:37,CITY:US530018,ZIP:98101Typed failures when
nameContainsis passed withoutlocationCategoryId, or the resolved category is too large to enumeratePaginated (
limit1–1000, default 25;offset); sort alphabetically bynameto page through an over-large category instead
noaa_climate_find_stations tool
Filter by
locationId,extent(lat/lon bounding box),datasetId,datatypeId(array), and date rangeReturns station IDs, names, coordinates, elevation, and data-coverage dates — station IDs feed
noaa_climate_fetch_dataasstationIdPair
datasetIdand date range to confirm a returned station actually has data for what you plan to queryCommon station ID formats:
GHCND:USW00024233,COOP:010008Paginated (
limit1–1000, default 25;offset)
noaa_climate_get_station tool
Single required input:
stationIdReturns name, coordinates, elevation, and full data-coverage date range
Mirrors the
noaa://stations/{stationId}resource as a direct callnot_foundwhen the ID is well-formed but resolves to nothing
noaa_climate_fetch_data tool
Requires
datasetId,startDate,endDate; optionalstationId,locationId,datatypeIdfilters (arrays)Date-range cap depends on dataset: GHCND, PRECIP_15, PRECIP_HLY, NORMAL_DLY, NORMAL_HLY, NEXRAD2, NEXRAD3 allow 1 year max; GSOM, GSOY, NORMAL_MLY, NORMAL_ANN allow 10 years max, measured to the end of the calendar month that many years after
startDateunits: "metric"or"standard"is strongly recommended — without it, GHCND values are raw tenths-of-unit integers (e.g.TMAX=256is 25.6°C)For any
NORMAL_*dataset, usestartDate=2010-01-01/endDate=2010-12-31— the fixed API proxy year regardless of which 30-year period is describeddate_range_exceededreports the exactmaxEndDateCDO will accept; an unrecognizeddatasetIdfailsvalidation_errorbefore any network callReturns flat
{ date, datatype, station, value, attributes }tuples plus aneffectiveQueryecho of the applied filters
noaa_climate_search_storm_events tool
Separate NCEI bulk-CSV corpus — no token required;
yearis required (1950 through the current partial year, one file per year)Filter by
state(the full NCEI name, e.g."FLORIDA", never a postal code),eventType(matched case-insensitively against the exact NWS label),month, andminDamageInUsdDamage arrives as both the raw magnitude-suffixed string (
"1.20M") and a parsed dollar amount; an unreported figure is omitted rather than reported as zero, andminDamageInUsdexcludes those rows and reports how many it droppedlimit1–100 (default 50) withoffset; a zero-match response names the event types and states the requested year actually containsyear_unavailablewhen NCEI has no file for the year;malformed_exportif a downloaded file fails to decompress into the expected table
noaa_climate_get_billion_dollar_disasters tool
Two shapes: individual disasters by default, or
summary=truefor per-year counts and costs by disaster class plus an "All Disasters" totalEvery cost is normalized to whole US dollars regardless of the unit NCEI declares per export (millions for the per-event file, billions for the national per-year file); the response echoes the source unit as
declaredCostUnitFilter by
startYear/endYear(overlap match),disasterType(one of seven exact NCEI classes),minCostInUsd, andstate(two-letter postal code)A
statescope reports each disaster's national cost, not a state share (costBasis: "national"), and its per-year rows carry a binnedcostRangeInUsdinstead of a point estimate and confidence bandsCoverage runs 1980 through the last year NCEI has finished assessing (
coveredYears), not the current calendar year;limit1–100 (default 50) withoffset
noaa://datasets resource
All CDO datasets as
application/json— IDs, names, temporal coverageEquivalent to
noaa_climate_list_datasetswith no filters and a high limit — injectable, zero-fetch context
noaa://stations/{stationId} resource
Station metadata by ID — mirrors
noaa_climate_get_stationstationIdcomes fromnoaa_climate_find_stationsnot_foundwhen the ID is well-formed but resolves to nothing
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
NOAA-specific:
Full CDO API v2 coverage — datasets, data categories, data types, locations, stations, and observations — plus two separate NCEI bulk-CSV corpora requiring no token: severe-weather events (Storm Events Database) and billion-dollar disaster costs
Client-side date-range validation enforced per dataset before hitting the API, reporting the exact upstream limit back to the caller
Unit normalization via CDO's
unitsparameter avoids raw tenths-of-unit integer confusionCDO's own rejection message is recovered and surfaced — an over-long date range, malformed date, missing parameter, or over-large
limitreports the reason CDO gave instead of a bare status lineBillion-Dollar Disasters costs are converted to whole US dollars from whichever unit each NCEI export declares in its own preamble, since the unit differs by export
Agent-friendly output:
Paginated results across every list and search tool —
limit,offset, and total count in every responseStation, location, and dataset IDs flow naturally between tools — find a location, find stations in it, fetch data from those stations
Structured error contracts with typed
reasoncodes and recovery hints — agents branch on data, not string parsingDamage and cost fields are honest about upstream gaps — an unreported NCEI figure is omitted rather than reported as a confirmed zero
Getting started
Public Hosted Instance
A public instance is available at https://noaa-climate.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"noaa-climate-mcp-server": {
"type": "streamable-http",
"url": "https://noaa-climate.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file.
{
"mcpServers": {
"noaa-climate-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/noaa-climate-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"NOAA_CDO_TOKEN": "your-token-here"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"noaa-climate-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/noaa-climate-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"NOAA_CDO_TOKEN": "your-token-here"
}
}
}
}Or with Docker:
{
"mcpServers": {
"noaa-climate-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-e", "NOAA_CDO_TOKEN=your-token-here", "ghcr.io/cyanheads/noaa-climate-mcp-server:latest"]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 NOAA_CDO_TOKEN=your-token-here bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.4.0 or higher (or Node.js ≥24.0.0).
A free NOAA CDO API token — required for all requests.
Installation
Clone the repository:
git clone https://github.com/cyanheads/noaa-climate-mcp-server.gitNavigate into the directory:
cd noaa-climate-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# edit .env and set required varsConfiguration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts. Key environment variables:
Variable | Description | Default |
| Required. NOAA CDO API token — obtain free at ncdc.noaa.gov/cdo-web/token | — |
| Transport: |
|
| HTTP server port |
|
| HTTP endpoint path where the MCP server is mounted |
|
| HTTP session posture: |
|
| Public origin override for TLS-terminating reverse-proxy deployments | none |
| Authentication: |
|
| Log level ( |
|
| Opt-in Bun-only forced-GC pressure loop (ms). Try |
|
| Storage backend: |
|
| Enable OpenTelemetry |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run the production version:
# One-time build bun run rebuild # Run the built server bun run start:http # or bun run start:stdioRun checks and tests:
bun run devcheck # Lints, formats, type-checks, and more bun run test # Runs the test suite bun run test:live # Opt-in: resolves every documented example identifier against the live CDO API
Docker
docker build -t noaa-climate-mcp-server .
docker run --rm -e NOAA_CDO_TOKEN=your-token-here -p 3010:3010 noaa-climate-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/noaa-climate-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
| Tool definitions ( |
| Resource definitions. Datasets catalog and station metadata resources. |
| CDO HTTP client with retry, backoff, camelCase→lowercase parameter translation, and recovery of CDO's own rejection message. |
| Incremental RFC 4180 CSV reader shared by the two NCEI bulk-CSV corpora. |
| NCEI Storm Events bulk-CSV client — filename discovery, streamed decompression, damage parsing. |
| NCEI Billion-Dollar Disasters client — declared-unit resolution and conversion to whole US dollars. |
| Server-specific environment variable parsing and validation with Zod. |
| Unit and integration tests, mirroring the |
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor logging,ctx.statefor storageRegister new tools and resources in the
createApp()arraysWrap external API calls as validate raw → normalize to domain types → return the output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
NOAA and ECMWF weather forecast MCP for discovery, validation, and GribStream OAuth queries.
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Climate MCP — wraps Open-Meteo Climate API (free, no auth)
Meteostat MCP — historical weather from 11k+ stations (no auth)
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides weather information for the United States through the Model Context Protocol. Enables users to query current weather conditions and forecasts for US locations.2-
- FlicenseNot gradedqualityDmaintenanceEnables processing and handling of weather-related data requests through the Model Context Protocol, providing meteorological information via a configured MCP server.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing seamless access to the Hawaii Climate Data Portal API for querying climate and weather data for Hawaii and American Samoa.-
- AlicenseNot gradedqualityDmaintenanceEnables to interact with comprehensive weather data through the MCP protocol, including current conditions, multi-day forecasts, hourly forecasts, and geocoding.4 npmMIT