# tvsub MCP [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/launzi/tvsub-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tvsub-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **now_playing** — MediaRemote/JXA와 TV.app AppleScript 교차 검증으로 현재 제목, 콘텐츠 ID, 위치와 재생 상태를 조회합니다.
- **list_subtitles** — tvsub subtitles/ 라이브러리의 SRT/SMI/VTT 파일과 파싱 정보를 나열합니다.
- **load_subtitle** — 콘텐츠에 사용할 자막을 선택합니다. 기존 싱크 앵커는 기본적으로 보존합니다.
- **translate_subtitle** — Anthropic API, Claude 구독(Claude Code CLI), ChatGPT 구독(Codex CLI) 중 선택해 자막을 번역합니다. backend는 auto/api/claude/codex이며 타임코드·큐 수 검증, 캐시, provenance를 공통 적용합니다.
- **set_glossary** — 작품 자막 옆 `<작품>.glossary.json`을 생성·수정합니다.
- **mark_reviewed** — 번역 SRT의 provenance 상태를 user_reviewed로 갱신합니다.
- **start_overlay** — tvsub NSPanel 오버레이를 선택 자막·스타일로 시작합니다. bottom_margin은 TV 영상 창 높이 기준이며 창을 찾지 못할 때만 설정 화면 기준으로 폴백합니다.
- **stop_overlay** — 이 MCP 서버가 시작한 tvsub 오버레이 프로세스를 정상 종료합니다.
- **list_fonts** — macOS CoreText 설치 폰트를 열거하고 목표 언어 샘플 글리프 지원 여부를 확인합니다.
- **set_style** — 폰트·크기·색·외곽선·TV 영상 창 하단 위치를 저장하고 실행 중 오버레이에 즉시 반영합니다. outline_width는 pt가 아니라 **폰트 크기 대비 퍼센트**입니다(5 = 5%). 4~7이 실용 범위이고, 10을 넘기면 글자 속까지 외곽선 색으로 덮여 읽기 어려워집니다. bottom_margin은 TV 영상 창 높이 대비 비율(0.075 = 7.5%)이며 창 취득 실패 때만 화면 기준입니다.
- **calibrate_sync** — 현재 대사와 일시정지 위치로 영화별 싱크 앵커를 기록하고 2점 scale+offset을 계산합니다. 권장 경로는 spoken_text(지금 들린 대사 일부)입니다. ⚠ subtitle_time은 **자막 파일 원본 시각**이며, tvsub CLI의 `anchor --raw-sub-time`과 같은 의미입니다. 화면에 보인 시각(보정 적용 후)을 넣는 `anchor --sub-time`과 다르므로, 이미 offset이 걸린 상태에서 화면 시각을 넣으면 앵커가 offset만큼 틀어집니다.
- **status** — 오버레이, 재생 항목, 선택 자막, 싱크 보정, 스타일과 창 기준 위치 추적 계약을 한 번에 요약합니다.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "tvsub-mcp": {
    "command": "uvx",
    "args": ["tvsub-mcp"]
  }
}
```

## Documentation

## What tvsub MCP does

The tvsub MCP MCP server gives an MCP client control over tvsub, a macOS overlay for subtitles displayed alongside playback in Apple TV.app. It can inspect the current title, content ID, playback position, and state; find subtitle files in tvsub’s library; select a file; and start or stop the overlay.

Supported subtitle inputs are SRT, SMI/SAMI, and VTT. The server is intended for purchased and rented films in Apple TV.app. Prime Video is not currently supported. You must provide subtitle files yourself and have the right to process them.

## How it works

The server communicates with tvsub through a local stdio MCP process. `now_playing` reads Apple playback information, while subtitle tools work with files in the configured tvsub directory. Loading a subtitle preserves existing synchronization anchors by default.

Translation can use an Anthropic API key, a signed-in Claude Code CLI, or a signed-in Codex CLI. The automatic order prefers the Anthropic API when a key is available, then Claude Code, then Codex. A dry run reports cue and batch counts plus an estimated cost before translation. Completed translations write a provenance sidecar containing backend, hash, and review information. Glossaries can define names, honorifics, relationships, and prohibited translations for a title, and selected lines or time ranges can be translated again.

## Setup and configuration

Run the server on macOS with tvsub installed and built, Python 3.12 or newer, and `uv` available for the recommended `uvx` command. Pass `--tvsub-root` with the directory containing tvsub’s `build`, `config`, `src`, and `subtitles` directories.

A typical stdio launch is:

```bash
uvx tvsub-mcp==0.2.2 --tvsub-root /absolute/path/to/tvsub
```

Set `TVSUB_TRANSLATE_BACKEND` to `auto`, `api`, `claude`, or `codex` when the default selection is not suitable. `ANTHROPIC_API_KEY` is needed only for the API translation backend; the server can also read a stored Anthropic credential from the documented macOS Keychain service. Other tools do not require a translation key or CLI.

## Tools and capabilities

The tvsub MCP MCP server exposes these operations:

- `now_playing` and `status` report playback and current overlay state.
- `list_subtitles` parses supported subtitle formats in the library.
- `load_subtitle` selects a file while retaining sync anchors by default.
- `translate_subtitle` estimates or performs translation with validation, backend selection, glossary use, and partial retranslation.
- `set_glossary` manages title-specific translation terms.
- `mark_reviewed` changes provenance from `ai_draft` to `user_reviewed`.
- `list_fonts` checks installed macOS fonts and sample glyph coverage.
- `set_style` changes font, size, colors, outline, background, and position.
- `start_overlay` and `stop_overlay` control the overlay process started by this server.
- `calibrate_sync` records dialogue anchors and calculates offset and drift.

## Limitations and notes

This is experimental software, so configuration and subtitle files should be backed up. API translation sends selected subtitle text and surrounding context to Anthropic, and API charges belong to the account owner.

Playback detection relies on undocumented macOS MediaRemote interfaces and may change after a macOS update. Apple TV.app must already be playing; the server does not launch it. Apple TV.app, MediaRemote, CoreText, and the real overlay require macOS, although unit tests and a mock stdio test can run on Linux. The project is MIT-licensed and independent of Apple and Anthropic.

_Full upstream README: https://allmcps.com/mcp/tvsub-mcp/readme_

