The scene graph: the current program scene, every scene and every source.
Give your agent OBS
obs-studio-rust includes a local MCP server that calls libobs directly. It has 30 typed tools, with input and output schemas and machine-readable errors. An agent can build scenes, go live, take screenshots and wait on real conditions, without screen-scraping or fixed sleeps.
# 1. build once, inside an obs-studio checkout git clone https://github.com/obs-rust/obs-studio && cd obs-studio ./mcp --build # 2. hand it to your agent claude mcp add obs -- "$PWD/mcp" --mcp
30 tools · 2 resources · 0 prompts · control-api.schema.json @ 524486a44 · 2026-11-23
An agent session · schema-validated example
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"agent","version":"1"}}}{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","serverInfo":{"name":"obs-mcp","version":"0.1.0"},"capabilities":{"tools":{},"resources":{}}}}{"jsonrpc":"2.0","method":"notifications/initialized"}{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"scene_set_current","arguments":{"name":"Interview"}}}{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\"name\":\"Interview\"}"}],"structuredContent":{"name":"Interview"},"isError":false}}{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"wait_for","arguments":{"condition":{"type":"source_active","name":"Camera"},"timeout_ms":10000}}}{"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"{\"satisfied\":true,\"elapsed_ms\":180,\"last_value\":{\"kind\":\"source\",\"present\":true,\"active\":true}}"}],"structuredContent":{"satisfied":true,"elapsed_ms":180,"last_value":{"kind":"source","present":true,"active":true}},"isError":false}}{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"record_start","arguments":{"wait":true,"timeout_ms":5000}}}{"jsonrpc":"2.0","id":4,"result":{"content":[{"type":"text","text":"{\"active\":true}"}],"structuredContent":{"active":true},"isError":false}}Its own OBS, or yours
Its own OBS
The server starts and owns a separate headless OBS instance. It's a sandbox apart from the OBS you have open, suited to building scenes, tests and CI. Closing stdin shuts it down cleanly.
./mcp --mcp
Your running OBS
Build and install obs-mcp-module. It serves the same JSON-RPC on $XDG_RUNTIME_DIR/obs-studio-rust/control.sock (mode 0600) inside the running app, and the agent's changes go straight to your live scenes.
./mcp --mcp-attach
Look, switch, change
Every tool declares MCP annotations, so a client can grant "look, don't touch" by policy. A read-only allowlist is generated for Claude Code.
Read-only
Lists, status, screenshots, stats and waits. Safe to allow outright.
Idempotent writes
Start/stop outputs, switch scenes, toggle visibility. Repeating a call gives the same state.
Changes state
Create, remove and reconfigure scenes, sources and items. Put these behind a human.
Plug it in
Every client launches the mcp script in your checkout. It sets up the graphics and plugin paths, so point clients at it rather than at the binary. Use absolute paths.
claude mcp add obs -- /path/to/obs-studio/mcp --mcp # or just open the checkout: its .mcp.json already declares the server {"mcpServers":{"obs":{"command":"./mcp","args":["--mcp"]}}} # optional: allow only read-only tools without prompting (.claude/settings.json) {"permissions":{"allow":["mcp__obs__media_status", "mcp__obs__pipeline_dump", "mcp__obs__record_status", "mcp__obs__scene_get_current", "mcp__obs__scene_items_list", "mcp__obs__scenes_list", "mcp__obs__screenshot", "mcp__obs__sources_list", "mcp__obs__stats_get", "mcp__obs__stream_status", "mcp__obs__vcam_status", "mcp__obs__vmic_status", "mcp__obs__wait_for"]}}
~/.cursor/mcp.json or .cursor/mcp.json
{"mcpServers":{"obs":{"command":"/path/to/obs-studio/mcp","args":["--mcp"]}}}.vscode/mcp.json in the obs-studio checkout
{"servers":{"obs":{"type":"stdio","command":"${workspaceFolder}/mcp","args":["--mcp"]}}}The server builds and runs on Linux today (see requirements). Claude Desktop ships for macOS and Windows, so this config only helps where Desktop runs on the same Linux machine as the build.
{"mcpServers":{"obs":{"command":"/path/to/obs-studio/mcp","args":["--mcp"]}}}Act on a running OBS that has obs-mcp-module loaded. The socket argument is optional and defaults to the module's socket.
{"mcpServers":{"obs-live":{"command":"/path/to/obs-studio/mcp","args":["--mcp-attach"]}}}Newline-delimited JSON-RPC 2.0 over stdio. No client needed.
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | ./mcp --mcpWhat it needs
Local only
stdio, or a unix socket with mode 0600. No network listener, no hosted endpoint.
Built from source
./mcp --build needs uv, soldr and the native libobs build dependencies. On NixOS the launcher enters ci/mcp-shell.nix itself. No release package includes the server yet.
Linux first
The launcher builds EGL/Wayland OpenGL, linux-v4l2, obs-ffmpeg and obs-x264. The socket transport is unix-only, and Windows named pipes are tracked in #4455. macOS is untested.
A display for video
Video and screenshots need a Wayland compositor or X server; headless Weston works. Control-only use runs with neither. In upstream's words: "A successful tools/list response alone does not prove video or device readiness."
Configured outputs
Record and stream tools use the outputs and service you have configured. No tool configures them yet.
Annotations are advice
Hints describe intent, and your client still enforces policy. Use the allowlist above for read-only agents.
Sources: mcp.md · control-api.md
How an agent uses it
Each call's arguments and result are checked against the real input, output and error schemas at build time; values are illustrative. Each session is also published as .jsonl.
Switch scenes, wait for the camera to go live, then record. Writes only after it has looked. .jsonl
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"agent","version":"1"}}}{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","serverInfo":{"name":"obs-mcp","version":"0.1.0"},"capabilities":{"tools":{},"resources":{}}}}{"jsonrpc":"2.0","method":"notifications/initialized"}{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"scene_set_current","arguments":{"name":"Interview"}}}{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\"name\":\"Interview\"}"}],"structuredContent":{"name":"Interview"},"isError":false}}{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"wait_for","arguments":{"condition":{"type":"source_active","name":"Camera"},"timeout_ms":10000}}}{"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"{\"satisfied\":true,\"elapsed_ms\":180,\"last_value\":{\"kind\":\"source\",\"present\":true,\"active\":true}}"}],"structuredContent":{"satisfied":true,"elapsed_ms":180,"last_value":{"kind":"source","present":true,"active":true}},"isError":false}}{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"record_start","arguments":{"wait":true,"timeout_ms":5000}}}{"jsonrpc":"2.0","id":4,"result":{"content":[{"type":"text","text":"{\"active\":true}"}],"structuredContent":{"active":true},"isError":false}}Three read-only calls, all allowed by the read-only allowlist. The agent also says what the server cannot tell it. .jsonl
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"stream_status","arguments":{}}}{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\"active\":true,\"duration_ms\":1804000,\"bytes\":1352000000}"}],"structuredContent":{"active":true,"duration_ms":1804000,"bytes":1352000000},"isError":false}}{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"wait_for","arguments":{"condition":{"type":"stat_at_most","metric":"render_frames_dropped","value":10},"timeout_ms":0}}}{"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"{\"satisfied\":true,\"elapsed_ms\":0,\"last_value\":{\"kind\":\"stat\",\"metric\":\"render_frames_dropped\",\"value\":3}}"}],"structuredContent":{"satisfied":true,"elapsed_ms":0,"last_value":{"kind":"stat","metric":"render_frames_dropped","value":3}},"isError":false}}This shows the output is active, bytes are moving (compare bytes across two calls) and the renderer keeps up. It does not show network drops, bitrate or reconnects: the server has no such field today, so an agent should not claim them.
The unhappy branches. A typed ToolError gives the agent a code, a category and whether retrying makes sense. .jsonl
{"jsonrpc":"2.0","id":5,"method":"tools/call","params":{"name":"wait_for","arguments":{"condition":{"type":"source_active","name":"Camera"},"timeout_ms":3000}}}{"jsonrpc":"2.0","id":5,"result":{"content":[{"type":"text","text":"{\"satisfied\":false,\"elapsed_ms\":3000,\"last_value\":{\"kind\":\"source\",\"present\":true,\"active\":false}}"}],"structuredContent":{"satisfied":false,"elapsed_ms":3000,"last_value":{"kind":"source","present":true,"active":false}},"isError":false}}{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"record_start","arguments":{"wait":true,"timeout_ms":1000}}}{"jsonrpc":"2.0","id":6,"result":{"content":[{"type":"text","text":"{\"code\":207,\"category\":\"not_ready\",\"message\":\"output start timed out\",\"retryable\":true}"}],"structuredContent":{"code":207,"category":"not_ready","message":"output start timed out","retryable":true},"isError":true}}The error object is ToolError from control-api.schema.json. Codes use the obs-websocket v5 status ranges.
30 tools
See
Read the state of OBS without changing anything.
scenes_listread-onlyList the names of all scenes, in order.
List the names of all scenes, in order.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
scenesrequired | array<string> | Scene names in display order. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scenes_list","arguments":{}}}scene_get_currentread-onlyGet the name of the current program scene, or null if none.
Get the name of the current program scene, or null if none.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
name | string | null | Null when there is no program scene. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_get_current","arguments":{}}}sources_listread-onlyList all sources with their names and kind ids.
List all sources with their names and kind ids.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
sourcesrequired | array<object> | Sources in stable order. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sources_list","arguments":{}}}scene_items_listread-onlyList the items of a scene (bottom to top) with their id, source name, visibility, position, scale and rotation.
List the items of a scene (bottom to top) with their id, source name, visibility, position, scale and rotation.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
scenerequired | string | Scene name. |
Returns
itemsrequired | array<object> | Items bottom to top. |
scenerequired | string | Scene name. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_items_list","arguments":{"scene":"Scene"}}}screenshotread-onlyCapture a PNG screenshot of a source, or of the program output when no source is named.
Capture a PNG screenshot of a source, or of the program output when no source is named. Returns the image plus a text item {width, height, source} (source is null for the program output). The PNG has an alpha channel (RGBA): pixels nothing was drawn on, such as an empty scene, are fully transparent, which a viewer may show as white. A source only appears in the program output once it is an item of the program scene.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
height | integer | null | Height in pixels. |
source | string | null | Source to capture; omit for program output. |
width | integer | null | Width in pixels. |
Returns
datarequired | string | PNG bytes encoded in base64. |
heightrequired | integer | Height in pixels. |
source | string | null | Source name, or null for program output. |
widthrequired | integer | Width in pixels. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"screenshot","arguments":{}}}pipeline_dumpread-onlyUpstream description is a placeholder.
Upstream description is a placeholder ("pipeline dump: control and inspect OBS directly."). Empty arguments, with unknown fields rejected. Graph snapshot useful for diagnosing missing sources and outputs.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
program | string | null | Program source name. |
sourcesrequired | array<string> | Source names in stable order. |
statsrequired | object | Current pipeline measurements. |
vcamrequired | object | Virtual output state. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pipeline_dump","arguments":{}}}Compose
Build and change scenes, sources and their layout.
scene_createchanges stateCreate a new empty scene with the given name.
Create a new empty scene with the given name. When there is no program scene yet, the new scene becomes the current program scene.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
namerequired | string | Scene name. |
Returns
name | string | null | Null when there is no program scene. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_create","arguments":{"name":"Scene"}}}scene_removechanges stateRemove the scene with the given name.
Remove the scene with the given name.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
namerequired | string | Scene name. |
Returns
name | string | null | Null when there is no program scene. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_remove","arguments":{"name":"Scene"}}}scene_set_currentidempotentMake the named scene the current program scene.
Make the named scene the current program scene.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
namerequired | string | Scene name. |
Returns
name | string | null | Null when there is no program scene. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_set_current","arguments":{"name":"Scene"}}}source_createchanges stateCreate a source of the given kind with a name and settings.
Create a source of the given kind with a name and settings. Give `scene` (and optionally `position`) to also add it to that scene as an item.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
kindrequired | string | Source kind id. |
namerequired | string | Unique name. |
position | object | null | Initial position (requires scene). |
scene | string | null | Scene receiving the source. |
settingsrequired | object | Kind-specific settings. |
Returns
item | integer | null | Created item id. |
kindrequired | string | Source kind. |
namerequired | string | Source name. |
scene | string | null | Scene receiving the new item. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"source_create","arguments":{"kind":"Scene","name":"Scene","settings":{}}}}source_removechanges stateRemove a source and its references from scenes.
Remove a source and its references from scenes.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
namerequired | string |
Returns
namerequired | string | Source name. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"source_remove","arguments":{"name":"Scene"}}}source_set_settingschanges stateMerge settings into an existing source's settings.
Merge settings into an existing source's settings.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
namerequired | string | Source name. |
settingsrequired | object | Kind-specific settings to merge. |
Returns
namerequired | string | Source name. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"source_set_settings","arguments":{"name":"Scene","settings":{}}}}scene_item_addchanges stateAdd an existing source to a scene as a scene item, optionally at a position.
Add an existing source to a scene as a scene item, optionally at a position. A source only shows in the program output once it is an item of the program scene.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
position | object | null | Initial position. |
scenerequired | string | Scene name. |
sourcerequired | string | Source name. |
Returns
itemrequired | integer | Item id. |
positionrequired | object | Canvas position. |
rotationrequired | number | Rotation in degrees. |
scalerequired | object | Scale factors. |
scene | string | null | Present when an item was added. |
sourcerequired | string | Source name. |
visiblerequired | boolean | Visibility. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_item_add","arguments":{"scene":"Scene","source":"Scene"}}}scene_item_set_transformchanges stateSet the position, scale and/or rotation of a scene item, named by `item` (id from scene_items_list) or `source`.
Set the position, scale and/or rotation of a scene item, named by `item` (id from scene_items_list) or `source`.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
item | integer | null | Item id. |
position | object | null | New position. |
rotation | number | null | New rotation in degrees. |
scale | object | null | New scale. |
scenerequired | string | Scene name. |
source | string | null | Source name instead of item id. |
Returns
item | integer | null | Item id when selected by id. |
scenerequired | string | Scene name. |
source | string | null | Source name when selected by name. |
visible | boolean | null | Present for visibility changes. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_item_set_transform","arguments":{"scene":"Scene"}}}scene_item_set_visibleidempotentShow or hide a scene item, named by `item` (id from scene_items_list) or `source`.
Show or hide a scene item, named by `item` (id from scene_items_list) or `source`.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
item | integer | null | Item id. |
scenerequired | string | Scene name. |
source | string | null | Source name instead of item id. |
visiblerequired | boolean | New visibility. |
Returns
item | integer | null | Item id when selected by id. |
scenerequired | string | Scene name. |
source | string | null | Source name when selected by name. |
visible | boolean | null | Present for visibility changes. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scene_item_set_visible","arguments":{"scene":"Scene","visible":true}}}Go live
Recording, streaming, the virtual camera and the virtual mic.
record_startidempotentStart recording.
Start recording.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
timeout_msdefault 5000 | integer | Bounded wait deadline. |
waitdefault false | boolean | Wait for the output to report active. |
Returns
activerequired | boolean | Whether the output is running. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"record_start","arguments":{}}}record_stopidempotentStop recording.
Stop recording.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
No arguments.
Returns
activerequired | boolean | Whether the output is running. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"record_stop","arguments":{}}}record_statusread-onlyReport whether recording is active, with duration_ms and bytes where known.
Report whether recording is active, with duration_ms and bytes where known.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
activerequired | boolean | Whether the output is running. |
bytes | integer | null | Bytes written or sent so far, where known. |
duration_ms | integer | null | Milliseconds since the output started, where known. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"record_status","arguments":{}}}stream_startidempotentStart streaming.
Start streaming.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
timeout_msdefault 5000 | integer | Bounded wait deadline. |
waitdefault false | boolean | Wait for the output to report active. |
Returns
activerequired | boolean | Whether the output is running. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stream_start","arguments":{}}}stream_stopidempotentStop streaming.
Stop streaming.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
No arguments.
Returns
activerequired | boolean | Whether the output is running. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stream_stop","arguments":{}}}stream_statusread-onlyReport whether streaming is active, with duration_ms and bytes where known.
Report whether streaming is active, with duration_ms and bytes where known.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
activerequired | boolean | Whether the output is running. |
bytes | integer | null | Bytes written or sent so far, where known. |
duration_ms | integer | null | Milliseconds since the output started, where known. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stream_status","arguments":{}}}vcam_startidempotentUpstream description is a placeholder.
Upstream description is a placeholder ("vcam start: control and inspect OBS directly."). Bounded start options, extended by the wait domain. Virtual Camera and its paired audio source.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
audio_enableddefault true | boolean | Enable the paired microphone before a stopped output starts. |
audio_trackdefault 1 | integer | One-based OBS audio mix (1 through 6). |
timeout_msdefault 5000 | integer | Auto-wait deadline in milliseconds. |
waitdefault false | boolean | Wait until the output reports active. |
Returns
activerequired | boolean | Video output is active. |
configuredrequired | boolean | Whether the registered output exists. |
vmic_active | boolean | null | Paired virtual microphone is active, when the plugin supports the query. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vcam_start","arguments":{}}}vcam_stopidempotentUpstream description is a placeholder.
Upstream description is a placeholder ("vcam stop: control and inspect OBS directly."). Empty arguments, with unknown fields rejected. Virtual Camera and its paired audio source.
destructive=true · idempotent=true · openWorld=true · readOnly=false
Arguments
No arguments.
Returns
activerequired | boolean | Video output is active. |
configuredrequired | boolean | Whether the registered output exists. |
vmic_active | boolean | null | Paired virtual microphone is active, when the plugin supports the query. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vcam_stop","arguments":{}}}vcam_statusread-onlyUpstream description is a placeholder.
Upstream description is a placeholder ("vcam status: control and inspect OBS directly."). Empty arguments, with unknown fields rejected. Virtual Camera and its paired audio source.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
activerequired | boolean | Video output is active. |
configuredrequired | boolean | Whether the registered output exists. |
vmic_active | boolean | null | Paired virtual microphone is active, when the plugin supports the query. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vcam_status","arguments":{}}}vmic_statusread-onlyUpstream description is a placeholder.
Upstream description is a placeholder ("vmic status: control and inspect OBS directly."). Empty arguments, with unknown fields rejected. Virtual microphone state.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
active | boolean | null | Active according to virtualcam_audio; null means unsupported. |
source_name | string | null | Runtime source name, when known. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vmic_status","arguments":{}}}Media
Media sources.
media_statusread-onlyUpstream description is a placeholder.
Upstream description is a placeholder ("media status: control and inspect OBS directly."). A media source selection. Media playback snapshot, in milliseconds.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
namerequired | string | Name of an existing media source. |
Returns
duration_ms | integer | null | Total duration, if known. |
namerequired | string | Source name. |
position_ms | integer | null | Playback position, if known. |
staterequired | "none" | "playing" | "opening" | "buffering" | "paused" | "stopped" | "ended" | "error" | Current media state. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"media_status","arguments":{"name":"Scene"}}}media_restartchanges stateUpstream description is a placeholder.
Upstream description is a placeholder ("media restart: control and inspect OBS directly."). A media source selection. Media playback snapshot, in milliseconds.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
namerequired | string | Name of an existing media source. |
Returns
duration_ms | integer | null | Total duration, if known. |
namerequired | string | Source name. |
position_ms | integer | null | Playback position, if known. |
staterequired | "none" | "playing" | "opening" | "buffering" | "paused" | "stopped" | "ended" | "error" | Current media state. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"media_restart","arguments":{"name":"Scene"}}}Measure
Performance counters.
stats_getread-onlyUpstream description is a placeholder.
Upstream description is a placeholder ("stats get: control and inspect OBS directly."). Empty arguments, with unknown fields rejected. Typed pipeline statistics.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
No arguments.
Returns
end_to_endrequired | object | End-to-end sync, with explicit provenance. |
renderrequired | object | Render counters. |
stagesrequired | object | Per-stage measured counters and bounds. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stats_get","arguments":{}}}stats_resetchanges stateUpstream description is a placeholder.
Upstream description is a placeholder ("stats reset: control and inspect OBS directly."). Empty arguments, with unknown fields rejected. Typed pipeline statistics.
destructive=true · idempotent=false · openWorld=true · readOnly=false
Arguments
No arguments.
Returns
end_to_endrequired | object | End-to-end sync, with explicit provenance. |
renderrequired | object | Render counters. |
stagesrequired | object | Per-stage measured counters and bounds. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"stats_reset","arguments":{}}}Wait
Block until a typed condition holds, without sleeping.
wait_forread-onlyObserve a typed condition immediately, then wait within timeout_ms.
Observe a typed condition immediately, then wait within timeout_ms. Returns the final typed value on timeout; unavailable metrics never satisfy a threshold.
destructive=false · idempotent=true · openWorld=false · readOnly=true
Arguments
conditionrequired | output_state | source_active | media_state | stat_at_most | Condition to observe before waiting. |
timeout_msdefault 5000 | integer | Deadline in milliseconds; zero still observes once. |
Returns
elapsed_msrequired | integer | Monotonic elapsed time. |
last_valuerequired | object | object | object | object | Last observed value, including on timeout. |
satisfiedrequired | boolean | Condition met before the deadline. |
Call it
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"wait_for","arguments":{"condition":{"type":"Scene","output":"record","state":"active"}}}}Resources
Read state without a tool call: resources/list, then resources/read.
OBS performance: fps, cpu_usage (percent) and dropped_frames.
Machine-readable
| /mcp/schema.json | Everything: server info, tools (a pre-fetched tools/list), resources and the ToolError schema · 68 KB |
| /mcp/tools.json | Exactly the tools/list result shape |
| /mcp/resources.json | Exactly the resources/list result shape |
| /mcp/tools/<name>.json | One tool, for a cheap fetch |
| /mcp/index.md | This page as markdown, also in llms.txt and the AI corpus |
| /mcp/server.json | MCP registry manifest (2025-12-11 schema, validated at build). Not yet submitted: the registry needs an installable package, and the server is built from source today. |
| /mcp/mcp.json | The repository's .mcp.json, verbatim |