RokuMCP

v1.3.2
io.github.jack1590/RokuMCP Checked 6 hours ago Published 8 months ago

MCP server for Roku device automation — deploy, ECP control, screenshots, and debug console

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

roku_deploy

Sideload (deploy) a Roku application to the device. Packages all files in the project directory and uploads them. A dev channel must not already be running, or it will be replaced.

ParameterTypeDescription
rootDir *stringAbsolute path to the project root directory containing the manifest file
filesarrayGlob patterns for files to include. Defaults to all files in rootDir (**/*).
hoststringIP address or hostname of the Roku device
passwordstringDeveloper password for the Roku device

roku_delete_dev_channel

Delete the currently sideloaded developer channel from the Roku device.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device
passwordstringDeveloper password for the Roku device

roku_discover

Scan the local network for Roku devices using SSDP discovery. Returns a list of all found devices with their IP addresses.

ParameterTypeDescription
timeoutMsnumberHow long to scan in milliseconds (default 3000)

roku_keypress

Send a single key press to the Roku device via ECP. Common keys: Home, Rev, Fwd, Play, Select, Left, Right, Down, Up, Back, InstantReplay, Info, Backspace, Search, Enter, Lit_<character>

ParameterTypeDescription
key *stringThe key to press (e.g. Home, Select, Up, Down, Left, Right, Back, Lit_a)
hoststringIP address or hostname of the Roku device

roku_keypress_sequence

Send a sequence of key presses to the Roku device with an optional delay between each press.

ParameterTypeDescription
keys *arrayArray of keys to press in order
delayMsnumberDelay in milliseconds between each key press (default 100)
hoststringIP address or hostname of the Roku device

roku_launch

Launch or deep-link into a channel on the Roku device. Use appId "dev" for the sideloaded developer channel.

ParameterTypeDescription
appId *stringApplication ID to launch (use "dev" for the sideloaded channel)
hoststringIP address or hostname of the Roku device
paramsobjectOptional launch parameters for deep linking (key-value pairs)

roku_query_device_info

Query the Roku device for its info: model, firmware version, serial number, network info, etc.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device

roku_query_active_app

Query the currently active (foreground) app on the Roku device.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device

roku_query_app_ui

Get the current app UI tree as XML. Only works when a sideloaded dev channel is running.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device

roku_query_sg_nodes

Query SceneGraph nodes on the Roku device. Use type "all" for all nodes, "roots" for root nodes, or "node" with a nodeId to inspect a specific node.

ParameterTypeDescription
type *stringType of query: "all", "roots", or "node"
hoststringIP address or hostname of the Roku device
nodeIdstringNode ID to inspect (required when type is "node")

roku_type_text

Type a text string into the currently focused text field on the Roku device. Each character is sent as an individual Lit_ keypress. Use this for search fields, email inputs, password fields, etc.

ParameterTypeDescription
text *stringThe text string to type
delayMsnumberDelay in milliseconds between each character (default 50)
hoststringIP address or hostname of the Roku device

roku_query_media_player

Query the media player state on the Roku device. Returns playback state (play, pause, buffer, stop, none), position, duration, and error info. Use this to verify video playback in tests.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device

roku_find_node

Search the app UI tree for a node by its ID or attribute value. Returns the matching node with all its properties (text, visible, focused, subtype, bounds, etc.). Only works when a sideloaded dev channel is running.

ParameterTypeDescription
attrstringAttribute name to search by (e.g. "subtype", "text", "name")
hoststringIP address or hostname of the Roku device
nodeIdstringThe ID of the node to find (e.g. "emailBox", "settingsTabs")
valuestringAttribute value to match (e.g. "AccountSettingsScreen")

roku_get_focused_node

Get the currently focused node in the app UI tree. Returns the node with all its properties (id, subtype, text, bounds, etc.). Only works when a sideloaded dev channel is running.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device

roku_sleep

Wait for a specified duration. Use this between navigation steps to allow the UI to render, animations to complete, or content to load.

ParameterTypeDescription
durationMs *numberDuration to wait in milliseconds (e.g. 1000 for 1 second, 5000 for 5 seconds)

roku_screenshot

Capture a screenshot of the current screen on the Roku device. A sideloaded dev channel must be running. Returns the image as base64-encoded content and the file path where it was saved.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device
outDirstringDirectory to save the screenshot. Defaults to OS temp directory.
outFilestringBase filename (without extension). Defaults to timestamped name.
passwordstringDeveloper password for the Roku device

roku_console_connect

Open a persistent TCP connection to the BrightScript debug console on port 8085. Only one connection is active at a time.

ParameterTypeDescription
hoststringIP address or hostname of the Roku device
portnumberDebug console port (default 8085)

roku_console_read

Read buffered output from the BrightScript debug console since the last read. Automatically disconnects after reading.

roku_console_send

Send a command to the BrightScript debug console and return the response. Automatically disconnects after receiving the response. Common commands: bt (backtrace), var (variables), cont (continue), step, over, out, exit, print <expr>.

ParameterTypeDescription
command *stringCommand to send to the debug console

roku_console_disconnect

Close the active BrightScript debug console connection.