librealsense-mcp
Controls Intel RealSense depth cameras via pyrealsense2, enabling device discovery, streaming, frame capture, depth measurement, point cloud export, calibration, and sensor configuration.
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.
librealsense-mcp
π English | δΈζ
Intel RealSense MCP Server β directly wraps the pyrealsense2 SDK, providing 26 MCP tools for AI assistants to directly control Intel RealSense depth cameras.
Features
Device Management
list_devicesβ List all connected Intel RealSense devicesget_device_infoβ Get detailed device informationhardware_resetβ Hardware reset the device
Stream Control
start_pipelineβ Start device streaming (color/depth/infrared/IMU)stop_pipelineβ Stop streamingget_pipeline_statusβ Check all active pipeline status
Frame Capture
capture_framesβ Capture frame metadatacapture_color_imageβ Capture color image and save as PNGcapture_depth_imageβ Capture depth image (colorized or raw 16-bit)capture_aligned_rgbdβ Capture aligned RGBD image pair
Depth Measurement
get_distanceβ Get depth value at pixel coordinates (meters)get_depth_statsβ Depth statistics (min/max/mean/std), supports ROI
Point Cloud
capture_pointcloudβ Export PLY point cloud fileget_pointcloud_dataβ Point cloud data summary (bounding box, centroid)
Filters
apply_depth_filtersβ Configure depth filter chain (threshold/decimation/spatial/temporal/hole-filling)
Calibration
get_intrinsicsβ Camera intrinsics (fx/fy/ppx/ppy/distortion coefficients)get_extrinsicsβ Stream-to-stream extrinsics (rotation + translation)deproject_pixelβ Deproject pixel to 3D coordinates
Device Control
get_sensor_optionsβ List available sensor optionsset_sensor_optionβ Set sensor optionset_emitterβ IR emitter on/offset_exposureβ Exposure control
Advanced Mode
get_advanced_mode_jsonβ Export D400 advanced mode JSONload_advanced_mode_jsonβ Load advanced mode configuration
Multi-Camera
start_multi_pipelineβ Batch start multiple camerascapture_multi_framesβ Multi-camera synchronized frame capture
Related MCP server: multiCAD-mcp
Quick Start
Install Dependencies
# Install pyrealsense2 (choose based on your platform)
# Ubuntu/Debian
pip install pyrealsense2
# Or build from source (ARM64 platforms like Jetson)
# See: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
# Install Python dependencies
pip install -r requirements.txtTest Server
# Test if server starts
python mcp_server.py --test
# Run server (stdio transport)
python mcp_server.pyMCP Configuration
Add to OpenClaw config.yaml:
mcp:
servers:
librealsense:
command: python3
args: ["/path/to/librealsense-mcp/mcp_server.py"]Or use Claude Desktop configuration:
{
"mcpServers": {
"librealsense": {
"command": "python3",
"args": ["/path/to/librealsense-mcp/mcp_server.py"]
}
}
}Hardware Requirements
Intel RealSense D400/L500 series cameras
D435/D435i (recommended)
D455
D415
L515
USB 3.0 connection (required)
Python 3.8+
Usage Examples
# List all devices
list_devices()
# Returns: {"devices": [{"serial": "12345", "name": "Intel RealSense D435"}], "count": 1}
# Start camera pipeline
start_pipeline(serial="12345", enable_color=True, enable_depth=True)
# Capture color image
capture_color_image(serial="12345", filename="color.png")
# Get depth value
get_distance(serial="12345", x=320, y=240)
# Returns: {"distance_m": 1.25}
# Capture point cloud
capture_pointcloud(serial="12345", filename="scene.ply")
# Stop pipeline
stop_pipeline(serial="12345")Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MCP Client β
β (Claude / OpenClaw / etc.) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β stdio
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β librealsense-mcp β
β (mcp_server.py / FastMCP) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β bridge.py β
β (RealSenseBridge - pyrealsense2) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Intel RealSense SDK 2.0 β
β (pyrealsense2) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β USB 3.0
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Intel RealSense Camera β
β (D435/D455/L515/etc.) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββTesting
# Run tests
cd tests
python demo_capture.pyRelated Projects
realsense-ros-mcp β ROS2 version of RealSense MCP Server
License
MIT License - See LICENSE
Made with β€οΈ for the 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.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
AI image, video, voice and music generation over MCP, routed to Veo 3.1, Seedance 2.5 and more.
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables cloud LLM agents to discover and invoke physical hardware on edge and IoT devices through standard MCP tools, bridging constrained device channels like UART, BLE, and Wi-Fi.3MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to control supported CAD applications through natural-language instructions and unified MCP tools for drawing, layers, blocks, entities, files, and data export.-
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible applications to manage and use local or cloud LLM models through comprehensive SDK tools, including model management, text generation, chat with tool support, embeddings, and web search/fetch.817 npmAGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants and autonomous agents to control professional creative applications such as Photoshop, Blender, and CapCut through a unified local-first MCP gateway with native automation and secure multi-client multiplexing.Apache 2.0