EPANET 2.2 MCP Server
MCP serverCommunity
Wraps EPA's unmodified runepanet.exe 2.2 to build, check and solve networks and return compact JSON. By Renzodasu.
0 starsUpdated 3 days agoGitHub data from 5 Nov 2026
At a glance
- Type
- MCP server
- Works with
- EPANET
- How it connects
- Reads and writes files; the tool isn't needed
- Access
- Can modify models
- Tool versions
- EPANET 2.2.0 (bundled runepanet.exe)
- Operating systems
- Windows
- Needs a EPANET licence
- No
- Transport
- Local (stdio)
- AI clients documented
- Claude Code, Codex
- Licence
- MIT
- Language
- Python
What it can do
- Eleven tools to inspect and validate .inp files, build networks from a JSON spec, solve, and query results, envelopes and time series.
- A check tool flags errors, negative pressures, mass imbalance, tanks outside their levels and unit mismatches.
- Returns headline results by default and caches runs by input content to keep responses small.
- Uses EPANET 2.2 itself, for work that must match 2.2 rather than the 2.3 engines in EPyT or WNTR.
Limitations
- Windows only, because it calls the bundled Windows executable.
- Text .inp files only; binary .net files from the EPANET 2.2 examples are rejected.
Install
git clone https://github.com/Renzodasu/EPANET-MCP.git
cd EPANET-MCP
python tests/test_protocol.pyclaude mcp add epanet -- "C:\path\to\python.exe" "C:\path\to\EPANET-MCP\server.py"Source: github.com/Renzodasu/EPANET-MCP#-using-with-other-mcp-clients
MCP servers and skills run code on your computer. Review the source before installing.
AI-generated models, drawings and results must be checked by a qualified engineer before use.