Server data from the Official MCP Registry
Search, play, and control Stremio on Android TV over native ADB.
About
Search, play, and control Stremio on Android TV over native ADB.
Security Report
Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
3 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: ANDROID_TV_HOST
Environment variable: ANDROID_TV_PORT
Environment variable: TMDB_API_KEY
Environment variable: STREMIO_AUTH_KEY
Environment variable: ADB_PATH
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-netixc-stremio-mcp": {
"env": {
"ADB_PATH": "your-adb-path-here",
"TMDB_API_KEY": "your-tmdb-api-key-here",
"ANDROID_TV_HOST": "your-android-tv-host-here",
"ANDROID_TV_PORT": "your-android-tv-port-here",
"STREMIO_AUTH_KEY": "your-stremio-auth-key-here"
},
"args": [
"stremio-mcp-server"
],
"command": "uvx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
Stremio MCP Server
A Python Model Context Protocol (MCP) server for searching TMDB, opening Stremio content on Android TV, controlling playback over ADB, and optionally accessing your Stremio library.
[!IMPORTANT] This server can control a physical Android TV and, when
STREMIO_AUTH_KEYis configured, add or remove items from your Stremio library. ADB grants powerful device access. Review tool requests, keep credentials private, and disable Wireless Debugging when you are not using it.
What it does
- Searches TMDB for movies and TV shows and returns IMDb IDs.
- Opens a movie or a specific series episode in Stremio on Android TV.
- Sends navigation, playback, volume, and power commands through native ADB.
- Reads device-dependent playback title, state, position, and duration data.
- Optionally lists, searches, adds, and removes Stremio library items.
Requirements
- Android TV with Stremio installed and configured with working addons
- For modern Wireless Debugging on TV: Android TV / Google TV running Android 13 (API 33) or higher, per Google's wireless adb requirements
- Python 3.10+
- uv
- Android SDK Platform Tools (
adb) — install a current release and keep it updated; use at least the wireless-debugging era of Platform Tools (30.0.0+, whenadb pairlanded). Prefer the latest stable from the Platform Tools page for mDNS and TLS fixes - A free TMDB API key for title search
- Optional: a Stremio auth key for library access
Installation
PyPI package (recommended)
Run the latest published release without cloning the repository:
uvx stremio-mcp-server
To run the current release explicitly:
uvx --from stremio-mcp-server==0.2.0 stremio-mcp-server
[!NOTE] This project is published on PyPI as
stremio-mcp-server. A separate, unrelated project is published asstremio-mcp; installing that name does not install this server. Thestremio-mcpconsole script below is provided by thestremio-mcp-serverdistribution.
Source checkout
Use a source checkout for development or local modifications:
git clone https://github.com/netixc/stremio-mcp.git
cd stremio-mcp
uv sync --locked
cp .env.example .env
Edit .env with your TV endpoint and API keys. The file is ignored by Git; never commit it.
TMDB_API_KEY=your_tmdb_api_key
ANDROID_TV_HOST=192.168.1.100
ANDROID_TV_PORT=37139
STREMIO_AUTH_KEY=
# ADB_PATH=/absolute/path/to/adb
Pair and connect the TV
This server talks to the TV through the native Platform Tools adb client, not a pure-Python ADB library. That is intentional: modern Wireless Debugging negotiates TLS (STLS) and this project needs a full shell for intents, key events, and media-session diagnostics. Pure-Python clients that only speak legacy ADB-over-TCP do not cover that path.
On the TV, enable Developer options and Wireless debugging. Menu names vary by manufacturer. Official wireless debugging for TV requires Android 13+; see Google's Connect to a device over Wi-Fi guide.
Modern Wireless Debugging displays separate pairing and connection ports (often ephemeral). Pair once, then connect with the current connection port:
adb pair TV_IP:PAIRING_PORT
# Enter the temporary pairing code shown on the TV.
adb connect TV_IP:CONNECTION_PORT
adb devices -l
Set ANDROID_TV_PORT to the connection port, not the temporary pairing port. The device must appear as device, not offline or unauthorized. Wireless Debugging ports may change after a reboot or after debugging is toggled. On newer Platform Tools and Android versions, a previously paired device may also reconnect via mDNS when it returns to a trusted network; still configure the explicit connection port when the UI shows one.
Legacy network debugging may use port 5555 (adb tcpip after USB); only use that workflow when your TV explicitly documents it. Prefer Wireless Debugging on supported TVs.
Configure your MCP client
Claude Desktop configuration file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
PyPI package (recommended)
Create a private environment file from the example above, then configure:
{
"mcpServers": {
"stremio": {
"command": "uvx",
"args": [
"--env-file",
"/absolute/path/to/stremio.env",
"stremio-mcp-server"
]
}
}
}
Source checkout
Replace both absolute paths:
{
"mcpServers": {
"stremio": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/stremio-mcp",
"run",
"--env-file",
"/absolute/path/to/stremio-mcp/.env",
"stremio-mcp"
]
}
}
}
Restart the MCP client after changing configuration. You can instead place the variables directly in the client configuration's env object, but that file must remain private.
Configuration
| Variable | Required for | Sensitive | Description |
|---|---|---|---|
ANDROID_TV_HOST | Playback and TV tools | Local network detail | Android TV IP address |
ANDROID_TV_PORT | Playback and TV tools | No | Current ADB connection port; defaults to legacy 5555 |
TMDB_API_KEY | search and title-based play with source="search" | Yes | TMDB credential. A v4 read access token is sent as an Authorization header; a legacy v3 key has no header form and is sent as a query parameter |
STREMIO_AUTH_KEY | library and library-based play | Yes | Account token used for Stremio library reads and writes; sent in the HTTPS request body only |
ADB_PATH | Optional | No | Native ADB executable; defaults to adb on PATH |
Features initialize independently. For example, TMDB search works without a TV connection, while direct IMDb playback does not require TMDB. Leave STREMIO_AUTH_KEY empty to disable library access.
Network bounds
Every HTTP request uses one shared async client with explicit timeouts, a bounded response size, and a bounded connection pool, so a slow or unreachable service cannot stall other tool calls or device controls. The defaults are safe; override them only when a slow link makes them too tight. An unparsable or out-of-range value is reported by variable name and replaced with the default.
| Variable | Default | Description |
|---|---|---|
STREMIO_MCP_CONNECT_TIMEOUT | 5 | Seconds to establish a connection |
STREMIO_MCP_READ_TIMEOUT | 20 | Seconds to wait for response data |
STREMIO_MCP_WRITE_TIMEOUT | 20 | Seconds to send request data |
STREMIO_MCP_POOL_TIMEOUT | 5 | Seconds to wait for a pooled connection |
STREMIO_MCP_MAX_RESPONSE_BYTES | 4194304 | Maximum TMDB/Cinemeta response body |
STREMIO_MCP_LIBRARY_MAX_RESPONSE_BYTES | 16777216 | Maximum Stremio library response body |
STREMIO_MCP_MAX_CONNECTIONS | 8 | Maximum simultaneous connections |
STREMIO_MCP_MAX_CONCURRENT_REQUESTS | 4 | Maximum simultaneous TMDB requests during a fan-out search |
Tools and effects
| Tool | Purpose | External access and side effects |
|---|---|---|
search | Read-only TMDB discovery for movies/TV and IMDb IDs | Sends bounded read-only requests to TMDB; never changes the TV or account |
play | Open a movie or episode by direct IMDb ID or by title | Requires ADB; title search may query TMDB or the library, opens Stremio, and attempts a center key press |
library | Read the account or add/remove explicit items | Requires the Stremio auth key; only add and remove persist account changes |
tv_control | Send volume, playback, navigation, or power commands | Sends commands to the physical Android TV; playback stop verifies its post-condition |
playback_status | Read the current Stremio playback snapshot | Reads only Stremio-scoped media-session, audio-track, uptime, and extractor diagnostics |
Use search for TMDB discovery and library with action=search for the personal Stremio collection. Use play to open content, tv_control for remote-like commands, and playback_status to inspect what is actually playing. All five tools return plain text rather than structured result objects.
Library mutations require an explicit IMDb ID and content type. Search first when a title is ambiguous; title-based play otherwise uses the first matching result. For play title searches, source=search requires both season and episode for TV; source=library can use a saved episode or default to S1E1. Direct series playback also requires both numbers. play reports an accepted Android intent, not a verified stream or center-key action.
Library reads report empty, not found, and unavailable outcomes distinctly. Mutations fail closed: add and remove abort without writing whenever the preceding read failed, returned an item whose _id is not exactly the requested ID, returned duplicate or unrequested rows, or returned an item of a different content type. Re-adding and removing are account mutations that preserve watch state; removal is a soft delete and writes are verified with a follow-up read.
search reports a TMDB outage as an error rather than as "no results". When an automatic search reaches only one of the movie and TV halves, it returns the half that succeeded and appends a (partial results — …) note. tv_control does not verify ordinary key effects; use playback_status for a snapshot, whose stalled state means a claimed PLAYING session lacked corroborating live Stremio audio. Do not send navigate/select unless Stremio has the intended focus.
Example prompts
Search for Dune movies from 2021.
Play movie tt1375666.
Play Breaking Bad season 1 episode 1.
Pause playback.
What's currently playing?
Search my Stremio library for Severance.
Add movie tt1375666 to my library.
See the usage examples for accurate tool-level workflows and safer search-then-play examples.
Verify the setup
Test one boundary at a time:
adb devices -l— confirms the TV connection.- Ask the MCP client to list tools — should show the five tools above.
- “Search for Inception” — confirms the TMDB key and network access.
- “Play movie
tt1375666” — confirms ADB and Stremio deep linking. - “List my Stremio library” — optionally confirms the Stremio auth key.
The play tool confirms that Android accepted the Stremio intent, then attempts a center key press; it does not verify the key press or guarantee that an addon supplied a stream. Stremio may show a source list that requires tv_control or a physical remote.
Troubleshooting
TV is offline, unauthorized, or unreachable
adb disconnect TV_IP:CONNECTION_PORT
adb connect TV_IP:CONNECTION_PORT
adb devices -l
- Confirm the computer and TV are on the same LAN and client isolation is disabled.
- Use the current connection port, not the pairing port.
- Accept the authorization prompt on the TV.
- If pairing is stale, forget the computer on the TV and pair again.
- On macOS, grant Local Network permission under Privacy & Security → Local
Network to the
adbbinary itself. A reliable pattern is to start the ADB server once from a permitted GUI terminal, then let the MCP server and other tools act as localhost clients of that existing server. - A failure reported as
local_network_deniedmeans the MCP server itself reached the TV over raw TCP whileadbcould not, so the network is fine: apply the two macOS steps above instead of debugging routing. - Do not run
adb kill-serveroradb start-serverfrom automated tooling: that can discard a permitted server and recreate it under a process without the required macOS permission.
Stremio opens but content does not play
- Launch Stremio manually once and sign in.
- Confirm that your Stremio addons provide streams for the title.
- Select a source with
tv_controlor a physical remote. - For direct IMDb or TMDB title playback of a series, provide both season and episode; library playback can use its saved episode or default to S1E1.
Search or library access fails
- Confirm the relevant key is present and has no quotes or extra spaces.
- Restart the MCP client after editing
.env. - Renew an expired Stremio key using the auth-key guide.
Limitations
- Android TV only; this server uses Android intents and ADB key events.
- Playback depends on Stremio addons and may require manual source selection.
- The automatic center press occurs after a fixed 2.5-second delay and may miss the expected control.
- Playback metadata varies by Android device, OS version, and active player.
- Modern Wireless Debugging connection ports can change.
- The host must reach TMDB, Stremio, and the TV on the local network for their respective features.
Technical notes
The server opens these Stremio deep links through ADB:
Movie: stremio:///detail/movie/{imdb_id}/{imdb_id}
Series: stremio:///detail/series/{imdb_id}/{imdb_id}:{season}:{episode}
Playback status is scoped to Stremio's media-session block. Claimed playing is corroborated with a started media AudioTrack for the session owner so Exo-player error / stale sessions are reported as stalled instead of healthy playback. Position is estimated from Android's monotonic playback clock only while playback is live, and duration may fall back to media-extractor diagnostics.
Playback stop verifies post-conditions (no active Stremio playback). When media-session stop is ignored, the server tries pause+back and, if needed, a bounded am force-stop com.stremio.one fallback, and reports failure if the session still plays.
Development
Credential-free checks use mocks and do not contact TMDB, Stremio, or an Android device:
uv sync --locked
uv run --locked python -m unittest discover -s tests -v
uv run --locked python -m compileall -q src tests
uv build
See CONTRIBUTING.md for the contribution workflow, CHANGELOG.md for release notes, and SECURITY.md for vulnerability reporting and credential-redaction guidance.
server.json is the metadata published to the official MCP Registry. The
canonical entry is linked in Availability.
Availability
Canonical sources for this server. Anything published elsewhere is not maintained here.
| Surface | Identity | Link |
|---|---|---|
| Source repository | netixc/stremio-mcp | https://github.com/netixc/stremio-mcp |
| Python package | stremio-mcp-server | https://pypi.org/project/stremio-mcp-server/ |
| Official MCP Registry | io.github.netixc/stremio-mcp | https://registry.modelcontextprotocol.io/v0.1/servers/io.github.netixc%2Fstremio-mcp/versions/latest |
| Current release | v0.2.0 | https://github.com/netixc/stremio-mcp/releases/tag/v0.2.0 |
Security
- Treat
STREMIO_AUTH_KEYlike a password; it permits library reads and writes. - Network failures are logged and returned as a category, host, and status code only. Configured credentials and secret-bearing query strings are stripped from every log record and every error the server returns, including tracebacks and third-party HTTP request logs.
- ADB failures are logged and returned as a bounded category with guidance only, such as unreachable, unauthorized, offline, or timeout; device endpoints, raw ADB output, and command payloads are never logged or returned.
- Treat ADB authorization as device-control access and protect
~/.android/adbkey. - Never post
.env, MCP client configuration, auth keys, device IPs, or ADB keys in issues or logs. - Review account and device mutations before approving them in your MCP client.
- Disable Wireless Debugging and revoke credentials when they are no longer needed.
License and disclaimer
Licensed under the MIT License.
This project is not affiliated with or endorsed by Stremio, TMDB, or Anthropic. It does not provide media or bypass Stremio addon requirements. Use it only with devices and accounts you are authorized to control.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
MarkItDown
Freeby Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
