AgentSUMO
v0.1.3MCP server for LLM-driven SUMO traffic simulation, scenario design, and result analysis.
Values you need
| Variable | What it is | |
|---|---|---|
SUMO_HOME | required | Absolute path to the local SUMO installation directory (must contain bin/; tools/ may sit directly inside it or under share/sumo/). |
AGENTSUMO_MCP_OUTPUT_BASE | optional | Base directory for simulation outputs (networks, trips, results). Defaults to the current working directory, or ~/agentsumo-output when it is not writable. |
PyPI (uvx) verified
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add agentsumo-mcp -e 'SUMO_HOME=<SUMO_HOME>' -- uvx agentsumo-mcp==0.1.3Add to
claude_desktop_config.json{
"mcpServers": {
"agentsumo-mcp": {
"args": [
"agentsumo-mcp==0.1.3"
],
"command": "uvx",
"env": {
"SUMO_HOME": "<SUMO_HOME>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"agentsumo-mcp": {
"args": [
"agentsumo-mcp==0.1.3"
],
"command": "uvx",
"env": {
"SUMO_HOME": "<SUMO_HOME>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SUMO_HOME",
"id": "sumo-home",
"password": true,
"type": "promptString"
}
],
"servers": {
"agentsumo-mcp": {
"args": [
"agentsumo-mcp==0.1.3"
],
"command": "uvx",
"env": {
"SUMO_HOME": "${input:sumo-home}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.agentsumo-mcp]
command = "uvx"
args = ["agentsumo-mcp==0.1.3"]
env = { "SUMO_HOME" = "<SUMO_HOME>" }For AI agents
- Ask the user for: SUMO_HOME. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: osm_extract, net_convert, trip_generate, route_generate, sumo_runner, edge_edit_tool, reduce_lanes_tool, speed_limit_edit_tool, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json