RokuMCP
v1.3.2MCP 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.
| Parameter | Type | Description |
|---|---|---|
rootDir * | string | Absolute path to the project root directory containing the manifest file |
files | array | Glob patterns for files to include. Defaults to all files in rootDir (**/*). |
host | string | IP address or hostname of the Roku device |
password | string | Developer password for the Roku device |
roku_delete_dev_channel
Delete the currently sideloaded developer channel from the Roku device.
| Parameter | Type | Description |
|---|---|---|
host | string | IP address or hostname of the Roku device |
password | string | Developer 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.
| Parameter | Type | Description |
|---|---|---|
timeoutMs | number | How 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>
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to press (e.g. Home, Select, Up, Down, Left, Right, Back, Lit_a) |
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
keys * | array | Array of keys to press in order |
delayMs | number | Delay in milliseconds between each key press (default 100) |
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
appId * | string | Application ID to launch (use "dev" for the sideloaded channel) |
host | string | IP address or hostname of the Roku device |
params | object | Optional 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.
| Parameter | Type | Description |
|---|---|---|
host | string | IP address or hostname of the Roku device |
roku_query_active_app
Query the currently active (foreground) app on the Roku device.
| Parameter | Type | Description |
|---|---|---|
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
type * | string | Type of query: "all", "roots", or "node" |
host | string | IP address or hostname of the Roku device |
nodeId | string | Node 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.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text string to type |
delayMs | number | Delay in milliseconds between each character (default 50) |
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
attr | string | Attribute name to search by (e.g. "subtype", "text", "name") |
host | string | IP address or hostname of the Roku device |
nodeId | string | The ID of the node to find (e.g. "emailBox", "settingsTabs") |
value | string | Attribute 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.
| Parameter | Type | Description |
|---|---|---|
host | string | IP 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.
| Parameter | Type | Description |
|---|---|---|
durationMs * | number | Duration 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.
| Parameter | Type | Description |
|---|---|---|
host | string | IP address or hostname of the Roku device |
outDir | string | Directory to save the screenshot. Defaults to OS temp directory. |
outFile | string | Base filename (without extension). Defaults to timestamped name. |
password | string | Developer 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.
| Parameter | Type | Description |
|---|---|---|
host | string | IP address or hostname of the Roku device |
port | number | Debug 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>.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to send to the debug console |
roku_console_disconnect
Close the active BrightScript debug console connection.