# AgentSUMO [Health: Active]

**Category:** 🚆 Travel & Transportation  
**Repository:** https://github.com/mw-jeong/AgentSUMO  
**GitHub Stars:** 11  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentsumo

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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "agentsumo": {
    "command": "uvx",
    "args": ["agentsumo-mcp"],
    "env": {
      "SUMO_HOME": ""
    }
  }
}
```

**Requires environment variables:** `SUMO_HOME` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What AgentSUMO does

AgentSUMO MCP server connects MCP-compatible language-model clients to a local Eclipse SUMO installation. Its tools cover the main stages of a traffic simulation workflow: creating a network from OpenStreetMap data, generating trips and routes, running SUMO, modifying infrastructure or demand, and inspecting results.

The server is published as the `agentsumo-mcp` Python package and can run independently of the broader AgentSUMO repository. The repository also includes a Planner Agent, web interface, SQLite and filesystem MCP clients, and application code for interactive scenario planning. Those surrounding components are not required when using the MCP server as a standalone tool provider.

## How it works

An MCP client sends tool calls to the server, which performs operations against local SUMO files and executables. Scenario-generation tools can build a baseline simulation from OpenStreetMap data through network conversion, trip generation, route generation, and execution. Experiment tools support changes such as road or lane edits, vehicle and flow generation, and traffic-signal adjustments.

Analysis tools convert SUMO XML output into SQLite data and create HTML reports. Visualization tools render networks, selected edges, policy targets, and edge-level metric heatmaps. Utility tools provide network summaries, route analysis, road-name to edge-ID resolution, origin-destination coordinate validation, and web-search grounding.

A separate Planner Agent can translate natural-language policy questions into plans, but the MCP server itself provides the execution tools.

## Setup and configuration

Install SUMO 1.24 or later and make its installation directory available through `SUMO_HOME`. The configured directory must contain the SUMO binaries, such as `bin/sumo` or `bin/sumo.exe`.

Install the standalone package with:

```bash
pip install agentsumo-mcp
```

Alternatively, run it without a persistent installation:

```bash
uvx agentsumo-mcp
```

The server can also be installed as part of the repository’s Python environment. That setup uses Python 3.10 or later and installs the project in editable mode with `uv pip install -e .`. The repository’s full web application additionally uses `ANTHROPIC_API_KEY` for its Claude-based Planner Agent and `MAPBOX_TOKEN` for the web map. Those variables belong to the wider application rather than the standalone MCP tool process. `AGENTSUMO_MCP_OUTPUT_BASE` optionally changes where simulation outputs are written; otherwise, output uses the current working directory.

## Tools and capabilities

- Build SUMO networks and traffic demand from source data.
- Execute simulations and apply infrastructure, demand, or signal-control changes.
- Convert simulation XML into SQLite data for comparison and analysis.
- Generate HTML reports from simulation results.
- Render network views, highlighted edges, policy targets, and metric heatmaps.
- Inspect network structure, analyze routes, validate OD coordinates, and resolve road names to edge IDs.

## Limitations and notes

AgentSUMO MCP server depends on a locally installed SUMO release and a correctly configured `SUMO_HOME`; it does not provide SUMO itself. The web interface has additional requirements, including an Anthropic API key and a Mapbox access token. Simulation artifacts are written to the configured output directory, so deployments should account for generated networks, trips, results, reports, visualizations, and related files.

It does not describe a hosted execution service or remove the need for local SUMO installation. The Planner Agent and web dashboard are repository-level components, while `agentsumo-mcp` is the separately published execution layer.

_Full upstream README: https://allmcps.com/mcp/agentsumo/readme_

