AgentSUMO

v0.1.3
io.github.mw-jeong/agentsumo-mcp Checked 2 hours ago Published 14 days ago

MCP server for LLM-driven SUMO traffic simulation, scenario design, and result analysis.

Values you need

VariableWhat it is
SUMO_HOMErequired Absolute path to the local SUMO installation directory (must contain bin/; tools/ may sit directly inside it or under share/sumo/).
AGENTSUMO_MCP_OUTPUT_BASEoptional 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.3
Add 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

  1. Ask the user for: SUMO_HOME. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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