Moveit
FreeNot checkedModel Context Protocol (MCP) server for MoveIt2 motion planning, providing AI assistants with the ability to control and plan robot motions.
About
Model Context Protocol (MCP) server for MoveIt2 motion planning, providing AI assistants with the ability to control and plan robot motions.
README
Model Context Protocol (MCP) server for MoveIt2 motion planning, providing AI assistants with the ability to control and plan robot motions.
Features
- Full MCP Protocol Support: Tools, Resources, and Prompts
- Async Stateful Server: Non-blocking operations with persistent MoveIt2 state
- Motion Planning: Plan to Cartesian poses, joint states, and named configurations
- Execution Control: Execute planned trajectories with progress monitoring
- Planning Scene Management: Add/remove collision objects dynamically
- State Queries: Get current robot state, compute FK/IK, check collisions
- Resource Providers: Real-time robot state and planning scene information
- Multi-Robot Support: Configuration-driven support for any MoveIt2-compatible robot
- Multi Transport: stdio (local), SSE/HTTP (legacy), and Streamable HTTP (MCP 2025-03-26) modes
Supported Robots
| Robot | Config File | Planning Groups | Description |
|---|---|---|---|
| Franka Emika Panda | config/panda_mcp_server.yaml |
panda_arm, panda_hand |
7-DOF robot arm (default) |
| Summit XL | config/summit_xl_mcp_server.yaml |
arm, gripper |
Mobile manipulator with arm |
Any robot with a MoveIt2 configuration package can be added via a YAML config file.
Quick Links
- Quick Start Guide - Get up and running in minutes
- Docker Guide - Run in Docker container
- Architecture Documentation - Understand the system design
- Contributing Guide - Help improve the project
Architecture
AI Client (Claude) <-> MCP Server <-> moveit_py <-> MoveIt2 Core <-> ROS2
|
+-- Tools (19) - Motion planning, execution, scene, queries
+-- Resources (4) - Real-time robot state
+-- Prompts (5) - Guided workflows for common tasks
The server maintains a stateful connection to MoveIt2, with async operation tracking for long-running planning and execution tasks. See ARCHITECTURE.md for details.
Prerequisites
- ROS2: Rolling (recommended for panda) or Jazzy
- MoveIt2: Installed with Python bindings (
moveit_py) - Robot MoveIt Config: for your robot e.g.,
moveit_resources_panda_moveit_config - Python: 3.10 or higher
Note: Rolling is fully tested for the Panda arm via Docker. On Jazzy the Panda demo has some known controller spawner issues (see KNOWN_ISSUES.md).
Installation
Option 1: Docker (Recommended)
git clone <repository-url>
cd moveit-mcp-server
docker-compose build
xhost +local:docker
docker-compose up
See docs/DOCKER.md for complete Docker instructions.
Option 2: Native Install in ROS environment
cd moveit-mcp-server
pip install -e ".[dev]"
# Or use setup script
./scripts/setup_environment.sh
Usage
Panda Robot Arm
Terminal 1: Launch MoveIt Demo
# If using Docker:
xhost +local:docker
docker exec -it moveit-mcp-server bash
# Launch the Panda demo
ros2 launch moveit_resources_panda_moveit_config demo.launch.py
Terminal 2: Start MCP Server
# stdio transport (for local MCP clients)
moveit-mcp-server --config config/panda_mcp_server.yaml
# Streamable HTTP transport (recommended for remote clients / Claude Desktop)
moveit-mcp-server --config config/panda_mcp_server.yaml --transport http --port 8001
# SSE transport (legacy, for older MCP clients)
moveit-mcp-server --config config/panda_mcp_server.yaml --transport sse --port 8000
# Or via Docker
docker exec -it moveit-mcp-server bash -c \
"moveit-mcp-server-wrapper --config config/panda_mcp_server.yaml --transport http --port 8001"
Summit XL Mobile Manipulator
You can find source code here: https://github.com/icclab/icclab_summit_xl
And a running container image here: docker pull robopaas/rosdocked-jazzy-cpu:latest
Install the moveit-mcp-server, then:
Terminal 1: Launch Summit XL MoveIt
# Launch the Summit XL Sim + MoveIt (requires icclab_summit_xl_move_it_config)
ros2 launch icclab_summit_xl summit_xl_simulation_ign.launch.py
ros2 launch icclab_summit_xl summit_xl_move_it.launch.py
Terminal 2: Start MCP Server
# stdio transport
moveit-mcp-server --config config/summit_xl_mcp_server.yaml
# Streamable HTTP transport
moveit-mcp-server --config config/summit_xl_mcp_server.yaml --transport http --port 8001
Note: Summit XL uses
use_sim_time: truefor Gazebo simulation. Ensure your simulation is publishing/clock.
Connecting Claude Desktop
Add to your Claude Desktop configuration (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"moveit": {
"type": "http",
"url": "http://localhost:8001/mcp"
}
}
}
Legacy SSE clients: use
"type": "sse"with"url": "http://localhost:8000/sse"and--transport sse.
Make sure MoveIt is running before starting Claude Desktop. See docs/CLAUDE_CODE_SETUP.md for more details.
MCP Protocol Support
Tools (19)
| Category | Tool | Description |
|---|---|---|
| Planning | plan_to_pose |
Plan motion to a Cartesian pose (position + orientation) |
plan_to_joint_state |
Plan motion to target joint positions (radians) | |
plan_to_named_state |
Plan motion to a named state (e.g., "ready", "home") | |
get_plan_result |
Check planning operation status and result | |
| Execution | execute_plan |
Execute a planned trajectory |
get_execution_status |
Monitor execution progress | |
stop_execution |
Cancel an ongoing execution | |
plan_and_execute |
Combined plan + execute in one call | |
| Scene | add_collision_box |
Add a box obstacle to the planning scene |
add_collision_sphere |
Add a sphere obstacle to the planning scene | |
remove_collision_object |
Remove a specific collision object | |
clear_planning_scene |
Remove all collision objects | |
list_collision_objects |
List all collision objects in the scene | |
check_state_collision |
Check if a joint state would collide | |
| Queries | get_current_joint_state |
Get current joint positions for a group |
get_current_pose |
Get current end-effector pose | |
compute_fk |
Compute forward kinematics | |
compute_ik |
Compute inverse kinematics | |
list_planning_groups |
List available planning groups |
Resources (4)
| URI | Description |
|---|---|
moveit://planning_groups |
Available robot planning groups |
moveit://joint_states/{group} |
Current joint positions for a group |
moveit://planning_scene |
Collision objects in the scene |
moveit://active_operations |
Running async operations |
Prompts (5)
| Prompt | Description |
|---|---|
move_robot_to_pose |
Guided workflow: move robot to a target pose |
pick_and_place |
Guided workflow: pick and place an object |
inspect_robot_state |
Guided workflow: inspect current robot state |
setup_collision_scene |
Guided workflow: add collision objects to scene |
plan_cartesian_path |
Guided workflow: plan a multi-waypoint path |
Example Interactions
Panda Arm
User: "What planning groups are available?"
Claude: Uses list_planning_groups -> "panda_arm", "panda_hand"
User: "Move the panda arm to the ready position"
Claude: Uses plan_to_named_state(group="panda_arm", state_name="ready")
Then execute_plan -> Robot moves to ready position
User: "What's the current end-effector position?"
Claude: Uses get_current_pose(group="panda_arm")
-> Position: x=0.307, y=0.000, z=0.590 | Orientation: ...
User: "Add a table at (0.5, 0, 0.4) with size 0.8 x 1.2 x 0.05"
Claude: Uses add_collision_box(object_id="table", position=[0.5,0,0.4],
dimensions=[0.8,1.2,0.05]) -> Table appears in RViz
User: "Can the arm reach position (0.3, 0.2, 0.5)?"
Claude: Uses compute_ik(group="panda_arm", position=[0.3,0.2,0.5],
orientation=[0,1,0,0]) -> Returns joint solution or "not reachable"
Summit XL
User: "List the planning groups for the Summit XL"
Claude: Uses list_planning_groups -> "arm", "gripper"
User: "Get the arm's current joint state"
Claude: Uses get_current_joint_state(group="arm") -> Joint angles in radians
User: "Plan the arm to its home position"
Claude: Uses plan_to_named_state(group="arm", state_name="home")
Then execute_plan -> Arm moves to home
User: "Open the gripper"
Claude: Uses plan_to_named_state(group="gripper", state_name="open")
Then execute_plan -> Gripper opens
User: "Add a box obstacle in front of the robot"
Claude: Uses add_collision_box(object_id="obstacle", position=[0.5,0,0.3],
dimensions=[0.2,0.2,0.2]) -> Box appears in RViz
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with coverage
pytest --cov=moveit_mcp --cov-report=term-missing
# Format code
black src/ tests/
# Lint code
ruff check src/ tests/
# Run unit tests (no ROS required)
pytest tests/ -v -m "not integration"
# Run integration tests (requires ROS/MoveIt)
source /opt/ros/$ROS_DISTRO/setup.bash
ros2 launch moveit_resources_panda_moveit_config demo.launch.py # Terminal 1
pytest tests/integration/ -v # Terminal 2
# Run example clients
python examples/panda_example.py
python examples/summit_xl_example.py
Testing
The project includes two test suites:
Unit Tests (tests/) - No ROS required, uses mocking:
- 71 tests covering all components
- Run with:
pytest tests/ -v -m "not integration"
Integration Tests (tests/integration/) - Requires ROS/MoveIt:
- Tests with real ROS2 and MoveIt2
- Verifies actual robot planning and motion
- See tests/integration/README.md for details
- Run with:
pytest tests/integration/ -v
See CONTRIBUTING.md for contribution guidelines.
License
Apache License 2.0 - See LICENSE file for details.
Contributing
Contributions welcome! Please open an issue or PR on GitHub.
Install Moveit in Claude Desktop, Claude Code & Cursor
unyly install moveitInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add moveit -- uvx --from git+https://github.com/gtoff/moveit-mcp-server moveit-mcp-serverStep-by-step: how to install Moveit
FAQ
Is Moveit MCP free?
Yes, Moveit MCP is free — one-click install via Unyly at no cost.
Does Moveit need an API key?
No, Moveit runs without API keys or environment variables.
Is Moveit hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Moveit in Claude Desktop, Claude Code or Cursor?
Open Moveit on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
Roblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovOpencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
Compare Moveit with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
