obs-mcp

v1.1.0
obs-mcp Checked 2 days ago Published 1 year ago

MCP server for OBS Studio

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

obs-get-version

Gets data about the current plugin and RPC version

obs-get-stats

Gets statistics about OBS, obs-websocket, and the current session

obs-broadcast-custom-event

Broadcasts a CustomEvent to all WebSocket clients

ParameterTypeDescription
eventData *objectData payload to emit to all receivers

obs-call-vendor-request

Call a request registered to a vendor

ParameterTypeDescription
requestType *stringThe request type to call
vendorName *stringName of the vendor to use
requestDataobjectObject containing appropriate request data

obs-get-hotkey-list

Gets an array of all hotkey names in OBS

obs-trigger-hotkey-by-name

Triggers a hotkey using its name

ParameterTypeDescription
hotkeyName *stringName of the hotkey to trigger
contextNamestringName of context of the hotkey to trigger

obs-trigger-hotkey-by-key-sequence

Triggers a hotkey using a sequence of keys

ParameterTypeDescription
keyIdstringThe OBS key ID to use
keyModifiersobjectObject containing key modifiers to apply

obs-sleep

Sleeps for a time duration or number of frames

ParameterTypeDescription
sleepFramesnumberNumber of frames to sleep for
sleepMillisnumberNumber of milliseconds to sleep for

obs-get-scene-list

Get a list of scenes in OBS

obs-get-current-scene

Get the current active scene in OBS

obs-set-current-scene

Set the current active scene in OBS

ParameterTypeDescription
sceneName *stringThe name of the scene to set as current

obs-get-preview-scene

Get the current preview scene in OBS Studio Mode

obs-set-preview-scene

Set the current preview scene in OBS Studio Mode

ParameterTypeDescription
sceneName *stringThe name of the scene to set as preview

obs-create-scene

Create a new scene in OBS

ParameterTypeDescription
sceneName *stringThe name for the new scene

obs-remove-scene

Remove a scene from OBS

ParameterTypeDescription
sceneName *stringThe name of the scene to remove

obs-trigger-studio-transition

Trigger a transition from preview to program scene in Studio Mode

obs-get-source-active

Gets the active and show state of a source

ParameterTypeDescription
sourceNamestringName of the source to get the active state of
sourceUuidstringUUID of the source to get the active state of

obs-get-source-screenshot

Gets a Base64-encoded screenshot of a source

ParameterTypeDescription
imageFormat *stringImage compression format to use
imageCompressionQualitynumberCompression quality to use (0-100, -1 for default)
imageHeightnumberHeight to scale the screenshot to
imageWidthnumberWidth to scale the screenshot to
sourceNamestringName of the source to take a screenshot of
sourceUuidstringUUID of the source to take a screenshot of

obs-save-source-screenshot

Saves a screenshot of a source to the filesystem

ParameterTypeDescription
imageFilePath *stringPath to save the screenshot file to
imageFormat *stringImage compression format to use
imageCompressionQualitynumberCompression quality to use (0-100, -1 for default)
imageHeightnumberHeight to scale the screenshot to
imageWidthnumberWidth to scale the screenshot to
sourceNamestringName of the source to take a screenshot of
sourceUuidstringUUID of the source to take a screenshot of

obs-get-scene-items

Get a list of all scene items in a scene

ParameterTypeDescription
sceneName *stringThe name of the scene to get items from

obs-create-scene-item

Create a scene item for a source in a scene

ParameterTypeDescription
sceneName *stringThe scene to add the source to
sourceName *stringThe name of the source to add
enabledbooleanWhether the scene item is enabled/visible (default: true)

obs-remove-scene-item

Remove a scene item from a scene

ParameterTypeDescription
sceneItemId *numberThe ID of the scene item to remove
sceneName *stringThe scene to remove the item from

obs-set-scene-item-enabled

Show or hide a scene item

ParameterTypeDescription
enabled *booleanWhether to show (true) or hide (false) the item
sceneItemId *numberThe ID of the scene item
sceneName *stringThe scene that the source belongs to

obs-get-scene-item-transform

Get the position, rotation, scale, or crop of a scene item

ParameterTypeDescription
sceneItemId *numberThe ID of the scene item
sceneName *stringThe scene the item is in

obs-set-scene-item-transform

Set the position, rotation, scale, or crop of a scene item

ParameterTypeDescription
sceneItemId *numberThe ID of the scene item
sceneName *stringThe scene the item is in
cropBottomnumberThe number of pixels cropped off the bottom
cropLeftnumberThe number of pixels cropped off the left
cropRightnumberThe number of pixels cropped off the right
cropTopnumberThe number of pixels cropped off the top
positionXnumberThe x position
positionYnumberThe y position
rotationnumberThe rotation in degrees
scaleXnumberThe x scale factor
scaleYnumberThe y scale factor

obs-get-scene-item-id

Get the ID of a scene item by its source name

ParameterTypeDescription
sceneName *stringThe scene name to search in
sourceName *stringThe source name to find

obs-get-stream-status

Get the current streaming status

obs-start-stream

Start streaming in OBS

obs-stop-stream

Stop streaming in OBS

obs-toggle-stream

Toggle the streaming state in OBS

obs-send-stream-caption

Sends CEA-608 caption text over the stream output

ParameterTypeDescription
captionText *stringCaption text to send

obs-get-transition-list

Get a list of available transitions in OBS

obs-get-current-transition

Get the name of the currently active transition

obs-set-current-transition

Set the current transition in OBS

ParameterTypeDescription
transitionName *stringThe name of the transition to set as current

obs-get-transition-duration

Get the duration of the current transition in milliseconds

obs-set-transition-duration

Set the duration of the current transition in milliseconds

ParameterTypeDescription
duration *numberThe duration to set in milliseconds

obs-get-transition-kind

Get the kind/type of the current transition

obs-set-transition-settings

Set the settings of the current transition

ParameterTypeDescription
transitionSettings *objectThe settings to apply to the transition

obs-get-transition-settings

Get the settings of the current transition

obs-trigger-transition

Trigger a scene transition in OBS (Studio Mode must be enabled)

obs-get-persistent-data

Gets the value of a slot from the selected persistent data realm

ParameterTypeDescription
realm *stringThe data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE
slotName *stringThe name of the slot to retrieve data from

obs-set-persistent-data

Sets the value of a slot from the selected persistent data realm

ParameterTypeDescription
realm *stringThe data realm to select. OBS_WEBSOCKET_DATA_REALM_GLOBAL or OBS_WEBSOCKET_DATA_REALM_PROFILE
slotName *stringThe name of the slot to set data for
slotValueThe value to apply to the slot

obs-get-scene-collection-list

Gets an array of all scene collections

obs-set-current-scene-collection

Switches to a scene collection

ParameterTypeDescription
sceneCollectionName *stringName of the scene collection to switch to

obs-create-scene-collection

Creates a new scene collection, switching to it in the process

ParameterTypeDescription
sceneCollectionName *stringName for the new scene collection

obs-get-profile-list

Gets an array of all profiles

obs-set-current-profile

Switches to a profile

ParameterTypeDescription
profileName *stringName of the profile to switch to

obs-create-profile

Creates a new profile, switching to it in the process

ParameterTypeDescription
profileName *stringName for the new profile

obs-remove-profile

Removes a profile. If the current profile is chosen, it will change to a different profile first

ParameterTypeDescription
profileName *stringName of the profile to remove

obs-get-profile-parameter

Gets a parameter from the current profile's configuration

ParameterTypeDescription
parameterCategory *stringCategory of the parameter to get
parameterName *stringName of the parameter to get

obs-set-profile-parameter

Sets the value of a parameter in the current profile's configuration

ParameterTypeDescription
parameterCategory *stringCategory of the parameter to set
parameterName *stringName of the parameter to set
parameterValue *string | nullValue of the parameter to set. Use null to delete

obs-get-video-settings

Gets the current video settings

obs-set-video-settings

Sets the current video settings

ParameterTypeDescription
baseHeightnumberHeight of the base (canvas) resolution in pixels
baseWidthnumberWidth of the base (canvas) resolution in pixels
fpsDenominatornumberDenominator of the fractional FPS value
fpsNumeratornumberNumerator of the fractional FPS value
outputHeightnumberHeight of the output resolution in pixels
outputWidthnumberWidth of the output resolution in pixels

obs-get-stream-service-settings

Gets the current stream service settings

obs-set-stream-service-settings

Sets the current stream service settings

ParameterTypeDescription
streamServiceSettings *objectSettings to apply to the service
streamServiceType *stringType of stream service to apply. Example: rtmp_common or rtmp_custom

obs-get-record-directory

Gets the current directory that the record output is set to

obs-set-record-directory

Sets the current directory that the record output writes files to

ParameterTypeDescription
recordDirectory *stringOutput directory

obs-get-filter-kind-list

Gets an array of all available source filter kinds

obs-get-source-filter-list

Gets an array of all of a source's filters

ParameterTypeDescription
sourceName *stringName of the source

obs-get-filter-default-settings

Gets the default settings for a filter kind

ParameterTypeDescription
filterKind *stringFilter kind to get the default settings for

obs-create-source-filter

Creates a new filter, adding it to the specified source

ParameterTypeDescription
filterKind *stringThe kind of filter to be created
filterName *stringName of the new filter to be created
sourceName *stringName of the source to add the filter to
filterSettingsobjectSettings object to initialize the filter with

obs-remove-source-filter

Removes a filter from a source

ParameterTypeDescription
filterName *stringName of the filter to remove
sourceName *stringName of the source the filter is on

obs-set-source-filter-name

Sets the name of a source filter (rename)

ParameterTypeDescription
filterName *stringCurrent name of the filter
newFilterName *stringNew name for the filter
sourceName *stringName of the source the filter is on

obs-get-source-filter

Gets the info for a specific source filter

ParameterTypeDescription
filterName *stringName of the filter
sourceName *stringName of the source

obs-set-source-filter-index

Sets the index position of a filter on a source

ParameterTypeDescription
filterIndex *numberNew index position of the filter
filterName *stringName of the filter
sourceName *stringName of the source the filter is on

obs-set-source-filter-settings

Sets the settings of a source filter

ParameterTypeDescription
filterName *stringName of the filter to set the settings of
filterSettings *objectObject of settings to apply
sourceName *stringName of the source the filter is on
overlaybooleanTrue to apply settings on top of existing ones, False to reset to defaults first

obs-set-source-filter-enabled

Sets the enable state of a source filter

ParameterTypeDescription
filterEnabled *booleanNew enable state of the filter
filterName *stringName of the filter
sourceName *stringName of the source the filter is on

obs-get-input-list

Gets an array of all inputs in OBS

ParameterTypeDescription
inputKindstringRestrict the array to only inputs of the specified kind

obs-get-input-kind-list

Gets an array of all available input kinds in OBS

ParameterTypeDescription
unversionedbooleanTrue to return all kinds as unversioned, False to return with version suffixes

obs-get-special-inputs

Gets the names of all special inputs

obs-create-input

Creates a new input, adding it as a scene item to the specified scene

ParameterTypeDescription
inputKind *stringThe kind of input to be created
inputName *stringName of the new input to created
sceneName *stringName of the scene to add the input to as a scene item
inputSettingsobjectSettings object to initialize the input with
sceneItemEnabledbooleanWhether to set the created scene item to enabled or disabled

obs-remove-input

Removes an existing input

ParameterTypeDescription
inputName *stringName of the input to remove

obs-set-input-name

Sets the name of an input (rename)

ParameterTypeDescription
inputName *stringCurrent input name
newInputName *stringNew name for the input

obs-get-input-default-settings

Gets the default settings for an input kind

ParameterTypeDescription
inputKind *stringInput kind to get the default settings for

obs-get-input-settings

Gets the settings of an input

ParameterTypeDescription
inputName *stringName of the input to get the settings of

obs-set-input-settings

Sets the settings of an input

ParameterTypeDescription
inputName *stringName of the input to set the settings of
inputSettings *objectObject of settings to apply
overlaybooleanTrue to apply settings on top of existing ones, False to reset to defaults first

obs-get-input-mute

Gets the audio mute state of an input

ParameterTypeDescription
inputName *stringName of input to get the mute state of

obs-set-input-mute

Sets the audio mute state of an input

ParameterTypeDescription
inputMuted *booleanWhether to mute the input or not
inputName *stringName of the input to set the mute state of

obs-toggle-input-mute

Toggles the audio mute state of an input

ParameterTypeDescription
inputName *stringName of the input to toggle the mute state of

obs-get-input-volume

Gets the current volume setting of an input

ParameterTypeDescription
inputName *stringName of the input to get the volume of

obs-set-input-volume

Sets the volume setting of an input

ParameterTypeDescription
inputName *stringName of the input to set the volume of
inputVolumeDbnumberVolume setting in dB (-100 to 26)
inputVolumeMulnumberVolume setting in mul (0-20)

obs-get-input-audio-balance

Gets the audio balance of an input

ParameterTypeDescription
inputName *stringName of the input to get the audio balance of

obs-set-input-audio-balance

Sets the audio balance of an input

ParameterTypeDescription
inputAudioBalance *numberNew audio balance value (0.0-1.0)
inputName *stringName of the input to set the audio balance of

obs-get-input-audio-sync-offset

Gets the audio sync offset of an input

ParameterTypeDescription
inputName *stringName of the input to get the audio sync offset of

obs-set-input-audio-sync-offset

Sets the audio sync offset of an input

ParameterTypeDescription
inputAudioSyncOffset *numberNew audio sync offset in milliseconds
inputName *stringName of the input to set the audio sync offset of

obs-get-input-audio-monitor-type

Gets the audio monitor type of an input

ParameterTypeDescription
inputName *stringName of the input to get the audio monitor type of

obs-set-input-audio-monitor-type

Sets the audio monitor type of an input

ParameterTypeDescription
inputName *stringName of the input to set the audio monitor type of
monitorType *stringAudio monitor type (OBS_MONITORING_TYPE_NONE, OBS_MONITORING_TYPE_MONITOR_ONLY, OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT)

obs-get-media-input-status

Gets the status of a media input

ParameterTypeDescription
inputName *stringName of the media input

obs-set-media-input-cursor

Sets the cursor position of a media input

ParameterTypeDescription
inputName *stringName of the media input
mediaCursor *numberNew cursor position to set (in milliseconds)

obs-offset-media-input-cursor

Offsets the current cursor position of a media input

ParameterTypeDescription
inputName *stringName of the media input
mediaCursorOffset *numberValue to offset the current cursor position by (in milliseconds)

obs-trigger-media-input-action

Triggers an action on a media input

ParameterTypeDescription
inputName *stringName of the media input
mediaAction *stringAction to trigger (PLAY, PAUSE, STOP, RESTART, NEXT, PREVIOUS)

obs-get-virtual-cam-status

Gets the status of the virtualcam output

obs-toggle-virtual-cam

Toggles the state of the virtualcam output

obs-start-virtual-cam

Starts the virtualcam output

obs-stop-virtual-cam

Stops the virtualcam output

obs-get-replay-buffer-status

Gets the status of the replay buffer output

obs-toggle-replay-buffer

Toggles the state of the replay buffer output

obs-start-replay-buffer

Starts the replay buffer output

obs-stop-replay-buffer

Stops the replay buffer output

obs-save-replay-buffer

Saves the contents of the replay buffer output

obs-get-last-replay-buffer-replay

Gets the filename of the last replay buffer save file

obs-get-output-list

Gets the list of available outputs

obs-get-output-status

Gets the status of an output

ParameterTypeDescription
outputName *stringOutput name

obs-toggle-output

Toggles the status of an output

ParameterTypeDescription
outputName *stringOutput name

obs-start-output

Starts an output

ParameterTypeDescription
outputName *stringOutput name

obs-stop-output

Stops an output

ParameterTypeDescription
outputName *stringOutput name

obs-get-output-settings

Gets the settings of an output

ParameterTypeDescription
outputName *stringOutput name

obs-set-output-settings

Sets the settings of an output

ParameterTypeDescription
outputName *stringOutput name
outputSettings *objectOutput settings

obs-get-record-status

Gets the status of the record output

obs-toggle-record

Toggles the status of the record output

obs-start-record

Starts the record output

obs-stop-record

Stops the record output

obs-toggle-record-pause

Toggles pause on the record output

obs-pause-record

Pauses the record output

obs-resume-record

Resumes the record output

obs-split-record-file

Splits the current file being recorded into a new file

obs-create-record-chapter

Adds a new chapter marker to the file currently being recorded

ParameterTypeDescription
chapterNamestringName of the new chapter

obs-get-studio-mode

Gets whether studio mode is enabled

obs-set-studio-mode

Enables or disables studio mode

ParameterTypeDescription
studioModeEnabled *booleanWhether to enable (true) or disable (false) Studio Mode

obs-open-input-properties

Opens the properties dialog of an input

ParameterTypeDescription
inputNamestringName of the input to open the dialog of
inputUuidstringUUID of the input to open the dialog of

obs-open-input-filters

Opens the filters dialog of an input

ParameterTypeDescription
inputNamestringName of the input to open the dialog of
inputUuidstringUUID of the input to open the dialog of

obs-open-input-interact

Opens the interact dialog of an input

ParameterTypeDescription
inputNamestringName of the input to open the dialog of
inputUuidstringUUID of the input to open the dialog of

obs-get-monitor-list

Gets a list of connected monitors and information about them

obs-open-video-mix-projector

Opens a projector for a specific output video mix

ParameterTypeDescription
videoMixType *stringType of mix to open
monitorIndexnumberMonitor index, use -1 for windowed mode
projectorGeometrystringSize/Position data for a windowed projector

obs-open-source-projector

Opens a projector for a source

ParameterTypeDescription
monitorIndexnumberMonitor index, use -1 for windowed mode
projectorGeometrystringSize/Position data for a windowed projector
sourceNamestringName of the source to open a projector for
sourceUuidstringUUID of the source to open a projector for