Smartest-TV
Control your TV, play streaming content, manage multi-room audio, and get AI-powered recommendations — all from natural language or CLI commands.
🎬 Content Playback
tv_play— Play content by name on Netflix, YouTube, Spotify, Disney+, Prime Video, and more (auto-detects platform, supports specific seasons/episodes)tv_cast— Cast any Netflix, YouTube, or Spotify URL directly to your TVtv_next— Continue watching the next episode based on watch historytv_launch— Launch an app or deep-link with a known content IDtv_resolve— Resolve a content name to its platform ID without playing
🔍 Discovery & Recommendations
tv_whats_on— Browse trending content on Netflix and YouTubetv_recommend— Get personalized recommendations based on watch history and mood (chill, action, kids, random)
🎮 TV Control
tv_power— Turn the TV on or offtv_volume— Get/set volume, step up/down, or toggle mutetv_screen— Turn the screen on/off while audio continuestv_notify— Display a toast notification on the TV screentv_status— Get current TV state (app, volume, mute, model, firmware)
📋 Organization
tv_queue— Manage a play queue (add, show, play, skip, clear)tv_scene— Run or list scene presets (movie-night, kids, sleep, music)tv_history— View recent play history
🖥️ TV as Display
tv_display— Show messages, clocks, dashboards, photo slideshows, or embedded websites on the TV
🔊 Multi-Room Audio
tv_audio— Play music across multiple TVs with screens off, with per-room volume control (free Sonos alternative)
📺 Multi-TV Management
tv_sync— Play content on multiple TVs simultaneously (party mode)tv_list_tvs— List all configured TVs with detailstv_groups— List TV groups and their members for bulk control
📊 Intelligence & Analytics
tv_insights— Get viewing stats, screen time reports, and subscription value analysis
⚙️ Platform & Integrations
Supports LG webOS, Samsung Tizen, Android TV/Fire TV, and Roku
Integrates with Home Assistant (HACS), MCP clients (Claude, Cursor, GPT), cron, and shell scripts
Runs entirely on your local network — no telemetry or cloud sync
Enables searching and playing Apple TV+ content by name via HTML parsing, without requiring login.
Integrates with Crunchyroll for searching and playing anime content by name.
Allows playing Netflix content by name or URL, with support for season and episode selection, and deep-linking directly to playback.
Supports searching and playing content from Paramount+ by name via JustWatch API.
Allows playing Prime Video content by name via JustWatch API integration.
Enables multi-room audio playback, allowing music to be played across multiple TVs or rooms simultaneously.
Allows playing Spotify tracks or playlists by name or URL, and integrating with multi-room audio features.
Supports playing YouTube videos by name or URL, and queueing content for multi-room audio.
Pick up remote
Open Netflix app
Search for show
Pick the season
Pick the episode
Press play
~30 seconds
stv play netflix "Dark" s1e1~3 seconds
No TV? No problem. Without a TV configured, stv opens content directly in your browser. Netflix, YouTube, Spotify, Disney+ — just
pip install stvand go.
🛋 Vibe-code and chill
Vibe-coding at 2am. Claude writes your code. You tell it to put on a show. It does.
you: play frieren on the living room tv
claude: Playing Frieren s2e8 on Living Room. (3s)
you: bit quieter
claude: Volume → 18.
you: good night
claude: All 3 TVs off.Already installed stv? Just tell Claude:
# Option 1 — just talk (zero config)
"run stv play netflix Frieren s2e8"
# Option 2 — install the Skill for auto-trigger
clawhub install smartest-tv
# now "play Frieren", "good night", "next episode" just work mid-sessionAlso available as an MCP server (21 tools) for Claude Code, Codex, Antigravity, and other MCP clients.
🎯 Just type stv
No subcommand? You get a Now Playing card and three contextual next-actions based on your watch history — not a 30-command help dump.
$ stv "play dark on netflix" # natural language works
$ stv play "Frieren" # auto-detects platform
$ stv next # continue last show
$ stv stats # → insightsUnknown input? You get a friendly hint, not an error.
🎨 A CLI that looks like a product
Every command renders with Catppuccin Mocha colors, semantic icons, and real
visual hierarchy. Prefer another palette? Set STV_THEME=nord or STV_THEME=gruvbox.
--format json is always available when you need to pipe to jq.
✨ What it does
🎬 Play by name
stv play netflix "Dark" s1e1
stv play disney "Percy Jackson" s1e1
stv play prime "The Boys" s1e1
stv play "Frieren" s2e8 # auto-detects platformSay the name. stv finds the ID, opens the app, starts playback. Netflix and Apple TV+ resolve via HTML parsing. Disney+, Max, Prime, Hulu, Paramount+, Peacock, Crunchyroll, and every platform on JustWatch resolve via their API — no login, no API key. Skip the platform name and stv auto-detects where it's streaming in your region.
🔗 Cast any URL
stv cast https://youtu.be/dQw4w
stv cast https://netflix.com/watch/...
stv cast https://open.spotify.com/...Friend sends a link. Paste it. TV plays it.
🎵 Queue & party
stv queue add youtube "Gangnam Style"
stv queue add spotify "Blinding Lights"
stv queue playEveryone adds their pick. TV plays in order.
🎭 Scene presets
stv scene movie-night # volume 20, cinema
stv scene kids # volume 15, Cocomelon
stv scene sleep # rain sounds, auto-offOne command sets the vibe.
🔊 Multi-room audio
stv audio play "lo-fi beats"
stv audio volume kitchen 30
stv audio stopScreens off. Music everywhere.Free Sonos.
📺 TV as display
stv display message "Dinner!"
stv display clock
stv display dashboard "Temp:22°C"Dashboards, clocks, signage.$0/month.
📊 Watch intelligence
stv insights
stv screen-time
stv sub-value netflix --cost 17.99Is your Netflix worth $18/month?
🌐 Sync party
stv --all play youtube "lo-fi beats"
stv --group party play netflix "Wed..."
stv --all off # good nightEvery TV. At once. Even remote friends.
🤖 AI concierge
"Play something chill"
→ tv_recommend → tv_play
→ Playing The Queen's Gambit21 MCP tools. One sentence is enough.
🤖 Tell your AI to control your TV
stv is an MCP server. Claude, GPT, Cursor, or any MCP client can control your TV with natural language.
Setup (one line):
{
"mcpServers": {
"tv": {
"command": "uvx",
"args": ["stv"]
}
}
}Or via OpenClaw:
clawhub install smartest-tvThen just talk:
You: "I just got home, set up movie night"
Claude: 🎬 Movie night activated.
Volume → 20, cinema mode on.
Based on your history:
1. The Queen's Gambit (Netflix)
2. Ozark (Netflix)
3. Squid Game S2 (Netflix)
You: "Play 1, put a clock on kitchen TV"
Claude: ✓ Playing The Queen's Gambit
✓ Clock on kitchen TVCategory | Tool | What it does |
Play |
| Search + play by name |
| Cast any URL | |
| Continue watching | |
| Launch app with ID | |
| Get content ID only | |
Discover |
| Trending content |
| Personalized picks | |
Control |
| On/off |
| Get/set/step/mute | |
| Screen on/off | |
| Toast notification | |
| Current state | |
Organize |
| Play queue |
| Scene presets | |
| Watch history | |
Intelligence |
| Viewing stats |
| TV as display | |
| Multi-room audio | |
Multi-TV |
| Play on all TVs |
| List TVs | |
| TV groups |
📅 A day with stv
Time | What happens |
7am |
|
8am |
|
12pm | Friend sends Netflix link → |
5pm |
|
6:30pm |
|
7pm |
|
9pm |
|
10pm |
|
11:30pm |
|
🔥 Killer combos
🌙 Bedtime autopilot
stv audio play "rain" --rooms bedroom
stv scene sleep
stv --all offAmbient sound, screen off, auto-timer, every other TV killed.
🎧 Free Sonos
stv audio play "lo-fi beats"
stv audio volume kitchen 40
stv audio volume bedroom 15Every TV is a speaker. Per-room volume. Screens off.
💰 Subscription audit
stv sub-value netflix --cost 17.99
# → $8.50/hr — consider canceling
stv sub-value youtube --cost 13.99
# → $1.20/hr — good value⚙️ How it works
"Play Dark S1E1"
│
▼
┌─── Resolution ───┐
│ Cache → API → Web │ content_id
│ 0.1s 1s 3s │──────────────▶ 📺 TV plays it
└───────────────────┘ │
Deep link via
LG / Samsung / Roku / AndroidSay a name. stv resolves it to a content ID, deep-links into the app on your TV. No browser automation, no API keys, no cloud dependency. Results are cached so repeat plays are instant.
📦 Install
pip install stv # LG webOS (default)
pip install "stv[samsung]" # Samsung Tizen
pip install "stv[android]" # Android TV / Fire TV
pip install "stv[all]" # Everythingstv setup # auto-discover + pair your TVSupports LG webOS · Samsung Tizen · Android TV / Fire TV · Roku
Home Assistant (HACS)
Add as a custom repository (default listing in review: hacs/default#6907):
HACS → ⋮ (top right) → Custom repositories
URL: https://github.com/Hybirdss/smartest-tv
Category: Integration → Add
Then: Install → Restart HA
Settings → Integrations → Add → "Smartest TV" → auto-discovers your TVsThen use in automations:
service: media_player.play_media
target:
entity_id: media_player.living_room
data:
media_content_type: stv
media_content_id: "netflix:Frieren:s2e8"This does what HA's built-in media_player.play_media can't: resolve a show by name and deep-link into the streaming app. Power, volume, and playback controls also work as standard HA media player entities.
🔌 Works with
Integration | How |
Home Assistant | HACS custom integration → |
Claude Code / Cursor | Add MCP config → |
OpenClaw |
|
cron |
|
Shell scripts |
|
Any MCP client | 21 tools, stdio or HTTP ( |
📚 Docs
Setup for any TV brand | |
play, cast, queue, resolve | |
movie-night, kids, sleep, custom | |
Multi-TV, remote watch party | |
10 powerful feature combos | |
MCP for Claude, Cursor, OpenClaw | |
Every command and option | |
All 21 tools with parameters |
🔓 Open source
Every line of stv is on GitHub — the CLI, resolvers (Netflix, Apple TV+, YouTube, Spotify, Disney+, Max, Prime Video, Paramount+, Hulu, Peacock, Crunchyroll, and more via JustWatch), all 4 TV drivers (LG, Samsung, Roku, Android), cache, sync engine, scenes, and all 253 tests. Streaming availability data powered by JustWatch.
🔒 Privacy
stv runs on your local network. No telemetry, no analytics, no cloud
sync, no phoning home about what you watch. There is no posthog, no
amplitude, no sentry, no mixpanel — grep the source.
One exception — community cache contribution. When you play content that isn't in the local cache, stv resolves it (via web parsing) and submits the resolved ID to a shared community cache so the next user gets an instant lookup. This is the same pattern as Wikipedia or a package mirror — many small contributions, anonymous.
What's sent (background HTTPS, fire-and-forget, never blocks playback):
Platform name (
netflix/youtube/spotify)Content slug (e.g.
frieren)Resolved content ID (Netflix title ID, YouTube video ID, Spotify URI)
What's not sent:
Your name, email, or any user identifier
Your IP address (the CDN sees a connection IP per standard HTTP, but the client never reads or transmits it)
Your watch history or play timestamps
Your TV's IP address or hardware info
Anything about how often or when you use stv
To disable cache contribution entirely:
export STV_NO_CONTRIBUTE=1Source: src/smartest_tv/cache.py — search for _contribute.
🤝 Contributing
211 tests. No TV needed to run them.
pip install -e ".[dev]"
python -m pytest tests/ -vSamsung, Roku, and Android TV drivers need real-world testing. If you have one, your feedback matters.
Cache Contributions · Driver Development
Maintenance
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/Hybirdss/smartest-tv'
If you have feedback or need assistance with the MCP directory API, please join our Discord server