Skip to main content

MCP server for AI-driven OBS Studio control via obs-websocket v5 — scenes, sources, filters, audio mixer, streaming, recording, and studio mode.

Project description

OBS-MCP

AI-powered stream and recording control for OBS Studio through the Model Context Protocol

Python 3.10+ License MCP Compatible v0.2.0 pytest OBS Studio 28+

Quick StartFeaturesTools ReferenceArchitectureTroubleshooting


OBS-MCP connects any MCP-compatible AI assistant to OBS Studio, giving it full control over your stream and recordings through 148 tools covering the entire obs-websocket v5 protocol — scenes, sources, scene items, inputs and the full audio mixer, filters, transitions, streaming, recording, virtual camera, replay buffer, media playback, studio mode, and objective output stats. On top of raw control, it ships pipeline tools that do the actual job in one call instead of making the AI hand-assemble a filter chain — clean_audio_input builds a verified Noise Gate → Noise Suppression → Compressor chain instead of guessing at OBS's internal filter parameter names, and diagnose_av_health tells you why your frames are dropping instead of handing back raw numbers.

OBS-MCP itself runs entirely on your machine. It's a local WebSocket client that talks directly to OBS Studio's built-in obs-websocket server — your stream, recordings, and scene setup never leave your computer. The AI "brain" lives wherever you already run it: Claude Desktop / Claude Code / Cursor / any MCP client. You bring the AI, OBS-MCP handles OBS.

If this is useful to you, a star helps other people find it — that's the whole marketing budget for this project.

Works With

OBS-MCP works with any AI client that supports the Model Context Protocol:


New here? What this actually is

If you've never used Claude Desktop or heard of "MCP" before, here's the whole idea in plain terms:

  • Claude Desktop is Anthropic's free AI chat app (like ChatGPT, but made by Anthropic) — you download it, sign in, and type messages to it like a chatbot.
  • MCP (Model Context Protocol) is a plug-in system that lets that chat app actually do things on your computer, not just talk. Without MCP, Claude can only give you instructions ("go to Tools menu, click..."). With MCP, Claude can just do it directly.
  • OBS-MCP is the plug-in for OBS Studio specifically. Once it's installed, you can type things like "clean up my mic" or "switch to my starting soon scene" into Claude, and it actually happens in OBS — no clicking through menus yourself.

You don't need to know any code to use this. The installer below handles everything except two things only you can do: telling OBS to allow the connection, and telling your AI app to use this plug-in. Both are explained step by step.


Quick Start

1. Get OBS-MCP

Option A: Click the green Code button above → Download ZIP → extract it to a folder somewhere easy to find (like your Desktop) — works with nothing pre-installed, easiest on a brand new machine.

Option B: Clone with git (lets you git pull for updates later):

A fresh Windows install doesn't ship with git — check first:

git --version

If that says "not recognized", install it, then close and reopen your terminal:

winget install --id Git.Git -e --source winget

(winget itself ships with Windows 11 and up-to-date Windows 10. If winget isn't found either, grab the installer directly from git-scm.com.)

macOS/Linux almost always have git already — git --version to check, or brew install git / sudo apt install git if not.

git clone https://github.com/xDarkzx/OBS_MCP.git

2. Run the installer (installs OBS-MCP and sets up your AI client, automatically)

Windows: either double-click install.bat in File Explorer, or — if you're already in a terminal from the git clone step above — just keep going in the same PowerShell/Command Prompt window (copy-paste both lines):

cd OBS_MCP
.\install.bat

macOS / Linux:

cd OBS_MCP
bash install.sh

The installer checks you have Python (offers to install it if not), installs the obs-mcp command, and — if you say yes when it asks — automatically writes the config for Claude Desktop and/or LM Studio. No manual JSON editing required. Once it finishes, skip straight to step 3.

I don't use Claude Desktop or LM Studio, or want to install manually

If you can pip install:

pip install -e .

from inside the folder. This gives you an obs-mcp command on your PATH — find where it landed with where obs-mcp (Windows) or which obs-mcp (macOS/Linux) if you ever need the exact file path. Add this to your client's MCP config:

{
  "mcpServers": {
    "obs": {
      "command": "obs-mcp",
      "env": {
        "OBS_HOST": "localhost",
        "OBS_PORT": "4455",
        "OBS_PASSWORD": "your_password_here"
      }
    }
  }
}

If you'd rather not install anything at all, point your client straight at the source file instead of a command — obs_mcp/main.py inside the folder you cloned/extracted is the actual MCP server entry point:

{
  "mcpServers": {
    "obs": {
      "command": "python",
      "args": ["-m", "obs_mcp.main"],
      "cwd": "/absolute/path/to/the/OBS_MCP/folder/you/extracted",
      "env": {
        "OBS_HOST": "localhost",
        "OBS_PORT": "4455",
        "OBS_PASSWORD": "your_password_here"
      }
    }
  }
}

Either way: leave OBS_PASSWORD empty ("") if you didn't set one in OBS. If your password has a " or \ in it, escape it for JSON (\" / \\) — everything else can go in as-is. Check your client's own MCP documentation for where its config file lives. Full detail, including exact config-file paths per OS: Installation Guide.

3. Enable the WebSocket server in OBS

This is the one thing the installer genuinely can't do for you — OBS itself has to allow the connection.

OBS Studio ships this built in since v28 — there's nothing to download or install for this part.

  1. Open OBS Studio.
  2. Tools → WebSocket Server Settings.
  3. Check Enable WebSocket server.
  4. Note the Server Port (default 4455, you usually don't need to change this).

No password set yet? Leave it blank — that's fine for a normal single-PC setup.

Already have a password (from a Stream Deck integration, chatbot, or earlier setup)? Don't retype it from memory — click Show Connect Info in that same settings window, which reveals the exact password OBS has stored.

Full walkthrough with screenshots-worth of detail if you get stuck: Installation Guide.

4. Talk to your AI

Restart Claude Desktop if it was already open, then just talk to it normally — for example:

"What OBS scenes do I have?"
"Clean up my mic audio"
"Why are my frames dropping?"
"Switch to my Starting Soon scene"

If OBS is running with the WebSocket server enabled, it just works — no special syntax, ask like you'd ask a person.


Features

Category Tools What it does
General 9 Version/stats, hotkeys, custom events, vendor requests, persistent data storage
Config 15 Scene collections, profiles, video/canvas settings, stream service destination, record directory
Sources 3 Active-state check and screenshots — works for both inputs and scenes
Scenes 12 List/create/remove/rename scenes, program/preview control, per-scene transition overrides, canvases, groups
Inputs & Audio 28 Create/configure inputs; full mixer — mute, volume, balance, sync offset, monitor type, audio track routing, deinterlace mode
Transitions 9 List/set transitions, duration, settings, T-bar scrubbing, trigger transitions (including studio mode)
Filters 10 Full CRUD on source filter chains — audio and video effects, any order
Scene Items 17 Transform (position/scale/crop), enabled/locked state, z-order, blend mode
Outputs 17 Virtual camera, replay buffer, and any generic named output
Stream & Record 14 Start/stop/toggle, captions, pause/resume, file splitting, chapter markers
Media 4 Playback control for media sources — status, seek, play/pause/stop/restart/next/previous
UI 8 Studio mode, property/filter/interact dialogs, monitor list, projectors
Pipelines 2 clean_audio_input — one-call Noise Gate → Suppression → Compressor chain with verified OBS filter parameters. diagnose_av_health — one-call frame-drop/congestion/disk-space diagnosis instead of raw stats

148 tools total — full coverage of the obs-websocket v5 protocol (the one intentional omission, Sleep, only functions inside request batches, which this version doesn't implement yet) plus the two composite pipeline tools above.

clean_audio_input — the pipeline tool

Every other tool here is a thin, faithful wrapper over one obs-websocket request. This one isn't — it's the actual thing a streamer wants ("make my mic sound clean") instead of the mechanism ("create three filters with the right internal parameter names in the right order"):

clean_audio_input(input_name="Mic/Aux")

Builds a Noise Gate → Noise Suppression (RNNoise) → Compressor chain in the correct signal order, using parameter keys verified against OBS Studio's actual filter source (plugins/obs-filters/*.c) — not guessed from the UI. Skips any stage that's already present instead of duplicating it.

diagnose_av_health — "why is my stream dropping frames?"

diagnose_av_health()

Pulls GetStats + GetStreamStatus + GetRecordStatus in one call and interprets them instead of handing back raw numbers: render-thread skip rate points at a GPU/scene bottleneck, output-thread skips with low network congestion point at the encoder, high congestion points at your upload/bitrate, and low disk space gets flagged before it silently kills a recording. Ask your AI "why are my frames dropping" or "is my stream healthy" and it has real numbers to reason from instead of guessing.


Requirements

  • OBS Studio 28+ (obs-websocket v5 ships built in from v28 onward)
  • Python 3.10+
  • An MCP-compatible AI client

Troubleshooting

Problem Fix
"Could not connect to OBS" Make sure OBS Studio is running and Tools → WebSocket Server Settings → Enable WebSocket server is checked.
"Authentication failed" Your OBS_PASSWORD env var doesn't match the password set in OBS's WebSocket Server Settings — or you set a password in OBS but left the env var empty. Don't retype the password from memory: Tools → WebSocket Server Settings → Show Connect Info shows the exact value OBS has stored.
Tool calls hang Check OBS itself isn't showing a blocking dialog (e.g. a "scene collection changed" prompt) — some requests block until the user dismisses OBS-side UI.
Scene/input "not found" errors Names are case-sensitive and must match exactly what's shown in OBS. Call get_scene_list / get_input_list first.

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -x -q

Adding New Tools

  1. Create a module in obs_mcp/tools/ (or add to an existing one).
  2. Export a register(mcp: FastMCP) function.
  3. Define your tools with @mcp.tool() decorators, calling client.execute("RequestType", **params).
  4. Add the module name to _EXPECTED_MODULES in tool_registry.py.
  5. That's it — the tool registry auto-discovers it on startup.

See CONTRIBUTING.md for full guidelines.


Support

Found a bug or want a feature? Open an issue.

If OBS-MCP has helped your stream, consider buying me a coffee:

Buy Me A Coffee

Your support helps keep this project maintained and free for everyone.


Documentation

  • Installation Guide — Detailed setup for Windows, macOS, Linux and every supported MCP client
  • Tools Reference — Every tool grouped by domain, with a one-line description and signature
  • Architecture — Connection layer, tool registry, pipeline tools, protocol reference
  • Contributing — How to add tools and contribute
  • Changelog — Version history and release notes

License

Apache License 2.0 — see LICENSE for details.

Built by Daniel Hodgetts𝕏 @daehonz1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obs_mcp-0.2.0.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obs_mcp-0.2.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file obs_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: obs_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for obs_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 003b4260e10cb59d1a64f15e1e5ed9b1f9183786a9ac2126aacc6c752c96d77d
MD5 7877e3dfd9f52bbf9dc19be4a846551e
BLAKE2b-256 8a2280ea1bf86c90f5b081bf957189096bb508a6eedf44729691a910f359869a

See more details on using hashes here.

Provenance

The following attestation bundles were made for obs_mcp-0.2.0.tar.gz:

Publisher: publish.yml on xDarkzx/OBS_MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file obs_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: obs_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for obs_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1030ec5036c64fc0c4a4ec376916aee85fcf221f3543050362aa81cf1e2b60
MD5 757ec51ab60b73e3d77f6d44303c3fdc
BLAKE2b-256 e03b71afc902a8029896c1925384356a656120057a299f9de4238f21dedb5e0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for obs_mcp-0.2.0-py3-none-any.whl:

Publisher: publish.yml on xDarkzx/OBS_MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page