GnistAI GnistAI
Log in

USGS Streamflow

US river and stream conditions — real-time discharge, gage height from USGS gauges.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Environment

Data source: USGS Water Services

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/streamflow/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-streamflow": {
      "url": "https://context.gnist.ai/mcp/streamflow/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/streamflow/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_stream_conditions", "arguments": {"site_code": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/streamflow/

3 endpoints available:

Shell
curl "https://context.gnist.ai/rest/streamflow/get_stream_conditions?site_code=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/streamflow/get_stream_conditions",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "site_code": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc streamflow

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (3)

search_stream_sites
Search for USGS water monitoring sites.
ParameterTypeRequiredDescription
state_codeanyoptional
limitintegeroptional (default: 20)
get_stream_conditions
Get current river/stream conditions at a USGS monitoring site.
ParameterTypeRequiredDescription
site_codestringrequired
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related