pypi tvsub-mcpstdioMITupdated 9d ago
tvsub-mcp is the MCP companion for tvsub, an experimental subtitle overlay for Apple TV.app on macOS. It lets an MCP client inspect the current playback item, choose or translate a subtitle file, adjust its appearance, start or stop the overlay, and calibrate subtitle timing.
What can you do with tvsub MCP?
tvsub MCP
tvsub-mcp is the MCP companion for tvsub, an
experimental subtitle overlay for Apple TV.app on macOS. It lets an MCP client
inspect the current playback item, choose or translate a subtitle file, adjust
its appearance, start or stop the overlay, and calibrate subtitle timing.
Supported player: purchased and rented films in macOS Apple TV.app (Prime Video support is being explored and is not currently available). Subtitle formats: SRT, SMI/SAMI, VTT. Translation runs on your choice of three backends: an Anthropic API key, a signed-in Claude Code CLI (Claude subscription), or a signed-in Codex CLI (ChatGPT subscription) β subscription backends add no API charges.
The server does not download subtitles, bypass DRM, modify video, or launch TV.app. You provide subtitle files that you have the right to use and start playback yourself.
Two directions, one workflow
If a foreign, classic, or multilingual film you purchased in Apple TV.app does not include Koreanβor another language you needβbring a lawfully obtained subtitle file, translate it with your Claude or ChatGPT subscription, and display it as an overlay. The same workflow works in the other direction: viewers worldwide can translate lawfully obtained subtitles for Korean films and series into their own language.
Apple TV.appμμ ꡬ맀ν μΈνΒ·κ³ μ Β·λ€κ΅μ΄ μνμ νκ΅μ΄ λλ μνλ μΈμ΄ μλ§μ΄ μλ€λ©΄, μ λΉνκ² λ³΄μ ν μλ§ νμΌμ λΆλ¬μ Claudeλ ChatGPT ꡬλ μΌλ‘ λ²μν λ€ μ€λ²λ μ΄λ‘ νμν μ μμ΅λλ€. κ°μ λ°©μμΌλ‘ μ μΈκ³ μμ²μλ νκ΅ μνμ μ리μ¦μ μ λΉνκ² λ³΄μ ν μλ§μ μμ μ μΈμ΄λ‘ λ²μν΄ μμ²ν μ μμ΅λλ€.
Requirements
- macOS
- tvsub, installed and built
- Python 3.12 or later
uvfor the recommendeduvxinstallation- For subtitle translation, one of: an Anthropic API key, a signed-in Claude Code CLI (Claude subscription), or a signed-in Codex CLI (ChatGPT subscription). No key or CLI is needed for any other tool
Install and register with Claude Code
Replace /absolute/path/to/tvsub with the directory containing tvsub's
build/, config/, src/, and subtitles/ directories.
brew install uv
claude mcp add --transport stdio --scope user tvsub -- \
uvx tvsub-mcp==0.2.2 \
--tvsub-root /absolute/path/to/tvsub
claude mcp get tvsub
claude mcp list
Translation picks a backend automatically: an Anthropic API key if present,
then a signed-in Claude Code CLI, then a signed-in Codex CLI. Set
TVSUB_TRANSLATE_BACKEND (auto, api, claude, codex) or the
backend tool argument to override. With a subscription CLI signed in you
can skip the key entirely. To use the API backend, export your key and
include it when registering the server β or store it once in macOS Keychain
(service kim.youngji.tvsub.anthropic), which the server also reads.
export ANTHROPIC_API_KEY="your-key"
claude mcp add --transport stdio --scope user \
--env ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY" \
tvsub -- uvx tvsub-mcp==0.2.2 \
--tvsub-root /absolute/path/to/tvsub
Other stdio MCP clients can launch the same command:
uvx tvsub-mcp==0.2.2 --tvsub-root /absolute/path/to/tvsub
Tools
| Tool | Purpose |
|---|---|
now_playing |
Read the current Apple TV.app title, content ID, position, and playback state. |
list_subtitles |
List and parse SRT, SMI, SAMI, and VTT files in tvsub's subtitle library. |
load_subtitle |
Select a subtitle file for the current content while preserving sync anchors by default. |
translate_subtitle |
Estimate or perform an LLM translation with cue and timecode validation. Supports backend selection, glossary injection, and partial retranslation by line or time range. |
set_glossary |
Create or update a per-title glossary (names, honorifics, relationships, forbidden translations) that is injected into translation prompts. |
mark_reviewed |
Promote a translated subtitle's provenance from ai_draft to user_reviewed. |
list_fonts |
List installed macOS fonts and check sample glyph coverage. |
set_style |
Change font, size, colors, outline, background, and screen position. |
start_overlay |
Start tvsub with the selected subtitle and style. |
stop_overlay |
Stop only the overlay process started by this server. |
calibrate_sync |
Store one or more dialogue anchors and calculate timing offset and drift. |
status |
Summarize playback, overlay, subtitle, style, and calibration state. |
Before translating, call translate_subtitle with dry_run=true to review the
cue count, batch count, and estimated cost. Subscription backends report
$0 (included in subscription). Every translation writes a .provenance.json
sidecar recording backend, hashes, and review status.
Important notices
- Experimental software: expect rough edges and breaking changes. Keep a backup of your tvsub configuration and subtitle files.
- Data sent to Anthropic: translation sends the selected subtitle text and surrounding subtitle context to the Anthropic API. Loading, styling, sync, and overlay controls do not send subtitle text to Anthropic.
- User-paid API usage: the
apibackend uses your Anthropic API key and all charges are your responsibility; estimates can differ from the final bill. Theclaudeandcodexbackends run through your own signed-in subscription CLIs and add no API charges. - Private API risk: tvsub reads Apple playback state through undocumented macOS MediaRemote interfaces. Apple does not support this integration and a macOS update may change or disable it.
- Content rights: you are responsible for having the right to process and translate subtitle files. Do not redistribute protected content without permission.
- This project is independent from and not affiliated with Apple or Anthropic.
Development
python3.12 -m venv .venv
.venv/bin/python -m pip install -e .
.venv/bin/python -m unittest discover -s tests -p 'test_*.py' -v
TVSUB_TEST_PYTHON="$PWD/.venv/bin/python" .venv/bin/python tests/stdio_smoke.py
bash scripts/hygiene-check.sh
Before tagging a release, run bash scripts/preflight.sh from the repository root.
Linux can run the unit tests and mock stdio smoke test. Apple TV.app, MediaRemote, CoreText, and the real overlay require macOS.
License
MIT. See LICENSE.
Install
Add tvsub MCP to your client. Pick the one you use.
claude mcp add tvsub-mcp -- uvx tvsub-mcpcodex mcp add tvsub-mcp -- uvx tvsub-mcpamp mcp add tvsub-mcp -- uvx tvsub-mcp{
"mcpServers": {
"tvsub-mcp": {
"command": "uvx",
"args": [
"tvsub-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"tvsub-mcp": {
"command": "uvx",
"args": [
"tvsub-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"tvsub-mcp","command":"uvx","args":["tvsub-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"tvsub-mcp": {
"command": "uvx",
"args": [
"tvsub-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"tvsub-mcp": {
"command": "uvx",
"args": [
"tvsub-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"tvsub-mcp": {
"command": "uvx",
"args": [
"tvsub-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"tvsub-mcp": {
"type": "local",
"command": "uvx",
"args": [
"tvsub-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"tvsub-mcp": {
"command": {
"path": "uvx",
"args": [
"tvsub-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx tvsub-mcpRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
11 tools
tvsub MCP exposes 11 tools to a connected agent.
- now_playing
- Read the current Apple TV.app title, content ID, position, and playback state.
- list_subtitles
- List and parse SRT, SMI, SAMI, and VTT files in tvsub's subtitle library.
- load_subtitle
- Select a subtitle file for the current content while preserving sync anchors by default.
- translate_subtitle
- Estimate or perform an LLM translation with cue and timecode validation. Supports backend selection, glossary injection, and partial retranslation by line or time range.
- set_glossary
- Create or update a per-title glossary (names, honorifics, relationships, forbidden translations) that is injected into translation prompts.
- mark_reviewed
- Promote a translated subtitle's provenance from `ai_draft` to `user_reviewed`.
- list_fonts
- List installed macOS fonts and check sample glyph coverage.
- set_style
- Change font, size, colors, outline, background, and screen position.
- start_overlay
- Start tvsub with the selected subtitle and style.
- stop_overlay
- Stop only the overlay process started by this server.
- calibrate_sync
- Store one or more dialogue anchors and calculate timing offset and drift.
Score
83 / 100
Excellent
- Documentation25/25
- Maintenance25/25
- Trust13/20
- Capability8/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 2 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 11 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 0.2.2Latest | Aug 30, 2026 |
| 0.2.1 | Aug 16, 2026 |
| 0.1.0 | Aug 15, 2026 |