realsense-ros-mcp
Provides tools for controlling Intel RealSense depth cameras via ROS2, including launching and stopping camera nodes, capturing color/depth/infrared/RGBD/point cloud/IMU data, querying device information and intrinsics, configuring parameters and filters, retrieving TF/extrinsics, and managing multi-camera setups.
Integrates with ROS2 Humble and the realsense2_camera package, exposing tools for ROS2 node management, topic inspection and capture, service calls, dynamic parameter control, TF queries, and ROS2 environment diagnostics for RealSense cameras.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
realsense-ros-mcp
π English | δΈζ
Intel RealSense ROS2 MCP Server β wraps the realsense2_camera ROS2 interface, providing 25 MCP tools for AI assistants to control Intel RealSense depth cameras via ROS2.
Features
ROS2 Node Management
launch_cameraβ Launch realsense2_camera ROS2 nodestop_cameraβ Stop camera nodelist_active_camerasβ List active camera processes
Topic Operations
list_topicsβ List ROS2 topicsget_topic_infoβ Get topic type and publishersget_topic_hzβ Measure topic publishing frequencycapture_color_imageβ Capture color image from topiccapture_depth_imageβ Capture depth image from topiccapture_rgbdβ Capture aligned RGBD image paircapture_infraredβ Capture infrared imageget_imu_dataβ Get IMU datacapture_pointcloudβ Capture point cloud (PLY/PCD)
Service Calls
get_device_infoβ Call DeviceInfo service
Parameter Control
get_camera_parametersβ Get all parametersset_camera_parameterβ Set parameterenable_filterβ Enable/disable filtersset_depth_profileβ Set depth stream resolution and FPSset_color_profileβ Set color stream resolution and FPS
TF and Calibration
get_camera_infoβ Get CameraInfo (intrinsics)get_tfβ Query TF transformget_extrinsicsβ Get extrinsics
Multi-Camera
launch_multi_camerasβ Batch launch multiple camerascapture_multi_framesβ Multi-camera synchronized capture
ROS2 Diagnostics
check_ros2_statusβ Check ROS2 environmentlist_ros2_nodesβ List all nodes
Related MCP server: OpticMCP
Quick Start
Prerequisites
# Install ROS2 Humble (Ubuntu 22.04)
# See: https://docs.ros.org/en/humble/Installation.html
# Install realsense2_camera package
sudo apt install ros-humble-realsense2-camera
# Or install from source
# cd ~/ros2_ws/src
# git clone https://github.com/IntelRealSense/realsense-ros.git -b ros2-development
# cd ..
# rosdep install -i --from-path src --rosdistro humble -y
# colcon buildInstallation
# Ensure ROS2 is sourced
source /opt/ros/humble/setup.bash
# Install Python dependencies
pip install -r requirements.txt
# Test server
python mcp_server.py --test
# Run server (stdio)
python mcp_server.py
# Demo (without MCP)
python tests/demo_ros_capture.pyMCP Configuration
Add to OpenClaw config.yaml:
mcp:
servers:
realsense-ros:
command: bash
args: ["-c", "source /opt/ros/humble/setup.bash && python3 /path/to/realsense-ros-mcp/mcp_server.py"]Or use Claude Desktop configuration:
{
"mcpServers": {
"realsense-ros": {
"command": "bash",
"args": ["-c", "source /opt/ros/humble/setup.bash && python3 /path/to/realsense-ros-mcp/mcp_server.py"]
}
}
}Hardware Requirements
Intel RealSense D400/L500 series cameras
D435/D435i (recommended)
D455
D415
L515
ROS2 Humble (Ubuntu 22.04)
realsense2_camera package installed
USB 3.0 connection (required)
Python 3.8+
Usage Examples
# Check ROS2 status
check_ros2_status()
# Launch camera node
launch_camera(serial="12345", namespace="camera")
# List topics
list_topics()
# Returns: ["/camera/color/image_raw", "/camera/depth/image_rect_raw", ...]
# Capture color image
capture_color_image(topic="/camera/color/image_raw", filename="color.png")
# Get camera parameters
get_camera_parameters(node_namespace="camera")
# Set parameter
set_camera_parameter(node_namespace="camera", param_name="depth_module.emitter_enabled", param_value=True)
# Stop camera
stop_camera(namespace="camera")Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MCP Client β
β (Claude / OpenClaw / etc.) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β stdio
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β realsense-ros-mcp β
β (mcp_server.py / FastMCP) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β bridge.py β
β (ROS2Bridge - rclpy / ros2cli integration) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ROS2 Humble + realsense2_camera β
β (ROS2 nodes / topics / services) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β USB 3.0
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Intel RealSense Camera β
β (D435/D455/L515/etc.) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββComparison with librealsense-mcp
Feature | librealsense-mcp | realsense-ros-mcp |
Low-level | pyrealsense2 direct calls | ROS2 topics/services |
Dependencies | pyrealsense2 | ROS2 Humble + realsense2_camera |
Use Case | Standalone apps, lightweight | ROS2 robotics integration |
TF Support | β | β |
Point Cloud Format | PLY | PLY / PCD |
Filters | SDK built-in | ROS2 dynamic parameter config |
Multi-camera | Manual management | ROS2 native support |
Testing
# Ensure ROS2 environment is set
source /opt/ros/humble/setup.bash
# Run tests
cd tests
python demo_ros_capture.pyRelated Projects
librealsense-mcp β Direct SDK version of RealSense MCP Server
realsense-ros β Official ROS2 RealSense package
License
MIT License - See LICENSE
Made with β€οΈ for the ROS2 robotics community
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.Mozilla Public 2.0
- AlicenseNot gradedqualityDmaintenanceProvides camera and vision tools for AI assistants to list available cameras, capture images from USB cameras, and save frames to disk for use with LLMs.4MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables interaction with local camera devices to capture and process images. It allows LLMs to access video devices with configurable settings such as resolution, orientation, and image format.1MIT
- FlicenseBqualityDmaintenancerm_mcp bridges ROS Noetic and ROS 2 with Model Context Protocol, providing AI Agents with structured 'eyes' (state & system inspection) and 'hands' (controller actuation, signal injection, rosbag recording, and automated PID response analysis) for robotics debugging.26-