Skip to main content
Glama

script-timer-mcp

CI License: MIT MCP

Know exactly how long your script runs — before you hit record.

script-timer-mcp is a Model Context Protocol server for short-form video scripts. It times scripts the way they'll actually be spoken (skipping B-roll notes, adding pauses, handling numbers and URLs), tells you what to cut to hit 15/30/60/90 seconds, scores your hook, checks pacing, trims fillers, and exports teleprompter text, a timed beat sheet for the edit, and draft SRT captions.

Pure TypeScript, no dependencies beyond the MCP SDK, no API keys, no network.

You:    Will this script fit in 30 seconds? [pastes script]
Claude: It runs 0:38 at 170 wpm — cut ~23 words. The Body is 62% of the runtime;
        your hook and CTA are fine. Quick wins: "basically" ×2, "in order to" → "to".
        Longest sentence is 26 words (9.1s) — split it.
        Hook score 4/10: it opens with "Hey guys, welcome back" — lead with the
        "$40,000 camera" line instead.

Tools

Tool

What it does

estimate_duration

Total and per-section read time at your pace, the range across paces, comparison to a target, and calibration: give the length of a real take and get your personal WPM.

fit_to_duration

Word budget for a target length, words to cut/add, per-section budget (lock sections like Hook/CTA), the pace that would fit as-is, and ranked cut candidates with seconds saved.

analyze_hook

Scores the opening 0–10: flags slow openers (greetings, "welcome back", "in this video", "so today…", name intros, early like/subscribe asks) and credits strong patterns (you-language, questions, numbers, tension, contrast, mid-story starts). Ranks hook variants.

analyze_pacing

Sentence lengths, one-breath problems, Flesch readability, repeated words, fillers, section balance, CTA at the end (and none too early).

trim_fillers

Removes fillers and tightens wordy phrases, repairs capitalization and punctuation, leaves headers and stage directions alone, lists every change and the time saved.

format_teleprompter

Short lines broken at natural pauses, blank line between sentences, section markers, optional [m:ss] timestamps and ALL CAPS.

beat_sheet

Every line with estimated start/end plus where each B-roll / SFX / on-screen cue lands. Markdown or CSV.

script_to_srt

Draft SRT with estimated timing (reels style 1–3 words, or standard ≤42 chars) — a placeholder caption track before the VO exists.

compare_scripts

2–10 versions side by side: words, time, hook score, longest sentence, CTA, fits target.

Every tool takes text (paste the script) or path (a .txt / .md file).


Related MCP server: faster-whisper-mcp

How scripts are read

Write scripts the way you already do. The parser separates what's spoken from what isn't:

# Hook
I spent $40,000 on cameras and the cheapest one won.

## Body
[B-ROLL: three cameras on a desk]
Here's why. [pause]
SFX: whoosh
VO: The sensor matters less than the light.

CTA: Comment "LIGHT" and I'll send you my setup.

You write

Treated as

# Hook, ## Body, **CTA** (short bold line)

Section header

Hook:, Intro -, CTA:, Outro:, Beat 2:, Scene 3:

Section label (text after it is spoken)

PROBLEM:, STEP 2:, TIP 3: (caps), or the label alone on a line

Section label. In normal case ("Problem: nobody watches…") it's spoken.

[B-ROLL: …], {SFX}, (cut to wide), (laughs)

Stage direction, not timed

Lines starting B-ROLL:, A-ROLL:, SFX:, MUSIC:, ON SCREEN:, VISUAL:, SHOT:, CUT TO:, GRAPHIC:, LOWER THIRD:, OVERLAY:

Stage direction

TEXT:, NOTE:, EDIT:, CAMERA: in caps

Stage direction. In normal case ("Note: this only works on Mac") it's spoken.

VO:, HOST:, NARRATOR:, ALL-CAPS NAME:, or a name that starts 2+ lines (Hardik: …)

Speaker label, dropped

[pause] / (pause) · [beat] · [pause 2s] · ...

+1 s · +0.5 s · +2 s · +0.4 s

Timing adjusts for how long things take to say: 2026 ≈ 2 words, $10K ≈ 3, 3.5x ≈ 3, example.com ≈ "example dot com", API ≈ 2. Chinese/Japanese/Korean text is timed per character. Emojis are ignored.

Paces

Preset

WPM

Typical use

slow

130

Explainers, VO over visuals, emotional pieces

conversational

150

Talking-head YouTube, podcasts

energetic (default)

170

Typical Reels / TikTok / Shorts delivery

fast

190

Hype edits, rapid-fire lists

Everyone talks at a different speed. Record one take, then run estimate_duration with actual_seconds to get your WPM and pass wpm from then on.


Requirements

  • Node.js 20+. That's it.

Install

Claude Desktop

Settings → Developer → Edit Config:

{
  "mcpServers": {
    "script-timer": {
      "command": "npx",
      "args": ["-y", "github:anshumanofficial2002-cpu/script-timer-mcp"]
    }
  }
}

Claude Code

claude mcp add script-timer -- npx -y github:anshumanofficial2002-cpu/script-timer-mcp

Cursor / Windsurf / VS Code / other clients

{
  "script-timer": {
    "command": "npx",
    "args": ["-y", "github:anshumanofficial2002-cpu/script-timer-mcp"]
  }
}

From source

git clone https://github.com/anshumanofficial2002-cpu/script-timer-mcp.git
cd script-timer-mcp && npm install && npm run build
# point your client at: node /absolute/path/to/script-timer-mcp/dist/index.js

Example prompts

  • "How long is this script at a normal reel pace?" (paste it)

  • "I recorded ~/Scripts/ep14.md and the take was 47 seconds. What's my WPM?"

  • "Fit launch.md to 30 seconds, but don't touch the Hook or CTA."

  • "Score these 5 hooks and tell me which to open with."

  • "Remove the fillers from my script but keep 'literally', it's how I talk."

  • "Make teleprompter text with timestamps, 5 words per line, all caps, save it to ~/Desktop/prompter.txt."

  • "Give me a beat sheet CSV so my editor knows where the B-roll goes."

  • "Make a draft SRT from this script so I can lay out captions before the voiceover."

  • "Compare v1, v2 and v3 of this script for a 15-second ad."


Tool reference

Shared params: text or path; pace (energetic) or wpm (60–320).

Tool

Extra params

estimate_duration

target_seconds, actual_seconds

fit_to_duration

target_seconds (required), keep_sections

analyze_hook

variants (up to 20 lines), first_seconds (3)

analyze_pacing

long_sentence_words (25)

trim_fillers

aggressive (false), extra_fillers, keep, output_path, overwrite

format_teleprompter

words_per_line (6), uppercase, timestamps, show_sections (true), show_directions, output_path, overwrite

beat_sheet

format (markdown | csv), output_path, overwrite

script_to_srt

style (reels | standard), max_words, max_chars, uppercase, offset_seconds, output_path, overwrite

compare_scripts

scripts ([{label, text}], 2–10), target_seconds

Fillers removed by trim_fillers: basically, literally, honestly, kind of, sort of, you know, I mean, so yeah, pretty much, needless to say, at the end of the day, to be honest, for what it's worth, and ", like,". With aggressive: also actually, really, very, just, totally, simply, definitely, certainly, quite, obviously, absolutely, truly.

Wordy phrases tightened: in order to → to · due to the fact that → because · at this point in time → now · in the event that → if · is/are able to → can · each and every → every · first and foremost → first · whether or not → whether · the majority of → most · a large number of → many · in the near future → soon · and filler openers like "it's worth noting that", "the thing is", "what I want to say is".


Honest limits

  • Durations are estimates from word counts. Real delivery varies with pauses, emphasis and editing — calibrate with actual_seconds for best results.

  • The hook score and filler lists are heuristics to point you at likely problems, not a judgement of the idea. English patterns only; timing works for any language.

  • Readability (Flesch) is only computed for English.

  • .docx / .pdf / Pages files aren't read — paste the text or export .txt / .md.

Safety

  • Files are only written when you pass output_path; existing files are never replaced without overwrite: true.

  • No network access, no telemetry.

Development

npm install
npm run build
npm test          # parser/analysis unit tests + end-to-end tests over stdio
npm run inspect   # MCP Inspector

dist/ is committed so npx github:… works without a build; CI verifies it matches src/.

License

MIT © 2026 Anshuman

Available Tools

9 tools
analyze_hookScore the hookA
Read-only

Check a script's opening the way a scroller meets it: the first line, how long it takes to say, and what's heard in the first few seconds. Flags slow openers (greetings, 'welcome back', 'in this video', 'so today…', name intros, early like/subscribe asks) and credits strong patterns (talking to 'you', a question, a specific number, tension/curiosity words, contrast, starting mid-story). Returns a 0–10 heuristic score with fixes. Pass several hook variants in variants to rank them.

Inputs: wpm, pace, path, text, +2 more.

analyze_pacingCheck pacing and readabilityA
Read-only

Review how a script will sound: sentence count and lengths, sentences too long to say in one breath, readability (Flesch, for English), words repeated 3+ times, filler words, section balance, and whether there's a clear call to action at the end (and none too early).

Inputs: wpm, pace, path, text, +1 more.

beat_sheetTimed beat sheetB

Lay the script on a timeline for the edit: every sentence with estimated start/end timecode and section, plus where each stage direction (B-roll, SFX, on-screen text) lands. Export as Markdown or CSV for planning shots, b-roll and graphics before the shoot.

Inputs: wpm, pace, path, text, +3 more.

compare_scriptsCompare script versionsA
Read-only

Compare 2–10 versions of a script side by side: words, duration at your pace, hook score, first line, longest sentence, CTA, and whether each fits a target length.

Inputs: scripts (required), wpm, pace, target_seconds.

estimate_durationEstimate read timeA
Read-only

How long will this script take to say? Returns total duration and a per-section breakdown at a chosen pace, plus a range across paces. Counts only spoken words (headers and stage directions are excluded), adds time for [pause]/[beat]/'…', and adjusts for numbers, URLs and acronyms. Give actual_seconds (how long a real take was) to calibrate your personal words-per-minute.

Inputs: wpm, pace, path, text, +2 more.

fit_to_durationFit a script to a lengthA
Read-only

Plan how to hit a target length (e.g. 15, 30, 60 or 90 seconds): word budget, how many words to cut or add, a per-section budget, the pace that would fit as-is, and ranked cut candidates — filler words, wordy phrases and the longest sentences — with the seconds each would save. Does not rewrite creative content; use trim_fillers for safe automatic cuts.

Inputs: target_seconds (required), wpm, pace, path, +2 more.

format_teleprompterFormat for a teleprompterA

Turn a script into teleprompter-ready text: short lines broken at natural pauses, a blank line between sentences, section markers, optional running timestamps and ALL CAPS, with stage directions removed or kept as cues. Save as .txt to load into a prompter app.

Inputs: wpm, pace, path, text, +7 more.

script_to_srtDraft captions from a scriptA

Generate an SRT caption file from the script with estimated timing — a placeholder track to drop on the timeline before the voiceover exists, or a starting point to re-sync later. reels style = 1–3 words per caption; standard = up to 42 characters. Stage directions are skipped.

Inputs: wpm, pace, path, text, +7 more.

trim_fillersTrim fillers and wordy phrasesA

Return a tighter version of the script with filler words removed (basically, literally, kind of, you know…) and wordy phrases shortened ('in order to' → 'to', 'due to the fact that' → 'because'). Headers and stage directions are untouched, capitalization and punctuation are repaired. aggressive also removes weak intensifiers (really, very, just, actually…). Lists every change and the time saved.

Inputs: wpm, keep, pace, path, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 9 tools

    Disambiguation4/5

    estimate_duration and fit_to_duration both concern timing, and analyze_pacing overlaps with filler detection, but each tool has a clearly different action (measure, plan, review, edit) and descriptions clarify when to use which. No pair is indistinguishable.

    Naming Consistency4/5

    Most tools use verb_noun snake_case (estimate_duration, trim_fillers, compare_scripts), but beat_sheet is a noun phrase and script_to_srt uses a noun_to_noun conversion pattern. Casing and readability are consistent, with only minor deviations from the dominant pattern.

    Tool Count5/5

    Nine tools map cleanly to distinct stages of the script workflow—measurement, target fitting, hook/pacing analysis, trimming, formatting, timeline, captions, and comparison. Nothing feels redundant or missing at this count.

    Completeness5/5

    The surface covers the full lifecycle for spoken-script prep: estimate, fit, hook, pacing, editing, teleprompter formatting, edit timeline, SRT captions, and version comparison. No obvious operation is missing for this domain.

    Related MCP Connectors

    Related MCP Servers