Skip to main content
Glama

obs-studio-mcp

An MCP (Model Context Protocol) server for controlling OBS Studio over obs-websocket v5: scenes, sources, audio, text overlays, streaming, recording, replay buffer, virtual camera, and performance stats.

  • Talks to the obs-websocket server built into OBS 28+ (Tools → WebSocket Server Settings).

  • Every mutating tool accepts dry_run=true and returns a preview instead of acting — useful guard rails when an agent drives your live stream.

  • No secrets in this repo or in your MCP client config.

Quick start

  1. In OBS: Tools → WebSocket Server Settings → enable, note the port (default 4455) and password.

  2. Provide connection settings via environment:

export OBS_MCP_HOST=127.0.0.1     # default
export OBS_MCP_PORT=4455          # default
export OBS_MCP_PASSWORD=yourpass  # via the default env backend
  1. Add to your MCP client:

# Claude Code
claude mcp add obs -s user -- uvx obs-studio-mcp

Related MCP server: obs-mcp-server

Tools

Area

Tools

Scenes

list_scenes, switch_scene, set_preview_scene, trigger_transition, set_studio_mode, list_scene_items, set_scene_item_visibility

Sources

list_inputs, get_audio_levels, set_mute, set_volume, update_text_source, screenshot_source, media_control

Output

stream_status, start_stream, stop_stream, record_status, start_record, stop_record, pause_record, save_replay, set_replay_buffer, set_virtual_cam

System

get_stats, list_profiles, switch_profile, list_scene_collections, switch_scene_collection, trigger_hotkey, health_check

update_text_source is handy for driving on-stream overlays from an agent — question-of-the-day, now-playing, countdowns — anything rendered by a Text source.

Secret storage

The only secret is the websocket password.

Backend

Select with

Reads

env (default)

—

OBS_MCP_PASSWORD

file

OBS_MCP_SECRETS=file

~/.config/obs-studio-mcp/credentials.json (0600)

vaultproxy

OBS_MCP_SECRETS=vaultproxy (+ VAULTPROXY_URL)

a Vaultwarden vault via a local vaultproxy HTTP API

Development

pip install -e '.[dev]'
ruff check src tests && pytest

Tests are fully offline (fake obs-websocket client).

License

MIT

Available Tools

36 tools
get_audio_levelsA

List audio inputs with mute state and volume (dB).

Inputs: no named parameters. Returns: result

get_scene_item_transformB

Get a scene item's position, scale, and crop.

Inputs: scene (required), item_id (required).

get_statsA

OBS performance stats: CPU, memory, FPS, frame drops, disk space.

Inputs: no named parameters.

health_checkA

Verify the OBS websocket connection and report versions.

Inputs: no named parameters.

list_inputsA

List all inputs (sources) with their kinds.

Inputs: no named parameters. Returns: result

list_profilesA

List OBS profiles and the current one.

Inputs: no named parameters.

list_scene_collectionsB

List scene collections and the current one.

Inputs: no named parameters.

list_scene_itemsB

List the items (sources) inside a scene with visibility state.

Inputs: scene (required). Returns: result

list_scenesA

List scenes and the current program/preview scene.

Inputs: no named parameters.

list_source_filtersC

List filters on a source with enabled state.

Inputs: source (required). Returns: result

media_controlC

Control a media source. action: play|pause|restart|stop|next|previous.

Inputs: action (required), input_name (required), dry_run.

pause_recordC

Pause (true) or resume (false) the recording.

Inputs: paused (required), dry_run.

record_statusB

Recording state: active, paused, duration, output path.

Inputs: no named parameters.

save_replayB

Save the replay buffer (must be running). Returns the clip path.

Inputs: dry_run.

screenshot_sourceC

Save a PNG screenshot of a source (or scene) to a local file.

Inputs: source (required), file_path (required), width, dry_run.

set_filter_enabledC

Enable or disable a named filter on a source.

Inputs: source (required), enabled (required), filter_name (required), dry_run.

set_muteC

Mute or unmute an audio input.

Inputs: muted (required), input_name (required), dry_run.

set_preview_sceneC

Set the preview scene (studio mode).

Inputs: scene (required), dry_run.

set_replay_bufferC

Start (true) or stop (false) the replay buffer.

Inputs: active (required), dry_run.

set_scene_item_transformA

Move/scale a scene item (item_id from list_scene_items). Only supplied fields change — e.g. scale_x/scale_y 0.5 halves a facecam.

Inputs: scene (required), item_id (required), x, y, +3 more.

set_scene_item_visibilityC

Show or hide a scene item (item_id from list_scene_items).

Inputs: scene (required), item_id (required), visible (required), dry_run.

set_studio_modeC

Enable or disable studio mode.

Inputs: enabled (required), dry_run.

set_virtual_camC

Start (true) or stop (false) the virtual camera.

Inputs: active (required), dry_run.

set_volumeC

Set an audio input's volume in dB (0 = unity, negative = quieter).

Inputs: volume_db (required), input_name (required), dry_run.

start_recordC

Start recording.

Inputs: dry_run.

start_streamC

Go live: start streaming to the configured service.

Inputs: dry_run.

stop_recordC

Stop recording; returns the saved file path.

Inputs: dry_run.

stop_streamC

End the live stream.

Inputs: dry_run.

stream_statusA

Streaming state: live, duration, bytes, dropped frames.

Inputs: no named parameters.

switch_profileC

Switch OBS profile (stream settings bundle).

Inputs: profile (required), dry_run.

switch_sceneC

Switch the program output to a scene (immediate cut on program).

Inputs: scene (required), dry_run.

switch_scene_collectionC

Switch scene collection (full scene layout bundle).

Inputs: name (required), dry_run.

trigger_hotkeyB

Trigger an OBS hotkey by name (see get_hotkey_list in OBS docs).

Inputs: hotkey_name (required), dry_run.

trigger_transitionC

Trigger the studio-mode transition (preview → program).

Inputs: dry_run.

update_text_sourceB

Set the text of a Text (GDI+/FreeType) source — e.g. an on-stream overlay line like a giveaway question or now-playing label.

Inputs: text (required), input_name (required), dry_run.

watch_healthA

Sample OBS stats for up to 60 seconds and report a stream-health verdict: dropped-frame %, GPU misses, CPU pressure.

Inputs: seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 36 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose, targeting specific OBS functions such as scenes, sources, audio, streaming, recording, etc. There is no meaningful overlap that would cause an agent to misselect.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, e.g., list_scenes, set_mute, start_stream. No mixing of conventions or irregular naming.

    Tool Count4/5

    With 36 tools, the count is slightly higher than the typical well-scoped range, but each tool covers a distinct and essential aspect of OBS control, making the set feel comprehensive rather than bloated.

    Completeness3/5

    While the tool set covers many common workflows, it lacks creation and deletion actions for scenes and sources (e.g., create_scene, remove_input), leaving notable gaps in full lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers