Skip to main content
Glama

MCP Remote Control

MCP Remote Control

A Model Context Protocol (MCP) server that enables AI assistants and agentic systems to control TVs on your local network.

Currently supports: Roku TVs via the External Control Protocol (ECP).

What is MCP?

The Model Context Protocol is an open standard that allows AI models to securely interact with external tools and data sources. This server exposes TV controls as MCP tools, enabling LLMs like Claude to control your TV through natural language commands.

Related MCP server: mcp-gtv

Architecture

This project is designed with future extensibility in mind. The Roku-specific implementation is isolated in roku_bridge.py, separating the ECP protocol details from the MCP server layer. While the current implementation is Roku-specific, the structure provides a foundation for supporting additional TV brands and control protocols in the future.

Why Use This?

  • Natural Language Control: Tell your AI assistant "turn on Netflix" or "increase the volume" without touching a remote

  • Smart Home Integration: Integrate TV control into agentic workflows and automation systems

  • Accessibility: Control your TV through conversational interfaces

  • Development: Build custom applications that leverage AI-powered TV control

Prerequisites

TV Setup

Before using this server, you need to enable external control on your Roku TV:

  1. Enable Network Control:

    • Go to Settings > System > Advanced system settings

    • Select Control by mobile apps

    • Choose Network access and set to Default or Permissive

  2. Find Your TV's IP Address:

    • Go to Settings > Network > About

    • Note the IP address (e.g., 192.168.1.100)

  3. Set Environment Variable:

    export HOST_IP=192.168.1.100  # Replace with your TV's IP

System Requirements

  • Python: 3.12 or higher

  • Network: TV and computer must be on the same local network

  • MCP Client: An MCP-compatible client like Claude Desktop, Claude Code, Goose or custom implementations

Features

  • Remote Control: Simulate button presses (navigation, playback, volume, power)

  • App Launching: Launch apps by name (e.g., "Netflix", "YouTube")

  • App Discovery: List all available apps and their IDs

  • Device Info: Query device information

Getting Started

Installation

The package is available on PyPI.

The easiest way to use this server is via uvx, which runs the package directly from PyPI without requiring a separate install step:

uvx mcp-remote-control

Alternatively, install globally with pip:

pip install mcp-remote-control

Using with Claude Desktop

Add this server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "tv-control": {
      "command": "uvx",
      "args": ["mcp-remote-control"],
      "env": {
        "HOST_IP": "192.168.1.100"
      }
    }
  }
}

Replace 192.168.1.100 with your TV's IP address.

After updating the config, restart Claude Desktop. You can then ask Claude to control your TV:

  • "Turn on my TV and launch Netflix"

  • "Increase the volume"

  • "What apps are available on my Roku?"

Using with Claude Code

Install the server using the MCP server manager in Claude Code. See the Claude Code documentation for details.

Using with Other MCP Clients

This server uses the standard MCP protocol over stdio. See the MCP documentation for connecting local servers to your MCP client.

Local Development

If you want to modify the server or contribute to development, clone the repository and install in editable mode:

git clone https://github.com/AaronGoldsmith/mcp-remote-control.git
cd mcp-remote-control
pip install -e .
# or with uv:
uv pip install -e .

To use your local development version with Claude Desktop, point to the cloned directory:

{
  "mcpServers": {
    "tv-control": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/mcp-remote-control", "run", "mcp-remote-control"],
      "env": {
        "HOST_IP": "192.168.1.100"
      }
    }
  }
}

Replace /absolute/path/to/mcp-remote-control with the actual path to your cloned repository.

Available Tools

press_key(key_name)

Simulates a button press on the TV remote.

  • Navigation: Home, Up, Down, Left, Right, Select, Back

  • Playback: Play, Pause, Rev (Rewind), Fwd (FastForward)

  • Volume: VolumeUp, VolumeDown, VolumeMute

  • Power: PowerOff, PowerOn

  • Other: Info, InstantReplay, Search

launch_app(app_name)

Launches an app by name (case-insensitive). Examples:

  • launch_app("Netflix")

  • launch_app("youtube")

  • launch_app("Disney+")

list_apps()

Lists all available apps with their names and Roku channel IDs.

get_device_info()

Retrieves device information as XML.

power_on()

Powers on the TV.

Supported Apps

The following apps are supported and can be launched by name using launch_app(). App names are case-insensitive and some apps have multiple accepted names (e.g., "Prime Video" or "Amazon Prime Video").

App Name

Channel ID

Alternative Names

Netflix

12

-

YouTube

837

-

Amazon Prime Video

13

Prime Video

Hulu

2285

-

Disney+

291097

Disney Plus

HBO Max

61322

-

Apple TV+

551012

Apple TV

Peacock

593099

-

Paramount Plus

31440

Paramount+

ESPN

34376

-

Tubi

41468

-

Sling TV

46041

-

STARZ

65067

-

CBS

619667

-

CNN

65978

-

Pluto TV

74519

-

SHOWTIME

8838

-

Use list_apps() to see the complete list programmatically.

Example Usage

Once connected to an MCP client, you can use natural language to control your TV:

User: "Turn on my TV and launch Netflix"
Assistant: *uses power_on() and launch_app("Netflix")*

User: "Show me what apps are available"
Assistant: *uses list_apps() to display all installed apps*

User: "Navigate down 3 times and select"
Assistant: *uses press_key("Down") three times, then press_key("Select")*

User: "Pause what's playing"
Assistant: *uses press_key("Pause")*

Learn More

MCP Resources

Roku Resources

Troubleshooting

  • Connection Failed: Ensure your TV and computer are on the same network and the TV's IP address is correct

  • Control Not Working: Verify that "Control by mobile apps" is enabled in your TV settings

  • App Not Launching: Check that the app is installed on your TV using list_apps()

  • Environment Variable: Make sure HOST_IP is set in your shell or MCP client configuration

License

MIT

Available Tools

5 tools
get_device_infoB

Retrieves basic device information (model, software version, etc.) as XML.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the operation retrieves information and specifies the output format (XML), but doesn't mention whether this requires authentication, has rate limits, what happens if the device is offline, or if this is a read-only operation. For a tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that states exactly what the tool does and the output format. Every word earns its place with no redundancy or unnecessary elaboration. It's appropriately sized for a simple retrieval tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 0 parameters, 100% schema coverage, and an output schema exists, the description provides adequate context. It explains what information is retrieved and the format (XML), which complements the structured data. For a simple retrieval tool, this is reasonably complete, though it could benefit from more behavioral context given the lack of annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description appropriately doesn't discuss parameters since none exist. Baseline for 0 parameters is 4, as the description correctly focuses on what the tool does rather than non-existent inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Retrieves') and resource ('basic device information'), including examples of what information is returned (model, software version). It doesn't explicitly differentiate from sibling tools, but the focus on device information distinguishes it from app-related or control tools in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, timing considerations, or how it relates to sibling tools like 'power_on' or 'list_apps'. The agent must infer usage context from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

launch_appA

Launches an application on the TV using its name.

Args:
    app_name: The name of the app to launch (e.g., Netflix, YouTube, Hulu).
              Case-insensitive. Use list_apps() to see available apps.
ParametersJSON Schema
NameRequiredDescriptionDefault
app_nameYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that app_name is case-insensitive, which is useful context beyond the basic action. However, it doesn't cover other behavioral aspects like error handling (e.g., what happens if the app isn't installed), permissions needed, or side effects (e.g., does it change TV state).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose in the first sentence and parameter details in a structured Args section. Every sentence adds value without redundancy, making it efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 parameter) and the presence of an output schema (which handles return values), the description is mostly complete. It covers the purpose, parameter semantics, and basic usage. However, it could improve by addressing behavioral aspects like error cases or prerequisites, especially since no annotations are provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the input schema, which has 0% description coverage. It explains that app_name is the name of the app to launch, provides examples (Netflix, YouTube, Hulu), specifies it's case-insensitive, and references list_apps() for available options, fully compensating for the schema's lack of detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Launches an application') and resource ('on the TV'), distinguishing it from siblings like list_apps (which lists apps) or press_key (which simulates key presses). It precisely defines what the tool does without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool (to launch an app by name) and references list_apps() as a way to see available apps, offering implicit guidance. However, it doesn't explicitly state when not to use it or compare it to alternatives like power_on for broader device control.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_appsA

Lists all available apps and their corresponding Roku channel IDs.

Returns a formatted list of app names and their IDs that can be used with launch_app().
ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It describes the return format ('formatted list of app names and their IDs') and hints at a read-only operation ('Lists'), but doesn't disclose behavioral traits like whether it requires authentication, has rate limits, or how it handles errors. The description adds some value but lacks comprehensive behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core purpose and followed by usage context. Every sentence earns its place by adding value (listing resources and explaining output utility), with zero waste or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no annotations, but with an output schema), the description is mostly complete. It explains what the tool does and how the output is used, but could benefit from more behavioral details (e.g., permissions or error handling) since annotations are absent. The output schema likely covers return values, reducing the need for description here.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the inputs. The description doesn't need to add parameter details, but it does provide context about the output's purpose. Baseline for 0 params is 4, as it compensates adequately without redundant information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Lists') and resource ('all available apps and their corresponding Roku channel IDs'), and distinguishes this from siblings like launch_app (which uses the IDs) and get_device_info (which returns device status). It specifies both what it returns and how the output can be used.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use the output ('can be used with launch_app()'), providing clear context for its purpose. However, it doesn't specify when NOT to use it or mention alternatives among siblings (e.g., whether get_device_info might also list apps).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

power_onB

Powers on the TV.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. 'Powers on the TV' implies a write/mutation operation but doesn't specify if it requires authentication, has side effects (e.g., wakes from standby), rate limits, or error conditions. This is a significant gap for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero wasted words. It's front-loaded with the core action, making it highly concise and well-structured for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no annotations, but has an output schema), the description is minimally adequate. The output schema should cover return values, but the description lacks context on behavior and usage, making it incomplete for a mutation tool despite the structural support.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, and the baseline for this scenario is 4 as it avoids unnecessary information while matching the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Powers on the TV' clearly states the action (verb: 'Powers on') and target resource ('the TV'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'press_key' which might also affect power state, so it misses full sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites (e.g., TV must be connected), when not to use it, or how it relates to siblings like 'press_key' for power control, leaving usage context unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

press_keyA

Simulates a single button press on the TV remote.

Args:
    key_name: The name of the key to press (e.g., Home, Select, VolumeUp). 
              Common keys are Home, Back, Select, Up, Down, Left, Right.
              Special keys are: PowerOn, PowerOff, VolumeUp, VolumeDown, VolumeMute
ParametersJSON Schema
NameRequiredDescriptionDefault
key_nameYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It implies a mutation action ('presses') but doesn't disclose behavioral traits like whether this requires the TV to be on, if it's idempotent, or what happens on failure. It adds some context with key examples but lacks operational details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose in the first sentence and parameter details following in a structured format. Every sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (1 parameter) and the presence of an output schema (which handles return values), the description is mostly complete. However, it could improve by addressing usage guidelines and more behavioral context, especially since no annotations are provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the input schema, which has 0% coverage. It explains the parameter's purpose, provides concrete examples of common and special keys, and clarifies the expected format, fully compensating for the schema's lack of documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('simulates') and resource ('a single button press on the TV remote'), distinguishing it from siblings like get_device_info (information retrieval) or launch_app (application launching).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. For example, it doesn't clarify if this should be used instead of power_on for turning the TV on/off, or how it relates to launch_app for navigation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 5 tool updatesv0.1.1
    • First observedget_device_info
    • First observedlaunch_app
    • First observedlist_apps
    • First observedpower_on
    • First observedpress_key

TDQS

A4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: get_device_info retrieves device metadata, list_apps enumerates available applications, launch_app starts a specific app, power_on turns on the TV, and press_key simulates remote button presses. The descriptions explicitly differentiate their functions, eliminating any ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case: get_device_info, list_apps, launch_app, power_on, and press_key. This uniformity makes the tool set predictable and easy to understand, with no deviations in naming conventions.

Tool Count5/5

With 5 tools, this server is well-scoped for remote control functionality. Each tool serves a specific, essential purpose (device info, app management, power control, and key simulation), and none feel redundant or missing for basic TV operations. The count is appropriate for the domain.

Completeness4/5

The tool set covers core remote control operations effectively, including power management, app launching, and key presses. However, minor gaps exist, such as the lack of a power_off tool (though press_key can simulate PowerOff) and no explicit volume control beyond key presses, which agents can work around but might slightly hinder seamless automation.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that enables AI assistants to control Home Assistant via natural language, including device control, automation management, and system configuration.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for controlling Google TV devices via natural language. Enables key presses, text input, and app launching on paired devices.
    5
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that lets AI agents control Android TVs via ADB, including searching and playing content across streaming services, managing power and volume, and sending remote control commands.
    6
    12
    3
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AaronGoldsmith/mcp-remote-control'

If you have feedback or need assistance with the MCP directory API, please join our Discord server