Webots MCP Server
Generic MCP (Model Context Protocol) server for monitoring and controlling any Webots robot simulation. Provides Claude Code with real-time access to robot state, sensors, camera, and simulation control.
Features
Real-time Monitoring: Robot pose, mode, custom state fields
Sensor Data: Any sensors your controller publishes
Camera: View camera frames saved by controller
Simulation Control: Pause, resume, reset, reload, step
Logging: Controller logs with filtering
Screenshots: Capture simulation views
Quick Start
1. Install
2. Configure Claude Code
Add to your project's .mcp.json:
3. Add to Your Controller
Minimal integration (~10 lines):
That's it! The bridge handles throttling, file I/O, and command processing.
Available Tools
Tool | Description |
| Get current robot state (pose, mode, etc.) |
| Get sensor data from status |
| Get latest camera frame path |
| Get controller logs |
| Pause/resume/reset/reload/step |
| Capture simulation view |
| Monitor robot for N seconds |
| Complete state dump |
MCPBridge API
Built-in commands handled automatically:
simulation: pause/resume/reset/reload/stepscreenshot: capture simulation view
Data Directory
Requirements
Python 3.10+
mcp>= 1.0.0pydantic>= 2.0.0Pillow(optional, for camera frames)
License
MIT