caption-forge-mcp
Accepts Deepgram word-timestamp JSON as input to captions_from_words, enabling frame-accurate caption generation from Deepgram speech-to-text output.
Click on "Deploy 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., "@caption-forge-mcp shift podcast.srt 1.2s earlier and reflow it into all-caps reel captions"
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.
caption-forge-mcp
Subtitles that your AI assistant can actually fix.
caption-forge-mcp is a Model Context Protocol server for working with captions: convert SRT ⇄ VTT ⇄ ASS, fix sync drift, lint for readability, and turn long subtitle lines or raw speech-to-text word timings into the short, punchy captions you see on Reels, TikTok and Shorts.
Pure TypeScript. No ffmpeg, no API keys, no network. Works on any caption file you point it at — or on caption text pasted straight into the chat.
You: My podcast SRT is 1.2 seconds late and the lines are huge. Make reel captions,
all caps, and give me an ASS file I can burn into the vertical cut.
Claude: Shifted -1200 ms, then reflowed 214 cues → 611 three-word captions.
Saved ep42_reels.ass (1080x1920, bold, above the UI zone). Burn in with:
ffmpeg -i ep42_vertical.mp4 -vf "subtitles='ep42_reels.ass'" -c:a copy out.mp4Tools
Tool | What it does |
| Format, cue count, time span, words and speaking rate, reading speed (CPS), longest line, lines per cue, tags, parse warnings, preview. |
| SRT ⇄ WebVTT ⇄ ASS ⇄ JSON → plain text. Styled ASS output (presets or custom font/size/color/outline/box/position) plus an ffmpeg burn-in command. |
| Move all cues (or only cues after a point, e.g. after a cut) earlier or later. |
| Fix drift: frame-rate conversion (23.976 → 25 etc.), stretch factor, or two-point sync (tell it the right time for an early and a late line). |
| Readability check with cue numbers and timestamps: line length, line count, reading speed, min/max duration, overlaps, order, flicker gaps, empty cues. |
| Auto-fix: whitespace, empty cues, sorting, duplicate merging, overlaps, gaps, too-short cues. Optional removal of |
| Re-chunk existing cues: reels (1–3 words, one short line, optional ALL CAPS) or standard (balanced ≤42-char lines, max 2). Breaks on sentence/phrase boundaries. |
| Frame-accurate captions from word timestamps (Whisper, faster-whisper, WhisperX, Deepgram, or a plain |
| Keep only a time range and re-zero it — for clips cut from a long video or podcast. |
| Find where something is said, with timestamps and surrounding lines. |
| Clean transcript: tags stripped, rolling duplicates from auto-captions removed, paragraphs on pauses, optional timestamps. |
Every tool accepts either path (a local file) or content (the caption text). Results come back inline unless you pass output_path.
Formats
Format | Read | Write | Notes |
SRT | ✅ | ✅ | BOM, CRLF, missing indexes and UTF-16 files handled. |
WebVTT | ✅ | ✅ | Cue settings, identifiers, |
ASS / SSA | ✅ | ✅ | Reads any |
JSON | ✅ | ✅ |
|
Plain text | — | ✅ | Transcript. |
Related MCP server: caption-checker
Requirements
Node.js 20+. That's it.
Install
Runs straight from GitHub with npx — nothing to publish or build.
Claude Desktop
Settings → Developer → Edit Config:
{
"mcpServers": {
"caption-forge": {
"command": "npx",
"args": ["-y", "github:anshumanofficial2002-cpu/caption-forge-mcp"]
}
}
}Restart Claude Desktop.
Claude Code
claude mcp add caption-forge -- npx -y github:anshumanofficial2002-cpu/caption-forge-mcpCursor / Windsurf / VS Code / other clients
{
"caption-forge": {
"command": "npx",
"args": ["-y", "github:anshumanofficial2002-cpu/caption-forge-mcp"]
}
}From source
git clone https://github.com/anshumanofficial2002-cpu/caption-forge-mcp.git
cd caption-forge-mcp && npm install && npm run build
# point your client at: node /absolute/path/to/caption-forge-mcp/dist/index.jsExample prompts
"What's wrong with
~/Downloads/interview.srt? Lint it with the standard streaming rules.""These captions start in sync but are 3 seconds late by the end. Line 1 should be at 00:00:02,100 and the last line at 00:41:55,300."
"Convert
episode.vttto SRT and remove the [MUSIC] tags.""Make TikTok-style captions from
whisper_words.json, two words at a time, uppercase, as an ASS file for a vertical video.""I clipped 12:03 to 12:58 from the podcast. Give me captions for just that clip."
"Find every time the guest says 'compounding' in
ep12.srt.""Turn this SRT into a clean transcript with timestamps every paragraph, I need show notes." (paste the SRT)
Tool reference
Common input params for every caption tool:
Param | Type | Notes |
| string | Local |
| string | Caption text instead of a file. |
|
| Force input format (auto-detected otherwise). |
| string | Write to this file. Format follows the extension unless set explicitly. |
|
| Output format (defaults to input format). |
| boolean | Default |
convert_captions
to (required), ass_style:
| Meaning |
|
|
| Font family and size in pixels of the play resolution |
|
|
| Thickness in pixels |
| boolean |
| Numpad position: 2 bottom-center, 5 middle, 8 top |
| Distance from the aligned edge |
| Opaque box behind text instead of an outline |
shift_captions
offset — ms number or "2.5s", "-1500ms", "-00:00:01,200". from — only shift cues at/after this time.
retime_captions
mode: fps (from_fps, to_fps), factor (factor), or sync_points (first_original, first_correct, second_original, second_correct).
lint_captions
Preset | Chars/line | Lines | Max CPS | Min/Max duration | Min gap |
| 42 | 2 | 17 | 0.833 s / 7 s | 83 ms |
| 24 | 1 | 22 | 0.3 s / 3 s | 0 |
| 37 | 2 | 13 | 1.5 s / 7 s | 83 ms |
Override any rule: max_chars_per_line, max_lines, max_cps, min_duration_ms, max_duration_ms, min_gap_ms. Limit output with max_issues.
clean_captions
min_gap_ms (83), min_duration_ms (833), merge_duplicates (true), remove_hearing_impaired (false).
reflow_captions / captions_from_words
Param | reels default | standard default |
|
|
|
| 3 | 40 |
| 22 | 42 |
| 1 | 2 |
| false | false |
| true | false |
| 250 | 833 |
reflow_captions estimates word timing inside each original cue from word length. For exact timing, use captions_from_words with words_path or words_json. Accepted shapes:
[{ "word": "Hey", "start": 0.0, "end": 0.3 }] // seconds
[{ "text": "Hey", "start_ms": 0, "end_ms": 300 }] // milliseconds
{ "segments": [{ "words": [{ "word": " Hey", "start": 0.0, "end": 0.3 }] }] } // Whisper
{ "results": { "channels": [{ "alternatives": [{ "words": [...] }] }] } } // Deepgramclip_captions
start, end (source times), rezero (true).
search_captions
query, regex (false), whole_word (false), context (1), max_results (50).
extract_transcript
timestamps (false), paragraph_gap_ms (2000), strip_speaker_tags (false), output_path.
Notes
ASS input loses its original styles when written back out; text and timing are kept.
Reading speed (CPS) counts every visible character including spaces, the usual convention for subtitle guidelines.
Overwrites are refused unless
overwrite: true, and writing over the input file needs it explicitly.
Development
npm install
npm run build
npm test # parser/ops unit tests + end-to-end tests over stdio
npm run inspect # MCP Inspectordist/ is committed so npx github:… works without a build; CI verifies it matches src/.
Related servers
video-probe-mcp — inspect and conform video for each platform
caption-forge-mcp — SRT/VTT/ASS conversion, timing, linting and reel-style captions
loudness-check-mcp — LUFS, true peak, normalization, silence and clipping
frame-grab-mcp — frames, contact sheets, scene cuts and thumbnails your AI can see
script-timer-mcp — time, trim and format scripts for short-form video
License
MIT © 2026 Anshuman
Available Tools
11 toolscaption_infoCaption file infoARead-only
Summarize a caption file: detected format, cue count, time span, word count and speaking rate, average/max reading speed (characters per second), shortest/longest cue, longest line, lines per cue, formatting tags, and parse warnings. Shows the first few cues.
Inputs: path, format, content, preview.
captions_from_wordsCaptions from word timestampsA
Build frame-accurate captions from word-level timestamps produced by speech-to-text (Whisper / faster-whisper / WhisperX JSON with word_timestamps, Deepgram JSON, or a plain [{word, start, end}] array in seconds, or start_ms/end_ms). Same styles as reflow_captions; reels style is the classic word-by-word social caption.
Inputs: style, ass_style, max_lines, max_words, +9 more.
clean_captionsClean up captionsA
Automatic tidy-up: trims whitespace, drops empty and zero-length cues, sorts by time, merges back-to-back duplicates, fixes overlaps and flicker gaps, extends too-short cues where there is room, renumbers. Optionally removes sound descriptions like [MUSIC] or (laughs) and speaker labels.
Inputs: path, format, content, overwrite, +6 more.
clip_captionsCut captions for a clipA
Keep only the captions inside a time range and re-zero them to start at 00:00 — for when you cut a short clip out of a long video or podcast. Cues crossing the edges are trimmed to the range.
Inputs: end (required), start (required), path, format, +5 more.
convert_captionsConvert caption formatsB
Convert between SRT, WebVTT, ASS (styled, for burning in), JSON and plain-text transcript. ASS output can be styled with presets (vertical_reel, horizontal, lower_third) or custom font, size, colors, outline, box and position, and comes with an ffmpeg burn-in command.
Inputs: to (required), path, format, content, +3 more.
extract_transcriptExtract a clean transcriptB
Turn captions into a readable transcript: tags stripped, rolling duplicate lines from auto-generated captions removed, paragraphs split on pauses, optional [HH:MM:SS] timestamps per paragraph and speaker-label removal. Useful for show notes, blog posts, chapter markers or feeding the text to an LLM.
Inputs: path, format, content, overwrite, +4 more.
lint_captionsLint captions for readabilityARead-only
Check captions against readability rules and list every problem with its cue number and timestamp: lines too long, too many lines, reading speed too fast (CPS), on screen too briefly or too long, overlaps, out-of-order cues, flicker-prone gaps and empty cues. Presets: standard (42 chars × 2 lines, 17 cps — common streaming practice), reels (24 chars × 1 line), accessible (13 cps). Any rule can be overridden.
Inputs: path, format, preset, content, +7 more.
reflow_captionsRe-chunk captions (reel style or standard)A
Rebuild caption chunks from existing cues. reels: short 1–3 word punchy captions like on Instagram/TikTok/Shorts, timed by splitting each cue's duration across its words. standard: rewrap into balanced ≤42-character lines, max 2 per cue, splitting overlong cues. Breaks prefer sentence and phrase boundaries.
Inputs: path, style, format, content, +10 more.
retime_captionsRetime / resync captionsA
Fix captions that drift (in sync at the start, increasingly off later). Three modes: fps — convert between frame rates (e.g. 23.976 → 25 PAL speed-up); factor — stretch by a multiplier; sync_points — give the correct time for two cues and everything is mapped linearly between them (most accurate).
Inputs: mode (required), path, factor, format, +7 more.
search_captionsSearch captionsARead-only
Find where something is said: returns every matching cue with its timestamp, optionally with surrounding lines. Great for finding soundbites or a quote in a long interview, podcast or talk.
Inputs: query (required), path, regex, format, +4 more.
shift_captionsShift caption timingA
Move every cue earlier or later by a fixed offset — the fix for captions that are consistently ahead of or behind the audio. Optionally only shift cues from a given time onward (e.g. after an ad break or a cut).
Inputs: offset (required), from, path, format, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct caption-processing operation: building captions, converting formats, shifting, retiming, linting, cleaning, clipping, searching, summarizing, and extracting transcripts. Potentially close pairs like reflow_captions vs captions_from_words and lint_captions vs clean_captions are clearly differentiated by source and check-vs-fix behavior. An agent should have no trouble selecting the right tool.
Most tools follow an action + _captions pattern (shift_captions, retime_captions, lint_captions, etc.), making the set mostly predictable. A few names deviate: captions_from_words is source-oriented, caption_info is noun_noun, and extract_transcript uses a different object noun. These are readable but prevent a perfect consistency score.
Eleven tools is well-scoped for a caption-processing server, covering the main pipeline stages without obvious redundancy. Each tool has a clear, earned place in the workflow from caption generation through cleanup, validation, conversion, search, and transcript extraction.
The surface covers caption creation from word timestamps, reflowing, conversion, timing correction, cleanup, readability linting, clipping, search, metadata inspection, and transcript extraction. No obvious CRUD or lifecycle gaps appear for the caption-manipulation domain, and common dead ends like format conversion or drift repair are addressed.
Related MCP Connectors
Convert, clean, retime and validate SRT, WebVTT, ASS/SSA, SBV and TTML subtitles. 8 tools.
Convert subtitles, transcripts, broadcast captions (SCC/MCC/STL), EDLs, and Premiere files.
Add burned-in captions to any video in one call: 28 caption styles, transcription, translation, dubbing, silence trimming and AI shorts. REST + MCP, prepaid credits (1 credit = 1 cent), free tools work without a key.
Transcribe audio and video files to text with timestamps, SRT and VTT. Whisper runs inside.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI apps to transcribe local audio and video files on the user's own GPU, producing SRT/VTT subtitles and text without cloud uploads. It also helps find media files, list available devices, and list supported languages and models.8250 PyPI9MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients such as Claude, Cursor and VS Code to validate SRT and WebVTT caption files mid-task against Netflix, BBC or DCMP limits, flagging reading speed, line length, line count, on-screen duration, gaps, overlaps and broken timestamps. Runs locally as a dependency-free stdio server, accepting a file path or pasted caption text and exposing each standard's limits with their source pages.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to edit video locally through FFmpeg: probing media, validating and previewing JSON edit projects, rendering short-form clips with captions, reframing, transitions and ducked music. Also analyses existing videos and applies or saves reusable format templates, without cloud services or API keys.1Apache 2.0
- AlicenseAqualityBmaintenanceEnables an AI agent to inspect, repair, retime, convert, merge/split, and search SRT, WebVTT, and ASS subtitle files entirely offline, with exact-fraction resync, dry-run fixes, and honest encoding detection. Translation is handled by the agent itself through a chunk/apply contract that preserves timing and flags lost tags.10MIT