Environment
Data source: USGS Water Services
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/streamflow/
3 endpoints available:
GET /rest/streamflow/search_stream_sitesGET /rest/streamflow/get_stream_conditionsGET /rest/streamflow/report_feedback
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())
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_sitesSearch for USGS water monitoring sites.
| Parameter | Type | Required | Description |
|---|---|---|---|
state_code | any | optional | |
limit | integer | optional | (default: 20) |
get_stream_conditionsGet current river/stream conditions at a USGS monitoring site.
| Parameter | Type | Required | Description |
|---|---|---|---|
site_code | string | required |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |