Skip to main content
Glama
README.md
# 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.

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

## Available tools

| Tool | Purpose |
| --- | --- |
| `get_gauge_realtime_readings` | Fetch live streamflow discharge in cfs, gauge height in ft, and water temperature in C for USGS site IDs |
| `search_state_streamflow_gauges` | List active USGS river gauges in a 2-letter US state ranked by live streamflow volume |
| `get_streamflow_history` | Retrieve recent instantaneous streamflow series (`PT6H`, `P1D`, `P3D`, `P7D`) with min, max, mean, and trend |
| `find_gauges_in_bbox` | Discover active USGS water gauges inside a geographic bounding box with live readings |
| `compare_river_gauges` | Compare 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.

```json
{
  "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.

```bash
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.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.usgs-water-streamflow-mcp) with hosted commercial servers and priority endpoints.