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.
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.
Requirements
- macOS
- tvsub, installed and built
- Python 3.12 or later
uvfor the recommendeduvxinstallation- An Anthropic API key only if you use subtitle translation
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.1.0 \
--tvsub-root /absolute/path/to/tvsub
claude mcp get tvsub
claude mcp list
To enable translation, export your key and include it when registering the server. The key is not needed for any other tool.
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.1.0 \
--tvsub-root /absolute/path/to/tvsub
Other stdio MCP clients can launch the same command:
uvx tvsub-mcp==0.1.0 --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. |
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.
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: translation uses your Anthropic API key. All API charges are your responsibility; estimates can differ from the final bill.
- 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
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tvsub_mcp-0.1.0.tar.gz.
File metadata
- Download URL: tvsub_mcp-0.1.0.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ec70eab26fcb719fc096d407b48008ecbf113f0438b5955512c4c5c8d7960da
|
|
| MD5 |
8163f0c842d85079d5b3410ba6aa23f8
|
|
| BLAKE2b-256 |
c0affcabdf28c569d3938cf96d260d1f501a87579daa21f4ef4e1b530d6b0a33
|
Provenance
The following attestation bundles were made for tvsub_mcp-0.1.0.tar.gz:
Publisher:
publish-mcp.yml on launzi/tvsub-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tvsub_mcp-0.1.0.tar.gz -
Subject digest:
9ec70eab26fcb719fc096d407b48008ecbf113f0438b5955512c4c5c8d7960da - Sigstore transparency entry: 2476511400
- Sigstore integration time:
-
Permalink:
launzi/tvsub-mcp@ce1c61af34e5b6083c02a9147ab0f0655dc3c7a8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/launzi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp.yml@ce1c61af34e5b6083c02a9147ab0f0655dc3c7a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tvsub_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tvsub_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611b132bd5b3bb1044809e01d5f417c3e720d161f649d4222a937fffc6ae82a5
|
|
| MD5 |
66122409ef6faf59f5c9734151406ab9
|
|
| BLAKE2b-256 |
8eb9871b3b22d86b9487750ecb16068e2a2717c6e9f8dd7f7326cfbc237f875c
|
Provenance
The following attestation bundles were made for tvsub_mcp-0.1.0-py3-none-any.whl:
Publisher:
publish-mcp.yml on launzi/tvsub-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tvsub_mcp-0.1.0-py3-none-any.whl -
Subject digest:
611b132bd5b3bb1044809e01d5f417c3e720d161f649d4222a937fffc6ae82a5 - Sigstore transparency entry: 2476511489
- Sigstore integration time:
-
Permalink:
launzi/tvsub-mcp@ce1c61af34e5b6083c02a9147ab0f0655dc3c7a8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/launzi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp.yml@ce1c61af34e5b6083c02a9147ab0f0655dc3c7a8 -
Trigger Event:
push
-
Statement type: