Retrieves past messages and sensor data from InfluxDB as an alternative to Rosbag2 for ROS2 data storage and analysis.
Enables AI tooling to interact with ROS2 robotics systems, providing capabilities to list and subscribe to topics, call services, publish messages, retrieve sensor data from storage systems, and perform real-time debugging and analysis of robotic applications.
ROS2 MCP Server
A Python implementation of the Model Context Protocol (MCP) for ROS2. This server enables AI tooling to connect with ROS2 nodes, topics, and services using the MCP standard over stdio. It is designed to be the easiest ROS2 server to configure in the world.
🎯 Why Choose This MCP Server?
Save hours of development time with native AI integration for your ROS2 projects:
⚡ 1-minute setup - World's easiest ROS2 MCP configuration
0️⃣ Zero-friction setup - stdio transport, no brokers, no webserver.
🔌 Auto-discovery - a built-in “list interfaces” tool dynamically enumerates available topics and services together with their message/service definitions (fields, types, schema) — so the client always knows exactly what data can be published or called.
🤖 AI-powered debugging - Let AI help you troubleshoot ROS2 issues in real-time
📊 Smart data analysis - Query your robot's sensor data using natural language
🚀 Boost productivity - Control robots, analyze logs, and debug issues through AI chat
💡 No ROS2 expertise required - AI translates your requests into proper ROS2 commands
Perfect for: Robotics developers, researchers, students, and anyone working with ROS2 who wants to leverage AI for faster development and debugging.
🌍 Real-world examples:
✨ Features
List available topics
List available services
Call service
Get messages from data storage systems (influxDB alternative to Rosbag2)
Subscribe topic to get messages
Publish message on topic
Echo message on topic
Get fields from message type
Note: To call service with custom service source it before start server.
⚙️ Installation
Follow the installation guide for step-by-step instructions:
🔧 ROS 2 Tools
📋 Topics
Tool | Description | Inputs | Outputs |
| Returns list of available topics | – |
(string): Topic name
(string): Message type |
| Subscribes to a ROS 2 topic and collects messages for a duration or message limit |
(string)
(float)
(int)
(defaults: first msg, 5s) |
|
| Retrieves past messages from a topic (data black box) |
(string)
(string)
(int)
(str)
(str) |
|
| Gets field names and types for a message type |
(string) | Field names + types |
| Publishes message to a topic |
(string)
(string)
(dict) |
|
🛠 Services
Tool | Description | Inputs | Outputs |
| Returns list of available services | – |
(string)
(string)
(array) |
| Calls a ROS 2 service |
(string)
(string)
(array)
(bool, default: false) |
(string)
(string, if any) |
🐞 Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via with this command:
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables AI tools to interact with ROS2 robotics systems through natural language commands. Supports topic publishing/subscribing, service calls, message analysis, and auto-discovery of ROS2 interfaces for debugging and controlling robots.