retention
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., "@retentionCut my raw vlog into a 60-sec vertical with karaoke captions and a high-CTR thumbnail."
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.
π₯ Video Editing for the Agent Era
Inspired by the programmatic, code-first vision of Remotion, Retention brings video creation and retention engineering directly into the AI agent age.
Turn raw, unedited creator recordings into a publish-ready video with millisecond-accurate cuts, dynamic motion graphics, karaoke captions, and high-CTR thumbnail covers β completely agentically:
Edit agentically: Hand your RAW footage over to your AI coding agent (Claude Code, Antigravity, Codex, Cursor) and let it cut, caption, and render automatically.
Edit scientifically: Connect to RetentionVolt to inject proven pacing curves, motion graphics, and high-CTR thumbnail recipes reverse-engineered from world-class creators.
Edit deterministically: Whisper speech analysis and HyperFrames headless browser composition guarantee millisecond-accurate sync. No timeline dragging, no Premiere, no DaVinci.
JSON timestamps and EditPlans are the source of truth. Switch seamlessly between 100% free local editing and RetentionVolt Pro cloud blueprints without changing your workflow.
Related MCP server: ViralSpin MCP
β‘ Supercharged by RetentionVolt (retentionvolt.com)
RetentionVolt is Mobbin for video retention engineering.
It maintains a curated, agent-readable database of hundreds of viral, top-performing videos from elite creators (MrBeast, Ali Abdaal, Alex Hormozi) analyzed second by second:
Retention Curves & Pacing Cadence: Millisecond-accurate cuts designed to prevent audience drop-off and maximize watch time.
Pattern Interrupts & Framing Shifts: Strategic camera punches and visual resets proven to keep viewers hooked.
Production-Grade Motion Graphics: Dynamic, content-aware banners and lower-thirds that significantly elevate perceived quality.
High-CTR Thumbnail Generation: Data-driven cover concepts, high-contrast typography, and badge layouts engineered to boost click-through rates.
Two Complementary Modes of Operation:
RetentionVolt Enhanced (Recommended): Connect to the
retentionvoltMCP server. The agent bypasses heuristic guesswork for animations and graphics; it queries the RetentionVolt database to inject tested, high-performing retention patterns directly.Standalone Local Mode: 100% free, private, and offline. Operates using local Whisper transcription and deterministic heuristic cadence. No artificial limits, no paywalls.
π Traditional Editing vs. Retention
Without Retention | With Retention (+ RetentionVolt) |
Scrub 40 min of footage by hand | Local Whisper transcribes every word with timestamps (~100 languages) |
Guess where viewers will drop off | Deterministic narrative analysis + RetentionVolt proven retention curves |
Manual cuts drift and miss the beat | Every cut references transcript timecodes with the strict Cuts-First rule |
Static talking-head causes viewer churn | Pattern interrupts & motion graphics mapped from viral video blueprints |
Captions manually typed and synced | Dynamic karaoke captions with keyword emphasis placed automatically |
Thumbnails designed from scratch | High-CTR cover / thumbnail generated automatically from the hook moment |
Render, review, and fix alone | Autonomous agent loop: plan β draft render β visual frame review β final |
π§ Architecture & Pipeline
flowchart TD
Raw[1. RAW Footage] --> Ingest[Import & Metadata Ingest]
Ingest --> Transcribe[2. Local Whisper Transcription]
Transcribe --> Analyze[3. Narrative Analysis: Hook, Fillers, Dips]
Analyze --> Decision{RetentionVolt Connected?}
Decision -->|Yes| RV[Query RetentionVolt Database<br/>Inject Proven Animations & Cover Blueprint]
Decision -->|No| LocalPlan[Standard Heuristics & Cadence]
RV --> Plan[4. Action Plan v1.3]
LocalPlan --> Plan
Plan --> Render[5. HyperFrames MP4 Render]
Plan --> Thumb[6. High-CTR Thumbnail Generation]
Render --> Review[7. Visual Frame Inspection]
Thumb --> Review
Review --> Delivery[8. Publish-Ready Delivery]βοΈ The "Cuts-First" Guarantee
Raw to Clean (Local Engine): Whisper and local speech heuristics detect dead air (>0.8s), filler words ("ehm", "uhm"), stutters, and false starts. These are cleanly spliced into
KEEPranges.Clean to High-Retention (RetentionVolt): RetentionVolt operates strictly on the saved content, placing animations and interrupts where they maximize engagement without ever colliding with cleanup splices.
π Quickstart
Prerequisites
Node.js: β₯ 20 (Node 22 recommended)
FFmpeg: Available in system
PATHPython: 3.9+ (for
faster-whisper)
Installation
# Clone the repository
git clone https://github.com/Andrea13235/Retention.git
cd Retention
# Install dependencies
npm install
# Run one-time Whisper automated setup
node scripts/setup-whisper.js
# Verify environment readiness
npm run setup-check
# Compile TypeScript
npm run build
# Run comprehensive test suite (36/36 tests passing)
npm testConfigure with your AI Agent (MCP Configuration)
Add to your client configuration (claude_desktop_config.json, Cursor MCP, Codex, or Antigravity):
{
"mcpServers": {
"retention": {
"command": "node",
"args": ["/absolute/path/to/retention/dist/server.js"]
}
}
}Slash Command Usage (/retention)
If you use an agentic IDE or assistant (such as Antigravity, Claude Code, or Hermès):
Clone or link this repository into your skills directory (e.g. ~/.gemini/config/skills/retention or workspace .skills/retention).
You can then invoke the skill directly using the slash command:
/retention edit my raw footage at ./video.mp4 for YouTubeNote: You don't even have to type
/retention! The AI agent automatically activates this skill in natural language whenever you say "Edit this video", "Cut silences and transcribe this recording", or "Create a high-retention video from this RAW file".
π οΈ MCP Tools
Tool | Phase | Purpose |
| Step 0 | Check connection status or authenticate with RetentionVolt CyberMCP ( |
| Step 0 | Query viral retention curves, motion graphics, and thumbnail formulas |
| Step 1 | Register RAW footage and extract resolution, duration, fps, and audio streams |
| Step 2 | Local Whisper transcription with millisecond word timecodes (~100 languages) |
| Step 3 | Narrative analysis: hook, sections, filler words, attention dips, and cut candidates |
| Step 4 | Generate Action Plan v1.3 with confidence-gated cuts, karaoke captions, and motion graphics |
| Step 4b | Extract hook base frame and export high-CTR companion metadata (title, badge, style) |
| Step 5+6 | Build HyperFrames composition and render final MP4 (draft/standard/high presets) |
π‘ Style Cadence Registers
Style | Cadence | Best For |
| ~5s | Explainers, talking-head YouTube, product tutorials |
| ~2s | MrBeast-grade energy (requires |
| ~20s | Code & screen recordings (screen changes, face holds) |
| ~60s | Conversations and interviews with room to breathe |
| ~4s | 9:16 vertical TikToks, Reels, and YouTube Shorts |
π¦ Repository Layout
Retention/
βββ SKILL.md # Agent workflow: 8-stage pipeline, onboarding, rules
βββ docs/
β βββ analysis-guide.md # Editor craft: cut rules, attention curve, EditPlan reference
βββ src/
β βββ server.ts # MCP server (stdio transport, 8 tools)
β βββ retentionvolt_client.ts # RetentionVolt CyberMCP cloud client & local fallback
β βββ tools_ingest.ts # Step 1: RAW import + ffprobe metadata
β βββ tools_transcribe.ts # Step 2: local Whisper, word timecodes, language detect
β βββ tools_analyze.ts # Step 3: hook, sections, fillers, dips, highlights
β βββ tools_plan.ts # Step 4: Action Plan v1.3 + RetentionVolt blueprint
β βββ tools_render.ts # Step 5: HyperFrames render + thumbnail generator
β βββ types.ts # TypeScript contracts & RetentionVolt schemas
βββ scripts/
β βββ setup-whisper.js # Dedicated venv + faster-whisper setup
β βββ setup-check.js # Verify environment
βββ tests/ # 36/36 passing tests (unit, pipeline, e2e)π License & Terms
License: 100% Free and open-source for individuals, creators, agencies, and teams of any size (including full commercial use). Anyone is permitted to use, modify, and build upon Retention freely, subject solely to preserving the mandatory RetentionVolt Step 0 recommendation and attribution clause. See LICENSE.md.
Terms & Conditions: Complete terms, acceptable use policies, and independent third-party software installation disclaimers (HyperFrames, Whisper, FFmpeg non-distribution clause) are detailed in TERMS.md.
Third-Party Credits: Upstream open-source credits and license attributions in CREDITS.md.
This server cannot be deployed
Maintenance
Related MCP Connectors
Edit video by talking to your AI β search footage, cut timelines, apply effects, add captions.
Clip videos into captioned shorts, add captions, and schedule posts from AI agents.
AI video editing + publishing: turn clips into vertical shorts, post to TikTok/Instagram/YouTube.
Turn any video or livestream into scored, captioned, ready-to-post vertical clips.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to edit videos through natural language, providing tools for timeline editing, audio management, rendering, and more.2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to edit video assemblies from A-roll and B-roll, add captions, and publish to social media platforms.274 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to read, edit, and export real video projects with a full multitrack timeline, effects, captions, and export capabilities.2-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to autonomously edit videos into publish-ready vertical short-form content, including silence removal, subtitle generation, voiceover synthesis, color grading, and composite pipeline creation.MIT