OBS Studio MCP Tools
# 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](https://www.npmjs.com/package/mcp-obs-studio-tools), with source and releases on [GitHub](https://github.com/kucharskill/mcp-obs-studio-tools).
Requires Node.js 24.12+ with npm and OBS Studio 28+ with its WebSocket server enabled under **Tools > WebSocket Server Settings**.
## MCP setup
```sh
npx -y --prefer-online mcp-obs-studio-tools@latest
```
```json
{
"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:
```js
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:
```js
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](https://github.com/obsproject/obs-websocket); its source revision and license are included in `data/`. OBS communication uses [obs-websocket-js](https://github.com/obs-websocket-community-projects/obs-websocket-js).
TDQS
Scored across 11 tools
Most tools target distinct operations, but the wrapper tools overlap heavily with the generic obs_execute catalog surface: obs_scenes duplicates GetSceneList, obs_scene_set duplicates SetCurrentProgramScene, obs_audio duplicates the input-audio getters, and obs_record_start/stop duplicate StartRecord/StopRecord. Additionally, obs_launch, obs_auth, and obs_status all touch connectivity, with obs_auth explicitly noted to return the same result as obs_status. Descriptions clarify the boundaries reasonably, but an agent still has to decide between wrapper and generic path.
All tools share the obs_ prefix and snake_case, which is good. However the internal pattern is inconsistent: verb-first action tools (obs_launch, obs_auth, obs_execute), noun-first with verb suffix (obs_record_start, obs_scene_set), and bare noun list tools (obs_scenes, obs_audio, obs_commands). There is also a plural/singular mismatch (obs_scenes lists all, obs_scene_set sets one).
Eleven tools sits squarely in the well-scoped range. The convenience wrappers for recording, scenes, audio, and screenshots are justified, and the obs_commands/obs_execute pair handles the remaining breadth without spawning hundreds of tools.
The generic obs_commands catalog plus obs_execute provides an escape hatch to the full 147-command OBS WebSocket surface, so most domain needs (streaming, sources, filters, transitions) are reachable. Minor gaps exist in the dedicated wrappers (no direct streaming or scene-rename helper), but agents can work around them via obs_execute.