Smartest-TV

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.

Category
Visit Server

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>

  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

</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>

10 more recipes β†’


<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 -->

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured