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.
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)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)| date | characteristic | value | unit | site |
|---|---|---|---|---|
| 2016-12-13 | Temperature, water | 12.9 | deg C | USGS-09380000 |
| 2016-12-13 | Oxygen | 7.6 | mg/l | USGS-09380000 |
| 2016-12-13 | pH | 8.0 | std units | USGS-09380000 |
| 2016-12-13 | Stream flow, instantaneous | 16000.0 | ft3/s | USGS-09380000 |