关于 Water Quality Portal
Water Quality Portal 是面向水质研究者和监测数据使用者的 MCP 服务,可查询美国环境水化学监测站点及样本结果。它整合 USGS、EPA 和 NWQMC 的门户数据,并支持按位置、特征和日期筛选。
主要功能
- 01按地理条件搜索监测站点
- 02查询单个水质样本结果
- 03按坐标附近范围检索结果
- 04列出门户使用的特征词汇
适用场景
- 01查找某县或流域的水质监测站
- 02筛选特定时间段的硝酸盐样本
- 03查看指定坐标附近的水质测量值
MCP 相关
向 MCP 客户端提供站点搜索、样本结果查询、附近结果检索和特征词汇查询工具。可连接 Pipeworx 远程服务或运行本地 stdio MCP 服务。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/water-quality-portal/mcpclaude mcp add --transport http pipeworx-io-water-quality-portal https://gateway.pipeworx.io/water-quality-portal/mcp{"mcpServers":{"pipeworx-io-water-quality-portal":{"type":"http","url":"https://gateway.pipeworx.io/water-quality-portal/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-water-quality-portal":{"type":"http","url":"https://gateway.pipeworx.io/water-quality-portal/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-water-quality-portal":{"type":"http","url":"https://gateway.pipeworx.io/water-quality-portal/mcp"}}}{"mcpServers":{"pipeworx-io-water-quality-portal":{"serverUrl":"https://gateway.pipeworx.io/water-quality-portal/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/water-quality-portal
美国环境水化学监测——来自美国地质调查局(USGS)/ 美国环境保护署(EPA)/ 国家水质监测委员会(NWQMC)水质门户(NWIS、STORET 和 STEWARDS 可通过同一查询界面访问)的站点元数据和单个样本结果。
Pipeworx 的一部分:https://pipeworx.io — 一个将 AI Agent 连接到 1684+ 个实时数据源的 MCP 网关。
工具
wqp_search_sites(statecode?, countycode?, huc?, bbox?, siteType?, characteristicName?, organization?, limit?)— 监测站点,包括坐标、站点类型和每个站点包含的结果数量。必须至少提供一个筛选条件。wqp_get_results(siteid?, characteristicName?, statecode?, countycode?, startDate?, endDate?, sampleMedia?, limit?)— 单个样本值,包括单位、方法、深度和日期。wqp_results_near_point(latitude, longitude, within_miles?, characteristicName?, startDate?, endDate?, limit?)— 指定半径内的相同结果。wqp_list_characteristics(domain?, text?, limit?)— 门户要求使用的受控词汇写法(“Nitrate”,而非“nitrate”)。
身份验证
无需密钥。
数据源
https://www.waterqualitydata.us/data/Station/search— 站点元数据(GeoJSON)。https://www.waterqualitydata.us/data/Result/search— 样本结果(仅限 CSV)。https://www.waterqualitydata.us/Codes/<domain>— 受控词汇(JSON)。
以下是其他人可能需要重新发现的事项:
Result/search没有 JSON 配置。mimeType=geojson可用于 Station,但用于 Result 时会被拒绝;CSV 会在包内解析。- 传输中的日期格式为 MM-DD-YYYY(
startDateLo=01-01-2020),而非 ISO 格式。工具接受YYYY-MM-DD并进行转换,因此调用者无需处理该格式。 - 必须使用
zip=no,否则响应会是 zip 压缩包。 - 响应很大——单个全州站点查询约为 750 KB。每个工具都会限制行数,并报告
truncated。
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"water-quality-portal": {
"url": "https://gateway.pipeworx.io/water-quality-portal/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/water-quality-portal/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 的共享元工具——ask_pipeworx、
discover_tools、search_within、remember/recall 和网关范围内的其他工具。因此,你看到的工具数量会多于此表所列:目前,单个包端点会同时列出约 30 个共享工具和该包自身的工具。连接的 initialize 响应会说明其确切范围,是当天情况的权威依据。
这是有意为之,并非意外复用。元工具让限定范围的连接也能回答本包未覆盖的问题——通过 ask_pipeworx 在整个目录中路由——无需添加第二个 MCP 服务。目前无法在不包含这些工具的情况下挂载包端点;如果额外的 schema 占用的上下文超过了路由带来的价值,请连接完整网关一次,而不是连接多个包端点。
也可以连接完整的 Pipeworx 网关,直接列出所有包的工具,而不只是此包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都连接到同一网关和相同的 1684+ 个数据源。唯一的区别是直接列出哪个包的工具;无论连接哪一个,ask_pipeworx 都可以访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/wqp_search_sites \
-H 'Content-Type: application/json' \
-d '{"statecode":"US:06","countycode":"US:06:081","characteristicName":"Nitrate","limit":5}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/wqp_search_sites。查找工具:使用 {"query":"..."} 向 https://gateway.pipeworx.io/v1/tools/search_packs 发送 POST 请求。
独立运行(无需网关账户)
此软件包也可作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需通过网关往返:
{
"mcpServers": {
"water-quality-portal": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-water-quality-portal"]
}
}
}
也可以直接运行,以确认它能正常启动:
npx -y @pipeworx/mcp-water-quality-portal
它通过 stdin/stdout 使用 MCP 通信,并仅针对此包自身的工具响应 initialize/tools/list/tools/call——不包含上述网关连接所添加的共享元工具。数据源和工具相同,但没有 ask_pipeworx 路由功能。
使用 ask_pipeworx
无需直接调用工具,你可以用通俗的英语提问—— 这在上方的 pack 端点和完整网关上都适用:
ask_pipeworx({ question: "your question about Water Quality Portal data" })
网关会选择合适的工具并自动填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。