RO

royshil/obs-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

171 stars 30 forks 品質 57 トレンド 2GPL-2.0

royshil/obs-mcpは、https://github.com/royshil/obs-mcp.からインポートされたMCPサーバー候補です。

概要

royshil/obs-mcpは、https://github.com/royshil/obs-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

OBS Studio用のMCPサーバーで、OBS WebSocketプロトコルを通じてOBSを制御するためのツールを提供します。

特徴

  • OBS WebSocketサーバーに接続
  • MCPツールによるOBS制御
  • 以下のツールを提供します:
  • 一般作戦
  • シーン管理
  • ソース制御
  • シーンアイテム操作
  • ストリーミングと録画
  • 遷移

使用法

  1. OBS StudioがWebSocketサーバーを有効にしていることを確認してください(Tools > WebSocketサーバー設定)。WSのパスワードを確認しましょう。

  2. 環境変数でWebSocketパスワードを設定する(必要に応じて):

  3. MCPサーバーの設定でClaudeデスクトップにMCPサーバーを追加する:

  4. Claudeを使ってOBSを操作する!

開発

このgitリポジトリのコードを使ってローカルでサーバーを動かしたい場合は、以下が可能です:

次にClaudeデスクトップの設定を行います:

利用可能なツール

サーバーはカテゴリ別に整理されたツールを提供しています:

  • 一般ツール:バージョン情報、統計、ホットキー、スタジオモード
  • シーンツール:シーンのリスト、シーン切り替え、シーンの作成/削除
  • ソースツール:ソース管理、設定、音声レベル、ミュート/アンミュート
  • シーンアイテムツール:シーン内のアイテム(位置、可視性など)を管理
  • ストリーミングツール:ストリーミングの開始/停止、録画、バーチャルカメラ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

OBS MCP Server

An MCP server for OBS Studio that provides tools to control OBS via the OBS WebSocket protocol.

Features

  • Connect to OBS WebSocket server
  • Control OBS via MCP tools
  • Provides tools for:
    • General operations
    • Scene management
    • Source control
    • Scene item manipulation
    • Streaming and recording
    • Transitions

Usage

  1. Make sure OBS Studio is running with WebSocket server enabled (Tools > WebSocket Server Settings). Note the password for the WS.
  2. Set the WebSocket password in environment variable (if needed):
export OBS_WEBSOCKET_PASSWORD="your_password_here"
  1. Add the MCP server to Claude desktop with the MCP server settings:
{
  "mcpServers": {
    "obs": {
      "command": "npx",
      "args": ["-y", "obs-mcp@latest"],
      "env": {
        "OBS_WEBSOCKET_PASSWORD": ""
      }
    }
  }
}
  1. Use Claude to control your OBS!

Development

If you want to run the server locally using the code in this git repo, you can do the following:

npm run build
npm run start

Then configure Claude desktop:

{
  "mcpServers": {
    "obs": {
      "command": "node",
      "args": [
        "/build/index.js"
      ],
      "env": {
        "OBS_WEBSOCKET_PASSWORD": ""
      }
    }
  }
}

Available Tools

The server provides tools organized by category:

  • General tools: Version info, stats, hotkeys, studio mode
  • Scene tools: List scenes, switch scenes, create/remove scenes
  • Source tools: Manage sources, settings, audio levels, mute/unmute
  • Scene item tools: Manage items in scenes (position, visibility, etc.)
  • Streaming tools: Start/stop streaming, recording, virtual camera
  • Transition tools: Set transitions, durations, trigger transitions

Environment Variables

  • OBS_WEBSOCKET_URL: WebSocket URL (default: ws://localhost:4455)
  • OBS_WEBSOCKET_PASSWORD: Password for authenticating with OBS WebSocket (if required)

Requirements

  • Node.js 16+
  • OBS Studio 31+ with WebSocket server enabled
  • Claude desktop

License

See the LICENSE file for details.

GitHub で README 全文を見る

インストール

npx -y obs-mcp@latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "obs": { "command": "npx", "args": ["-y", "obs-mcp@latest"], "env": { "OBS_WEBSOCKET_PASSWORD": "<password_from_obs>" } } } }