Skip to main content

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
  • Bundled defaults: ships a default vehicle_types.add.xml (passenger / electric / gasoline) that is auto-seeded into the simulation directory on the first sumo_runner call, so the SUMO additional-file dependency works without any manual setup

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

This package exposes the MCP tool layer (Section 3.3 of the paper). The Planner Agent and the Interactive Planning Protocol described in Section 3.2 are part of the AgentSUMO framework (github.com/mw-jeong/AgentSUMO) and are not bundled here. To reproduce the manuscript's case studies end to end, clone the repository and run python web.py; the standalone snippet below is the right starting point for using the SUMO tool surface from a different MCP client.

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 26 tools across five categories (aligned with Table 3 of the paper):

Category Examples
Scenario Generation osm_extract, net_convert, trip_generate, route_generate, sumo_runner
Policy Experimentation edge_edit_tool, reduce_lanes_tool, speed_limit_edit_tool, vehicle_generation_tool, flow_generation_tool, tls_offset_tool, tls_adaptation_tool
Result Analysis xml_to_sqlite_tool, simulation_report_tool
Visualization visualize_net_tool, visualize_edge_tool, visualize_policy_target_tool, visualize_edgedata_tool
Utility Functions network_summary_tool, route_analysis_tool, analyze_road_details_tool, get_road_names_tool, validate_od_coordinates_tool, web_search_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.

Metadata

Release files for agentsumo-mcp 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentsumo-mcp 0.1.3
File Size Uploaded Provenance Actions
agentsumo_mcp-0.1.3.tar.gz 82.6 kB Without provenance Details for agentsumo_mcp-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentsumo-mcp 0.1.3
File Interpreter ABI Platform Actions
agentsumo_mcp-0.1.3-py3-none-any.whl Python 3 none any Details for agentsumo_mcp-0.1.3-py3-none-any.whl

Total release size: 176.1 kB

Release files / agentsumo_mcp-0.1.3.tar.gz

Download URL agentsumo_mcp-0.1.3.tar.gz
Size 82.6 kB
Tags Source
SHA-256 checksum
How to use checksums
197f76b4501d83327db86fd048174eafbe39b5173e5daef538fcf1c2f6f9936a
BLAKE2b-256 checksum
How to use checksums
25eaed4d6786e040bbfa02f494fc1e4ed4a8d6cc2e6853d6376e36f0874f91a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.5

Release files / agentsumo_mcp-0.1.3-py3-none-any.whl

Download URL agentsumo_mcp-0.1.3-py3-none-any.whl
Size 93.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4ced7ca10af756bb5db3a8bbe899eaebc30790d93367b8b96ee8e97bc8b4e3e
BLAKE2b-256 checksum
How to use checksums
ccd412e684b35323a34b029c7f764a21fb97c54a9ddac618718431c3fe993f9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.5

Security for agentsumo-mcp 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page