MuJoCo MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MuJoCo MCPLoad a Franka Panda robot and set all joints to home position"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MuJoCo MCP - Enterprise Robotics Simulation Platform
🤖 Advanced robotics simulation platform that enables AI assistants to control complex physics simulations through natural language. Built on MuJoCo physics engine and Model Context Protocol for seamless integration with Claude Desktop and other MCP clients.
🚀 Quick Start | 📚 Documentation | 🏗️ Architecture | 🔧 API Reference | 🎯 Advanced Features
🌟 Features
Core Capabilities
Natural Language Control: Control robots using plain English commands
Real-time Visualization: Native MuJoCo viewer with interactive GUI
MCP Standard Compliance: Full Model Context Protocol implementation
Cross-Platform Support: Works on macOS, Linux, and Windows
Advanced Features (v0.8.2)
🎛️ Advanced Control Algorithms: PID, trajectory planning, optimization control
🤖 Multi-Robot Coordination: Formation control, cooperative manipulation
🔬 Sensor Feedback Systems: Closed-loop control with multi-modal sensors
🧠 RL Integration: Gymnasium-compatible reinforcement learning environments
📊 Physics Benchmarking: Performance, accuracy, and scalability testing
📈 Real-time Monitoring: Advanced visualization and analytics tools
🚀 Production Ready: Enhanced server with connection pooling and diagnostics
Related MCP server: RobotArm MCP P340
Quick Start
1. Install Dependencies
pip install mujoco mcp numpy2. Install MuJoCo MCP
pip install -e .3. Start the Viewer Server
python mujoco_viewer_server.py4. Configure Claude Desktop
Add to your Claude Desktop config:
{
"mcpServers": {
"mujoco-mcp": {
"command": "python",
"args": ["-m", "mujoco_mcp"],
"env": {
"PYTHONPATH": "./src"
}
}
}
}5. Start Using Natural Language Commands
In Claude Desktop:
"Create a pendulum simulation"
"Set the pendulum angle to 45 degrees"
"Step the simulation 100 times"
"Show me the current state"📝 Example Usage
Basic Physics Simulations
# Simple pendulum
"Create a pendulum simulation"
"Set the pendulum to 90 degrees and let it swing"
# Double pendulum (chaotic motion)
"Create a double pendulum"
"Give it a small push and watch the chaos"
# Cart-pole balancing
"Create a cart pole simulation"
"Try to balance the pole"Advanced Robot Control
# Load robot from MuJoCo Menagerie
"Load a Franka Panda robot"
"Move the robot arm in a circle"
"Set all joints to home position"
# Multi-robot coordination
"Create two robot arms side by side"
"Make them work together to lift a box"
# Walking robots
"Load the Unitree Go2 quadruped"
"Make it walk forward"Reinforcement Learning
from mujoco_mcp.rl_integration import create_reaching_env
# Create RL environment
env = create_reaching_env("franka_panda")
# Train your agent
obs, info = env.reset()
for _ in range(1000):
action = env.action_space.sample() # Your policy here
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
obs, info = env.reset()🛠️ MCP Tools Available
Tool | Description | Example |
| Get server status | Returns version, capabilities |
| Create physics simulation |
|
| Advance simulation |
|
| Get current state | Returns positions, velocities |
| Control joints |
|
| Reset to initial | Resets physics state |
| Natural language |
|
| List active models | Returns all loaded models |
| Close GUI window | Closes visualization |
🚀 Advanced Setup
Install MuJoCo Menagerie (for robot models)
git clone https://github.com/google-deepmind/mujoco_menagerie.git ~/mujoco_menagerie
export MUJOCO_MENAGERIE_PATH=~/mujoco_menagerieUse Enhanced Production Server
# For better performance and reliability
/opt/miniconda3/bin/mjpython mujoco_viewer_server_enhanced.py --port 8888Run Comprehensive Tests
# Test basic functionality
python scripts/quick_internal_test.py
# Test advanced features
python test_advanced_features.py
# Run benchmarks
python benchmarks/physics_benchmarks.py📚 Documentation
Documentation Index - Complete guide to all docs
Architecture Guide - System design and components
API Reference - Complete API documentation
Advanced Features - Controllers, RL, multi-robot
Motion Control Examples - Robot demos
Testing Summary - Test coverage and results
Changelog - Version history
🤝 Contributing
We welcome contributions! Please see CONTRIBUTING.md and Repository Guidelines for workflow expectations.
🐛 Troubleshooting
Common Issues
"Failed to connect to viewer server"
Make sure
mujoco_viewer_server.pyis runningCheck port 8888 is available
On macOS, use
/opt/miniconda3/bin/mjpython
"Model not found"
Install MuJoCo Menagerie for robot models
Check file paths in configurations
Performance issues
Use the enhanced viewer server
Enable connection pooling
Check system resources
For more help, see the Documentation Index.
📄 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
MuJoCo physics engine by Google DeepMind
Model Context Protocol by Anthropic
MuJoCo Menagerie for robot models
Built with ❤️ for the robotics and AI community
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/robotlearning123/mujoco-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server