Smartest-TV
リモコンを手に取る
Netflixアプリを開く
番組を検索
シーズンを選ぶ
エピソードを選ぶ
再生を押す
約30秒
stv play netflix "Dark" s1e1約3秒
TVがない?問題なし。 TVを設定しなくても、stvはコンテンツをブラウザで直接開きます。 Netflix、YouTube、Spotify、Disney+ — ただ
pip install stvするだけ。
🛋 バイブコーディングしてくつろぐ
午前2時のバイブコーディング。Claudeがコードを書く。あなたは「番組をかけて」と言う。それが実行される。
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.stvをインストール済み?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-sessionMCPサーバー(21ツール)としても利用可能。Claude Code、Codex、Antigravity、その他のMCPクライアントに対応。
Related MCP server: TVWizard
🎯 ただ stv と入力するだけ
サブコマンドなし?「Now Playing」カードと、視聴履歴に基づく3つの文脈に応じた次のアクションが表示されます。30個のコマンドのヘルプの羅列ではありません。
$ stv "play dark on netflix" # natural language works
$ stv play "Frieren" # auto-detects platform
$ stv next # continue last show
$ stv stats # → insights不明な入力?エラーではなく、親切なヒントが表示されます。
🎨 製品のように見えるCLI
すべてのコマンドは、Catppuccin Mochaカラー、意味的なアイコン、そして本当の視覚的階層で描画されます。別のパレットが好み?STV_THEME=nord または STV_THEME=gruvbox を設定してください。
jq にパイプする必要があるときは、いつでも --format json が使えます。
✨ できること
🎬 名前で再生
stv play netflix "Dark" s1e1
stv play disney "Percy Jackson" s1e1
stv play prime "The Boys" s1e1
stv play "Frieren" s2e8 # auto-detects platform名前を言う。stvがIDを見つけ、アプリを開き、再生を開始します。NetflixとApple TV+はHTML解析で解決。Disney+、Max、Prime、Hulu、Paramount+、Peacock、Crunchyroll、そしてJustWatchのすべてのプラットフォームはAPIで解決 — ログイン不要、APIキー不要。プラットフォーム名を省略すると、stvがお住まいの地域で配信されている場所を自動検出します。
🔗 任意のURLをキャスト
stv cast https://youtu.be/dQw4w
stv cast https://netflix.com/watch/...
stv cast https://open.spotify.com/...友達がリンクを送ってきた。貼り付ける。TVで再生される。
🎵 キュー&パーティー
stv queue add youtube "Gangnam Style"
stv queue add spotify "Blinding Lights"
stv queue playみんなが自分の選んだものを追加。TVが順番に再生。
🎭 シーンプリセット
stv scene movie-night # volume 20, cinema
stv scene kids # volume 15, Cocomelon
stv scene sleep # rain sounds, auto-off1コマンドで雰囲気を設定。
🔊 マルチルームオーディオ
stv audio play "lo-fi beats"
stv audio volume kitchen 30
stv audio stop画面オフ。音楽をどこでも。Sonos無料。
📺 TVをディスプレイとして
stv display message "Dinner!"
stv display clock
stv display dashboard "Temp:22°C"ダッシュボード、時計、サイネージ。月額$0。
📊 視聴インテリジェンス
stv insights
stv screen-time
stv sub-value netflix --cost 17.99あなたのNetflixは月額$18の価値がある?
🌐 同期パーティー
stv --all play youtube "lo-fi beats"
stv --group party play netflix "Wed..."
stv --all off # good nightすべてのTVで。同時に。遠くの友達も。
🤖 AIコンシェルジュ
"Play something chill"
→ tv_recommend → tv_play
→ Playing The Queen's Gambit21個のMCPツール。一言で十分。
🤖 AIにTVを操作させる
stvはMCPサーバーです。Claude、GPT、Cursor、または任意のMCPクライアントが自然言語でTVを制御できます。
セットアップ(1行):
{
"mcpServers": {
"tv": {
"command": "uvx",
"args": ["stv"]
}
}
}またはOpenClaw経由:
clawhub install smartest-tvあとは話すだけ:
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カテゴリ | ツール | 機能 |
再生 |
| 名前で検索+再生 |
| 任意のURLをキャスト | |
| 続きから視聴 | |
| IDでアプリを起動 | |
| コンテンツIDのみ取得 | |
発見 |
| トレンドコンテンツ |
| パーソナライズされたおすすめ | |
制御 |
| オン/オフ |
| 取得/設定/ステップ/ミュート | |
| 画面オン/オフ | |
| トースト通知 | |
| 現在の状態 | |
整理 |
| 再生キュー |
| シーンプリセット | |
| 視聴履歴 | |
インテリジェンス |
| 視聴統計 |
| TVをディスプレイとして | |
| マルチルームオーディオ | |
マルチTV |
| すべてのTVで再生 |
| TV一覧 | |
| TVグループ |
📅 stvのある1日
時間 | 何が起こるか |
午前7時 | キッチンのTVで |
午前8時 |
|
正午 | 友達がNetflixリンクを送る → |
午後5時 |
|
午後6時30分 |
|
午後7時 |
|
午後9時 |
|
午後10時 |
|
午後11時30分 |
|
🔥 キラーコンボ
🌙 就寝オートパイロット
stv audio play "rain" --rooms bedroom
stv scene sleep
stv --all offアンビエントサウンド、画面オフ、自動タイマー、他のTVはすべてオフ。
🎧 無料のSonos
stv audio play "lo-fi beats"
stv audio volume kitchen 40
stv audio volume bedroom 15すべてのTVがスピーカーに。部屋ごとの音量。画面オフ。
💰 サブスク監査
stv sub-value netflix --cost 17.99
# → $8.50/hr — consider canceling
stv sub-value youtube --cost 13.99
# → $1.20/hr — good value⚙️ 仕組み
"Play Dark S1E1"
│
▼
┌─── Resolution ───┐
│ Cache → API → Web │ content_id
│ 0.1s 1s 3s │──────────────▶ 📺 TV plays it
└───────────────────┘ │
Deep link via
LG / Samsung / Roku / Android名前を言う。stvがコンテンツIDに解決し、TVのアプリにディープリンクします。ブラウザ自動化なし、APIキーなし、クラウド依存なし。結果はキャッシュされるので、繰り返しの再生は即座です。
📦 インストール
pip install stv # LG webOS (default)
pip install "stv[samsung]" # Samsung Tizen
pip install "stv[android]" # Android TV / Fire TV
pip install "stv[all]" # Everythingstv setup # auto-discover + pair your TVLG webOS · Samsung Tizen · Android TV / Fire TV · Roku に対応
Home Assistant(HACS)
カスタムリポジトリとして追加(デフォルトのリストは審査中: hacs/default#6907):
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 TVsAndroid TV / Fire TV: セットアップフローでTVに6桁のPINが表示されます — ペアリングフォームに入力して完了します。HA OS / HA Containerでは、STV_CONFIG_DIR=/config/smartest-tv を設定して、コンテナ再構築後もペアリングが維持されるようにしてください。docs/integrations/home-assistant.md を参照。
その後、オートメーションで使用:
service: media_player.play_media
target:
entity_id: media_player.living_room
data:
media_content_type: stv
media_content_id: "netflix:Frieren:s2e8"これはHAの組み込み media_player.play_media ができないことを実現します: 名前で番組を解決し、ストリーミングアプリにディープリンクします。電源、音量、再生コントロールも標準のHAメディアプレイヤーエンティティとして動作します。
🔌 連携
統合 | 方法 |
Home Assistant | HACSカスタム統合 → コンテンツ解決付き |
Claude Code / Cursor | MCP設定を追加 → |
OpenClaw |
|
cron |
|
シェルスクリプト |
|
任意のMCPクライアント | 21ツール、stdioまたはHTTP( |
📚 ドキュメント
あらゆるTVブランドのセットアップ | |
play、cast、queue、resolve | |
movie-night、kids、sleep、custom | |
複数台のTV、リモート同時視聴 | |
10の強力な機能コンボ | |
Claude、Cursor、OpenClaw向けMCP | |
すべてのコマンドとオプション | |
全21ツールとパラメータ |
🔓 オープンソース
stvのすべてのコードはGitHub上にあります — CLI、リゾルバー(Netflix、Apple TV+、YouTube、Spotify、Disney+、Max、Prime Video、Paramount+、Hulu、Peacock、Crunchyroll、その他はJustWatch経由)、全4つのTVドライバー(LG、Samsung、Roku、Android)、キャッシュ、同期エンジン、シーン、そして全253テスト。ストリーミング配信状況データはJustWatch提供。
🔒 プライバシー
stvはお使いのローカルネットワーク上で動作します。テレメトリなし、アナリティクスなし、クラウド同期なし、視聴内容を外部へ送信するようなこともありません。posthogもamplitudeもsentryもmixpanelもありません — ソースをgrepしてください。
唯一の例外 — コミュニティキャッシュへの貢献。 ローカルキャッシュにないコンテンツを再生すると、stvはそれを(Web解析経由で)解決し、解決したIDを共有コミュニティキャッシュに送信します。これにより次のユーザーは即座に検索できます。これはWikipediaやパッケージミラーと同じパターンです — 匿名の小さな貢献の積み重ね。
送信されるもの(バックグラウンドHTTPS、fire-and-forget、再生をブロックすることはありません):
プラットフォーム名(
netflix/youtube/spotify)コンテンツslug(例:
frieren)解決済みコンテンツID(NetflixタイトルID、YouTubeビデオID、Spotify URI)
送信されないもの:
あなたの名前、メールアドレス、またはその他のユーザー識別子
あなたのIPアドレス(CDNは標準的なHTTPに従って接続元IPを確認しますが、クライアントがそれを読み取ったり送信したりすることはありません)
あなたの視聴履歴や再生タイムスタンプ
あなたのTVのIPアドレスやハードウェア情報
stvをどのくらいの頻度で、いつ使用するかに関する情報
キャッシュへの貢献を完全に無効にするには:
export STV_NO_CONTRIBUTE=1ソース:src/smartest_tv/cache.py — _contributeを検索してください。
🤝 コントリビューション
211のテスト。実行にTVは不要です。
pip install -e ".[dev]"
python -m pytest tests/ -vSamsung、Roku、Android TVドライバーは実機でのテストが必要です。お持ちの方は、あなたのフィードバックが重要です。
Available Tools
23 toolstv_audioTv AudioC
Multi-room audio mode — play music with screens off.
Actions: play, stop, volume.
Inputs: action (required), room, query, rooms, +2 more. Returns: result
tv_castTv CastB
Cast a Netflix/YouTube/Spotify URL to the TV.
Paste any streaming URL. stv parses the platform and content ID automatically.
Inputs: url (required), tv_name. Returns: result
tv_displayTv DisplayB
Turn the TV into a display — show dashboards, messages, clocks, or any URL.
The TV becomes a smart display. HTML is generated and served locally, then opened in the TV's browser.
Inputs: content_type (required), data, port, tv_name. Returns: result
tv_groupsTv GroupsA
List all TV groups and their members.
Inputs: no named parameters. Returns: result
tv_historyTv HistoryC
Show recent play history.
Inputs: limit. Returns: result
tv_insightsTv InsightsB
Get viewing insights, screen time, or subscription value analysis.
Inputs: period, report_type. Returns: result
tv_launchTv LaunchA
Launch an app, optionally with a deep link.
Use tv_play instead if you have a content name (not ID). Use this when you already have the exact content ID.
Inputs: app (required), tv_name, content_id. Returns: result
tv_list_tvsTv List TvsA
List all configured TVs with name, platform, IP, and default status.
Inputs: no named parameters. Returns: result
tv_nextTv NextB
Play the next episode. Continues from watch history.
Inputs: query, tv_name. Returns: result
tv_notifyTv NotifyB
Show a toast notification on the TV screen.
Inputs: message (required), tv_name. Returns: result
tv_playTv PlayB
Find content by name and play it on TV.
This is the primary tool. Resolves the content ID automatically, then deep-links into the app on your TV.
Inputs: query (required), platform (required), season, episode, +2 more. Returns: result
tv_powerTv PowerB
Turn TV on or off.
Inputs: on (required), tv_name. Returns: result
tv_queueTv QueueC
Manage the play queue. Actions: add, show, play, skip, clear.
Inputs: action (required), query, season, episode, +2 more. Returns: result
tv_recommendTv RecommendB
Get personalized recommendations based on watch history + trending.
Inputs: mood, limit. Returns: result
tv_resolveTv ResolveA
Resolve a content name to its platform ID without playing.
Inputs: query (required), platform (required), season, episode, +1 more. Returns: result
tv_sceneTv SceneB
Run or list scene presets. Built-in: movie-night, kids, sleep, music.
Inputs: name, action, tv_name. Returns: result
tv_screenTv ScreenB
Turn screen on or off (audio continues when off).
Inputs: on (required), tv_name. Returns: result
tv_stateTv StateA
Get unified live TV state: playback, volume, input, power.
Returns a single snapshot for agent branching. Fields the target driver cannot supply are returned as None.
Inputs: tv_name. Returns: object
tv_state_watchTv State WatchA
Stream tv_state snapshots via progress notifications.
Emits count progress updates spaced interval seconds apart,
then returns the final snapshot. Default is 1 minute of watching.
Inputs: count, tv_name, interval. Returns: object
tv_statusTv StatusB
Get TV status: current app, volume, mute, model, firmware.
Inputs: tv_name. Returns: object
tv_syncTv SyncB
Play content on multiple TVs simultaneously (party mode).
Resolves once, launches on all targets via asyncio.gather.
Inputs: query (required), platform (required), group, season, +3 more. Returns: result
tv_volumeTv VolumeA
Get or set volume, step up/down, or toggle mute. All in one tool.
No args: returns current volume + mute status
level=25: set volume to 25
direction="up"/"down": step volume
mute=True/False/None: mute, unmute, or toggle
Inputs: mute, level, tv_name, direction. Returns: result
tv_whats_onTv Whats OnC
Show trending content on Netflix and/or YouTube.
Inputs: limit, platform. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Most tools target distinct tasks, and descriptions help separate close cases like tv_play vs tv_launch vs tv_cast. However, tv_status vs tv_state, tv_volume vs tv_audio's volume action, and tv_power vs tv_screen have overlapping surface area that could occasionally cause misselection.
All tools use a predictable tv_snake_case convention, such as tv_play, tv_queue, tv_volume, and tv_state_watch. The only variation is noun-only vs verb-noun names, but the prefix and separators are consistent throughout.
23 tools is heavy for a smart TV control server, landing in the 16-25 range where discoverability and selection cost rise. The feature breadth is real, but some controls could likely be consolidated.
The server covers power, volume, playback, casting, queue, history, recommendations, scenes, groups, multi-room audio, and display modes. Notable gaps remain around explicit pause/resume/stop-current-playback and input/source switching.
Maintenance
Related MCP Connectors
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Give your AI agent the power to cast to your home TV and control an interactive canvas. By ArdaBot.
Manage digital signage screens, playlists and media from your AI assistant.
Control your Tesla from your AI assistant - climate, charging, access, and security.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTurns AI assistants like Claude and ChatGPT into a remote control for LG webOS smart TVs, enabling power control, volume, app launching, input switching, and more, all locally without cloud APIs.7MIT
- FlicenseNot gradedqualityDmaintenanceTurns any Claude-compatible AI chat into a universal remote for Android TV and Google TV via a cloud relay, enabling natural language control of your TV from anywhere.-
- FlicenseBqualityDmaintenanceEnables discovery and control of smart appliances (TVs, media devices) on the local network through natural language, supporting providers like Roku, Google TV, and Home Assistant.18-
- AlicenseNot gradedqualityCmaintenanceEnables an AI agent to control an LG webOS TV by reading playback status, listing and launching apps, adjusting volume or mute, and powering it off.MIT