Repository avatar
Monitoring
v1.0.1
active

usgs-water-streamflow-mcp

io.github.theluckystrike/usgs-water-streamflow-mcp

Real-time USGS river gauge streamflow discharge, gauge height, and water temperature data.

Documentation

usgs-water-streamflow-mcp

Real-time USGS Water Services river gauge streamflow discharge, gauge height, and water temperature over Model Context Protocol (MCP). Hydrology engineers, flood-risk insurers, utilities, agriculture operators, and environmental analysts can query live US river sensors from waterservices.usgs.gov with zero API keys and zero sign-up. It connects right away.

Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

https://usgs-water-streamflow-mcp.lipmichal.workers.dev/mcp

Available tools

ToolPurpose
get_gauge_realtime_readingsFetch live streamflow discharge in cfs, gauge height in ft, and water temperature in C for USGS site IDs
search_state_streamflow_gaugesList active USGS river gauges in a 2-letter US state ranked by live streamflow volume
get_streamflow_historyRetrieve recent instantaneous streamflow series (PT6H, P1D, P3D, P7D) with min, max, mean, and trend
find_gauges_in_bboxDiscover active USGS water gauges inside a geographic bounding box with live readings
compare_river_gaugesCompare live discharge, gauge height, and water temperature across multiple USGS gauges side by side

Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

{
  "mcpServers": {
    "usgs-water-streamflow": {
      "url": "https://usgs-water-streamflow-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

npm install
npm start

Compliance and reliability

Every upstream request queries waterservices.usgs.gov/nwis/iv/ with a polite User-Agent header (mcpstamp-usgs-water/1.0 (hello@mcpstamp.com)) and automatic retry on transient 5xx or network errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates newer protocol versions down to the SDK version cleanly.

More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.