smartest-tv
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
This MCP server and CLI tool allows you to control smart TVs (LG, Samsung, Roku, Android) using natural language or terminal commands. It enables users to play media, cast URLs, and manage TV settings directly from their local network.
Security Assessment
Overall risk: Medium. The tool is designed to make local network requests, which is necessary to discover and communicate with your TV. The automated code scan of 12 files found no dangerous patterns, no hardcoded secrets, and no requirement for risky system permissions. However, because this tool actively interacts with and controls devices on your local network, you should be aware of what devices it can access. While the project claims to run locally without cloud dependencies or API keys, standard network security caution is still advised.
Quality Assessment
Quality is a mixed bag based on its current maturity. The project is actively maintained, with its most recent code push happening today. It uses the permissive and standard MIT license, includes an impressive test suite (252 passed tests), and features highly thorough documentation with multiple translations. The main drawback is its low visibility; with only 7 GitHub stars, the project has not yet been widely peer-reviewed or battle-tested by the developer community.
Verdict
Use with caution: the code appears clean and locally contained, but early adoption means limited community trust and validation for a tool that directly accesses your local network.
📺 Control any smart TV with natural language. Play Netflix by name from your terminal. PyPI: stv · MCP server · LG/Samsung/Roku/Android
📺
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 |
~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
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
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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
Say the name. stv finds the ID, opens the app, starts playback. |
🔗 Cast any URL
Friend sends a link. Paste it. TV plays it. |
🎵 Queue & party
Everyone adds their pick. TV plays in order. |
🎭 Scene presets
One command sets the vibe. |
🔊 Multi-room audio
Screens off. Music everywhere. |
📺 TV as display
Dashboards, clocks, signage. |
📊 Watch intelligence
Is your Netflix worth $18/month? |
🌐 Sync party
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):
Or via OpenClaw:
|
Then just talk:
|
| 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
Ambient sound, screen off, auto-timer, every other TV killed. |
🎧 Free Sonos
Every TV is a speaker. Per-room volume. Screens off. |
💰 Subscription audit
|
▲ 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 → Integrations → + → "Smartest TV" → Install
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 |
🔒 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, noamplitude, 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
MIT License · Made with Python · No cloud required
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi





