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 分