mcp-obs-studio-tools

v0.1.9
mcp-obs-studio-tools Checked 4 days ago Published 5 days ago

OBS Studio MCP server for recording, scenes and audio

Control OBS Studio through an MCP agent: inspect status, launch OBS, record, capture the active scene, switch scenes and inspect audio routing. Discover additional operations through a searchable catalog generated from the official OBS WebSocket protocol. Available on npm, with source and releases on GitHub. Requires Node.js 24.12+ with npm and OBS Studio 28+ with its WebSocket server enabled under Tools > WebSocket Server Settings.

Summary extracted from the README.

OBS Studio MCP Tools

Control OBS Studio through an MCP agent: inspect status, launch OBS, record, capture the active scene, switch scenes and inspect audio routing. Discover additional operations through a searchable catalog generated from the official OBS WebSocket protocol.

Available on npm, with source and releases on GitHub.

Requires Node.js 24.12+ with npm and OBS Studio 28+ with its WebSocket server enabled under Tools > WebSocket Server Settings.

MCP setup

npx -y --prefer-online mcp-obs-studio-tools@latest
{
  "mcpServers": {
    "obs": {
      "command": "npx",
      "args": ["-y", "--prefer-online", "mcp-obs-studio-tools@latest"],
      "env": {
        "OBS_ENV_FILE": "/absolute/path/obs.env"
      }
    }
  }
}

Set the client's startup and tool timeouts to 180 seconds. On Windows, clients requiring an executable extension can use npx.cmd.

Copy .env.example to your selected configuration file and enter the WebSocket settings. Alternatively, append --env-file /absolute/path/obs.env to the command. The aliases -env_file and --env_file are supported.

Tools

Tool Purpose
obs_status OBS process/executable, connection, version, active scene, recording, streaming and last recording within 12 hours.
obs_auth Save supplied address, port and password, then return status. Omitted values use configuration.
obs_launch Launch OBS using a detected executable or an explicit path.
obs_record_start Start recording.
obs_record_stop Stop recording and return the file path and completion date.
obs_screenshot Return a PNG of the active program scene. Default width: 1280 px.
obs_scenes Scene names/UUIDs, active scene and directly enabled elements.
obs_scene_set Switch the live program scene by exact name.
obs_audio Global and scene audio sources, mute, volume, monitoring and track assignments.
obs_commands Full command-name index, English search and detailed argument help.
obs_execute Execute catalog commands individually or in serial sequences.

Typical agent workflow:

obs_status({})
obs_auth({ address: "127.0.0.1", port: 4455 })
obs_scenes({})
obs_scene_set({ name: "Camera" })
obs_record_start({})
obs_record_stop({})

Start with status. Use obs_launch when the local application needs starting and obs_auth to configure access. Connection errors return an errorCode and actionable userAction.

For additional operations, search, inspect arguments, retrieve required names/IDs from OBS, then execute:

obs_commands({ query: "volume" })
obs_commands({ name: "SetInputVolume" })
obs_execute({ requests: [{
  requestType: "SetInputVolume",
  requestData: { inputName: "Microphone", inputVolumeDb: -6 }
}] })

Sequences validate all commands before execution and stop on failure by default. Completed changes remain applied. Check status before retrying an interrupted operation.

Configuration

Variable Default / purpose
OBS_URL ws://127.0.0.1:4455
OBS_PASSWORD WebSocket password
OBS_ENV_FILE .env in the startup working directory
OBS_EXECUTABLE Detected or configured absolute OBS executable path
OBS_TIMEOUT_MS 15000, per OBS operation
OBS_STATE_DIR Recording history; defaults to the system temporary directory under obs-mcp

Connection precedence: current obs_auth arguments, process environment, selected env file, built-in defaults. Supplied connection settings are saved to the selected file. Workers reload it for subsequent calls. Executable discovery checks running OBS processes, OBS_EXECUTABLE, standard installation folders and PATH, then saves the verified path.

Outputs include JSON status/results, PNG screenshots and recording file paths. Recent recording dates use ISO 8601 UTC: observed stops are marked completedAt; local recording-directory discovery uses modifiedAt. Audio track assignments describe source routing; recording settings select the output tracks. Enabled scene items describe visibility settings, while audio activity and media playback have their own states.

Updates

Each new npx launch resolves the published latest version. Restart the MCP server through your client to load an update. OBS continues running independently.

License

GPL-2.0-only. The bundled command catalog comes from obsproject/obs-websocket; its source revision and license are included in data/. OBS communication uses obs-websocket-js.