
xrds76354/sumo-mcp-server 是从 https://github.com/xrds76354/sumo-mcp-server. 导入的 MCP 服务器候选
概览
xrds76354/sumo-mcp-server 是从 https://github.com/xrds76354/sumo-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
中文文档
SUMO-MCP 是一个中间件层,连接大型语言模型(LLM)与 Eclipse SUMO 流量仿真。通过模型上下文协议(MCP),AI 代理(如 Claude、Cursor 和 TRAE)可以直接调用 SUMO 功能,实现跨越 OpenStreetMap 数据检索、网络生成、需求建模、仿真执行和信号优化的端到端自动化。
该系统支持离线工作流(基于文件的管道)和在线交互(实时TraCI控制),涵盖从宏观规划到微观控制的用例。
API 参考:doc/API.md(唯一真实来源仍为工具注册,见 src/server.py)。
ezdesignX 转换指南:doc/EZDESIGNX_TO_SUMO.md。
核心功能
1.统一工具链
核心MCP接口被分组为直观的工具,以简化常见的SUMO操作:
- 网络管理(
manage_network):生成网络(generate)、下载OSM数据(download_osm)、格式转换(convert)以及转换ezdesignX v1 JSON/JSONC(convert_ezdesignx)。还有专用的convert_ezdesignx_network工具。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
SUMO-MCP: MCP Server for SUMO Traffic Simulation (LLM-Oriented)
SUMO-MCP is a middleware layer connecting Large Language Models (LLMs) with Eclipse SUMO traffic simulation. Through Model Context Protocol (MCP), AI agents (such as Claude, Cursor, and TRAE) can directly call SUMO capabilities for end-to-end automation across OpenStreetMap data retrieval, network generation, demand modeling, simulation execution, and signal optimization.
The system supports both offline workflows (file-based pipelines) and online interaction (real-time TraCI control), covering use cases from macroscopic planning to microscopic control.
API reference: doc/API.md (the single source of truth remains tool registration in src/server.py).
ezdesignX conversion guide: doc/EZDESIGNX_TO_SUMO.md.
Core Features
1. Unified Toolchain
Core MCP interfaces are grouped into intuitive tools to simplify common SUMO operations:
- Network Management (
manage_network): Generate networks (generate), download OSM data (download_osm), convert formats (convert), and convert ezdesignX v1 JSON/JSONC (convert_ezdesignx). A dedicatedconvert_ezdesignx_networktool is also available. - Demand Management (
manage_demand): Generate random trips (generate_random), convert OD matrices (convert_od), and compute routes (compute_routes). - Signal Optimization (
optimize_traffic_signals): Includes cycle adaptation (cycle_adaptation) and coordination (coordination).cycle_adaptationoutputs SUMOsignal plans (automatically mounted intoby workflows). - Simulation & Analysis: Run standard config-based simulation (
run_simple_simulation) and FCD trajectory analysis (run_analysis).
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"sumo-mcp": {
"command": "/path/to/your/env/python",
"args": ["/path/to/sumo-mcp/src/server.py"],
"env": {
"SUMO_HOME": "/your/actual/sumo/path",
"PYTHONPATH": "/path/to/sumo-mcp/src"
}
}
}
}