search_sites
Pack: usgswater · Endpoint: https://gateway.pipeworx.io/usgswater/mcp
Find active USGS stream-gage sites in a US state that have real-time instantaneous data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
state | string | yes | Two-letter US state abbreviation (e.g., “VA”, “CA”, “TX”) |
Example call
Arguments
{
"state": "VA"
}
curl
curl -X POST https://gateway.pipeworx.io/usgswater/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_sites","arguments":{"state":"VA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_sites', {
"state": "VA"
});
More examples
{
"state": "CA"
}
Response shape
Always returns: state, count, sites
| Field | Type | Description |
|---|---|---|
state | string | Two-letter US state abbreviation (uppercase) |
count | integer | Number of sites found |
sites | array | List of active stream-gage sites |
Full JSON Schema
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Two-letter US state abbreviation (uppercase)"
},
"count": {
"type": "integer",
"description": "Number of sites found"
},
"sites": {
"type": "array",
"description": "List of active stream-gage sites",
"items": {
"type": "object",
"properties": {
"site_id": {
"type": [
"string",
"null"
],
"description": "USGS site number"
},
"site_name": {
"type": [
"string",
"null"
],
"description": "Name of the monitoring site"
},
"latitude": {
"type": [
"number",
"null"
],
"description": "Latitude coordinate"
},
"longitude": {
"type": [
"number",
"null"
],
"description": "Longitude coordinate"
},
"huc": {
"type": [
"string",
"null"
],
"description": "Hydrologic Unit Code"
},
"drainage_area_sqmi": {
"type": [
"number",
"null"
],
"description": "Drainage area in square miles"
}
}
}
}
},
"required": [
"state",
"count",
"sites"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"usgswater": {
"url": "https://gateway.pipeworx.io/usgswater/mcp"
}
}
}
See Getting Started for client-specific install steps.