Skip to content
Tresca

HEC-RAS MCP servers and AI agent skills

HEC-RAS has several community MCP servers and skills but nothing from USACE. One server computes plans headless on Windows and reads the HDF results, pyHMT2D drives 2D models through the COM interface with slash-command skills, and the RAS Commander server and plugin answer read-only questions from project text files. Check the tested version before you rely on one: 7.0.x, 6.6 and 6.7 Beta each appear, and RAS 2025 is not supported.

  • No official USACE Hydrologic Engineering Center server yet.
  • 4 MCP servers and 2 agent skills listed.
USACE Hydrologic Engineering Center4 servers · 2 skillsChecked 4 Nov 2026

Integrations for HEC-RAS

Community and commercial servers

MCP serverCommunity

RAS Commander MCPby CLB Engineering (gpt-cmdr)

A read-only MCP server that answers bounded questions from HEC-RAS project and plan text files.

LocalWindows, macOS, LinuxRead-only16· updated 4 days ago
PluginCommunity

RAS Commander pluginby CLB Engineering (gpt-cmdr)

A Claude Code and Codex plugin with RAS and HMS Commander skills plus guarded read-only text servers.

LocalWindows, macOS, LinuxRead-only0· updated 8 days ago
MCP serverCommunity

hecras-mcpby Oscar Daniel Montero Miranda

Runs HEC-RAS 7.0 headless on Windows: inspects projects, computes plans and reads 1D and 2D HDF results.

LocalWindowsCan modify models0· updated 8 weeks ago
MCP serverCommunity

pyHMT2D MCP serverby psu-efd (Penn State)

pyHMT2D's MCP server opens, edits, runs and post-processes HEC-RAS 2D and SRH-2D projects.

LocalWindowsCan modify models134· updated 3 months ago

Agent skills

SkillCommunity

KISS knowledge infrastructure skillsby lzwei196

Per-model SKILL.md packages with tools, checks and failure fixes for EPANET, SWMM, HEC-RAS, HEC-HMS and MODFLOW 6.

187· updated 2 days ago
SkillCommunity

pyHMT2D agent skillsby psu-efd (Penn State)

Slash-command skills such as /hmt-open, /hmt-run and /hmt-calibrate that sequence pyHMT2D's MCP tools.

Windows134· updated 3 months ago

Listings are sorted by origin, then by recent activity. GitHub data is refreshed nightly. Nothing here is ranked.

How AI connects to HEC-RAS

An MCP server or skill can only do what HEC-RAS lets programs do. HEC-RAS exposes 3 automation interfaces:

  • HECRASController COM interface (COM automation): HEC-RAS on Windows registers a COM automation object, HECRASController, that external programs use to control a model. pyHMT2D drives HEC-RAS 2D through it with pywin32. The hecras-mcp author found it registered only for 32-bit Python, with array marshalling problems, so that server calls Ras.exe -c headless instead. Either way you need HEC-RAS installed on the same Windows machine. Documentation
  • Project text files and HDF5 results (Input files): A project is a set of plain-text files, .prj for the project, .g01 for geometry, .f01 or .u01 for steady or unsteady flow and .p01 for plans, and each computed plan writes an HDF5 file. Tools that only read, such as RAS Commander MCP, parse the text files and need no HEC-RAS install. Fixed-width fields and CRLF line endings matter: a malformed plan file can make HEC-RAS silently compute a different plan. Documentation
  • RAS Commander Python library (Python): ras-commander is a community Python API from CLB Engineering for running plans, editing projects and extracting HDF results from HEC-RAS 6.x and later. Its MCP server exposes only a bounded read-only slice of it; for geometry, results and execution, its skills tell the agent to write Python against the library directly. Documentation

What USACE Hydrologic Engineering Center offers

USACE's Hydrologic Engineering Center publishes no MCP server, agent skill or AI assistant for HEC-RAS. Its HEC-RAS pages cover the 7.0.2 download, the 2025 beta and documentation, and say HEC gives no phone or email support to non-USACE users. The community projects listed here state that they are independent of HEC.

Checked 4 Nov 2026. Sources: HEC-RAS home page, HEC-RAS downloads

What you can do with HEC-RAS and AI

  • Compute a 1D steady, 1D unsteady or 2D plan headless, then confirm success from the plan HDF rather than the exit code, which is always 0.
  • Read water surface elevations, velocities and 2D cell results from the plan HDF, and pull time series at a cross section.
  • Calibrate Manning's n against observed stages, or run a Monte Carlo study on roughness and inflow, on a HEC-RAS 2D model.
  • Answer quick questions about a project, such as its units and plan descriptions, without opening HEC-RAS.
  • Convert a HEC-RAS 2D mesh and results to VTK for ParaView, or to SRH-2D for a model comparison.

Taken from the listings' own documentation. Check each listing for exactly what it supports.

Installing

The listings here document setup for Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, GitHub Copilot and Windsurf. Install steps, copied from each project's own documentation, are on each listing's page. Most HEC-RAS integrations run on your own computer next to HEC-RAS, so you need HEC-RAS installed and licensed on the same machine unless the listing says otherwise.

Questions

Is there an official HEC-RAS MCP server?

No. As of 4 November 2026 USACE HEC has released no MCP server or agent skill. Everything here comes from consultancies, universities and individual engineers, and the main projects say they are independent of HEC.

Can Claude run a HEC-RAS model?

Yes, on a Windows machine with HEC-RAS installed. hecras-mcp runs plans through Ras.exe in the background and pyHMT2D runs 2D models through COM. The RAS Commander server can only read project text and doesn't compute.

Which HEC-RAS versions do these tools support?

hecras-mcp targets HEC-RAS 7.0.x. pyHMT2D was developed on 6.6 and doesn't support RAS 2025. The KISS skill validated only the steady solver of 6.7 Beta 5, run under Wine on Linux.

Does HEC-RAS run on Linux for agent workflows?

Partly. HEC's 7.0.2 Windows + Linux package includes Linux compute engines, but the interface and the COM controller are Windows only, so most MCP servers expect Windows.

AI-generated models, drawings and results must be checked by a qualified engineer before use.

Sources (checked 4 Nov 2026): HEC-RAS home page · HEC-RAS downloads (7.0.2, Windows and Linux engines) · HEC-RAS documentation · RAS Commander documentation · danielmiranda2017-tech/hecras-mcp README (COM and Ras.exe notes) · HEC-RAS product page

HEC-RAS is a trademark of USACE Hydrologic Engineering Center. Tresca is independent and not affiliated with or endorsed by USACE Hydrologic Engineering Center.