# NOAA Climate Data Online: weather stations, daily and monthly summaries

NOAA NCEI Climate Data Online: find weather stations near a point or in a place, daily observations \(GHCND\) and monthly summaries \(GSOM\) of temperature, precipitation and snow for a station, plus the dataset and data type catalogue.

- No API key needed to call. The provider needs an API key; AgentNative holds it.
- Source: [NOAA NCEI Climate Data Online \(CDO\) Web Services v2](https://www.ncdc.noaa.gov/cdo-web/webservices/v2)
- Licence and terms: [US federal work, 17 U.S.C. 105\(a\); NCEI data use terms apply](https://www.ncdc.noaa.gov/cdo-web/webservices/v2)
- Coverage: Global stations; densest in the United States
- Answers are shared and cached for 3600 seconds.

## Questions you can ask

- Which NOAA weather stations are near downtown San Francisco? (operation `noaa_cdo_stations`)
- What were the daily highs at San Francisco airport in January 2024? (operation `noaa_cdo_daily`)
- What was the average temperature each month of 2023 at San Francisco airport? (operation `noaa_cdo_monthly`)
- Which NOAA Climate Data Online datasets are available? (operation `noaa_cdo_datasets`)
- Which measurements does the NOAA daily summaries dataset offer? (operation `noaa_cdo_datatypes`)

## Operations

### Find NOAA weather stations

Answers: which weather stations are near a latitude and longitude, or inside a place \(location id such as FIPS:06 for California\)? Returns station id, name, coordinates, elevation and the date range with data coverage.

- `latitude`: optional, number, Latitude of the point; give with longitude.
- `longitude`: optional, number, Longitude of the point; give with latitude.
- `radius_degrees`: optional, number, default 0.25, Half-width of the search box in degrees \(about 111 km per degree\).
- `locationid`: optional, string, Location id, for example FIPS:06 \(state\), CITY:US060013, ZIP:94103.
- `datasetid`: optional, string, GHCND \| GSOM \| GSOY, default GHCND, Only stations that report this dataset: GHCND daily, GSOM monthly, GSOY annual.
- `limit`: optional, integer, default 10

Example: Which NOAA weather stations are near downtown San Francisco?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"noaa_cdo","operation":"noaa_cdo_stations","params":{"latitude":37.7749,"longitude":-122.4194,"radius_degrees":0.25,"limit":5}}}
```

Over HTTP:

```
curl '/v1/connectors/noaa_cdo/noaa_cdo_stations?latitude=37.7749&longitude=-122.4194&radius_degrees=0.25&limit=5'
```

### Daily weather observations for a station

Answers: what were the daily maximum or minimum temperature, precipitation, snowfall or snow depth at a station over a date range of at most one year \(GHCND\)? One data type per call.

- `stationid`: required, string, Station id with the GHCND: prefix, from noaa\_cdo\_stations.
- `startdate`: required, string, First day, YYYY-MM-DD.
- `enddate`: required, string, Last day, YYYY-MM-DD; at most 366 days after the first.
- `datatypeid`: optional, string, TMAX \| TMIN \| PRCP \| SNOW \| SNWD, default TMAX, TMAX and TMIN temperature, PRCP precipitation, SNOW snowfall, SNWD snow depth.
- `units`: optional, string, standard \| metric, default standard, standard is Fahrenheit and inches, metric is Celsius and millimetres.
- `limit`: optional, integer, default 25

Example: What were the daily highs at San Francisco airport in January 2024?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"noaa_cdo","operation":"noaa_cdo_daily","params":{"stationid":"GHCND:USW00023234","startdate":"2024-01-01","enddate":"2024-01-31","datatypeid":"TMAX","limit":5}}}
```

Over HTTP:

```
curl '/v1/connectors/noaa_cdo/noaa_cdo_daily?stationid=GHCND%3AUSW00023234&startdate=2024-01-01&enddate=2024-01-31&datatypeid=TMAX&limit=5'
```

### Monthly weather summaries for a station and year

Answers: what were the monthly average, maximum or minimum temperature, total precipitation or snowfall at a station in a given year \(GSOM\)?

- `stationid`: required, string, Station id with the GHCND: prefix, from noaa\_cdo\_stations.
- `year`: required, integer, Calendar year.
- `datatypeid`: optional, string, TAVG \| TMAX \| TMIN \| PRCP \| SNOW, default TAVG, TAVG mean temperature, TMAX and TMIN monthly extremes, PRCP total precipitation, SNOW total snowfall.
- `units`: optional, string, standard \| metric, default standard, standard is Fahrenheit and inches, metric is Celsius and millimetres.
- `limit`: optional, integer, default 12

Example: What was the average temperature each month of 2023 at San Francisco airport?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"noaa_cdo","operation":"noaa_cdo_monthly","params":{"stationid":"GHCND:USW00023234","year":2023,"datatypeid":"TAVG"}}}
```

Over HTTP:

```
curl '/v1/connectors/noaa_cdo/noaa_cdo_monthly?stationid=GHCND%3AUSW00023234&year=2023&datatypeid=TAVG'
```

### NOAA CDO datasets

Answers: which Climate Data Online datasets exist \(daily summaries, monthly summaries, normals\) and what date range does each cover?

- `limit`: optional, integer, default 25

Example: Which NOAA Climate Data Online datasets are available?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"noaa_cdo","operation":"noaa_cdo_datasets","params":{"limit":10}}}
```

Over HTTP:

```
curl '/v1/connectors/noaa_cdo/noaa_cdo_datasets?limit=10'
```

### NOAA CDO data types for a dataset

Answers: which measurements \(data types such as TMAX, PRCP, SNOW\) does a Climate Data Online dataset offer, and over what dates?

- `datasetid`: optional, string, GHCND \| GSOM \| GSOY \| NORMAL\_DLY \| NORMAL\_MLY, default GHCND
- `limit`: optional, integer, default 25

Example: Which measurements does the NOAA daily summaries dataset offer?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"noaa_cdo","operation":"noaa_cdo_datatypes","params":{"datasetid":"GHCND","limit":10}}}
```

Over HTTP:

```
curl '/v1/connectors/noaa_cdo/noaa_cdo_datatypes?datasetid=GHCND&limit=10'
```

## Source notice

Source: NOAA National Centers for Environmental Information, Climate Data Online. US federal government works are not subject to copyright: 17 U.S.C. 105\(a\) states "Copyright protection under this title is not available for any work of the United States Government". Not endorsed by NOAA.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
