Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OBS_STUDIO_PATHNoPath to the OBS executable, for obs_launch.auto-detected
OBS_WEBSOCKET_URLNoFull WebSocket URL. Overrides host and port.ws://127.0.0.1:4455
OBS_WEBSOCKET_HOSTNoHost running OBS.127.0.0.1
OBS_WEBSOCKET_PORTNoWebSocket server port.from OBS, else 4455
OBS_MCP_READY_WAIT_MSNoHow long to keep retrying while OBS reports it is not ready.20000
OBS_WEBSOCKET_PASSWORDNoWebSocket server password.from OBS
OBS_MCP_READ_OBS_CONFIGNoRead port and password from OBS's own settings file.true
OBS_MCP_ENABLE_STREAMINGNoAdd the tools that start and stop a live stream.false
OBS_MCP_CONNECT_TIMEOUT_MSNoTimeout for connecting to OBS.5000
OBS_MCP_REQUEST_TIMEOUT_MSNoTimeout for each request to OBS.10000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls a running OBS Studio through its built-in WebSocket server.

  • Start with obs_get_status. If OBS is not running, call obs_launch.

  • Record with obs_start_recording and obs_stop_recording; the stop result gives the finished file's path once it is safe to read.

  • Names (scenes, inputs, filters) must match exactly; list them first.

  • After an error whose outcome is unclear, call obs_get_status before repeating an action.

  • Tools that delete something (obs_remove_*) are for explicit user requests only.

  • Streaming tools are disabled in this configuration.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
obs_get_statusA

Report whether OBS Studio is reachable and what it is doing right now: versions, recording, streaming, replay buffer and virtual camera state, current scene, profile and scene collection.

Call this first in a session, and after any error whose outcome is unclear. It never fails when OBS is unreachable; it returns connected=false with the reason and the fix.

obs_launchA

Start OBS Studio on this machine if it is not already running, then wait until its WebSocket server answers.

Use when obs_get_status reports that OBS is not running. Does nothing if OBS is already reachable. If the WebSocket server is switched off in OBS, OBS still opens but the result says it is unreachable and how to enable the server.

obs_get_statsA

Report OBS performance: CPU and memory use, frame rate, rendered and encoded frames skipped, and free disk space. Check this during a long recording to catch dropped frames or a filling disk early.

obs_preflight_checkA

Check that a recording started now would be usable: free disk space in the recording folder, a container format that survives a crash, a current scene with visible sources, at least one unmuted audio input, and system load.

Returns each check as pass, warn or fail. obs_start_recording runs this automatically; call it on its own to see problems without starting anything.

obs_list_hotkeysA

List the names of every hotkey action OBS knows. Use obs_trigger_hotkey with one of these names. Filter with contains to keep the list short.

obs_trigger_hotkeyA

Trigger an OBS hotkey action by name, as if its key had been pressed. Get valid names from obs_list_hotkeys. Prefer a dedicated tool (recording, replay, scenes) when one exists, because those confirm the result.

obs_get_record_statusA

Report whether OBS is recording, whether it is paused, the elapsed timecode and the bytes written so far.

obs_start_recordingA

Start recording in OBS and confirm that it really started.

Runs the preflight check first (disk space, crash-safe format, visible sources, unmuted audio) and refuses to start if a check fails, so a useless recording is not made. If OBS is already recording, returns the current state without error. Returns the output file path once OBS reports it.

obs_stop_recordingA

Stop the current recording and return the finished file.

Waits until OBS reports that the output has stopped and the file has stopped growing, so the returned path is safe to read, copy or edit. Returns output_path, size and duration. If OBS is not recording, returns that fact without error.

obs_pause_recordingA

Pause the current recording. Does nothing if it is already paused. Fails with a clear message if OBS is not recording.

obs_resume_recordingA

Resume a paused recording. Does nothing if the recording is already running. Fails with a clear message if OBS is not recording.

obs_split_record_fileA

Close the current recording file and continue in a new one without losing frames. Needs file splitting set to manual in OBS Settings, Output, Recording. Fails if OBS is not recording.

obs_create_record_chapterA

Add a chapter marker at the current position of the recording, to find a moment again when editing. Works only when recording to Hybrid MP4 or Hybrid MOV. Fails if OBS is not recording.

obs_get_record_directoryA

Return the folder OBS writes recordings to.

obs_set_record_directoryA

Change the folder OBS writes recordings to. The folder must already exist on the machine running OBS. Takes effect for the next recording, not one in progress.

obs_get_replay_buffer_statusA

Report whether the replay buffer is running. Fails with a hint if the replay buffer is disabled in OBS Settings, Output.

obs_start_replay_bufferA

Start the replay buffer, which keeps the last N seconds in memory so obs_save_replay can save a clip of something that already happened. Does nothing if it is already running. The buffer must be enabled in OBS Settings, Output, Replay Buffer.

obs_stop_replay_bufferA

Stop the replay buffer and discard what it holds. Does nothing if it is not running. Save first with obs_save_replay if the last moments matter.

obs_save_replayA

Save the contents of the replay buffer to a file and return its path. Use to clip something that just happened.

The replay buffer must be running (obs_start_replay_buffer). Waits for OBS to report the saved file.

obs_set_virtual_cameraA

Turn the OBS virtual camera on or off. Does nothing if it is already in the requested state.

obs_get_stream_statusA

Report whether OBS is streaming live, for how long, and how many frames were dropped. Read-only; always available.

obs_list_scenesA

List every scene in the current scene collection, top of the OBS list first, and say which is the program (live) scene and, in studio mode, the preview scene.

obs_set_current_sceneA

Switch to a scene. By default this changes the program scene, which is what gets recorded and streamed. With target='preview' it changes the studio-mode preview instead (studio mode must be on).

obs_create_sceneA

Create a new, empty scene. Fails if a scene with that name exists. Add sources to it with obs_create_input.

obs_rename_sceneA

Rename a scene. Fails if the new name is already taken.

obs_remove_sceneA

Permanently delete a scene and its layout. This cannot be undone. Call only when the user explicitly asked to delete that scene. Refuses to delete the current program scene; switch away first.

obs_list_scene_itemsA

List the sources placed in a scene, top layer first, with each item's id, source name, kind, visibility, lock state, position and size. Use the ids with obs_set_scene_item_enabled and obs_set_scene_item_transform.

obs_set_scene_item_enabledA

Show or hide one source in one scene (the eye icon in OBS). Identify the item by scene_item_id or source_name.

obs_set_scene_item_transformA

Change the position, scale, rotation or crop of one source in one scene. Only the fields given are changed. Positions and crops are in canvas pixels (see obs_get_video_settings for the canvas size). Returns the resulting transform.

obs_remove_scene_itemA

Remove one source from one scene. The source itself still exists if other scenes use it. To hide it temporarily, use obs_set_scene_item_enabled instead. Call only when the user asked to remove it.

obs_list_transitionsA

List the available scene transitions and report the current one and its duration.

obs_set_current_transitionA

Choose the transition used when switching scenes, its duration, or both. Give at least one of transition_name and duration_ms.

obs_set_studio_modeA

Turn studio mode on or off. In studio mode a preview scene can be prepared and then pushed to program with obs_trigger_studio_transition.

obs_trigger_studio_transitionA

In studio mode, push the preview scene to program using the current transition. Fails with a hint if studio mode is off.

obs_list_inputsA

List the inputs (sources) in the current scene collection with their kind, e.g. game capture, display capture, webcam, microphone, image, text, browser. Filter by kind to narrow the list. For audio levels and mute state use obs_list_audio_inputs.

obs_list_input_kindsA

List the kinds of input this OBS installation can create, e.g. 'game_capture', 'monitor_capture', 'image_source'. Use one as input_kind in obs_create_input.

obs_list_audio_inputsA

List every input that carries audio, with its mute state and volume. Use before recording to confirm the microphone and game audio are live.

obs_set_input_muteA

Mute or unmute one audio input. Fails with a hint if the input has no audio.

obs_set_input_volumeA

Set the volume of one audio input, in decibels or as a percentage. Give exactly one of volume_db and volume_percent. 0 dB and 100% both mean unchanged level.

obs_get_input_settingsA

Return the settings of one input, e.g. the file of an image source, the text of a text source, the URL of a browser source, the window of a capture. Read these before changing them with obs_set_input_settings.

obs_set_input_settingsA

Change settings of one input, e.g. the text shown by a text source or the file of an image source. By default the given keys are merged into the existing settings; with overlay=false the settings are replaced, and unlisted keys reset to defaults.

obs_create_inputA

Create a new input and place it in a scene. Get valid kinds from obs_list_input_kinds. Fails if an input with that name exists. Example: kind 'image_source' with settings {"file": "C:/overlays/logo.png"}.

obs_remove_inputA

Permanently delete an input from every scene that uses it. This cannot be undone. Call only when the user explicitly asked to delete that source. To take it out of one scene, use obs_remove_scene_item; to hide it, obs_set_scene_item_enabled.

obs_list_source_filtersA

List the filters on an input or scene (e.g. noise suppression, colour correction, chroma key) with their kind, enabled state and settings.

obs_set_source_filter_enabledC

Turn one filter on a source on or off.

obs_set_source_filter_settingsB

Change the settings of one filter on a source. By default the given keys are merged into the existing settings.

obs_create_source_filterA

Add a filter to an input or scene. Example kinds: 'noise_suppress_filter_v2', 'gain_filter', 'compressor_filter', 'color_filter_v2', 'chroma_key_filter_v2', 'crop_filter'. Fails if a filter with that name exists on the source.

obs_remove_source_filterA

Permanently delete one filter from a source. To switch it off temporarily, use obs_set_source_filter_enabled instead. Call only when the user asked to remove it.

obs_get_media_statusA

Report the playback state, position and length of a media input (a video or audio file source).

obs_control_mediaA

Play, pause, restart, stop or skip in a media input, or seek to a position. Give action, or seek_to_ms, or both (the seek is applied first).

obs_list_profilesA

List OBS profiles (sets of output, encoder and video settings) and say which is current.

obs_set_current_profileA

Switch to another OBS profile, changing output, encoder and video settings together. Refused while recording or streaming.

obs_list_scene_collectionsA

List OBS scene collections (sets of scenes and sources) and say which is current.

obs_set_current_scene_collectionA

Switch to another scene collection, replacing every scene and source on screen. Refused while recording or streaming. OBS is briefly unavailable while it loads.

obs_get_video_settingsA

Return the canvas (base) resolution, the output (scaled) resolution and the frame rate. Positions and crops in scene item transforms are in canvas pixels.

obs_set_video_settingsA

Change the canvas resolution, output resolution or frame rate. Only the fields given are changed; width and height must be given together. Refused while recording or streaming. Example for 1080p60: output_width 1920, output_height 1080, fps 60.

obs_get_profile_parameterA

Read one setting from the current profile's configuration, e.g. category 'Output' name 'Mode' (Simple or Advanced), category 'SimpleOutput' name 'RecFormat2' (recording container), 'RecQuality', 'RecEncoder', or category 'AdvOut' name 'RecFormat2', 'RecEncoder'.

obs_set_profile_parameterA

Change one setting in the current profile's configuration. Refused while recording or streaming. Example: make recordings crash-safe with category 'SimpleOutput' (or 'AdvOut' in Advanced output mode), name 'RecFormat2', value 'mkv' or 'hybrid_mp4'. A wrong value can break recording, so read the current value first with obs_get_profile_parameter.

obs_take_screenshotA

Capture what a scene or source looks like right now.

Without save_path the image is returned so it can be looked at directly, e.g. to check that the game capture is not black before recording. With save_path OBS writes the image to that file and the path is returned. Defaults to the current program scene.

obs_call_requestA

Send any obs-websocket v5 request by name, for operations no dedicated tool covers, e.g. 'GetSceneItemBlendMode', 'SetInputAudioBalance', 'SetInputAudioMonitorType', 'DuplicateSceneItem', 'CreateProfile', 'OpenInputPropertiesDialog', 'SetTBarPosition'.

Prefer a dedicated obs_* tool when one exists: those validate input, confirm results and explain failures. Request names and fields are in the obs-websocket protocol reference. Requests that start or configure a live stream are blocked unless streaming is enabled.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 60 tools

Disambiguation4/5

Despite the large surface, most tools target distinct resource+action pairs (recording, replay buffer, scenes, scene items, inputs, filters, profiles, collections, transitions), and descriptions explicitly cross-reference the right alternative (e.g. remove_input vs remove_scene_item vs set_scene_item_enabled). A few clusters are close enough to misselect: obs_get_status / obs_get_stats / obs_get_record_status / obs_get_stream_status, obs_preflight_check vs the internal preflight in obs_start_recording, and 'source' vs 'input' terminology used for the same objects.

Naming Consistency4/5

Nearly everything follows obs_verb_noun (obs_list_scenes, obs_create_input, obs_set_scene_item_enabled) with a uniform obs_ prefix. Minor deviations: the generic obs_call_request, bare obs_launch, and mixed vocabulary between 'source' (obs_*_source_filter) and 'input' (obs_*_input) for the same underlying objects.

Tool Count2/5

60 tools is far past the point where an agent can hold the surface in mind, and several are near-duplicates in intent (status/stats/preflight/record-status). The presence of obs_call_request as a catch-all escape hatch shows that many narrow wrappers could have been folded into fewer, parameterised tools.

Completeness4/5

Coverage is broad for the domain: scene/source lifecycle, scene item transforms and visibility, filters, audio, recording with pause/split/chapters, replay buffer, profiles, collections, video settings, transitions and studio mode. Notable gaps are stream start/stop control (only obs_get_stream_status exists; the rest is blocked or punted to obs_call_request) and source duplication / scene item z-order, which require the raw request tool.

Maintenance

ActivityMaintained
ResponsivenessOutdated data