MCP server for LLM-driven SUMO traffic simulation, scenario design, and result analysis.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An Agentic Framework for Interactive Simulation Scenario Generation in SUMO via Large Language Models
Documentation Β· Installation Β· Tools Β· Schema Β· Tutorials
AgentSUMO lets non-expert stakeholders design, execute, and analyze SUMO traffic simulations through natural-language interaction. The Planner Agent translates abstract policy questions into executable simulation plans, drives them via the Model Context Protocol (MCP), and surfaces results through a web dashboard.
Web interface: conversational planning panel, scenario list, and live simulation status.
Geospatial visualization: per-edge metrics, congestion overlays, and trip replay on the 2.5D basemap.
The reasoning layer (Planner Agent) lives in this repository. The execution layer (agentsumo-mcp) is published to PyPI and installed automatically as a dependency.
The AgentSUMO MCP Server exposes 26 tools grouped into five capability categories that follow the simulation workflow. Full reference at agentsumo.readthedocs.io/.../tools.
| Category | Purpose | Representative tools |
|---|---|---|
| Scenario Generation | Build a baseline SUMO simulation: OSM β network β trips β routes β run | osm_extract, net_convert, trip_generate, route_generate, sumo_runner |
| Policy Experimentation | Apply infrastructure, demand, and signal-control interventions | edge_edit_tool, reduce_lanes_tool, vehicle_generation_tool, flow_generation_tool, tls_offset_tool, tls_adaptation_tool |
| Result Analysis | Convert SUMO XML output to SQLite and render HTML reports | xml_to_sqlite_tool, simulation_report_tool |
| Visualization | Render networks, highlighted edges, and per-edge metric heatmaps | visualize_net_tool, visualize_edge_tool, visualize_policy_target_tool, visualize_edgedata_tool |
| Utility Functions | Network statistics, routing, road-name β edge-id resolution, OD-coordinate validation, web-search grounding | network_summary_tool, route_analysis_tool, validate_od_coordinates_tool, web_search_tool |
SUMO_HOME set)macOS
Or download the installer from the Eclipse SUMO downloads page.
Windows β Download the installer from the Eclipse SUMO downloads page.
Linux (Ubuntu/Debian)
Install uv:
Clone the repository, create a virtual environment, and install AgentSUMO:
AgentSUMO reads API keys and the SUMO path from environment variables. The easiest way is a .env file at the project root:
Open .env in your editor and fill in:
ANTHROPIC_API_KEY (required) β Claude API key that drives the Planner Agent. Get one at the Anthropic Console.
MAPBOX_TOKEN (required for the web UI) β used to render the basemap. Get one at the Mapbox access tokens page.
SUMO_HOME (required) β absolute path to your local SUMO installation. The directory must contain bin/sumo (or bin/sumo.exe on Windows).
AGENTSUMO_MCP_OUTPUT_BASE (optional) β override the base directory where the MCP server writes simulation outputs (networks, trips, results). Defaults to the current working directory.
The AgentSUMO MCP Server can be used independently from this framework with any MCP-compatible LLM client (Claude Desktop, OpenAI tool clients, Gemini, local LLMs):
Or via uvx without installing:
The server is registered in the official MCP Registry under io.github.mw-jeong/agentsumo-mcp.
SUMO path error β Verify SUMO_HOME in your .env. The directory must contain bin/sumo (or bin/sumo.exe on Windows).
API key error β Verify ANTHROPIC_API_KEY in your .env is set to a valid Claude API key. The Planner Agent will refuse to start without it.
Dependency error β Re-resolve dependencies:
Legacy token files (deprecated, scheduled for removal in 0.2.0) β AgentSUMO still falls back to claude_api.txt and mapbox_token.txt at the project root when the corresponding environment variables are missing, but those code paths now emit a DeprecationWarning at import time. Use the .env workflow for new installations.
Full documentation lives at agentsumo.readthedocs.io.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agentsumo)<a href="https://allmcps.com/mcp/agentsumo"><img src="https://allmcps.com/api/badge/agentsumo?style=directory" alt="AgentSUMO on AllMCPs" /></a>