Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SWMM-MCPSummarize the peak runoff and flooding results for the 'CityCenter' model."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SWMM-MCP
MCP Toolbox for SWMM
Setup
Clone this repository
Install dependencies with:
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.
On windows it might look something like this:
If your client lets you use a system prompt, this has been working somewhat well.
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.
To add a new python package, use the command:
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 will return something like:
/Users/<user-name>/.local/bin/uv
Then, to create a symlink, in your terminal run:
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.