SWATGenX

io.github.SWATGenX由 GitHub 账号 SWATGenX 发布v1.1.2更新于 Nov 11, 2026

SWAT+ watershed models for any river in the lower 48 states, with groundwater and PFAS data

已验证Streamable HTTP可网页运行位置与生活云端与基础设施数据与分析

概览

AI 生成的概览

SWATGenX 的远程 MCP 服务器:检索 SWAT+ 流域模型、查询地下水与 PFAS 数据,并下单和下载模型构建。

可以做什么
  • 检索示例 SWAT+ 模型目录,读取已发布的率定与验证评分
  • 按点位或按州与检测物查询全国地下水井与岩性记录,以及 PFAS 监测站点
  • 预览某集水区是否可建模,然后下单、跟踪并下载真实的 SWAT+ 模型构建
  • 检索并阅读 SWATGenX 输入输出参考章节,获取引擎源码与构建信息
  • 查看账户的访问级别与配额
适用场景
适合美国流域水文相关工作:为某个水文站或 HUC12 出口寻找已有的率定 SWAT+ 模型、为某地点获取地下或 PFAS 监测数据,或通过助手委托一次新的模型构建。
运行要求
远程 streamable HTTP 端点,无需安装。连接和列出工具无需登录,但调用工具需要 SWATGenX 账户(邀请制)或 API 密钥,可通过 OAuth 2.1 登录或 Authorization Bearer 请求头提供。模型、数据和构建工具需要模型访问权限;构建与下载工具需要 API 密钥。
安装前请注意
构建请求会消耗账户的公平使用配额,率定按账户额度计费,研究项目按流域单独报价。数据查询计入每月不同站点额度及每天 200 个新站点上限。不带州筛选的 PFAS 结果可能包含美国以外站点。下载返回的是会过期的令牌链接。构建工具会写入并启动任务,其余为只读。

安装

在 SourceWeft 中

  1. 打开 控制台中的 SWATGenX,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.SWATGenX%2Fswatgenx/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "swatgenx": {
      "type": "http",
      "url": "https://www.swatgenx.com/mcp"
    }
  }
}

README

SWATGenX MCP Server

The agent-native front door to SWATGenX: SWAT+ watershed models for any river in the lower 48 states, built in the cloud from national datasets, with calibration as a separate step you run when you are ready.

Add it to Claude or any MCP client, and an agent can search the example-model catalog with its calibration and held-out validation scores, query a national groundwater well inventory and a national PFAS monitoring inventory, preview what a model of a watershed would contain, read the documentation, and start, track and download a real SWAT+ build under the same allocations as the web app.

Connect

claude mcp add --transport http swatgenx https://www.swatgenx.com/mcp

or, in a client's JSON config:

{ "mcpServers": { "swatgenx": { "type": "http", "url": "https://www.swatgenx.com/mcp" } } }

Connecting and listing the tools need no sign-in. Every tool call needs a SWATGenX sign-in or an API key: clients that support MCP authorization sign in with OAuth 2.1 through swatgenx.com; clients that set headers can send Authorization: Bearer <your API key>.

Tools

From 15 October 2026, the model, data and build tools need model access, and accounts are by invitation. The documentation, access and engine-info tools stay open to any account.

ToolTitleAccess from 15 Oct 2026
search_docsSearch the SWATGenX documentationany account
get_docRead a SWATGenX documentation chapterany account
get_engine_infoGet SWAT+ engine source, build guide and toolchainany account
get_access_infoGet access level and allocationsany account
search_swat_modelsSearch SWAT+ example modelsmodel access
get_model_calibrationGet model calibration resultsmodel access
query_groundwaterQuery national groundwater wellsmodel access
query_pfasQuery PFAS monitoring (US or worldwide)model access
request_modelPreview a watershed model buildmodel access
order_modelBuild a SWAT+ watershed modelmodel access
get_order_statusGet model build statusmodel access
list_my_modelsList your models and buildsmodel access
download_modelGet a model download linkmodel access

About

SWATGenX builds SWAT+ models for a USGS gauge, a HUC12 outlet or a HUC8 basin from NHDPlus HR hydrography, gSSURGO soils, NLCD land cover and PRISM weather. A groundwater study (offered in Michigan Lower Peninsula, Indiana, Minnesota, Ohio, Wisconsin) also builds a steady-state MODFLOW 6 groundwater model. Calibration against USGS streamflow is a separate step you run when you are ready. Daily two-way SWAT+/MODFLOW 6 coupling is in the engine, not yet in an automatic build.

The national groundwater inventory is described in doi:10.5194/essd-2026-527.

The server implementation lives in the main SWATGenX repository; this repository holds the registry manifest (server.json) and the publish workflow.

License

MIT

来源:README.md,提交 3852feb

工具

13

search_swat_models

Search SWAT+ example models

Search the public SWATGenX example-model catalog (built SWAT+ models for USGS gauges and HUC outlets across the conterminous US). Filter by two-letter `state`, `calibrated_only` (alias `calibrated`), and channel-count bounds. A model counts as calibrated only when the website shows it as calibrated (its calibration tier is advertised); a failed or below-satisfactory run does not.…

输入参数limitstatecalibratedmax_channelsmin_channelscalibrated_only

get_model_calibration

Get model calibration results

Return the published calibration for one example model: method, calibration NSE (daily + monthly), PBIAS, evals used, and window as {fit, scored}: the years the calibration was fitted to and the years its validation was scored on. Validation NSE is included only when the scored years lie outside the fitted years. calibration_status is calibrated_and_validated or…

输入参数site_no必填

query_groundwater

Query national groundwater wells

Query SWATGenX's national groundwater inventory (well records and lithology logs harvested from state agencies across the contiguous U.S.; live totals at https://www.swatgenx.com/api/gw-wells/summary) near a point — the subsurface data used to parameterise MODFLOW. Returns the nearest wells with lithology-interval count and a richness_tier grading what each well EXPOSES: 0 =…

输入参数lat必填lon必填limitradius_km

query_pfas

Query PFAS monitoring (US or worldwide)

Query the SWATGenX PFAS monitoring inventory (agency monitoring stations + observations): only sources whose licence allows serving them, the same set as the PFAS data API; unaudited VLM packs are excluded. Filter by two-letter `state` (e.g. 'MI') and/or `analyte` (e.g. 'PFOS', 'PFOA'): with an analyte, only stations that have at least one observation of it are returned, each with…

输入参数limitstateanalyte

request_model

Preview a watershed model build

Preview what SWATGenX WOULD build for a CONUS catchment. Takes either a USGS gauge id (usgs_station) or a 12-digit HUC12 outlet (huc12_outlet). Read-only in v1: returns whether the catchment is buildable, whether a model already exists, and the build endpoint (order_endpoint) — it does NOT start a build (that needs an authenticated account at swatgenx.com).

输入参数huc12_outletusgs_station

search_docs

Search the SWATGenX documentation

Search the SWATGenX I/O reference — model bundle layout, SWAT+ input files, PFAS fate-and-transport inputs, engine run modes and NetCDF output, MODFLOW-6 coupling, calibration artifacts, service limits. Returns ranked articles, each with a matching snippet and its chapter slug. The schemas are transcribed from the engine readers/writers and include the SWATGenX extensions, which…

输入参数limitquery必填

get_doc

Read a SWATGenX documentation chapter

Return one full SWATGenX documentation chapter as markdown, by chapter slug; 'overview' is the index and lists every chapter. Retired slugs are followed to their current chapter automatically.

输入参数slug

get_engine_info

Get SWAT+ engine source, build guide and toolchain

Where the SWAT+ engine SWATGenX runs comes from (including its parallel/OpenMP build), and how to build it from source. Returns the public fork, the build guide with the exact toolchain, and whether building is needed at all (usually it is not — downloaded models run as-is). No authentication required.

无需输入参数。

get_access_info

Get access level and allocations

Describe SWATGenX access: accounts by invitation (for a named research collaboration or a funded study), studies quoted for each watershed, and calibration on account credit; how to request access. With an API key, also report the caller's current access and its status.

输入参数api_key

order_model

Build a SWAT+ watershed model

Start a real SWAT+ model build (authenticated; consumes the caller's fair-use quota). Takes either a USGS gauge id (usgs_station) or a 12-digit HUC12 outlet (huc12_outlet). Returns an order_id for checking the build's status. Typical build: 20 min - 2 h. The API key comes from the X-SWATGenX-Api-Key header on the MCP connection or the api_key argument.

输入参数api_keyhuc12_outletusgs_stationforce_rebuild

get_order_status

Get model build status

Check a model build (authenticated): state (queued/running/complete/failed), stage, and timing. order_id is the id order_model returned for the build.

输入参数api_keyorder_id必填

list_my_models

List your models and builds

List the caller's models (authenticated): `models`, the model workspaces the account holds (the dashboard's list: site_no, level, vpuid, status flags), and `orders`, the builds requested through the build queue, newest first. `limit` caps each list (default 10, max 50; unbounded listing used to blow the MCP result budget at ~50 builds). `active_only=True` returns only…

输入参数limitapi_keyactive_only

download_model

Get a model download link

Get a download link for a model the caller owns (authenticated). The returned download_url is a TOKEN link valid for 24 hours; fetching it redirects to a storage URL minted fresh per request with a much shorter life (~30 min), so the redirect target expires long before the download_url does. vpuid/level are optional: the server resolves them from site_no (build records also…

输入参数levelvpuidapi_keysite_no必填

版本历史

3
  1. v1.1.2最新Nov 11, 2026
  2. v1.1.0Sep 28, 2026
  3. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分