NOAA Climate MCP Server
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Public Hosted Server: https://noaa-climate.caseyjhand.com/mcp
Overview
Historical weather and climate records from NOAA: station observations from Climate Data Online, the Storm Events Database, and Billion-Dollar Weather and Climate Disasters. Find stations, pull observations in the units you want, and look up storm damage or disaster costs.
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 retired 1980–2024 Billion-Dollar Weather and Climate Disasters archive — 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 inputs; optional data type, location, station, and date-range filters;
limit1–1000 (default 25) withoffset, sortable byid,name,mindate,maxdate, ordatacoverageReturns each dataset's ID, name, and date span — GHCND (daily, 1763–present), GSOM (monthly), GSOY (annual), NORMAL_DLY/MLY/ANN/HLY (1981–2010 normals)
Date filters use inclusive coverage overlap:
maxdate >= startDateandmindate <= endDatefor each supplied bound. The complete catalog matching the other filters is retrieved before filtering and pagination; totals describe that filtered view.
noaa_climate_list_data_categories tool
Optional dataset, location, station, and date-range filters;
limit1–1000 (default 25) withoffset, sortable byidornameReturns the 42 measurement categories (Temperature, Precipitation, Wind, Pressure, Sunshine, and more), whose IDs narrow
noaa_climate_list_data_typesasdatacategoryId
noaa_climate_list_data_types tool
Filter by
datasetId(e.g.GHCND) ordatacategoryId(e.g.TEMP);limit1–1000 (default 25) withoffsetReturns the datatype IDs
noaa_climate_fetch_datatakes — common GHCND types areTMAX,TMIN,PRCP,SNOW,SNWD,AWND— with coverage and date range when CDO carries them
noaa_climate_list_location_categories tool
Pagination and sort only:
limit1–1000 (default 25) withoffset, sortable byidornameReturns 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_SUB
noaa_climate_find_locations tool
locationCategoryIdscopes the search (e.g.STreturns all 51 states); optionaldatasetId,datacategoryId, and date-range filters;limit1–1000 (default 25) withoffsetReturns the location IDs
noaa_climate_find_stationsandnoaa_climate_fetch_datatake —FIPS:37,CITY:US530018,ZIP:98101nameContainsadds a case-insensitive name match within one category of at most 4,000 locations (every category butZIP); it fails asname_filter_requires_categorywithout a category andname_filter_category_too_largepast the cap
noaa_climate_find_stations tool
Filter by
locationId,extent(lat/lon bounding box),datasetId,datatypeId(array), and date range;limit1–1000 (default 25) withoffsetextentisminLat,minLon,maxLat,maxLon: four finite signed decimal or scientific numbers, with surrounding whitespace allowed, latitude within ±90 and longitude within ±180. Equal coordinates work; reversed axes return no matches and are forwarded unchanged, without antimeridian wrapping.Returns station IDs (
GHCND:USW00024233,COOP:010008), names, coordinates, elevation, and data-coverage dates — the IDs feednoaa_climate_fetch_dataasstationId
noaa_climate_get_station tool
Single required input:
stationId, fromnoaa_climate_find_stations; the tool form of thenoaa://stations/{stationId}resourceReturns name, coordinates, elevation, and the full data-coverage date range; fails as
not_foundwhen a well-formed ID resolves to nothing
noaa_climate_fetch_data tool
Requires
datasetId,startDate,endDate; optionalstationId,locationId,datatypeIdarrays. The span cap is 1 year for GHCND, PRECIP_15, PRECIP_HLY, NORMAL_DLY, NORMAL_HLY, NEXRAD2, NEXRAD3 and 10 years for GSOM, GSOY, NORMAL_MLY, NORMAL_ANN; anyNORMAL_*dataset takesstartDate=2010-01-01/endDate=2010-12-31Returns flat
{ date, datatype, station, value, attributes }records plus aneffectiveQueryecho;date_range_exceedednames the latestmaxEndDateCDO will acceptunits: "metric"or"standard"is strongly recommended — without it, GHCND values are raw tenths-of-unit integers (e.g.TMAX=256is 25.6°C)
noaa_climate_search_storm_events tool
No token required;
yearselects one export (1950 through the current partial year); filter byepisodeId(exact digit string from a returned event; whitespace is trimmed, blank means unset, leading zeros remain significant),state(the full NCEI name, e.g."FLORIDA"),eventType,month,startDate/endDate, andminDamageInUsd; page ceiling 100 (default 50) withoffsetOptional
startDate/endDateare realYYYY-MM-DDdates and match inclusive event-span overlap before damage accounting, totals, and pagination. One-sided, equal, and cross-year intervals work; onlyyearselects the export. Active date bounds exclude missing, invalid, or reversed source spans; without bounds those rows remain visible.appliedDateRangeechoes supplied bounds on both surfaces. Reversed request dates fail asinvalid_date_rangebefore downloading.Each distinct episode narrative appears once in
episodeNarratives, linked from events byepisodeNarrativeRef; individualeventNarrativetext stays on each event. Rendered narratives preserve literal punctuation and line breaks. Optional local ISObeginDate/endDatevalues can feed CDO date filters alongside the unchanged NCEI date-time and timezone fields.Damage arrives as the raw magnitude-suffixed string (
"1.20M") and a parsed dollar amount, omitted rather than zeroed when NCEI reported none; a zero-match response names the event types and states the year containsFails as
year_unavailablewhen NCEI publishes no file for the year, andmalformed_exportwhen a downloaded file is not the expected table
noaa_climate_get_billion_dollar_disasters tool
Individual disasters by default, or
summary=truefor per-year counts and costs by disaster class; filter bystartYear/endYear,disasterType(one of seven NCEI classes),minCostInUsd, andstate(two-letter postal code);limit1–100 (default 50) withoffsetEvery cost is whole US dollars whatever unit the export declares (echoed as
declaredCostUnit); astatescope reports national costs (costBasis: "national") and binned per-yearcostRangeInUsdNOAA retired the product after 2024; the 1980–2024 archive remains available with no later years added.
coveredYearsreports the span actually present in the selected export. Every successful response carries this archive notice alongside any clamp or paging guidance.CPI-adjusted costs preserve the archived export’s adjustment; the server does not rebase them to current prices or infer a CPI base year.
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
stationIdfromnoaa_climate_find_stations; the resource form ofnoaa_climate_get_stationReturns station metadata; fails as
not_foundwhen a well-formed ID 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
Discovery date intervals reject
startDate > endDatebefore any request, withvalidation_errorand a hint to swap the values. Equal and single-ended dates remain valid; compactYYYYMMDD, unpadded dashed dates, and supported second-precision datetime forms are normalized for comparison.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, or missing parameter reports the reason CDO gave instead of a bare status line
Billion-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 — zero-based
offsetin inputs and returned metadata. Locally filtered dataset and location views synthesize metadata from the filtered results; other CDO pages preserve absent upstream metadata. Coordinates and coverage retain upstream precision; coverage text uses raw fractions labeled 0–1.Positive integer read limits are clamped to the page ceiling: 1000 for CDO, 100 for Storm Events and Billion-Dollar Disasters. A notice names the requested and applied limits alongside any empty-page or exhaustion guidance; use the applied limit to advance
offset. Each clamp is logged and counted asnoaa.pagination.limit_clamped.Station, 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 CDO requests; Storm Events and Billion-Dollar Disasters need no token.
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
Server-specific configuration uses Zod schemas in src/config/server-config.ts. The page-limit policy is validated at startup; the CDO token is required when a CDO request runs. Key environment variables:
Variable | Description | Default |
| Required for CDO. Obtain free at ncdc.noaa.gov/cdo-web/token; the two bulk corpora need no 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 |
|
| OTLP base URL; traces go to | none |
| Log each failed tool call's arguments and result, redacted by key name and capped at |
|
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.
NOAA NCEI MCP — the national climate archive, via the keyless Access services
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Climate MCP — wraps Open-Meteo Climate API (free, no auth)
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides weather information for the United States through the Model Context Protocol. Enables users to query current weather conditions and forecasts for US locations.2ISC
- AlicenseNot gradedqualityDmaintenanceEnables processing and handling of weather-related data requests through the Model Context Protocol, providing meteorological information via a configured MCP server.ISC
- 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.11 npmMIT