EPANET MCP Server
EPANET MCP Server
MCPサーバーであり、EPANETの水理・水質エンジンをAIアシスタント(Claude Desktop、Cursor、VS Code Copilot、Claude Code、…)の前面に置くものです。stdio経由で動作し、クラウドへの往復もブラウザも不要です。
AIアシスタントがEPANETの.inp/.netモデルを読み込み、検査し、シミュレーションを実行し、ノード/リンクごとの結果を読み取り、検証済みの編集を行うことを、すべてローカルで可能にします。
ツール
ネットワークI/O —
load_network、save_network、list_networks検査 —
get_network_summary、get_nodes、get_links、get_coordinatesシミュレーション —
run_simulation、get_node_results、get_link_results変更(エンジン検証済み、結果を無効化) —
set_pipe_diameter、set_junction_demand、set_pump_speed、set_valve_setting、set_node_elevation、set_demand_pattern、add_tank、remove_tank、add_valveモデル構築 —
create_network、assign_demands、sample_elevations、fetch_road_network、generate_network_from_bbox設計ヘルパー —
lookup_pipe_diameters、recommend_diameter、friction_loss、calculate_minor_loss、pipe_sizing_wizard、pump_selection、list_fitting_kfactors最適化 —
optimize_network、run_candidate
generate_network_from_bbox は、バウンディングボックスに対する実際のOpenStreetMap道路データから接合点/管のスケルトンを自動レイアウトし、最寄りの水路に貯水池を配置し、同梱のIFSAR 10 m DEMから地盤標高をサンプリングします。
Related MCP server: idfkit-mcp
前提条件
要件 | バージョン |
Node.js | 20.x または 21.x |
OS | Windows、macOS、または Linux — トランスポートはstdioで、ネットワークポートは開きません |
インストール
npm installローカルで実行
サーバーが読み取り(load_network)および書き込み(save_network)を行うデータディレクトリはパスに制限されています。サーバーはその外部のファイルを拒否します。
mkdir -p data
cp your-model.inp data/
export EPANET_DATA_DIR=$(pwd)/data
npm startサーバーが起動し、stdio上でクライアントを待ち受けます。
AIアプリに接続する
Claude Desktop
claude_desktop_config.json を編集します(Windowsでは %APPDATA%\Claude\claude_desktop_config.json、macOSでは ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"epanet": {
"command": "npm",
"args": ["start"],
"cwd": "<absolute path to this repo>",
"env": {
"EPANET_DATA_DIR": "<absolute path to this repo>/data"
}
}
}
}Cursor / VS Code
同じ構成がCursor(%APPDATA%\Cursor\User\globalStorage\mcp.json)またはVS Code(%APPDATA%\Code\User\mcp.json)でも機能します — command: "npm"、同じ args/env を使用します。
設定
サーバーは以下の環境変数を読み取ります:
環境変数 | デフォルト | 目的 |
| cwd |
|
| 未設定 | DEM/標高ツールが読み取るフォルダ |
| 未設定 | オプションのトークンモード認証用RS256公開鍵 |
| 未設定 | トークン検証用のループバックURL |
| 未設定 | 期待されるJWT |
| 未設定 | 期待されるJWT |
| 未設定 | 静的ベアラートークン(CI用途) |
| 未設定 | ベアラートークンを含むファイルへのパス |
認証はデフォルトでオフです。EPANET_AUTH_* 変数を設定すると、サーバーをRS256ベアラートークンの背後に置くことができます。
テスト
npm testユニットテストは、コミットされた .inp フィクスチャに対してインメモリMCPトランスポートを駆動します — 実行中のサーバーは必要ありません。
パッケージ化されたインストーラーのビルド
npm run package:win # or package:mac / package:linuxdist/ の下に自己完結型インストーラー(Nodeランタイムを同梱、システムNodeは不要)を生成します。
ライセンス
MIT — LICENSE を参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA water treatment process simulation engine that exposes WaterTAP capabilities through MCP and CLI adapters, enabling AI agents to build, solve, and optimize flowsheets using natural language.1MIT

idfkit-mcpofficial
AlicenseAqualityBmaintenanceEnables AI assistants to create, edit, and simulate EnergyPlus building energy models via natural language. Supports schema exploration, model editing, simulation execution, and documentation search.392MIT- AlicenseNot gradedqualityBmaintenanceEnables AI clients to interact with EDA projects via natural language by wrapping EDI's gRPC interface, CLI tools, and ANSYS HFSS as MCP tools supporting SSE and stdio transports.1MIT
- AlicenseBqualityBmaintenanceEnables LLMs to load, simulate, modify, and generate what-if scenarios for EPANET water-distribution network models through natural language, leveraging the ePyT Python Toolkit.443MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Run AI customer support from your terminal: conversations, knowledge base, and chat widget.
Machine-readable utilities and datasets for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hjlrosales/EPAnet-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server