Back to Catalog

mcp_server_ros_2

wise-vision/mcp_server_ros_2
πŸ”— Latest commit:4ef1de4
πŸ•’ Updated:Sep 9, 2025, 01:05 PM
Python
AI Tools

Advanced MCP Server ROS 2 bridging AI agents straight into robotics

MCP Trust Score
Based on our comprehensive evaluation criteria
πŸ€– Evaluated by gemini-2.5-flashFix
Trust Score58/100
GitHub Metrics
Repository statistics and activity
⭐ GitHub Stars:34
πŸ‘₯ Contributors:3
πŸ“‹ Total Issues:0
πŸ“¦ Has Releases:Yes
πŸ”§ Has CI/CD Pipeline:Yes
Configuration
Configuration example extracted from README.md for Claude Desktop and other clients.
πŸ€– Evaluated by gemini-2.5-flashFix
{
  "wisevision-mcp_server_ros_2-docker": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "wisevision/mcp_server_ros_2"
    ],
    "env": {}
  }
}
MCP Protocol Support
Implemented MCP protocol features
πŸ€– Evaluated by gemini-2.5-flashFix
Tools:βœ“
Prompts:βœ—
Resources:βœ“
Sampling:βœ—
Roots:βœ—
Logging:βœ—
STDIO Transport:βœ“
HTTP Transport:βœ—
OAuth2 Auth:βœ—
Dependencies
5 dependencies
Libraries and frameworks used by this MCP server
πŸ€– Evaluated by gemini-2.5-flashFix
Add Quality Badge
Show your MCP trust score in your README
Trust Score Badge
[![Trust Score](https://archestra.ai/mcp-catalog/api/badge/quality/wise-vision/mcp_server_ros_2)](https://archestra.ai/mcp-catalog/wise-vision__mcp_server_ros_2)
README.md

WiseVision ROS2 MCP Server

Discord
ROS 2 Humble
ROS 2 Jazzy
Pro Version

Flow graph

Python server implementing Model Context Protocol (MCP) for ROS2.

πŸš€ Enjoying this project?
You’re welcome to try the Pro version with extra features and priority support.
πŸ‘‰ Get Pro here

Real-world examples:

Demo

Features

  • List available topics
  • List available services
  • Call service
  • Get messages from WiseVision Data Black Box (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.

πŸ”§ ROS 2 Tools

πŸ“‹ Topics

ToolDescriptionInputsOutputs
ros2_topic_listReturns list of available topics–topic_name (string): Topic name
topic_type (string): Message type
ros2_topic_subscribeSubscribes to a ROS 2 topic and collects messages for a duration or message limittopic_name (string)
duration (float)
message_limit (int)
(defaults: first msg, 5s)
messages
count
duration
ros2_get_messagesRetrieves past messages from a topic (data black box)topic_name (string)
message_type (string)
number_of_msg (int)
time_start (str)
time_end (str)
timestamps
messages
ros2_get_message_fieldsGets field names and types for a message typemessage_type (string)Field names + types
ros2_topic_publishPublishes message to a topictopic_name (string)
message_type (string)
data (dict)
status

πŸ›  Services

ToolDescriptionInputsOutputs
ros2_service_listReturns list of available services–service_name (string)
service_type (string)
request_fields (array)
ros2_service_callCalls a ROS 2 serviceservice_name (string)
service_type (string)
fields (array)
force_call (bool, default: false)
result (string)
error (string, if any)

Usage

MCP Server Configuration

[!NOTE]
The server is running inside a Docker container as the root user. To communicate with other ROS components, they must also be run as root.

[!NOTE]
Due to this issue, this MCP server doesn't work with Copilot in Visual Studio Code.

Docker run

Set MCP setting to mcp.json.

"mcp_server_ros_2": {
    "command": "docker",
    "args": [
        "run",
        "-i",
        "--rm",
        "wisevision/mcp_server_ros_2"
    ],
    }

Build docker image locally

git clone https://github.com/wise-vision/mcp_server_ros_2.git
cd mcp_server_ros_2
docker build -t wisevision/mcp_server_ros_2 .

Add this to AI Agent prompt:

You are an AI assistant that uses external tools via an MCP server.
Before calling any tool, always check your memory to see if the list of available tools is known.
	β€’	If you don’t have the current tool list in memory, your first action should be to call the list-tools tool.
	β€’	Never guess tool names or parameters.
	β€’	If a user requests something that may require a tool and you don’t have the right tool info, ask them or call list-tools first.
Once the tool list is loaded, you may call tools directly using their documented names and schemas.

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 npm with this command:

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp_server_ros2 run mcp_ros_2_server

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

mcp_server_ros_2 MCP Server | Documentation & Integration | Archestra