Model Context Protocol · 2025-06-18

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

Handshake. The server speaks MCP 2025-06-18.
→{"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"}
Put the interview scene on program.
→{"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}}
Don't guess with a sleep: block until the camera source is actually active, for up to 10 s.
→{"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}}
The camera is live. Start recording and wait until the output is really active.
→{"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}}
One choice to make

Its own OBS, or yours

--mcp · stdio

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
--mcp-attach · acts on your live app

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
By annotation

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.

13

Read-only

Lists, status, screenshots, stats and waits. Safe to allow outright.

8

Idempotent writes

Start/stop outputs, switch scenes, toggle visibility. Repeating a call gives the same state.

9

Changes state

Create, remove and reconfigure scenes, sources and items. Put these behind a human.

Client configs

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 --mcp
Honest requirements

What 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

Example sessions

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

Handshake. The server speaks MCP 2025-06-18.
→{"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"}
Put the interview scene on program.
→{"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}}
Don't guess with a sleep: block until the camera source is actually active, for up to 10 s.
→{"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}}
The camera is live. Start recording and wait until the output is really active.
→{"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

Is the stream output running, and is it moving bytes?
→{"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}}
Has the renderer dropped frames? A zero timeout makes wait_for a one-shot check.
→{"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

Wait for the camera, but it never comes up.
→{"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}}
Not satisfied, so don't record. Report what was observed instead. Next, try the start anyway with a short timeout:
→{"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.

Tool reference · generated

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

scenesrequiredarray<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

namestring | nullNull 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

sourcesrequiredarray<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

scenerequiredstringScene name.

Returns

itemsrequiredarray<object>Items bottom to top.
scenerequiredstringScene 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

heightinteger | nullHeight in pixels.
sourcestring | nullSource to capture; omit for program output.
widthinteger | nullWidth in pixels.

Returns

datarequiredstringPNG bytes encoded in base64.
heightrequiredintegerHeight in pixels.
sourcestring | nullSource name, or null for program output.
widthrequiredintegerWidth 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

programstring | nullProgram source name.
sourcesrequiredarray<string>Source names in stable order.
statsrequiredobjectCurrent pipeline measurements.
vcamrequiredobjectVirtual 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

namerequiredstringScene name.

Returns

namestring | nullNull 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

namerequiredstringScene name.

Returns

namestring | nullNull 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

namerequiredstringScene name.

Returns

namestring | nullNull 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

kindrequiredstringSource kind id.
namerequiredstringUnique name.
positionobject | nullInitial position (requires scene).
scenestring | nullScene receiving the source.
settingsrequiredobjectKind-specific settings.

Returns

iteminteger | nullCreated item id.
kindrequiredstringSource kind.
namerequiredstringSource name.
scenestring | nullScene 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

namerequiredstring

Returns

namerequiredstringSource 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

namerequiredstringSource name.
settingsrequiredobjectKind-specific settings to merge.

Returns

namerequiredstringSource 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

positionobject | nullInitial position.
scenerequiredstringScene name.
sourcerequiredstringSource name.

Returns

itemrequiredintegerItem id.
positionrequiredobjectCanvas position.
rotationrequirednumberRotation in degrees.
scalerequiredobjectScale factors.
scenestring | nullPresent when an item was added.
sourcerequiredstringSource name.
visiblerequiredbooleanVisibility.
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

iteminteger | nullItem id.
positionobject | nullNew position.
rotationnumber | nullNew rotation in degrees.
scaleobject | nullNew scale.
scenerequiredstringScene name.
sourcestring | nullSource name instead of item id.

Returns

iteminteger | nullItem id when selected by id.
scenerequiredstringScene name.
sourcestring | nullSource name when selected by name.
visibleboolean | nullPresent 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

iteminteger | nullItem id.
scenerequiredstringScene name.
sourcestring | nullSource name instead of item id.
visiblerequiredbooleanNew visibility.

Returns

iteminteger | nullItem id when selected by id.
scenerequiredstringScene name.
sourcestring | nullSource name when selected by name.
visibleboolean | nullPresent 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 5000integerBounded wait deadline.
waitdefault falsebooleanWait for the output to report active.

Returns

activerequiredbooleanWhether 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

activerequiredbooleanWhether 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

activerequiredbooleanWhether the output is running.
bytesinteger | nullBytes written or sent so far, where known.
duration_msinteger | nullMilliseconds 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 5000integerBounded wait deadline.
waitdefault falsebooleanWait for the output to report active.

Returns

activerequiredbooleanWhether 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

activerequiredbooleanWhether 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

activerequiredbooleanWhether the output is running.
bytesinteger | nullBytes written or sent so far, where known.
duration_msinteger | nullMilliseconds 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 truebooleanEnable the paired microphone before a stopped output starts.
audio_trackdefault 1integerOne-based OBS audio mix (1 through 6).
timeout_msdefault 5000integerAuto-wait deadline in milliseconds.
waitdefault falsebooleanWait until the output reports active.

Returns

activerequiredbooleanVideo output is active.
configuredrequiredbooleanWhether the registered output exists.
vmic_activeboolean | nullPaired 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

activerequiredbooleanVideo output is active.
configuredrequiredbooleanWhether the registered output exists.
vmic_activeboolean | nullPaired 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

activerequiredbooleanVideo output is active.
configuredrequiredbooleanWhether the registered output exists.
vmic_activeboolean | nullPaired 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

activeboolean | nullActive according to virtualcam_audio; null means unsupported.
source_namestring | nullRuntime 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

namerequiredstringName of an existing media source.

Returns

duration_msinteger | nullTotal duration, if known.
namerequiredstringSource name.
position_msinteger | nullPlayback 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

namerequiredstringName of an existing media source.

Returns

duration_msinteger | nullTotal duration, if known.
namerequiredstringSource name.
position_msinteger | nullPlayback 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_endrequiredobjectEnd-to-end sync, with explicit provenance.
renderrequiredobjectRender counters.
stagesrequiredobjectPer-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_endrequiredobjectEnd-to-end sync, with explicit provenance.
renderrequiredobjectRender counters.
stagesrequiredobjectPer-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

conditionrequiredoutput_state | source_active | media_state | stat_at_mostCondition to observe before waiting.
timeout_msdefault 5000integerDeadline in milliseconds; zero still observes once.

Returns

elapsed_msrequiredintegerMonotonic elapsed time.
last_valuerequiredobject | object | object | objectLast observed value, including on timeout.
satisfiedrequiredbooleanCondition 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://scenesapplication/json

The scene graph: the current program scene, every scene and every source.

obs://statsapplication/json

OBS performance: fps, cpu_usage (percent) and dropped_frames.

Machine-readable

/mcp/schema.jsonEverything: server info, tools (a pre-fetched tools/list), resources and the ToolError schema · 68 KB
/mcp/tools.jsonExactly the tools/list result shape
/mcp/resources.jsonExactly the resources/list result shape
/mcp/tools/<name>.jsonOne tool, for a cheap fetch
/mcp/index.mdThis page as markdown, also in llms.txt and the AI corpus
/mcp/server.jsonMCP 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.jsonThe repository's .mcp.json, verbatim