Get the FREE Ultimate OpenClaw Setup Guide →

SUMO

SUMO-MCP 是一个连接大语言模型 (LLM) 与 Eclipse SUMO 交通仿真的中间件。通过 Model Context Protocol (MCP),它允许 AI 智能体(如 Claude, Cursor, TRAE等)直接调用 SUMO 的核心功能,实现从OpenStreetMap 数据获取、路网生成、需求建模到仿真运行与信号优化的全流程自动化。

How to use

SUMO-MCP is a middleware that seamlessly connects large language models (LLMs) with the Eclipse SUMO traffic simulation framework. By utilizing the Model Context Protocol (MCP), it empowers AI agents such as Claude, Cursor, and TRAE to directly access SUMO's core functionalities, enabling a fully automated workflow that ranges from OpenStreetMap data retrieval to network generation, demand modeling, simulation execution, and signal optimization. Developers can leverage this integration to enhance their traffic modeling and simulation tasks with AI-driven insights.

Once connected to the SUMO-MCP server, you can interact with it using specific commands tailored to your needs. You can issue queries to pull traffic data, generate road networks, or initiate simulations directly from your AI agent. The server is designed to facilitate real-time communication and can handle commands related to demand modeling and signal optimization, ensuring an efficient simulation process. Familiarizing yourself with the MCP command structure will enhance your interaction with the server.

How to install

To install the SUMO-MCP server, ensure you have the following prerequisites:

  • Node.js (version 14 or higher)
  • Python (version 3.6 or higher)

Option A: Quick start with npx

If you prefer a quick start, you can use npx (though the package may not be published):

npx -y @XRDS76354/SUMO-MCP-Server

Option B: Global install alternative

Alternatively, you can clone the repository and install it globally:

git clone https://github.com/XRDS76354/SUMO-MCP-Server.git
cd SUMO-MCP-Server
npm install -g

Make sure to run the server with appropriate permissions to allow for necessary resource access.

Additional notes

For optimal performance, consider configuring the server with appropriate environment variables, especially for network settings and simulation parameters. Ensure you have the latest version of Eclipse SUMO installed and that it is properly set up in your environment. A common issue arises when the server cannot find the SUMO executable; make sure the path is correctly configured in your environment variables.

Related MCP Servers

Sponsor this space

Reach thousands of developers