Skip to main content

KWR's EPANET MCP server

Overview

A Model Context Protocol server for EPANET water distribution network simulation and analysis. This server provides tools to load, simulate, visualise, and modify hydraulic network models via Large Language Models.

Please note that mcp-server-epanet is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

Publication

This work was presented at the 16th International Conference on Hydroinformatics (HIC 2026), Zaragoza, Spain, June 22–26, 2026.

If you use this software in your research, please cite the conference paper:

@inproceedings{zanutto2026epanetmcp,
  title     = {Conversational Hydraulic Modelling: An Open-source Model Context Protocol Server for {EPANET}},
  author    = {Zanutto, Dennis and Michalopoulos, Christos and Savi\'{c}, Dragan},
  booktitle = {TOADD},
  year      = {2026},
  address   = {Zaragoza, Spain},
  doi = {TOADD},
}

If you specifically reference the code or software package, also cite the Zenodo release:

@software{zanutto2026epanetmcp_software,
  title   = {The {EPANET} {MCP} server},
  author  = {Zanutto, Dennis and Michalopoulos, Christos},
  year    = {2025},
  doi     = {10.5281/zenodo.17771952},
  version = {Concept (all versions)},
}

Tools

TODO

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-epanet.

Using PIP

Alternatively you can install mcp-server-epanet via pip:

pip install mcp-server-epanet

After installation, you can run it as a script using:

python -m mcp_server_epanet

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

Using uvx
"mcpServers": {
  "epanet": {
    "command": "uvx",
    "args": ["mcp-server-epanet"]
  }
}
Using pip installation
"mcpServers": {
  "epanet": {
    "command": "python",
    "args": ["-m", "mcp_server_epanet"]
  }
}

Usage with VS Code

For manual installation, add the configuration to a file called .vscode/mcp.json in your workspace:

{
  "servers": {
    "epanet": {
      "command": "uvx",
      "args": ["mcp-server-epanet"]
    }
  }
}

Or using a local uv installation:

{
  "servers": {
    "epanet": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "mcp-server-epanet"]
    }
  }
}

For more details about MCP configuration in VS Code, see the official VS Code MCP documentation.

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-epanet

Or if you are developing locally:

cd path/to/epanet-mcp-server
npx @modelcontextprotocol/inspector uv run mcp-server-epanet

Running tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may help you debug any issues.

Development

If you are doing local development, there are two ways to test your changes:

  1. Run the MCP inspector to test your changes. See Debugging for run instructions.

  2. Test using the Claude desktop app. Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "epanet": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/epanet-mcp-server",
        "run",
        "mcp-server-epanet"
      ]
    }
  }
}

Metadata

Release files for mcp-server-epanet 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-epanet 0.2.0
File Size Uploaded Provenance Actions
mcp_server_epanet-0.2.0.tar.gz 6.2 kB Without provenance Details for mcp_server_epanet-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-epanet 0.2.0
File Interpreter ABI Platform Actions
mcp_server_epanet-0.2.0-py3-none-any.whl Python 3 none any Details for mcp_server_epanet-0.2.0-py3-none-any.whl

Total release size: 14.1 kB

Release files / mcp_server_epanet-0.2.0.tar.gz

Download URL mcp_server_epanet-0.2.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
576b900b0be697365fadbc9ec40484de1e4888861946537bb5110690e3018781
BLAKE2b-256 checksum
How to use checksums
3f7fdfa75e6d5e0f57cceaae857fb7df006756d7d1ef8adb6b42de237c2e4d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mcp_server_epanet-0.2.0-py3-none-any.whl

Download URL mcp_server_epanet-0.2.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a2371b5f45ef9f71393456cdcf610dfc98850cdbf6936cf8fe8ca802dc8e926
BLAKE2b-256 checksum
How to use checksums
1f4a8bd01066aa055c70783b9769dc9bbee6c930ec2a61cc6e5a1dacbee9103d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mcp-server-epanet 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page