watershed-mcp — live demo

MCP server giving AI agents live access to bioregional river & watershed data (USGS NWIS + EPA WQP), aligned to the bounty-#450 ecological sensor schema. Repo: foxxx009/watershed-mcp. This page runs in your browser against the same public APIs the server tools call — no backend involved.

1 · Live USGS stream flow — Colorado River at Lees Ferry (09380000)

fetching waterservices.usgs.gov …

2 · MCP session record (real stdio transcript)

Captured on 2026-09-26 by running python watershed_mcp.py stdio and speaking JSON-RPC to it:
agent → initialize   → watershed-mcp 1.0.0, protocol 2025-03-26 ✓
agent → tools/list   → get_stream_flow, get_water_quality, assess_basin_health,
                       find_stations, get_sensor_schema ✓
agent → tools/call get_stream_flow {sites:"09380000", hours:24}
       → count: 408 readings, e.g.
         {"sensor_id":"USGS-09380000","parameter":"streamflow","value":9880.0,
          "unit":"ft3/s","timestamp":"2026-09-26T…","location":{lat:36.86433,lng:-111.58787}}
agent → tools/call assess_basin_health {siteids:["09380000"]}
       → live_readings: 384 · wqp_water_quality: 144
       → epa_compliance: score 100.0/100 (8 checked, 0 violations:
         dissolved_oxygen n=4 bad=0 · ph n=4 bad=0)

3 · Bounty-#450 schema conformance

Every reading carries the six required fields: timestamp, location(lat/lng), unit, value, sensor_id, source. Validator: python validate_examples.py → PASS basin_health (0 readings) · PASS stream_flow (5) · PASS wqp_quality (3)

4 · Verified WQP snapshot (EPA Water Quality Portal)

Snapshot captured live by the server on 2026-09-26 (the WQP data service now answers TSV-in-zip only; the server unzips it transparently — see README notes):
datecharacteristicvalueunitsite
2016-12-13Temperature, water12.9deg CUSGS-09380000
2016-12-13Oxygen7.6mg/lUSGS-09380000
2016-12-13pH8.0std unitsUSGS-09380000
2016-12-13Stream flow, instantaneous16000.0ft3/sUSGS-09380000