usgs-water-mcp-server
Server Details
Query real-time and historical USGS water data from ~8,000 stream gages and groundwater wells.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- cyanheads/usgs-water-mcp-server
- GitHub Stars
- 3
- Server Listing
- @cyanheads/usgs-water-mcp-server
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 8 tools
Each tool has a distinct role, and the descriptions explicitly spell out the intended workflow (find_sites → catalog → series → dataframe_query), which greatly reduces misselection. The only real overlap is the trio water_get_readings / water_get_series / water_get_conditions, which all return values for sites and require careful reading to distinguish (latest snapshot vs. date-range series vs. percentile ranking).
All names share a `water_` namespace prefix and snake_case, with predictable verb_noun shapes (water_find_sites, water_get_series, water_list_parameters, water_get_site_data_catalog). The `water_dataframe_*` family uses resource_action ordering instead of verb_noun, a minor deviation from the otherwise consistent pattern.
Eight tools is a well-scoped set for a read-only USGS water data server: four data-retrieval tools, two discovery/metadata tools, and two canvas-SQL tools. Every tool earns its place and none appears redundant.
The surface covers the full read path for the domain: site discovery, parameter lookup, per-site series catalog, latest readings, range series, historical percentile context, and SQL analysis over staged data. However, the descriptions repeatedly reference a `water_dataframe_drop` tool that is not present in this set, leaving a dangling cleanup path and no way to release staged canvas tables.
Available Tools
8 toolswater_dataframe_describeWater Dataframe DescribeARead-onlyIdempotentInspect
List tables and columns staged on a DataCanvas by water_get_series or water_find_sites. Call this after water_get_series or water_find_sites returns a canvas_id to discover the exact table name and column types before writing a query. Then pass the table name to water_dataframe_query, or to water_dataframe_drop (when this server enables it) to remove a table you no longer need. Requires DataCanvas to be enabled on this server instance. Returns an error if DataCanvas is not available.
Inputs: canvas_id (required). Returns: error, tables, canvas_id
water_dataframe_queryWater Dataframe QueryARead-onlyIdempotentInspect
Run a read-only SQL SELECT against water data tables staged on a DataCanvas by water_get_series or water_find_sites. Workflow: run water_get_series or water_find_sites (get canvas_id + table_name) → water_dataframe_describe (confirm the table and its columns) → water_dataframe_query (SQL analysis), then optionally water_dataframe_drop (when this server enables it) to remove a table you are done with. Only SELECT statements are permitted. Returns at most 5,000 rows, or this server instance's canvas row limit when that is lower; a query matching more is capped and the response sets truncated=true, with row_count equal to the cap applied — scope with WHERE/LIMIT, and use SELECT COUNT(*) or water_dataframe_describe to learn the true match count. Requires DataCanvas to be enabled on this server instance. Returns an error if DataCanvas is not available.
Inputs: sql (required), canvas_id (required). Returns: rows, error, row_count, truncated
water_find_sitesWater Find SitesARead-onlyIdempotentInspect
Find USGS water monitoring sites by bounding box, state, county, or HUC watershed code, filtered by site type and parameter availability. Returns site numbers, names, coordinates, types, altitude, the UTC time each site last reported (lastObservedAt), and (in expanded mode) drainage area. Call this first — water_get_readings, water_get_series, and water_get_conditions all require a site number. Supply exactly one major filter — bbox, stateCd, countyCd, or huc; siteType, parameterCd, hasDataTypeCd, and observedWithin only narrow within it and cannot stand alone. parameterCd and hasDataTypeCd match sites that have ever reported, discontinued ones included; set observedWithin to keep only sites reporting now. Page through matches with limit/offset (default 25 per page, at most 500); truncated=true means matches remain after the returned window and upstreamTotal holds the full count. When the match set exceeds 500 and DataCanvas is enabled, the complete set also stages to a canvas (canvas_id/table_name) — inspect it with water_dataframe_describe, then retrieve it with water_dataframe_query.
Inputs: huc, bbox, limit, offset, +8 more. Returns: error, sites, total, notice, +5 more
water_get_conditionsWater Get ConditionsARead-onlyIdempotentInspect
Rank the current reading at up to 100 USGS sites per call against each site's full period-of-record daily-mean percentiles for the same calendar day — a "how unusual is this" percentileClass (record-high to record-low) per site, not a flood-stage or drought determination (this tool fetches no authoritative thresholds). Pass up to 500 site numbers and one parameterCd: the first 100 distinct sites are read, each with a reading in the last two hours returning one conditions row; the others read are listed in missingSites, and sites past the first 100 return in deferredSites, in input order, to resubmit. Rankings follow the water level: for a depth-to-water code (72019) a shallower depth ranks higher. The reading is instantaneous but the percentiles are daily-mean, so the ranking is approximate (see historicalContext.comparisonBasis). When a site's record is too short to rank, its row carries historicalContext=null instead of an error, and a failed statistics request marks only the rows it covered unavailable. A reading USGS reports as no data (a seasonal, discontinued, dry, or malfunctioning gage) returns an empty currentValue with the qualifiers naming why, and is not ranked. When a site measures the parameter with several sensors (methods), one reading is used and named by methodId/methodDescription — from a sensor the statistics hold a daily-mean series for when one is, otherwise the most recent across them; water_get_readings lists every method. Use water_find_sites and water_list_parameters to resolve inputs.
Inputs: sites (required), parameterCd (required). Returns: error, conditions, missingSites, deferredSites
water_get_readingsWater Get ReadingsARead-onlyIdempotentInspect
Get the latest instantaneous (~15-min, real-time) values for USGS sites — per-site, per-parameter records with timestamp, value, unit, and provisional/approved qualifiers. Takes up to 500 site numbers, a full water_find_sites page, and reads the first 100 distinct ones; the rest return in deferredSites, in input order, to pass as sites in another call. Omitting parameterCd returns every parameter each site publishes. A site measuring one parameter with several sensors returns one series per sensor, each named by methodId (its time-series ID) and methodDescription; a sensor that reported nothing in the period still returns, with totalValues 0. At most 100 series return per call — every site that returned a series keeps at least one, and totalSeries reports how many the upstream returned; pass parameterCd or split the sites across calls to reach the rest. Each series returns only its 10 most recent records (totalValues reports the true count); truncated=true when either cap applied. Use water_get_series for a full date-range series. Sites read that return no series are listed in missingSites, not dropped silently. Find site numbers with water_find_sites; water_get_site_data_catalog lists the parameters and sensors a site measures and when each last reported.
Inputs: sites (required), period, parameterCd. Returns: error, query, total, readings, +4 more
water_get_seriesWater Get SeriesARead-onlyIdempotentInspect
Get a time series for one USGS site and parameter over a date range, as time-ordered value records: daily values, instantaneous (~15-minute) readings, field measurements (values measured by hand on a site visit, such as a well’s groundwater level or a discharge measurement), or annual peaks. A site can hold several series for one query — one per daily statistic (mean, maximum, minimum), one per sensor (method), and one per field reading type; this returns one, reporting its statCd and methodId (its time-series ID), and lists the rest in otherSeries so any can be re-requested with the statCd and methodId inputs (methodId alone for a field or peak series). By default it returns the daily mean when one carries values, and the method with the most records. Large sets (>500 records) return the most recent records inline with truncated=true — the last 500 without DataCanvas, and with DataCanvas enabled the complete series also spills to a canvas (canvas_id/table_name): inspect the staged table with water_dataframe_describe, then read the full series with water_dataframe_query. Use water_find_sites and water_list_parameters to resolve inputs; water_get_site_data_catalog lists a site’s series with their record bounds (beginDate/endDate), and a row’s timeSeriesId works as methodId.
Inputs: site (required), endDate (required), startDate (required), parameterCd (required), +4 more. Returns: error, query, notice, statCd, +15 more
water_get_site_data_catalogWater Get Site Data CatalogARead-onlyIdempotentInspect
Discover a USGS site’s parameters, sensors, statistics, and UTC record bounds before calling water_get_series. Find site numbers with water_find_sites. Each row is a distinct series; metadata bounds may contain gaps and lag observations. For water_get_series, take YYYY-MM-DD from beginDate/endDate, pass the row’s seriesType, pass statCd only for daily rows, and pass a row’s timeSeriesId as methodId to request that exact series (water_get_readings and water_get_series report the same ID as methodId). Field-measurement series (hand-measured values, such as the levels of a well with no continuous sensor) list as seriesType "field" and annual-peak series as "peak". Rows with null seriesType are other computations, such as a water-year mean or maximum, and cannot be requested with water_get_series. Follow nextCursor with the same filters and limit until null.
Inputs: site (required), limit, cursor, seriesType, +1 more. Returns: error, series, siteName, nextCursor, +1 more
water_list_parametersWater List ParametersARead-onlyIdempotentInspect
Look up USGS parameter codes — the 5-digit codes every other tool's parameterCd takes. With no query, lists a curated set of well-known codes with names, units, and thematic group, from a built-in table (no network call): 00060 = "Discharge" (ft³/s), 00065 = "Gage height" (ft), 00010 = "Temperature, water" (°C), 72019 = "Depth to water level" (ft), and others; filter it with group. For anything else — turbidity, nitrate, chlorophyll, suspended sediment, salinity — pass query to search the full USGS parameter-code catalog (~19,700 codes) by name and description, or pass a 5-digit code to look it up. Matches list curated codes first. limit (default 25, 1–4,000) and offset (default 0) window whichever list the call selects; total counts every match, and nextOffset names the next page while entries remain.
Inputs: group, limit, query, offset. Returns: note, error, query, total, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Real-time water levels and flow rates from USGS stream gauges
USGS Water MCP — wraps USGS National Water Information System (NWIS) REST services (free, no auth)
Query official USGS real-time earthquake events, magnitudes, and seismic hazard telemetry.
USGS Water Services (NWIS) MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables querying USGS water data including real-time and historical streamflow, gage height, and water temperature from USGS gauges across the United States.3MIT
- AlicenseNot gradedqualityFmaintenanceWraps USGS NWIS REST services to query water data such as streamflow, groundwater levels, and water quality.MIT
- FlicenseNot gradedqualityDmaintenanceProvides access to real-time water data from the USGS Water Services API, allowing users to fetch instantaneous measurements like stream flow, gage height, temperature, and water quality parameters from thousands of monitoring stations across the US.3-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query live and historical USGS water data — real-time streamflow, gage height, temperature, precipitation, turbidity and other parameters — for individual gauge sites, and to discover which gauges are actively reporting a given parameter across a US state. Runs either as a keyless local stdio server or through a hosted gateway endpoint, with daily-value time series for trends and hydrographs.94 npmMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.