noaa-cdo-mcp-server

v0.1.15
io.github.cyanheads/noaa-cdo-mcp-server Checked 20 hours ago Published 5 months ago

Search NOAA CDO stations and datasets, fetch historical weather observations.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

noaa_list_datasets List NOAA CDO Datasets

List available NOAA CDO datasets with their IDs, names, and temporal coverage. Returns all ~11 datasets by default (no required parameters). Optionally filter to datasets that contain a specific data type, cover a location or station, or overlap a date range. Common datasets: GHCND (daily observations, 1763–present), GSOM (monthly summaries), GSOY (annual summaries), NORMAL_DLY/MLY/ANN/HLY (1981–2010 climate normals). Use this first to discover available datasets before calling noaa_fetch_data.

ParameterTypeDescription
datatypeIdarrayFilter to datasets containing these data type IDs (e.g., ["TMAX", "PRCP"]). Optional.
endDatestringFilter to datasets with data on or before this ISO date (YYYY-MM-DD). Optional.
limitintegerMaximum number of results to return (1–1000). Defaults to 25.
locationIdstringFilter to datasets covering this location ID (e.g., "FIPS:37" for NC). Optional.
offsetintegerZero-based index of the first result to return for pagination. Defaults to 0.
sortFieldstringSort results by this field. Optional.
sortOrderstringSort direction. Optional; defaults to asc.
startDatestringFilter to datasets with data on or after this ISO date (YYYY-MM-DD). Optional.
stationIdstringFilter to datasets covering this station ID (e.g., "GHCND:USC00450974"). Optional.

noaa_list_data_categories List NOAA CDO Data Categories

List data categories that group related data types — Temperature, Precipitation, Wind, Pressure, Sunshine, Sky cover, Weather Type, and more. Use to discover what types of measurements are available before calling noaa_list_data_types. Optionally filter by dataset, location, station, or date range. There are 42 categories in total.

ParameterTypeDescription
datasetIdstringFilter to categories available in this dataset (e.g., "GHCND", "GSOM"). Optional.
endDatestringFilter to categories with data on or before this ISO date (YYYY-MM-DD). Optional.
limitintegerMaximum number of results to return (1–1000). Defaults to 25.
locationIdstringFilter to categories available at this location ID. Optional.
offsetintegerZero-based index of the first result to return for pagination. Defaults to 0.
sortFieldstringSort results by this field. Optional.
sortOrderstringSort direction. Optional; defaults to asc.
startDatestringFilter to categories with data on or after this ISO date (YYYY-MM-DD). Optional.
stationIdstringFilter to categories available at this station ID. Optional.

noaa_list_data_types List NOAA CDO Data Types

List available data types (measurement labels like TMAX, TMIN, PRCP, SNOW) for a given dataset or category. Pass a datasetId to see what is measured in that dataset, or a datacategoryId (e.g., "TEMP") to see all temperature-related types. Hundreds of types exist across all datasets. Use this before calling noaa_fetch_data when the data type IDs are unknown. Common GHCND types: TMAX (max temperature), TMIN (min temperature), PRCP (precipitation), SNOW (snowfall), SNWD (snow depth), AWND (average wind speed).

ParameterTypeDescription
datacategoryIdstringFilter to data types in this category (e.g., "TEMP" for temperature types, "PRCP" for precipitation). Optional.
datasetIdstringFilter to data types available in this dataset (e.g., "GHCND", "GSOM"). Optional.
endDatestringFilter to data types with data on or before this ISO date (YYYY-MM-DD). Optional.
limitintegerMaximum number of results to return (1–1000). Defaults to 25.
locationIdstringFilter to data types available at this location ID. Optional.
offsetintegerZero-based index of the first result to return for pagination. Defaults to 0.
sortFieldstringSort results by this field. Optional.
sortOrderstringSort direction. Optional; defaults to asc.
startDatestringFilter to data types with data on or after this ISO date (YYYY-MM-DD). Optional.
stationIdstringFilter to data types available at this station ID. Optional.

noaa_find_locations Find NOAA CDO Locations

Search for geographic locations by category (CITY, ST, CNTY, CNTRY, ZIP, CLIM_REG, etc.). Returns location IDs used in station search and data queries. Without locationCategoryId, returns all location types. Use locationCategoryId=ST to list US states (51 entries — small enough to retrieve completely). Use locationCategoryId=CITY for cities (thousands of entries — use pagination and sortField=name to navigate alphabetically). The CDO API has no name-search parameter; to find a specific city, sort alphabetically with sortField=name and page through results. Location IDs: states as FIPS:37 (…

ParameterTypeDescription
datacategoryIdstringFilter to locations with this data category (e.g., "TEMP"). Optional.
datasetIdstringFilter to locations covered by this dataset (e.g., "GHCND"). Optional.
endDatestringFilter to locations with data on or before this ISO date (YYYY-MM-DD). Optional.
limitintegerMaximum number of results to return (1–1000). Defaults to 25.
locationCategoryIdstringCategory filter. Use ST for states (51 entries), CNTY for counties, CITY for cities (large set — thousands of entries), CNTRY for countries, ZIP for zip codes, CLIM_REG for NOAA climate regions, CLI…
offsetintegerZero-based index of the first result to return for pagination. Defaults to 0.
sortFieldstringSort results by this field. Use name with sortOrder=asc to browse alphabetically when searching for a specific city or location name. Optional.
sortOrderstringSort direction. Optional; defaults to asc.
startDatestringFilter to locations with data on or after this ISO date (YYYY-MM-DD). Optional.

noaa_find_stations Find NOAA CDO Stations

Search for weather observation stations by location, bounding box, dataset, and data type. Returns station IDs, names, coordinates, elevation, and data coverage dates. Filter by locationId (e.g., "FIPS:37" for all NC stations), extent (lat/lon bounding box), datasetId, datatypeId, and date range. Station IDs returned here are used as stationId in noaa_fetch_data. A station must have data for the dataset and date range you want — filter by datasetId and startDate/endDate to ensure compatibility. Common station ID formats: GHCND:USC00450974, COOP:010008.

ParameterTypeDescription
datacategoryIdstringFilter to stations with data in this category (e.g., "TEMP"). Optional.
datasetIdstringFilter to stations that have data in this dataset (e.g., "GHCND" for daily observations). Optional.
datatypeIdarrayFilter to stations that record these data types (e.g., ["TMAX", "TMIN", "PRCP"]). Optional.
endDatestringFilter to stations with data on or before this ISO date (YYYY-MM-DD). Optional.
extentstringBounding box filter as "minLat,minLon,maxLat,maxLon" (e.g., "47.5,-122.4,47.7,-122.1" for central Seattle). Optional.
limitintegerMaximum number of results to return (1–1000). Defaults to 25.
locationIdstringFilter to stations within this location ID (e.g., "FIPS:37" for NC, "CITY:US530031" for Seattle). Obtain from noaa_find_locations. Optional.
offsetintegerZero-based index of the first result to return for pagination. Defaults to 0.
sortFieldstringSort results by this field. Optional.
sortOrderstringSort direction. Optional; defaults to asc.
startDatestringFilter to stations with data on or after this ISO date (YYYY-MM-DD). Optional.

noaa_get_station Get NOAA CDO Station

Fetch full metadata for a single weather station by its ID (e.g., "GHCND:USC00450974", "COOP:010008"). Returns name, coordinates, elevation, and the full date range for which data is available. Use when you have a station ID from noaa_find_stations and want its complete details, or to verify a station before querying data.

ParameterTypeDescription
stationId *stringStation ID to fetch (e.g., "GHCND:USC00450974", "COOP:010008"). Obtain from noaa_find_stations.

noaa_fetch_data Fetch NOAA CDO Observation Data

Fetch historical observation records from a NOAA CDO dataset for a given date range. Requires datasetId (e.g., GHCND for daily, GSOM for monthly), startDate, and endDate. Optionally scope to specific stations, locations, and data types. Date range limits per request: sub-daily and daily datasets (GHCND, PRECIP_15, PRECIP_HLY, NORMAL_DLY, NORMAL_HLY) are limited to 1 year; monthly and annual datasets (GSOM, GSOY, NORMAL_MLY, NORMAL_ANN) are limited to 10 years. For climate normals (NORMAL_*), use startDate=2010-01-01 and endDate=2010-12-31 — that is the API proxy year regardless of which 30-y…

ParameterTypeDescription
datasetId *stringDataset ID to query (e.g., GHCND for daily data, GSOM for monthly, GSOY for annual, NORMAL_DLY/MLY/ANN/HLY for 1981–2010 climate normals). Determines date range limit: GHCND/PRECIP_*/NORMAL_DLY/NORM…
endDate *stringEnd date for observations (YYYY-MM-DD). Must be within 1 year of startDate for sub-daily/daily datasets (GHCND, PRECIP_15, PRECIP_HLY, NORMAL_DLY, NORMAL_HLY) or within 10 years for monthly/annual dat…
startDate *stringStart date for observations (YYYY-MM-DD). For NORMAL_* datasets use 2010-01-01 regardless of the years being analyzed — 2010 is the API proxy year for all normals.
datatypeIdarrayOne or more data type IDs to include (e.g., ["TMAX", "TMIN", "PRCP"]). Without this, all data types for the dataset are returned. Use noaa_list_data_types to discover valid IDs. Optional.
includemetadatabooleanInclude pagination metadata in the response. Defaults to true.
limitintegerMaximum number of records to return (1–1000). Defaults to 25.
locationIdarrayOne or more location IDs to filter by (e.g., ["FIPS:37", "ZIP:98101"]). Broader than stationId — returns data from all stations within the location. Optional.
offsetintegerZero-based index of the first record to return for pagination. Defaults to 0.
sortFieldstringSort results by this field. Optional.
sortOrderstringSort direction. Optional; defaults to asc.
stationIdarrayOne or more station IDs to filter by (e.g., ["GHCND:USC00450974"]). Obtain from noaa_find_stations. Multiple IDs return comparative readings across stations. Optional.
unitsstringUnit system for returned values. Without this parameter, GHCND returns raw tenths-of-unit integers (TMAX=256 = 25.6°C). Strongly recommended: pass metric (SI units) or standard (Fahrenheit/inches). O…