Pondlog USGS Water

v0.1.7-1
io.github.andrewschristison/pondlog-usgs Checked 2 days ago Published 1 month ago

USGS Water Services MCP server.

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

get_instantaneous_values Real-Time USGS Streamflow / Gage Height

Real-time readings (typically 15-minute cadence) from a USGS gauge. Returns one or more time series, by default discharge (00060, ft³/s) and gage height (00065, ft), over a relative period ending now. Use this to answer 'what is the river doing right now?'. USGS rejects historic dates on this endpoint; for past data use `get_daily_values` with start_date/end_date instead. For a 'what gauges exist near here?' first-step query use `search_sites`.

ParameterTypeDescription
sites *arrayArray of USGS site numbers to fetch in one call. Most queries pass a single site, but the API supports batched fetches.
parameter_codesarraySpecific 5-digit parameter codes to retrieve. Defaults to ['00060', '00065'] (discharge + gage height). Pass ['00010'] for water temperature, etc.
periodstringRelative time window ending now. Default 'PT2H' (past 2 hours, returns ~8 readings at 15-minute cadence). 'P1D' returns ~96 readings.

get_daily_values Daily USGS Streamflow Statistics (Current or Historic)

Daily statistics (default: mean) for one or more USGS gauges. Use this for any query that crosses days or asks about historic dates. Pass either `period` (relative-to-now) OR `start_date`/`end_date` (historic range), not both. For real-time sub-hour resolution prefer `get_instantaneous_values`. Returns one daily value per (site × parameter × statistic × day). USGS quality codes: 'A' = approved, 'P' = provisional.

ParameterTypeDescription
sites *arrayArray of USGS site numbers. Single-site queries are typical.
end_dateHistoric range end (YYYY-MM-DD). Defaults to today when start_date is set.
parameter_codesarray5-digit parameter codes. Defaults to ['00060'] (discharge mean).
periodstringRelative window ending now. Examples: 'P7D', 'P30D', 'P1Y'. Mutually exclusive with start_date/end_date.
start_datestringHistoric range start (YYYY-MM-DD). Pair with end_date for an explicit window.
statistic_codesarrayUSGS statistic codes, '00003' = mean (default), '00001' = max, '00002' = min, '00008' = median.

get_site_info USGS Gauge Site Metadata

Returns metadata for a single USGS gauging station: official name, coordinates, site type (stream/lake/groundwater/etc.), hydrologic unit (HUC), state/county codes, and gauge altitude. Use after `search_sites` finds candidate gauges, or to confirm a site number returned in someone's data.

ParameterTypeDescription
site_number *stringUSGS site number, 8 to 15 digits identifying a single gauging station. Examples: '12045500' (Elwha River at McDonald Bridge near Port Angeles, WA); '12048000' (Dungeness River near Sequim, WA). Use `s…

search_sites Find USGS Gauge Sites Near a Location

Find active USGS stream-gauge sites by either (a) latitude/longitude/radius_km, or (b) US state postal code. Returns site numbers, names, coordinates, HUC, and altitude, feed the resulting site numbers into `get_instantaneous_values` or `get_daily_values`. Defaults filter to surface-water streams (siteType=ST) with real-time data (hasDataTypeCd=iv); pass site_type/has_data_type to override. Pass either lat+lng+radius_km OR state_code; the lat/lng path is preferred for place-aware queries.

ParameterTypeDescription
has_data_typestringRestrict to sites that publish the given data type: 'iv' = instantaneous (real-time, default), 'dv' = daily values, 'qw' = water quality, 'gw' = groundwater levels.
latnumberLatitude of the search center. Required if state_code is not provided.
lngnumberLongitude of the search center. Required if state_code is not provided.
radius_kmnumberSearch radius in km around (lat, lng). Default 25.
site_typestringUSGS site type code: 'ST' = stream (default), 'LK' = lake, 'GW' = groundwater, 'AT' = atmosphere, 'ES' = estuary. Full list: https://help.waterdata.usgs.gov/site_tp_cd
state_codestringUS two-letter state code. Mutually exclusive with lat/lng. Returns ALL active stream gauges in the state.