ROS MCP Server
Lets your AI agent control and monitor ROS robots by publishing to topics, calling services and reading sensor data.
1.5k stars on GitHubby robotmcpLicense Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add ros -- uvx ros-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Grab a Coke from the fridge and go to the living room.
Test the gripper and tell me if you find any anomaly.
What it is
ROS MCP Server connects AI models such as Claude, GPT and Gemini to robots running ROS, with no changes to the robot's code. You only add the rosbridge node. The agent can discover what the robot offers and then control it or watch what it is doing.
What it can do
- Publish and subscribe to ROS topics
- Call services and actions
- Set parameters
- Read sensor data
- Monitor robot state in real time
- Discover topics, services, actions and their types, including custom ones
When to use
- βΊWhen you want to give a robot instructions in plain language.
- βΊWhen you need to diagnose a robot, for example a gripper fault.
- βΊWhen you want to try a robot in simulation, such as Isaac Sim.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
create-sensorHelps your agent add cameras, lidar, radar, IMU, GNSS, or collision sensors to a simulator vehicle, with mount position, settings, and optional ROS 2 publishing.idea-discovery-robotHelps your agent find robotics research ideas, from a literature survey through novelty checks and critical review, grounded in benchmarks and simulation.pufferlibHelps your agent work with machine learning environments for robotics. It's useful for training and evaluating systems that control robots.Frequently asked questions
Is it open source?
Yes, it is licensed under Apache License 2.0.
Do I need to change my robot's code?
No. You only add the rosbridge node to your existing ROS setup.
Which ROS versions work?
ROS 2 (Jazzy, Humble and others) and ROS 1.
Which AI apps can use it?
Claude Code, Codex CLI, Gemini CLI, Claude Desktop, ChatGPT, Cursor and any MCP-compatible client.
Can it control custom robot messages?
The readme says it guides the model to discover topics, services and actions and their types, including custom ones, so it can use them with the right syntax.
Are there examples?
Yes. The readme links videos of an industrial robot diagnosis, a home robot and a Unitree Go2 in Isaac Sim, plus an examples folder.
If it does not work
- βΊCheck that the rosbridge node is running on the robot or simulator.
- βΊCheck that the computer running the server can reach the robot over the network.
- βΊRestart your AI app fully after adding the server.
5 new skills a week. 1 minute to read.