Back to Browse

Tvsub MCP Server

by Launzi
Developer ToolsUse Caution4.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Control tvsub subtitle selection, translation, styling, overlay, and sync from MCP.

About

Control tvsub subtitle selection, translation, styling, overlay, and sync from MCP.

Security Report

4.2
Use Caution4.2High Risk

This is a well-structured MCP server for macOS subtitle management with appropriate security controls. Authentication is properly scoped to Anthropic API only when translation is used. The codebase demonstrates good defensive practices including path validation, error redaction, and process verification. Minor code quality issues and one potential permission concern prevent a higher score, but no critical vulnerabilities are present. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 5 high severity). Package verification found 1 issue.

5 files analyzed · 12 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

process_spawn

Check that this permission is expected for this type of plugin.

system_info

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Anthropic API key; required only for subtitle translationRequired

Environment variable: ANTHROPIC_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-launzi-tvsub-mcp": {
      "env": {
        "ANTHROPIC_API_KEY": "your-anthropic-api-key-here"
      },
      "args": [
        "tvsub-mcp"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

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
  • uv for the recommended uvx installation
  • 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

ToolPurpose
now_playingRead the current Apple TV.app title, content ID, position, and playback state.
list_subtitlesList and parse SRT, SMI, SAMI, and VTT files in tvsub's subtitle library.
load_subtitleSelect a subtitle file for the current content while preserving sync anchors by default.
translate_subtitleEstimate or perform an LLM translation with cue and timecode validation.
list_fontsList installed macOS fonts and check sample glyph coverage.
set_styleChange font, size, colors, outline, background, and screen position.
start_overlayStart tvsub with the selected subtitle and style.
stop_overlayStop only the overlay process started by this server.
calibrate_syncStore one or more dialogue anchors and calculate timing offset and drift.
statusSummarize 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.

Reviews

No reviews yet

Be the first to review this server!