
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Python-based MCP server that integrates the Model Context Protocol with ROS 2, running as a ROS 2 node to let AI assistants control robots by publishing Twist messages to /cmd_vel.
ROS 2 MCP Server is cataloged as an MCP server attributed to kakimochi. A Python-based MCP server that integrates the Model Context Protocol with ROS 2, running as a ROS 2 node to let AI assistants control robots by publishing Twist messages to /cmd_vel. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for ROS 2 MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It publishes geometry_msgs/Twist messages to the /cmd_vel topic.
It currently supports only /cmd_vel with Twist messages and simple movement commands; extending it for other topics, services, or more complex behaviors requires additional implementation.
README.md · 3fe8d9c69c3f · Fetched 2026-11-13 09:07:56 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
ros2-mcp-server is a Python-based server that integrates the Model Context Protocol (MCP) with ROS 2, enabling AI assistants to control robots via ROS 2 topics. It processes commands through FastMCP and runs as a ROS 2 node, publishing geometry_msgs/Twist messages to the /cmd_vel topic to control robot movement.
This implementation supports commands like "move forward at 0.2 m/s for 5 seconds and stop," with the /cmd_vel publisher named pub_cmd_vel.
/cmd_vel.asyncio with ROS 2's event loop for efficient operation.rclpy: ROS 2 Python client library (installed with ROS 2).fastmcp: FastMCP framework for MCP server implementation.numpy: Required by ROS 2 message types.Clone the Repository:
git clone https://github.com/kakimochi/ros2-mcp-server.git
cd ros2-mcp-server
Python Version Configuration:
This project uses Python 3.10 as required by ROS 2 Humble. The .python-version file is already configured:
# .python-version content
3.10
Project Dependencies:
The pyproject.toml file is configured with the necessary dependencies:
# pyproject.toml content
[project]
name = "ros2-mcp-server"
version = "0.1.0"
description = "ROS 2 MCP Server"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastmcp",
"numpy",
]
Create uv Environment:
uv venv --python /usr/bin/python3.10
Activate the Virtual Environment:
source .venv/bin/activate
You'll see (.venv) appear at the beginning of your command prompt, indicating that the virtual environment is active.
Install Dependencies:
uv pip install -e .
To use this server with Claude or other MCP clients, you need to configure it as an MCP server. Here's how to set it up:
Open Claude Desktop settings and navigate to the MCP servers section.
Add a new MCP server with the following configuration:
"ros2-mcp-server": {
"autoApprove": [],
"disabled": false,
"timeout": 60,
"command": "uv",
"args": [
"--directory",
"/path/to/ros2-mcp-server",
"run",
"bash",
"-c",
"export ROS_LOG_DIR=/tmp && source /opt/ros/humble/setup.bash && python3 /path/to/ros2-mcp-server/ros2-mcp-server.py"
],
"transportType": "stdio"
}
Important: Replace /path/to/ros2-mcp-server with the actual path to your repository. For example, if you cloned the repository to /home/user/projects/ros2-mcp-server, you would use that path instead.
Save the configuration and restart Claude.
In VSCode, open the Cline extension settings by clicking on the Cline icon in the sidebar.
Navigate to the MCP servers configuration section.
Add a new MCP server with the following configuration:
"ros2-mcp-server": {
"autoApprove": [],
"disabled": false,
"timeout": 60,
"command": "uv",
"args": [
"--directory",
"/path/to/ros2-mcp-server",
"run",
"bash",
"-c",
"export ROS_LOG_DIR=/tmp && source /opt/ros/humble/setup.bash && python3 /path/to/ros2-mcp-server/ros2-mcp-server.py"
],
"transportType": "stdio"
}
Important: Replace /path/to/ros2-mcp-server with the actual path to your repository, as in the Claude Desktop example.
You can immediately toggle the server on/off and verify the connection directly from the Cline MCP settings interface without needing to restart VSCode or reload the extension.
Once the MCP server is configured, you can use Claude to send commands to the robot:
Example Command: Ask Claude to move the robot forward at 0.2 m/s for 5 seconds:
Please make the robot move forward at 0.2 m/s for 5 seconds.
Direct Tool Usage:
You can also use the move_robot tool directly:
{
"linear": [0.2, 0.0, 0.0],
"angular": [0.0, 0.0, 0.0],
"duration": 5.0
}
Monitor ROS 2 Topics:
Verify the /cmd_vel topic output:
ros2 topic echo /cmd_vel
With a Simulator:
export TURTLEBOT3_MODEL=burger
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py
With a Real Robot:
/cmd_vel topic.Expected Output:
"Successfully moved for 5.0 seconds and stopped".ROS_LOG_DIR environment variable is set to a writable directory (e.g., /tmp).ros2-mcp-server/
├── ros2-mcp-server.py # Main server script integrating FastMCP and ROS 2
├── pyproject.toml # Project dependencies and metadata
├── .python-version # Python version specification
├── .gitignore # Git ignore file
└── README.md # This file
/cmd_vel with Twist messages. Extend ros2-mcp-server.py for other topics or services.MIT License
Copyright (c) 2025 kakimochi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that this project uses FastMCP, which is licensed under the Apache License 2.0. The terms of that license also apply to the use of FastMCP components.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for ROS 2 MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ros2-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.