Webots MCP
Bridges AI agents with Webots robotics simulation, enabling natural language control of Nao robots and visual perception.
README
Webots MCP: AI-Agentic Robot Control for Robotics Simulation
Webots MCP is a powerful Model Context Protocol (MCP) server designed to bridge the gap between AI agents and robotics simulation. By integrating the MCP protocol with Cyberbotics Webots, this project enables seamless robot control of Nao robots using natural language and high-level reasoning.
🤖 Why Webots MCP?
Controlling robots in a robotics simulation typically requires deep knowledge of low-level APIs and physics engines. Webots MCP changes this by exposing complex robotic functions as simple tools that any AI agent (like Claude, Gemini, or Cursor) can understand and execute.
Whether you are a researcher or a developer, Webots MCP allows you to focus on high-level robot behavior while the server handles the intricate details of the MCP protocol and simulation synchronization.
✨ Features
- Natural Language Robot Control: Command your Nao robot to "wave its hand" or "look around" using AI agents.
- Visual Perception: AI agents can "see" through the robot's camera, enabling environmental reasoning within the robotics simulation.
- Safety-First Joint Limits: Built-in validation ensures motor commands stay within physical limits (radians) to prevent simulation errors.
- Advanced Motion Engine: Native support for complex
.motionanimation files like Tai Chi, waving, and walking. - Multi-Robot Discovery: Webots MCP automatically tracks multiple robot instances in the simulation world.
- Real-time Telemetry: Access GPS positions, joint states, and robot status through the MCP protocol.
⚙️ How Webots MCP Works
The architecture of Webots MCP relies on a dual-layer communication bridge:
- The MCP Server: A Node/Python service that translates AI agent tool calls into simulation commands.
- The Controller Bridge: A low-level script running inside Webots that executes these commands on the Nao robot and returns telemetry data.
This separation ensures that Webots MCP remains responsive even during complex physical calculations in the robotics simulation.
🏗️ Architecture
graph LR
subgraph "AI Agent Environment"
A[MCP Client] <--> B[Webots MCP Server]
end
subgraph "Webots Simulation"
B <--> C[Shared IPC /data/]
C <--> D[Nao Controller]
D <--> E[NAO Robot]
end
🚀 Installation
1. Prerequisites
- Webots R2023a+
- Python 3.10+
2. Clone the Repository
git clone https://github.com/punithkrishnakeepudi/webots-mcp.git
cd webots-mcp
3. Setup Dependencies
pip install -r requirements.txt
🕹️ Usage Example
To connect Webots MCP to an AI client (like Cursor or Claude Desktop), add this entry to your mcp_config.json:
{
"mcpServers": {
"webots-mcp": {
"command": "python",
"args": ["/path/to/webots_mcp_custom/server.py"],
"env": {
"PYTHONPATH": "/path/to/webots_mcp_custom"
}
}
}
}
Once connected, you can simply ask the agent:
"Check the Nao robot's camera and if you see an obstacle, turn the head 45 degrees left."
🛠️ Available Tools
| Tool | Description |
|---|---|
get_visual_perception |
Captures the top camera image for AI reasoning. |
get_robot_status |
Returns telemetry (GPS, Joint angles, etc.). |
play_motion |
Executes high-level animations (wave, taichi, etc.). |
set_head_position |
Direct API for head robot control (Yaw/Pitch). |
list_motions |
Lists all available pre-recorded movements. |
🗺️ Future Roadmap
- [ ] Support for Boston Dynamics Spot and Universal Robots models.
- [ ] Direct ROS2 (Robot Operating System) integration.
- [ ] Multi-agent collaborative swarm control.
- [ ] Advanced pathfinding tools integrated into Webots MCP.
⭐ Support the Project
If you find Webots MCP useful for your robotics simulation projects, please give us a star on GitHub! It helps developers discover the project and keeps the community growing.
Developed by Punith Krishna
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。