usgs-water-mcp-server
MCP server by cyanheads Community
Queries real-time and historical water data from about 8,000 USGS stream gages and groundwater wells over MCP. It is built for AI assistants that need current readings, historical series, or site lookups. It runs over STDIO or Streamable HTTP.
Install usgs-water-mcp-server
Built from the published package, never by AI.
claude mcp add usgs-water-mcp-server -- npx -y @cyanheads/usgs-water-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"usgs-water-mcp-server": {
"args": [
"-y",
"@cyanheads/usgs-water-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install usgs-water-mcp-server in Claude Desktop
{
"mcpServers": {
"usgs-water-mcp-server": {
"args": [
"-y",
"@cyanheads/usgs-water-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"usgs-water-mcp-server": {
"args": [
"-y",
"@cyanheads/usgs-water-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add usgs-water-mcp-server -- npx -y @cyanheads/usgs-water-mcp-server{
"mcpServers": {
"usgs-water-mcp-server": {
"args": [
"-y",
"@cyanheads/usgs-water-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install usgs-water-mcp-server in Antigravity CLI
gemini mcp add usgs-water-mcp-server npx -y @cyanheads/usgs-water-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the usgs-water-mcp-server block.
About
The usgs-water-mcp-server is an MCP server that gives AI assistants access to USGS water data. It covers about 8,000 active stream gages and groundwater wells across the US and territories. The tools can find monitoring sites by bounding box, state, county, or HUC watershed, pull the latest instantaneous readings, and retrieve daily or instantaneous time series. It also reports current conditions ranked against period-of-record percentiles.
The server wraps USGS NWIS endpoints and checks input formats before calling them. Large results can be staged to a DuckDB-backed DataCanvas and queried with read-only SQL. It runs over STDIO or Streamable HTTP and needs no API key. It is aimed at people who want an assistant to look up water levels, flows, or site details.
Written from the project's README and checked against it.
Tools it gives your assistant
water_find_sitesFinds USGS monitoring sites by bounding box, state, county, or HUC watershed.water_get_readingsGets the latest instantaneous values, about 15 minutes old, for up to 100 sites.water_get_seriesGets a daily or instantaneous time series for one site over a date range.water_get_site_data_catalogLists a site's parameters, sensors, statistics, and record date bounds.water_get_conditionsRanks the current reading against period-of-record percentiles for that day.water_list_parametersLists curated USGS parameter codes or searches the full USGS catalog by name.water_dataframe_describeLists tables and columns staged on a DataCanvas by the series or site tools.water_dataframe_queryRuns a read-only SQL SELECT against staged water time series and site tables.water_dataframe_dropDrops one staged table from a DataCanvas. Opt-in through an environment variable.
What you need
- No API key required for USGS data
- CANVAS_PROVIDER_TYPE=duckdb for DataCanvas spillover and dataframe tools
- WATER_DATAFRAME_DROP_ENABLED=true to use the drop tool
| Setting | Needed | What it is |
|---|---|---|
USGS_Environment variable | Optional | Custom User-Agent string for USGS Water Data API requests. Defaults to a descriptive identifier including the repo URL. |
USGS_Environment variable | Optional | HTTP request timeout in milliseconds for each USGS Water Data API request. Every tool call also has a shared 45-second deadline across its requests and retries. Default: 30000. Default: 30000 |
USGS_Environment variable, secret | Optional | Optional api.data.gov key for the USGS Water Data APIs, sent as the X-Api-Key header. Without one, requests share the anonymous per-IP hourly limit (1,000 requests on the OGC collections); a shared or hosted deployment should set one. |
WATER_Environment variable | Optional | Set to true to make water_dataframe_drop callable — it removes one staged table from a DataCanvas. Off by default, which lists the tool as disabled. Needs CANVAS_PROVIDER_TYPE=duckdb to have anything to drop. Default: false |
MCP_Environment variable | Optional | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Find USGS stream gages in Colorado within the Upper Colorado HUC.
- Show the latest discharge readings for these USGS site numbers.
- Is today's streamflow at this gage unusually high or low for the date?
Good to know
- Real-time readings are about 15 minutes behind the current time.
- Readings are limited to 100 sites per call and 10 records per series.
- The SQL tool accepts only read-only SELECT statements.
- Dataframe spillover requires the duckdb canvas provider.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to usgs-water-mcp-server
All alternatives →World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.
Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.
Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.
OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.
Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.
Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.
Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data
usgs-water-mcp-server: common questions
Does the USGS Water MCP server need an API key?
The source says it wraps public NWIS endpoints and requires no API key. It is described as fully public.
How many water monitoring sites does it cover?
The source describes about 8,000 active USGS stream gages and groundwater wells across the US and territories.
Can the assistant run SQL on the results?
Yes, through water_dataframe_query when staged tables exist on a DuckDB canvas. The source says only read-only SELECT statements are allowed.
How do I install usgs-water-mcp-server?
In Claude Code run claude mcp add usgs-water-mcp-server -- npx -y @cyanheads/usgs-water-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is usgs-water-mcp-server the official server?
usgs-water-mcp-server is a community project by cyanheads, not verified by a company domain.
Is usgs-water-mcp-server free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is usgs-water-mcp-server safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to usgs-water-mcp-server?
Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.
Does usgs-water-mcp-server work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
