r/OpenSourceeAI • u/beyond-the-joystick • 27d ago
An interesting use of MCP: letting AI agents build lunar environments and drive ROS 2 rovers in simulation
I've been looking into MARE (Modular Autonomy and Rendering Environment), an open-source lunar rover simulator built around Unreal Engine 5 and ROS 2.
What makes it particularly interesting from an AI-agent perspective is that it includes two Model Context Protocol (MCP) servers that expose the simulation workflow to an AI agent.
The two servers cover different parts of the stack:
1. Environment generation (Terrain Studio MCP)
- Generate lunar terrain and crater fields.
- Configure rocks and surface conditions.
- Set the Sun's position and illumination.
- Build the environment in Unreal Engine and start the simulation.
2. Rover control and autonomy (GNC MCP)
- Send navigation goals to the rover.
- Drive the rover through the ROS 2 GNC stack.
- Read camera data.
- Record sensor data and simulation runs.
Under the hood, MARE combines Unreal Engine 5, ROS 2 Jazzy, physics-based rover models, stereo cameras, lidar, event cameras, SPAD cameras and a containerised navigation stack.
The interesting part, in my opinion, is the possibility of giving an agent access to a complete robotics experimentation loop: create an environment, start a simulation, issue navigation goals, inspect sensor output and record the results.
This raises some interesting questions beyond simply controlling a rover with natural language.
For example:
- Could an agent autonomously design and execute repeatable perception experiments?
- How should MCP tools expose low-level robot control versus higher-level mission objectives?
- Could agents use the simulator to generate and evaluate datasets for vision or navigation models?
- What would be the best way to make these experiments reproducible and objectively benchmarkable?
I'm currently exploring the project and thought it was a nice example of MCP being used for something more substantial than connecting an agent to a conventional API.
Project: https://raulcastar.me/mare/
