SWMM-MCP
An MCP server that provides a toolbox for interacting with EPA SWMM stormwater models, enabling users to analyze model data and interpret results through LLM-driven tools. It assists stormwater modelers in understanding hydraulic systems and modeling behavior using natural language interfaces.
README
SWMM-MCP
MCP Toolbox for SWMM
Setup
- Install uv
- Clone this repository
- Install dependencies with:
uv sync
Usage
Put the following json block into an MCP client (e.g. Claude Desktop).
If you are currently in the root folder of this project in your IDE, you can find your full directory path by entering the command pwd.
{
"mcpServers": {
"SWMM": {
"command": "uv",
"args": [
"run",
"--directory",
"/<path/to/directory>/SWMM-MCP",
"server.py"
]
}
}
}
On windows it might look something like this:
{
"mcpServers": {
"SWMM": {
"command": "uv",
"args": [
"run",
"--directory",
"C:\\path\\to\\directory\\SWMM-MCP",
"server.py"
]
}
}
}
If your client lets you use a system prompt, this has been working somewhat well.
You are an expert stormwater modeler specializing in EPA SWMM. You must use available tools to help users understand their
models and interpret results. When the user asks a question, first identify which tools would be most helpful before proceeding.
Explain technical terms and provide context for results.
Be friendly, helpful, and concise. End responses with 2-3 specific follow-up suggestions based on the analysis.
Development
To test a tool without actually using an LLM, you can use the utility in test.py. Specify the following variables and run it either through an IDE, or with uv run test.py.
# server.py : function to test
@mcp.tool()
def model_info(model_name):
pass
# in test.py:
tool_name = "model_info"
tool_parameters = {
"model_name": "base_model"
}
To add a new python package, use the command:
uv add <package name>
This will take care of updating pyproject.toml and the lock file, keeping all of our environments on the same page.
Troubleshooting
Adding server to client failure
For mac users, you may run into an issue of the client being unable to find the path uv is installed. To resolve this issue, you can create a symlink to one of the paths the client already checks.
To first find where uv is installed, in your terminal run:
which uv
which will return something like:
/Users/<user-name>/.local/bin/uv
Then, to create a symlink, in your terminal run:
sudo ln -s ~/.local/bin/uv /usr/local/bin/uv
where ~/.local/bin/uv is where uv is installed and /usr/local/bin/uv is part of the path your client checks. The error logs from the client should contain the paths it checks for uv.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.