OBSBOT Camera MCP Server
MCP (Model Context Protocol) server for PTZ camera control with gimbal positioning, snapshots, and AI visual analysis integration.
Designed for OBSBOT Tiny SE but works with any UVC PTZ camera that supports v4l2 controls.
Features
Full Gimbal Control: Pan, tilt, zoom with safety limits
Real-time Position Feedback: Human-readable directions
Camera Snapshots: High-resolution capture
Visual Analysis: LM Studio integration for vision-language models
Area Scanning: Horizontal, vertical, grid, and panoramic patterns
Autonomous Search: Shell scripts for systematic exploration
Python Library: Direct control for custom applications
Requirements
System
Linux with v4l2 support
Node.js 18+ (for MCP server)
Python 3.8+ (for Python library)
Packages
Optional
LM Studio for visual analysis
Vision-language model (e.g., Qwen2.5-VL, LLaVA)
Installation
MCP Server
Python Library
Configuration
Environment Variables
Claude Desktop Configuration
Add to ~/.config/claude/claude_desktop_config.json:
Usage
MCP Server Tools
get_gimbal_position
Get current pan, tilt, zoom with readable directions.
control_gimbal
Move gimbal to absolute position.
Pan: -468000 (right) to 468000 (left)
Tilt: -324000 (down) to 324000 (up)
Zoom: 0 (wide) to 12 (telephoto)
center_camera
Return to neutral position (0, 0, 0).
take_snapshot
Capture image with optional LM Studio analysis.
look_and_analyze
Move camera and take analyzed snapshot in one operation.
scan_area
Systematic multi-position scan.
check_system_status
Verify camera and LM Studio availability.
Python Library
Shell Script
Camera Compatibility
Tested with:
OBSBOT Tiny SE
OBSBOT Meet
Should work with any UVC PTZ camera supporting:
pan_absolutecontroltilt_absolutecontrolzoom_absolutecontrol
Check your camera's controls:
Gimbal Directions
The v4l2 control values map to directions:
Pan: Positive = LEFT, Negative = RIGHT
Tilt: Positive = UP, Negative = DOWN
Zoom: Higher = telephoto (zoomed in)
Troubleshooting
Camera not found
Permission denied
Controls not working
License
MIT License - See LICENSE file
Related Projects
sam-angle-detection - SAM-based angle measurement
openwebui-anthropic-pipe - Anthropic API pipe for Open WebUI