subtitle-translation-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@subtitle-translation-mcpTranslate the subtitles for the movie 'Inception' using the glossary."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
subtitle-translation-mcp
Offline MCP server for subtitle translation with a persistent translation session, a translation-memory glossary, and modular format adapters. Built for LLM agents (e.g. Cline) — the server structures and persists, the agent translates.
Timing is never touched. The source timing/order is stored once at parse time;
translate_batchsends only{ index, text }, so cues can never drift or merge.Persistent session. Interrupted translation? Resume exactly where you left off (
translation_status→missingRanges).Glossary (translation memory). Names and fixed terms are translated consistently across movies and series.
Whole-film context.
subtitle_overviewgives the agent the full plain text first, so names/terminology stay consistent.Encoding-safe. Auto-detects UTF-8 / Windows-1250 / ISO-8859-2 / Windows-1251 / ISO-8859-1 — mojibake is never silently translated.
Languages: English · Slovenčina
Layout
<server dir>/
├── Subtitles\ # SUBTITLES_ROOT — movie folders (Subtitles/<movie>/<file>)
│ ├── Movie A\
│ │ ├── movie-a.srt
│ │ └── glossary.json # movie/series-scoped glossary
│ └── Movie B\
│ └── movie-b.srt
└── data\ # SRT_DATA_ROOT — session.json + global glossary.json (+ .bak)Override the roots with the SUBTITLES_ROOT and SRT_DATA_ROOT env vars.
Related MCP server: youtube-mcp
Quick start
Requires Node.js 20+ (tested on 20/22).
npm install
npm run build # tsc → build/
npm test # vitest runMCP config (VS Code / Cline):
{
"mcpServers": {
"subtitle-translation-mcp": {
"command": "node",
"args": ["<path-to-repo>/build/index.js"],
"env": {
"SUBTITLES_ROOT": "<path-to-repo>/Subtitles",
"SRT_DATA_ROOT": "<path-to-repo>/data"
}
}
}
}Tools (19)
Tool | Purpose |
| List movie folders and their subtitle files |
| List supported subtitle formats (SRT, MicroDVD |
| Block count, first/last timecodes, validation issues; reports detected |
| Return a page of blocks ( |
| Whole-movie plain text (no indexes/timecodes); |
| Find cues by text/regex, with optional surrounding context — check name/term consistency |
| Replace text/regex across cues (literal or regex); |
| Store translated blocks — send only |
| Assemble the full file from the session; |
| Session status: total/stored/remaining + |
| Clear the persistent session for a file |
| Read the translation memory (global + movie-scoped entries; optional |
| Add/update a term ( |
| Structural validation: duplicates, inverted timecodes, overlaps, empty cues |
| Write subtitle content to a file inside the root (UTF-8, |
| Shift all timecodes by ±ms |
| Re-number cues sequentially |
| Remove sound-effect cues (e.g. |
| Write the three-version |
Translation workflow (EN→SK example)
info_subtitles→ sanity check + encoding.subtitle_overview→ read the whole film (identify characters/terminology).glossary_get→ load the translation memory; propose new terms, start only after approval.parse_subtitlesin batches (e.g. 100 blocks) — stores full source.Agent translates and sends only
{ index, text }viatranslate_batch.Repeat until
remaining: 0(track withtranslation_status).build_subtitleswithoutFile→ merged result.validate_subtitleson the result.generate_release_note→ three-versionREADME.txtin the movie folder.
Agent translation rules
The server structures and persists, but the actual translation is done by an LLM agent (e.g. Cline). Quality depends on the agent following a strict rule set: review the whole film first, no mojibake, correct audio-track language, glossary priority, informal T-form, no Czechisms, name transliteration per Slovak rules, ~37–42 chars per line, source-language selection (CZ > Slavic > DE/FR > EN for Western films; original ZH/JA/KO > Slavic > EN for Asian films).
The quality also depends on the LLM model itself: it should handle at least 256k context (above 512k recommended — a single full-movie overview can be large), and it should be linguistically strong in Slovak. The project is developed and tested with DeepSeek-V4-Flash.
The public version is in docs/translation-rules.en.md (English) and docs/translation-rules.sk.md (Slovak). The private working copy lives in .clinerules/ and is not part of this repository.
Docs
docs/capabilities.md(EN) /docs/capabilities.sk.md(SK) — what you can do with this tool (use cases & ideas).docs/faq.md(EN) /docs/faq.sk.md(SK) — troubleshooting and setup.docs/tools.md— the full tool list.docs/usage.md— annotated example tool calls.docs/source-language-preference.en.md(EN) /docs/source-language-preference.sk.md(SK) — how to pick the best source track (e.g. content from CZ, timing from EN, names from ZH).Translations of the docs into other Slavic languages (PL, SR, BG, …) are welcome as pull requests.
Adding a new format (modular)
Create
src/formats/<name>.tsexporting an adapter implementingSubtitleFormat.Register it in
src/core/formats.ts:
import { assAdapter } from "../formats/ass.js";
export const ADAPTERS: SubtitleFormat[] = [srtAdapter, assAdapter];No other code changes — all tools are format-agnostic.
Safety
All
movie/file/outFilepaths are validated to stay inside the configured root; inner separators are rejected (flatSubtitles/<movie>/<file>layout).No shell execution — everything uses Node.js
fsAPIs.Writes happen only via the write tools (with the
overwriteguard onwrite_subtitles).
Development
npm install
npm run build # tsc
npm test # vitest run (149 tests)License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBquality-maintenanceAn MCP server that automatically renames local subtitle files to match corresponding videos using statistical token matching and episode verification. It enables users to scan media directories, preview matches, and manage subtitle configurations through natural language commands.Last updated6
- Alicense-qualityDmaintenanceA local MCP server for extracting YouTube video transcripts, metadata, and performing visual analysis using Gemini Vision or local Whisper models. It enables users to process video content through various tools for subtitle retrieval and frame analysis.Last updated18MIT
- Alicense-qualityCmaintenanceAn MCP server that lets AI agents read and write locale JSON translation files directly from the conversation without loading the whole catalog into context.Last updated191ISC
- AlicenseAqualityDmaintenanceAn MCP server that enables AI agents to analyze videos locally by extracting transcripts, detecting scene changes, and returning key frames.Last updated56MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for OpenAI Sora AI video generation
MCP server for Hailuo (MiniMax) AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Majrooo/subtitle-translation-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server