Smartest-TV
Control any smart TV with natural language — play Netflix/YouTube/Spotify by name, cast URLs, scene presets, multi-room audio, and multi-TV sync. Supports LG, Samsung, Android TV, Roku.
README
<h1 align="center"> <br> 📺 <br> smartest-tv <br> </h1>
<h4 align="center">The CLI your TV has been waiting for.</h4>
<p align="center"> <b>Play Netflix by name. Cast URLs. Multi-room audio. AI concierge. All from your terminal.</b> </p>
<p align="center"> <a href="https://pypi.org/project/stv/"><img src="https://img.shields.io/pypi/v/stv?style=flat-square&color=blue" alt="PyPI"></a> <a href="https://pypi.org/project/stv/"><img src="https://img.shields.io/pypi/dm/stv?style=flat-square&color=green" alt="Downloads"></a> <a href="tests/"><img src="https://img.shields.io/badge/tests-211%20passed-brightgreen?style=flat-square" alt="Tests"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-yellow?style=flat-square" alt="MIT License"></a> <a href="https://python.org"><img src="https://img.shields.io/badge/python-3.11+-3776ab?style=flat-square&logo=python&logoColor=white" alt="Python"></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-21%20tools-8A2BE2?style=flat-square" alt="MCP Tools"></a> <a href="https://glama.ai/mcp/servers/Hybirdss/smartest-tv"><img src="https://img.shields.io/badge/Glama-A%20A%20A-00d992?style=flat-square" alt="Glama Score"></a> <a href="https://github.com/vitalets/awesome-smart-tv"><img src="https://img.shields.io/badge/awesome--smart--tv-listed-fc60a8?style=flat-square&logo=awesome-lists&logoColor=white" alt="Awesome Smart TV"></a> </p>
<p align="center"> <a href="docs/i18n/README.ko.md">한국어</a> · <a href="docs/i18n/README.zh.md">中文</a> · <a href="docs/i18n/README.ja.md">日本語</a> · <a href="docs/i18n/README.es.md">Español</a> · <a href="docs/i18n/README.de.md">Deutsch</a> · <a href="docs/i18n/README.pt-br.md">Português</a> · <a href="docs/i18n/README.fr.md">Français</a> </p>
<br>
<p align="center"><code>pip install stv && stv setup</code></p>
<p align="center"><sub>Runs on your local network. No cloud. No API keys. No subscriptions.</sub></p>
<p align="center"> <img src="docs/assets/hero.png" alt="The Evolution of TV Control" width="720"> </p>
<br>
<table align="center"> <tr> <th>😩 Without stv</th> <th>😎 With stv</th> </tr> <tr> <td>
- Pick up remote
- Open Netflix app
- Search for show
- Pick the season
- Pick the episode
- Press play
~30 seconds
</td> <td>
stv play netflix "Dark" s1e1
~3 seconds
</td> </tr> </table>
<br>
✨ What it does
<table> <tr> <td width="33%" valign="top">
🎬 Play by name
stv 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.
</td> <td width="33%" valign="top">
🔗 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.
</td> <td width="33%" valign="top">
🎵 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.
</td> </tr> <tr> <td width="33%" valign="top">
🎭 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.
</td> <td width="33%" valign="top">
🔊 Multi-room audio
stv audio play "lo-fi beats"
stv audio volume kitchen 30
stv audio stop
Screens off. Music everywhere.<br>Free Sonos.
</td> <td width="33%" valign="top">
📺 TV as display
stv display message "Dinner!"
stv display clock
stv display dashboard "Temp:22°C"
Dashboards, clocks, signage.<br>$0/month.
</td> </tr> <tr> <td width="33%" valign="top">
📊 Watch intelligence
stv insights
stv screen-time
stv sub-value netflix --cost 17.99
Is your Netflix worth $18/month?
</td> <td width="33%" valign="top">
🌐 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.
</td> <td width="33%" valign="top">
🤖 AI concierge
"Play something chill"
→ tv_recommend → tv_play
→ Playing The Queen's Gambit
21 MCP tools. One sentence is enough.
</td> </tr> </table>
🤖 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.
<table> <tr> <td width="50%" valign="top">
Setup (one line):
{
"mcpServers": {
"tv": {
"command": "uvx",
"args": ["stv"]
}
}
}
Or via OpenClaw:
clawhub install smartest-tv
</td> <td width="50%" valign="top">
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
</td> </tr> </table>
<details> <summary><b>All 21 MCP tools</b></summary> <br>
| 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 |
</details>
📅 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
<table> <tr> <td width="33%" valign="top">
🌙 Bedtime autopilot
stv audio play "rain" --rooms bedroom
stv scene sleep
stv --all off
Ambient sound, screen off, auto-timer, every other TV killed.
</td> <td width="33%" valign="top">
🎧 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.
</td> <td width="33%" valign="top">
💰 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
</td> </tr> </table>
<p align="center"> <a href="https://github.com/Hybirdss/smartest-tv/releases/download/v0.3.0/KakaoTalk_20260403_051617935.mp4"> <img src="docs/assets/demo.gif" alt="smartest-tv demo" width="720"> </a> <br> <sub>▲ Click to watch the full demo</sub> </p>
⚙️ 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
<p align="center"> <img src="docs/assets/mascot.png" alt="smartest-tv mascot" width="256"> </p>
<p align="center"> <sub>MIT License · Made with Python · No cloud required</sub> </p>
<!-- mcp-name: io.github.Hybirdss/smartest-tv -->
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。