mcp_server_ros_2

MCP.Pizza Chef: wise-vision

The mcp_server_ros_2 is an advanced MCP server that integrates the Model Context Protocol with ROS2 robotics middleware. It enables AI agents to interact directly with robotic systems by listing and subscribing to ROS2 topics, calling services, publishing messages, and accessing data from the WiseVision Data Black Box. This server facilitates real-time, structured communication between AI models and robotic environments, supporting complex robotics workflows and automation.

Use This MCP server To

List available ROS2 topics and services for robotic data access Subscribe to ROS2 topics to receive real-time sensor data Publish messages to ROS2 topics to control robotic actuators Call ROS2 services to trigger robotic functions or queries Retrieve historical robotic data from WiseVision Data Black Box Echo messages on ROS2 topics for debugging and monitoring Extract fields from ROS2 message types for structured processing

README

WiseVision ROS2 MCP Server

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

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.

API

Tools

mcp_server_ros_2 FAQ

How do I start the mcp_server_ros_2 with a custom service source?
You must source the custom service before starting the server to enable service calls.
Can mcp_server_ros_2 access historical robotic data?
Yes, it integrates with WiseVision Data Black Box to retrieve stored messages.
What ROS2 features does this MCP server support?
It supports listing topics and services, subscribing and publishing messages, calling services, and echoing topics.
Is mcp_server_ros_2 compatible with all ROS2 message types?
It can handle any ROS2 message type, including custom types, by extracting message fields dynamically.
How does mcp_server_ros_2 help AI agents interact with robots?
It exposes ROS2 communication channels via MCP, enabling AI models to read sensor data and send commands in real time.
Does mcp_server_ros_2 support service calls?
Yes, it allows calling ROS2 services, provided the service source is sourced before server startup.
What programming language is mcp_server_ros_2 implemented in?
It is implemented in Python for easy integration and extensibility.
Can I use mcp_server_ros_2 for debugging ROS2 topics?
Yes, the echo message feature helps monitor topic messages for debugging purposes.