SuperAPIAI Directory

obsbot-mcp

github.com · AI developer platforms

📟 🏠 🍎 🪟 🐧 - Control an OBSBOT Tiny 2 webcam over USB: pan, tilt and zoom, subject tracking, presets, focus, exposure and white balance, snapshots and recording.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Purpose

obsbot-mcp is a cross-platform Model Context Protocol (MCP) server for controlling the OBSBOT Tiny 2 camera. It works through the camera's standard UVC/USB interface and does not require a vendor SDK. It also controls the OBSBOT Tail 2 webcam through an HTTP/WS API.

Main capabilities

It provides 35 tools on Windows and macOS, and 34 on Linux (Linux lacks obsbot_gimbal_move_speed). Adding the --debug argument additionally exposes the obsbot_debug_probe diagnostic tool. Each Tail 2 camera on the network adds 32 obsbot_tail2_* tools. Tool names are based on v0.4.0; all tools were renamed in that version, with no backward-compatible aliases.

Control capabilities include: gimbal pan/tilt/rotate, zoom, AI subject tracking, focus, exposure, white balance and image controls, HDR and field-of-view switching, as well as screenshots, preview, and recording.

Usage

MCP client configuration: add a stdio server entry pointing to the installed binary (or directly to dist/index.js). If running from a local checkout instead of an npm install, point command/args to node and the build entry point. After installing the binary, use "command": "obsbot-mcp". For debug mode, use "args": ["--debug"].

Camera selector: every camera-addressing tool accepts an optional camera parameter, which is the serial number of the target camera. When a single camera is connected, omit this parameter, and the behavior is exactly the same as before v0.4.0. When multiple cameras are connected, calls that omit camera will fail and list all connected serial numbers. Exceptions: obsbot_devices (enumerates the entire device group), obsbot_capture_stop / obsbot_capture_list (address sessionId rather than a device), obsbot_debug_probe (operates on the current diagnostic transport). obsbot_capture_record and obsbot_capture_preview does not accept camera; they select devices via source (device/virtual/ndi), not by serial number. obsbot_capture_snapshot only honors camera when source:"device".

Multi-camera support is a new feature in v0.4.0, verified by unit tests against fake devices, but not yet validated on hardware by running two physical Tiny 2 units simultaneously.

obsbot_devices is used to discover serial numbers to pass as camera: it reports each connected camera's serial number (when obtainable—reading requires briefly opening the camera), name, and status (available | bound | busy). Cameras occupied by other processes return busy with no serial number.

Snapshots and aiming: obsbot_capture_snapshot returns an image frame and its width/height. obsbot_aim_at_pixel takes the target's pixel coordinates and that frame's dimensions, then takes another snapshot to confirm. You must use the frameWidth/frameHeight from the same snapshot; mixing pixels and dimensions from different frames causes aiming errors that cannot be detected. Snapshots must use source: "device"; virtual or ndi come from OBSBOT Center's output, and its field-of-view constants do not apply. The tool reads the camera zoom factor itself (either discrete FOV mode or continuous zoom works, m = 3*ratio-2, with hardware-measured error under 0.05%). When AI tracking is on, the FOV mode cannot be decoded, a corrupted zoom reading makes the zoom factor unreasonable, or the camera is woken from sleep, the tool refuses rather than guessing.

obsbot_zoom_to_fit expands a point into a region: pass a bounding box (x, y, width, height) and that frame's dimensions, and the tool zooms so that region fills the frame. It shares obsbot_aim_at_pixel's refusal conditions and additionally requires the region to be within the frame and to have positive width and height. margin (default 0.1, i.e. 10%) reduces the requested zoom by that proportion, leaving a margin. The tool always chooses the smaller of the zoom factors required by the two axes, and the result is clamped to the camera's [1x, 4x] range (reported via clamped). The gimbal moves first, then zoom is commanded. Zoom is not instantaneous; on hardware it approaches the target value gradually, obsbot_zoom_to_fit polls for up to 3 seconds waiting for the zoom to settle; if it does not settle, it returns settled:false (not an error).

Presets: three device-side preset slots (1–3). Slots are created one-time: obsbot_preset_save requires an empty slot (it must be deleted first before reuse), while other preset tools require the slot to already be occupied. Each tool re-reads the slot list after writing, and returns a structured { ok:false } failure if the device did not apply the change.

There are two zoom tools rather than one; they use different transports (standard UVC and vendor command frames) and produce different physical zoom at the same command ratio, so merging them would silently change the meaning of the ratio.

Focus, white balance, and exposure are each split into dedicated _auto and _manual tools in v0.4.0 (previously a single tool with a mode parameter).

Use cases

Suitable for scenarios that require controlling an OBSBOT Tiny 2 or Tail 2 camera via MCP, such as automated video production, AI-driven camera operation, remote control, and automatically aiming at a target after screenshot analysis.

Limitations

Known limitations: obsbot_gimbal_move_speed is unavailable on Linux. Multi-camera has only been verified by unit tests, not by running two Tiny 2 units simultaneously on hardware. On Linux, obsbot_gimbal_position reflects the last commanded value rather than the real-time in-flight position. Recording/preview requires ffmpeg/ffplay (Windows install: winget install Gyan.FFmpeg; macOS: brew install ffmpeg; Linux: apt install ffmpeg). Screenshots do not require ffmpeg. macOS 14 is the minimum because the helper uses AVCaptureDeviceTypeExternal. Known gaps for Tail 2: image control writes via REST are unprobed; screenshots depend on OBSBOT Center enabling SRT output (mutually exclusive with NDI, and cleared on restart); under that firmware, RTSP output is never served, although its enable flag exists. The camera control API is unauthenticated, so anyone on the LAN can drive it, including powering it off.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools