GnistAI GnistAI
Log in

USGS Streamflow

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

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Environment

Data source: USGS Water Services

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/streamflow/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (3)

search_stream_sites

Search for USGS water monitoring sites.

Returns active stream gauge stations with location data.

Args:
state_code: US state code (e.g. "CO" for Colorado, "CA" for California). Optional.
limit: Maximum results (1-100, default 20).

ParameterTypeRequiredDescription
state_codeanyoptional
limitintegeroptional (default: 20)
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_stream_sites",
    "arguments": {}
  }
}
get_stream_conditions

Get current river/stream conditions at a USGS monitoring site.

Returns real-time discharge (flow rate) and gage height readings.

Args:
site_code: USGS site code (e.g. "09380000" for Colorado River at Lees Ferry).

ParameterTypeRequiredDescription
site_codestringrequired
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_stream_conditions",
    "arguments": {
      "site_code": "example"
    }
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

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"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/streamflow/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_stream_conditions",
    "arguments": {
      "site_code": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Environment)

Resources