Skip to main content

MCP server for SUMO traffic simulation: orchestrate networks, trips, simulations, and analysis from LLM agents.

Project description

agentsumo-mcp

PyPI arXiv License: MIT Python 3.10+

MCP server for SUMO (Simulation of Urban MObility) traffic simulation. Orchestrate network extraction, trip generation, scenario customization, simulation runs, and SQL-based result analysis from any MCP-compatible LLM client.

Features

  • Pipeline tools: OSM extraction -> network conversion -> trip generation -> route generation -> simulation
  • Scenario customization: edge editing, lane reduction, speed limit changes, vehicle generation, traffic-light timing
  • Result analysis: ingest tripinfo / edgedata / summary XML into SQLite for natural-language SQL queries
  • Visualization: network plots, edge data heatmaps, policy-target visualizations
  • Geocoding: place name -> coordinate -> nearest edge resolution

Requirements

  • Python 3.10 or later
  • SUMO installed locally (SUMO_HOME environment variable set)

Installation

pip install agentsumo-mcp

Or run without installing via uvx:

uvx agentsumo-mcp

Configuration

Set SUMO_HOME to point at your local SUMO installation:

export SUMO_HOME=/path/to/sumo

On macOS with the official SUMO installer this is usually /Library/Frameworks/EclipseSUMO.framework/Versions/<version>/EclipseSUMO.

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "agentsumo": {
      "command": "uvx",
      "args": ["agentsumo-mcp"],
      "env": {
        "SUMO_HOME": "/path/to/sumo"
      }
    }
  }
}

Usage with other MCP clients

Any MCP client that supports stdio transport works:

agentsumo-mcp

Tools

The server exposes ~25 tools across five categories:

Category Examples
Network osm_extract, net_convert, network_summary_tool
Trips & routes trip_generate, route_generate, vehicle_generation_tool, flow_generation_tool
Customization edge_edit_tool, reduce_lanes_tool, speed_limit_edit_tool, tls_offset_tool, tls_adaptation_tool
Simulation sumo_runner
Analysis xml_to_sqlite_tool, simulation_report_tool, route_analysis_tool, analyze_road_details_tool
Visualization visualize_net_tool, visualize_edge_tool, visualize_edgedata_tool

Each tool returns structured JSON suitable for downstream LLM reasoning.

Citation

If you use AgentSUMO in academic work, please cite:

@article{jeong2025agentsumo,
  title         = {AgentSUMO: An Agentic Framework for Interactive Simulation Scenario Generation in SUMO via Large Language Models},
  author        = {Jeong, Minwoo and Chang, Jeeyun and Yoon, Yoonjin},
  journal       = {arXiv preprint arXiv:2511.06804},
  year          = {2025},
  url           = {https://arxiv.org/abs/2511.06804}
}

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentsumo_mcp-0.1.1.tar.gz (70.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentsumo_mcp-0.1.1-py3-none-any.whl (80.7 kB view details)

Uploaded Python 3

File details

Details for the file agentsumo_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: agentsumo_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 70.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for agentsumo_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b2210b134295bbeb73b30e40910f9cd9b89fccc3aeb87bfcc552be2e73beda4b
MD5 5e10d55509b588a909c8d9e48425b7c3
BLAKE2b-256 a94de56c10c505ab64839028168e74f847b79833d43383865ff658333558790d

See more details on using hashes here.

File details

Details for the file agentsumo_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: agentsumo_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 80.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for agentsumo_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 305a0d2226e185b401ea9a660089e963d29789ab35b4fc42be1b0b5b41181de7
MD5 c4f1bf570781c2cadecda74e46c9ebe9
BLAKE2b-256 73b188edff7ce3d19327eb697b3779b203dddb7ef697d209abcc43ac68ad349a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page