Skip to main content

Talk to your TV. Play Netflix, Disney+, and 20+ streaming platforms by name on any smart TV.

Project description


๐Ÿ“บ
smartest-tv

The CLI your TV has been waiting for.

Play Netflix / Apple TV+ / YouTube / Spotify by name. Cast URLs. Multi-room audio. AI concierge. All from your terminal.

PyPI: stv Total Downloads Downloads/month Tests MIT License Python MCP Tools Glama Score Awesome Smart TV HACS

ํ•œ๊ตญ์–ด ยท ไธญๆ–‡ ยท ๆ—ฅๆœฌ่ชž ยท Espaรฑol ยท Deutsch ยท Portuguรชs ยท Franรงais


pip install stv && stv setup

Runs on your local network. No cloud. No API keys. No subscriptions.

The Evolution of TV Control



๐Ÿ˜ฉ Without stv ๐Ÿ˜Ž With stv
  1. Pick up remote
  2. Open Netflix app
  3. Search for show
  4. Pick the season
  5. Pick the episode
  6. Press play

~30 seconds

stv play netflix "Dark" s1e1

~3 seconds



๐Ÿ›‹ 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-session

Also available as an MCP server (21 tools) for Claude Code, Codex, Antigravity, and other MCP clients.


๐ŸŽฏ Just type stv

stv home dashboard

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 youtube lofi beats         # platform shorthand
$ stv next                       # continue last show
$ stv stats                      # โ†’ insights

Unknown input? You get a friendly hint, not an error.


๐ŸŽจ A CLI that looks like a product

stv status stv insights
stv scene list stv multi list
stv doctor natural language

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 platform

Say 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 play

Everyone 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-off

One command sets the vibe.

๐Ÿ”Š Multi-room audio

stv audio play "lo-fi beats"
stv audio volume kitchen 30
stv audio stop

Screens 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.99

Is your Netflix worth $18/month?

๐ŸŒ Sync party

stv --all play youtube "lo-fi beats"
stv --group party play netflix "Wed..."
stv --all off   # good night

Every TV. At once. Even remote friends.

๐Ÿค– AI concierge

"Play something chill"
โ†’ tv_recommend โ†’ tv_play
โ†’ Playing The Queen's Gambit

21 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-tv

Then 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 TV
All 21 MCP tools
Category Tool What it does
Play tv_play Search + play by name
tv_cast Cast any URL
tv_next Continue watching
tv_launch Launch app with ID
tv_resolve Get content ID only
Discover tv_whats_on Trending content
tv_recommend Personalized picks
Control tv_power On/off
tv_volume Get/set/step/mute
tv_screen Screen on/off
tv_notify Toast notification
tv_status Current state
Organize tv_queue Play queue
tv_scene Scene presets
tv_history Watch history
Intelligence tv_insights Viewing stats
tv_display TV as display
tv_audio Multi-room audio
Multi-TV tv_sync Play on all TVs
tv_list_tvs List TVs
tv_groups TV groups

๐Ÿ“… A day with stv

Time What happens
7am stv display dashboard "Weather:18ยฐC" "Meeting:10am" on kitchen TV
8am stv scene kids --tv kids-room -- Cocomelon, volume 15
12pm Friend sends Netflix link โ†’ stv cast <url>
5pm stv screen-time โ†’ kids watched 2h 15m today
6:30pm stv scene movie-night -- volume 20, cinema mode
7pm stv recommend --mood chill โ†’ suggests Ozark
9pm stv audio play "friday vibes" -p spotify -- music everywhere
10pm stv --group party play netflix "Wednesday" s1e1 -- sync
11:30pm stv scene sleep โ†’ stv --all off -- good night

๐Ÿ”ฅ Killer combos

๐ŸŒ™ Bedtime autopilot

stv audio play "rain" --rooms bedroom
stv scene sleep
stv --all off

Ambient 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 15

Every 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

10 more recipes โ†’


smartest-tv demo
โ–ฒ Click to watch the full demo


โš™๏ธ 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 / Android

Say 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]"             # Everything
stv setup                          # auto-discover + pair your TV

Supports LG webOS ยท Samsung Tizen ยท Android TV / Fire TV ยท Roku

Home Assistant (HACS)

hacs_badge

Add as a custom repository (HACS default listing pending):

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 TVs

Then 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 โ†’ media_player.play_media with content resolution
Claude Code / Cursor Add MCP config โ†’ "play Dark s1e1"
OpenClaw clawhub install smartest-tv โ†’ Telegram bot
cron 0 7 * * * stv display dashboard ...
Shell scripts sleep-mode, party-mode one-liners
Any MCP client 21 tools, stdio or HTTP (stv serve)

๐Ÿ“š Docs

Getting Started Setup for any TV brand
Playing Content play, cast, queue, resolve
Scenes movie-night, kids, sleep, custom
Sync & Party Multi-TV, remote watch party
Recipes 10 powerful feature combos
AI Agents MCP for Claude, Cursor, OpenClaw
CLI Reference Every command and option
MCP Tools 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=1

Source: 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/ -v

Samsung, Roku, and Android TV drivers need real-world testing. If you have one, your feedback matters.

Cache Contributions ยท Driver Development


smartest-tv mascot

MIT License ยท Made with Python ยท No cloud required

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stv-1.0.1.tar.gz (14.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stv-1.0.1-py3-none-any.whl (116.4 kB view details)

Uploaded Python 3

File details

Details for the file stv-1.0.1.tar.gz.

File metadata

  • Download URL: stv-1.0.1.tar.gz
  • Upload date:
  • Size: 14.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for stv-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fac9bac15226f338d795f32b1051b4536af84ae596ddbf8322ffd8d3ee8f40e8
MD5 2f4e25195006ee692f56b54ad05c6353
BLAKE2b-256 ae56886cc03331f746c9eb9f062c4798ecb879a328da6cc34a1a1ccfaa93b4be

See more details on using hashes here.

File details

Details for the file stv-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: stv-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 116.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for stv-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3bc8fce33bd60cee3efd9ef1615bf8a38b7cb1f140e8ed2ddd4c8e8e6e8f25e
MD5 6b753c53b85977657d38dfb20968815b
BLAKE2b-256 1a024ff8bc95887ccca7afbc390a715ee3aad4e9b082fe21a630d68ee6b047c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page