smartest-tv

io.github.Hybirdss由 GitHub 账号 Hybirdss 发布v0.4.1更新于 Oct 27, 2026

Control any smart TV with natural language. Resolve Netflix/YouTube/Spotify and deep-link.

已验证STDIO仅桌面位置与生活媒体与设计

概览

AI 生成的概览

让助手控制 LG、三星、Roku 和 Android 智能电视:按名称播放、投放链接、调节音量、电源与场景。

可以做什么
  • 按名称搜索并播放内容、投放任意链接、继续观看、启动应用、解析内容 ID
  • 查看热门内容并获取个性化推荐
  • 控制开关机、音量、屏幕状态,发送通知并读取电视状态
  • 管理播放队列、场景预设和观看历史
  • 查看观看统计、把电视当作显示屏、进行多房间音频播放
  • 在多台电视间同步播放,列出电视并分组管理
适用场景
适合希望用自然语言免手动操作家中智能电视的场景:按名称播放剧集或电影、投放别人发来的链接、一键切换电影之夜场景,或睡前关闭所有电视,包括跨多个房间。
运行要求
以本地 Python 包运行(pip install stv 或 uvx stv),通过 stdio 通信。需要设置 TV_IP 和 TV_PLATFORM(lg、samsung、roku 或 android);TV_MAC 可选,用于网络唤醒。电视须与电脑处于同一局域网,配对时可能需要在电视上输入 PIN。仅支持桌面端。
安装前请注意
助手可以开关电视、调节音量、启动应用和开始播放,识别错误的指令会直接作用于真实设备。当内容不在本地缓存时,平台名称、内容标识和解析出的内容 ID 会通过 HTTPS 提交到共享社区缓存;可设置 STV_NO_CONTRIBUTE=1 关闭。不需要账号凭据或 API 密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 smartest-tv,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README


📺
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 MCP Servers] [Awesome Smart TV] [HACS]

한국어 · 中文 · 日本語 · Español · Deutsch · Português · Français


pip install stv && stv play "Frieren"

No TV? Opens in your browser. Got a TV? stv setup to connect it.

[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

bash
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 stv and 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 tvclaude: Playing Frieren s2e8 on Living Room. (3s)
you: bit quieterclaude: Volume → 18.
you: good nightclaude: All 3 TVs off.

Already installed stv? Just tell Claude:

bash
# Option 1 — just talk (zero config)"run stv play netflix Frieren s2e8"
# Option 2 — install the Skill for auto-triggerclawhub 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.

bash
$ stv "play dark on netflix"     # natural language works$ stv play "Frieren"             # auto-detects platform$ 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

bash
stv play netflix "Dark" s1e1stv play disney "Percy Jackson" s1e1stv play prime "The Boys" s1e1stv 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

bash
stv cast https://youtu.be/dQw4wstv cast https://netflix.com/watch/...stv cast https://open.spotify.com/...

Friend sends a link. Paste it. TV plays it.

🎵 Queue & party

bash
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

bash
stv scene movie-night   # volume 20, cinemastv scene kids          # volume 15, Cocomelonstv scene sleep         # rain sounds, auto-off

One command sets the vibe.

🔊 Multi-room audio

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

Screens off. Music everywhere.
Free Sonos.

📺 TV as display

bash
stv display message "Dinner!"stv display clockstv display dashboard "Temp:22°C"

Dashboards, clocks, signage.
$0/month.

📊 Watch intelligence

bash
stv insightsstv screen-timestv sub-value netflix --cost 17.99

Is your Netflix worth $18/month?

🌐 Sync party

bash
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):

json
{  "mcpServers": {    "tv": {      "command": "uvx",      "args": ["stv"]    }  }}

Or via OpenClaw:

bash
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
CategoryToolWhat it does
Playtv_playSearch + play by name
tv_castCast any URL
tv_nextContinue watching
tv_launchLaunch app with ID
tv_resolveGet content ID only
Discovertv_whats_onTrending content
tv_recommendPersonalized picks
Controltv_powerOn/off
tv_volumeGet/set/step/mute
tv_screenScreen on/off
tv_notifyToast notification
tv_statusCurrent state
Organizetv_queuePlay queue
tv_sceneScene presets
tv_historyWatch history
Intelligencetv_insightsViewing stats
tv_displayTV as display
tv_audioMulti-room audio
Multi-TVtv_syncPlay on all TVs
tv_list_tvsList TVs
tv_groupsTV groups

📅 A day with stv

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

🔥 Killer combos

🌙 Bedtime autopilot

bash
stv audio play "rain" --rooms bedroomstv scene sleepstv --all off

Ambient sound, screen off, auto-timer, every other TV killed.

🎧 Free Sonos

bash
stv audio play "lo-fi beats"stv audio volume kitchen 40stv audio volume bedroom 15

Every TV is a speaker. Per-room volume. Screens off.

💰 Subscription audit

bash
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

bash
pip install stv                    # LG webOS (default)pip install "stv[samsung]"         # Samsung Tizenpip install "stv[android]"         # Android TV / Fire TVpip install "stv[all]"             # Everything
bash
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 (default listing in review: hacs/default#6907):

HACS → ⋮ (top right) → Custom repositories  URL: https://github.com/Hybirdss/smartest-tv  Category: Integration → AddThen: Install → Restart HASettings → Integrations → Add → "Smartest TV" → auto-discovers your TVs

Android TV / Fire TV: the setup flow shows a 6-digit PIN on the TV — enter it in the pairing form to finish. In HA OS / HA Container set STV_CONFIG_DIR=/config/smartest-tv so pairing survives container rebuilds. See docs/integrations/home-assistant.md.

Then use in automations:

yaml
service: media_player.play_mediatarget:  entity_id: media_player.living_roomdata:  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

IntegrationHow
Home AssistantHACS custom integration → media_player.play_media with content resolution
Claude Code / CursorAdd MCP config → "play Dark s1e1"
OpenClawclawhub install smartest-tv → Telegram bot
cron0 7 * * * stv display dashboard ...
Shell scriptssleep-mode, party-mode one-liners
Any MCP client21 tools, stdio or HTTP (stv serve)

📚 Docs

Getting StartedSetup for any TV brand
Playing Contentplay, cast, queue, resolve
Scenesmovie-night, kids, sleep, custom
Sync & PartyMulti-TV, remote watch party
Recipes10 powerful feature combos
AI AgentsMCP for Claude, Cursor, OpenClaw
CLI ReferenceEvery command and option
MCP ToolsAll 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:

bash
export STV_NO_CONTRIBUTE=1

Source: src/smartest_tv/cache.py — search for _contribute.


🤝 Contributing

211 tests. No TV needed to run them.

bash
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

来源:README.md,提交 77488ed

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.4.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分