wqp_search_sites
Pack: water-quality-portal · Endpoint: https://gateway.pipeworx.io/water-quality-portal/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/wqp_search_sites for the schema, then POST the same URL with its arguments for the data.
Find US water-quality monitoring stations (streams, lakes, wells, estuaries) by state, county, HUC, bounding box or organization. AUTHORITATIVE for “where is water sampled near X” — returns the station id you then pass to wqp_get_results, plus coordinates, site type, and how many results each station holds. Sourced from the USGS/EPA Water Quality Portal (NWIS + STORET + STEWARDS).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
statecode | string | no | FIPS state code in WQP form, e.g. “US:06” for California |
countycode | string | no | FIPS county code in WQP form, e.g. “US:06:081” for San Mateo County CA |
huc | string | no | Hydrologic unit code, e.g. “18050004” or a wildcard like “1805*“ |
bbox | string | no | Bounding box “minLon,minLat,maxLon,maxLat” (WGS84) |
siteType | string | no | Site type, e.g. “Stream”, “Lake, Reservoir, Impoundment”, “Well”, “Estuary” |
characteristicName | string | no | Only stations that have sampled this characteristic, e.g. “Nitrate”, “pH”, “Lead” |
organization | string | no | Organization identifier, e.g. “USGS-CA” |
limit | number | no | Max stations to return (default 50, max 500) |
Example call
Arguments
{
"statecode": "US:06",
"countycode": "US:06:081",
"characteristicName": "Nitrate",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/water-quality-portal/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wqp_search_sites","arguments":{"statecode":"US:06","countycode":"US:06:081","characteristicName":"Nitrate","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('wqp_search_sites', {
"statecode": "US:06",
"countycode": "US:06:081",
"characteristicName": "Nitrate",
"limit": 5
});
More examples
{
"bbox": "-122.5,37.7,-122.3,37.9",
"siteType": "Stream",
"limit": 10
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"water-quality-portal": {
"url": "https://gateway.pipeworx.io/water-quality-portal/mcp"
}
}
}
See Getting Started for client-specific install steps.