
Noaa Cdo Mcp Server
io.github.cyanheads由 GitHub 帳號 cyanheads 發布v0.1.15更新於 Oct 24, 2026
Search NOAA CDO stations and datasets, fetch historical weather observations.
概覽
向助理提供 NOAA 氣候資料:檢索 CDO 資料集、地點與氣象站,取得歷史觀測、風暴事件及十億美元級災害紀錄。
- 可以做什麼
- 瀏覽 CDO 資料集、資料類別、資料類型與地點類別
- 依類別、名稱、邊界框、資料集或資料類型尋找地點與氣象站
- 依 ID 讀取氣象站中介資料
- 依資料集、測站、地點與日期範圍取得歷史觀測紀錄,可選公制或英制單位
- 依年份檢索 NCEI 風暴事件資料庫,含損失、傷亡與事件敘述
- 查詢 1980–2024 年十億美元級災害檔案,可逐筆列出或依年份彙總
- 適用情境
- 適合需要美國歷史天氣與氣候事實的情境:測站層級的氣溫、降水或風速紀錄、劇烈天氣事件細節,或災害損失數據。適用於研究、報告與資料探索,而非即時天氣預報。
- 執行需求
- 可使用公開託管的 Streamable HTTP 端點,或透過 bunx、npx、Docker 在本機執行;需 Bun 1.4.0 以上或 Node.js 24 以上。CDO 請求需要免費的 NOAA CDO API 權杖,透過 NOAA_CDO_TOKEN 提供;風暴事件與十億美元級災害資料不需權杖。需能連線至 NOAA 服務。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Noaa Cdo Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.cyanheads%2Fnoaa-cdo-mcp-server/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"noaa-cdo": {
"type": "http",
"url": "https://noaa-cdo.caseyjhand.com/mcp"
}
}
}README
@cyanheads/noaa-climate-mcp-server
Search NOAA climate stations and datasets, fetch historical weather observations via MCP. STDIO or Streamable HTTP.
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
Resources
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, ordatacoverage - Returns 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 byidorname - Returns 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) withoffset - Returns 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 byidorname - 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_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) withoffset- Returns the location IDs
noaa_climate_find_stationsandnoaa_climate_fetch_datatake —FIPS:37,CITY:US530018,ZIP:98101 nameContainsadds 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) withoffset extentisminLat,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}resource - Returns 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-31 - Returns flat
{ date, datatype, station, value, attributes }records plus aneffectiveQueryecho;date_range_exceedednames the latestmaxEndDateCDO will accept units: "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) withoffset - Optional
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 contains - Fails 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) withoffset - Every cost is whole US dollars whatever unit the export declares (echoed as
declaredCostUnit); astatescope reports national costs (costBasis: "national") and binned per-yearcostRangeInUsd - NOAA 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 coverage - Equivalent 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_station- Returns 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 confusion - CDO'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 parsing - Damage 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:
Self-Hosted / Local
Add the following to your MCP client configuration file.
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
Prerequisites
- 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:
- Navigate into the directory:
- Install dependencies:
- Configure environment:
Configuration
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:
See .env.example for the full list of optional overrides.
Running the server
Local development
-
Build and run the production version:
-
Run checks and tests:
Docker
The 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
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor logging,ctx.statefor storage - Register new tools and resources in the
createApp()arrays - Wrap 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:
License
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
來源:README.md,提交 9232b01
工具
0版本歷史
1- v0.1.15最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分