Talk to your TV. Control any smart TV with natural language.
Project description
📺
smartest-tv
The CLI your TV has been waiting for.
Play Netflix by name. Cast URLs. Multi-room audio. AI concierge. All from your terminal.
한국어 · 中文 · 日本語 · Español · Deutsch · Português · Français
pip install stv && stv setup
Runs on your local network. No cloud. No API keys. No subscriptions.
| 😩 Without stv | 😎 With stv |
|---|---|
~30 seconds |
stv play netflix "Dark" s1e1
~3 seconds |
🎨 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 namestv play netflix "Dark" s1e1
stv play youtube "baby shark"
stv play spotify "chill vibes"
Say the name. stv finds the ID, opens the app, starts playback. |
🔗 Cast any URLstv 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 & partystv queue add youtube "Gangnam Style"
stv queue add spotify "Blinding Lights"
stv queue play
Everyone adds their pick. TV plays in order. |
🎭 Scene presetsstv 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 audiostv audio play "lo-fi beats"
stv audio volume kitchen 30
stv audio stop
Screens off. Music everywhere. |
📺 TV as displaystv display message "Dinner!"
stv display clock
stv display dashboard "Temp:22°C"
Dashboards, clocks, signage. |
📊 Watch intelligencestv insights
stv screen-time
stv sub-value netflix --cost 17.99
Is your Netflix worth $18/month? |
🌐 Sync partystv --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
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:
|
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
|
▲ 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
🔌 Works with
| Integration | How |
|---|---|
| Claude Code / Cursor | Add MCP config → "play Dark s1e1" |
| OpenClaw | clawhub install smartest-tv → Telegram bot |
| Home Assistant | Shell commands in automations |
| 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 |
🤝 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
MIT License · Made with Python · No cloud required
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stv-0.9.0.tar.gz.
File metadata
- Download URL: stv-0.9.0.tar.gz
- Upload date:
- Size: 13.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88030893248e9f3d1130d7ab64077387e9e357cf58ad8ce4c6d5680efc312bd3
|
|
| MD5 |
fcdfa4132a71d35dcbc456c3dba4f2e4
|
|
| BLAKE2b-256 |
f7593db08b45b710842e2a7208f60b9660ccc23c8c857299750b2dd9ee4e7394
|
File details
Details for the file stv-0.9.0-py3-none-any.whl.
File metadata
- Download URL: stv-0.9.0-py3-none-any.whl
- Upload date:
- Size: 100.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67eaa681001f46bc2eb8f40d25bd4574b07d1ec6de8ec0387b1353ac67037e30
|
|
| MD5 |
02cf12a2e04c0c7dc392d58c842c6c05
|
|
| BLAKE2b-256 |
83a3fec97843edafb61f5861cf1fd9f67787bbd15d9f53183869126b9badc71e
|