Skip to main content
Glama

remotion-video-mcp

An MCP (Model Context Protocol) server that lets Claude create, preview, and render professional videos using Remotion. Talk to Claude naturally — describe the video you want, provide assets, iterate on scenes — and Claude handles the rest.

How It Works

┌─────────────────┐       MCP Protocol        ┌──────────────────────┐
│  Claude CLI /    │ ◄────────────────────────► │  remotion-video-mcp  │
│  Claude Desktop  │   Tool calls & responses   │    (MCP Server)      │
└─────────────────┘                             └──────────┬───────────┘
                                                           │
                                                           │ File I/O + Process Mgmt
                                                           ▼
                                                ┌──────────────────────┐
                                                │   Remotion Project   │
                                                │   (in user's CWD)   │
                                                └──────────────────────┘

Claude acts as the creative brain. The MCP server acts as the bridge to a Remotion project (the rendering canvas). Users describe what they want, Claude uses MCP tools to scaffold, write scenes, sync audio, preview frames, and render the final video.

Related MCP server: cutgent

Features

  • Conversational onboarding — guided questionnaire to understand video goals, style, and assets

  • Project scaffolding — creates a full Remotion project with pre-built template components

  • Scene management — create, update, delete, and reorder scenes via natural language

  • Audio sync — narration-driven videos with word-level timestamp synchronization

  • Live preview — launches Remotion Studio for real-time preview in the browser

  • Frame capture — render individual frames for quick review without full renders

  • Final render — produce MP4/WebM output at draft, standard, or high quality

  • Template library — TitleCard, TextScene, ImageScene, KineticTypography, CodeBlock, and more

  • Custom animations — object-level animation system with spring physics and easing

  • Asset import — copy uploaded images, audio, and fonts from temp paths directly into the project

  • Custom components — write arbitrary code files (themes, utils, components) beyond the template library

  • Overlay system — persistent global overlays (logos, watermarks, animations) that survive scene edits

MCP Tools

Tool

Description

start_session

Onboarding questionnaire — always called first

init_project

Scaffold a new Remotion project

scan_assets

Scan and analyze images, audio, and fonts in the assets folder

import_asset

Copy uploaded files from temp paths into the project's assets directory

create_scene

Create a new scene file with template or custom animations

update_scene

Modify an existing scene's props, animations, or duration

delete_scene

Remove a scene from the project

reorder_scenes

Change the order of scenes in the composition

list_scenes

List all scenes and overlays with their current state

update_composition

Update global settings (style, audio, dimensions)

write_file

Write custom code files (.tsx, .ts, .css, .json) to the project

read_file

Read any file from the project for inspection

add_overlay

Register a component as a persistent global overlay

remove_overlay

Remove an overlay from the composition

start_preview

Launch Remotion Studio dev server

stop_preview

Stop the dev server

capture_frame

Render a single frame as PNG for review

render_video

Render the final video (MP4/WebM)

Audio Modes

Mode

Input Required

Behavior

Narration-driven

MP3 + timestamp JSON

Video duration auto-calculated from audio. Scenes sync to narration segments.

Background music

MP3 file

Music loops in background. User specifies video duration independently.

No audio

Nothing

Silent video. User specifies duration.

Tech Stack

  • MCP Server: Node.js + TypeScript with @modelcontextprotocol/server (MCP SDK v2)

  • Video Engine: Remotion v4 (React-based programmatic video)

  • Runtime: Node.js 18+

  • Package Manager: npm

Prerequisites

  • Node.js 18+

  • npm

  • Claude CLI or Claude Desktop (for MCP integration)

Installation

# Clone the repository
git clone https://github.com/dev-arctik/remotion-video-mcp.git
cd remotion-video-mcp

# Install dependencies
npm install

# Build the server
npm run build

Configuration

Add the MCP server to your Claude CLI or Claude Desktop config:

{
  "mcpServers": {
    "remotion-video": {
      "command": "node",
      "args": ["/path/to/remotion-video-mcp/dist/index.js"],
      "env": {}
    }
  }
}

Usage

  1. Start a conversation with Claude

  2. Say something like "I want to create a product explainer video"

  3. Claude walks you through the onboarding questions (purpose, duration, audio, style)

  4. Claude scaffolds the project — upload images/audio directly in the chat and Claude imports them automatically

  5. Claude creates scenes, adds overlays, you preview in the browser, iterate, and render

Project Structure

remotion-video-mcp/
├── src/
│   ├── index.ts                  # MCP server entry point
│   ├── server.ts                 # Server class with tool registration
│   ├── tools/                    # Individual MCP tool implementations
│   ├── state/                    # Project state management
│   ├── templates/                # Remotion component templates
│   └── utils/                    # File ops, process management, audio utils
├── templates/
│   └── project-scaffold/         # Template files for scaffolded projects
├── package.json
├── tsconfig.json
└── README.md

Development

# Build
npm run build

# Watch mode
npm run dev

# Type check
npm run typecheck

License

MIT

Available Tools

18 tools
add_overlayAdd OverlayA

Register a custom component as a global overlay that renders on top of scenes. The component file must already exist on disk (use write_file first). Overlays persist across all scene mutations — they survive create_scene, update_scene, delete_scene, and reorder_scenes calls. Omit startFrame/endFrame for full-video-duration overlays (logos, watermarks). Set them for partial-duration overlays (animations that appear briefly).

Inputs: file (required), name (required), overlayId (required), projectPath (required), +4 more.

capture_frameCapture FrameA

Render a single frame as a PNG image for review. Useful for verifying text positioning, image placement, and animation states. If a sceneId is provided, the frame number is relative to that scene's startFrame.

Inputs: frame (required), projectPath (required), sceneId.

create_sceneCreate SceneB

Create a new scene file in scenes/ and register it in composition.json. For narration-driven videos, set durationFrames from audio segment timing: durationFrames = Math.ceil((segmentEndTime - segmentStartTime) * fps) After creating, remind the user to check the preview.

Inputs: sceneId (required), sceneName (required), sceneType (required), projectPath (required), +5 more.

delete_sceneDelete SceneA

Delete a scene. Removes the .tsx file, removes the entry from composition.json, recalculates startFrame for all subsequent scenes, and updates Root.tsx.

Inputs: sceneId (required), projectPath (required).

import_assetImport AssetA

Copy files from any location (typically temp uploads) into the project's assets/ directory. Automatically detects the category (images, audio, fonts) from the file extension. Returns publicPath values ready for staticFile() calls. Also returns an assetTree showing all files in each asset folder. For binary assets only — use write_file for code files (.tsx, .ts, .css).

Inputs: files (required), projectPath (required), onDuplicate.

init_projectInitialize ProjectB

Scaffold a new Remotion video project. ONLY call after start_session onboarding is complete. Creates directory tree, copies template components, writes composition.json, and runs npm install.

Inputs: title (required), audioType (required), projectName (required), durationMode (required), +6 more.

list_scenesList ScenesA

Returns the current scenes and overlays from composition.json with computed total duration. Call this whenever you need a snapshot of the current video state.

Inputs: projectPath (required).

read_fileRead FileA

Read any file from the Remotion project. Use this to inspect existing code before making targeted edits with write_file. No extension restriction — you can read .tsx, .ts, .css, .json, package.json, etc. Only files inside the project root are accessible.

Inputs: filePath (required), projectPath (required).

remove_overlayRemove OverlayA

Remove a registered overlay from the composition. Optionally delete the component file from disk. After removal, Root.tsx is regenerated without the overlay — it will disappear from the preview immediately.

Inputs: overlayId (required), projectPath (required), deleteFile.

render_videoRender VideoB

Render the final video as MP4 or WebM. Stop the preview server before rendering. Output is saved to the project's output/ directory.

Inputs: projectPath (required), quality, outputFormat, outputFileName.

reorder_scenesReorder ScenesB

Change the order of scenes. Provide the new order as an array of scene IDs. Recalculates all startFrame values and regenerates Root.tsx.

Inputs: sceneOrder (required), projectPath (required).

scan_assetsScan AssetsA

Scan the assets folder and analyze all files. Call this whenever the user says they've added files to assets/. For images: returns file names, dimensions (if detectable), and sizes. For audio: parses timestamp JSON files and returns segment info. For fonts: lists available custom font files. After scanning, present a summary and propose how assets could be used.

Inputs: projectPath (required).

start_previewStart PreviewA

Start the Remotion Studio dev server for live preview. Launches 'npx remotion studio' in the project directory. The preview auto-reloads when scene files change. Tell the user to open the URL in their browser.

Inputs: projectPath (required).

start_sessionStart SessionA

ALWAYS call this tool FIRST before any other remotion tool when the user wants to create a video. Returns a structured onboarding guide. Walk the user through the questions conversationally (2-3 at a time). Do NOT call init_project until you have all required information.

Inputs: workingDirectory (required).

stop_previewStop PreviewA

Stop the Remotion Studio dev server. Call this before render_video or when done previewing.

Inputs: projectPath (required).

update_compositionUpdate CompositionA

Update global composition settings — style, audio config, dimensions, fps, etc. Does NOT modify individual scenes (use update_scene for that). Use this for changing the overall theme, swapping audio, or changing resolution.

Inputs: projectPath (required), audio, style, metadata, +1 more.

update_sceneUpdate SceneC

Modify an existing scene. Can update props, objects, animations, duration, or transitions. Only modifies the specified scene. After updating, remind the user to check the preview.

Inputs: sceneId (required), projectPath (required), props, objects, +5 more.

write_fileWrite FileA

Write a code file (.tsx, .ts, .css, .json) to the Remotion project. Use this to create custom components, theme files, shared utils, or any code the pre-built templates don't cover. Protected system files (Root.tsx, composition.json, package.json, etc.) cannot be overwritten. If the file already exists it will be replaced — a warning is included in the response. Call read_file first if you need to inspect existing content before editing.

Inputs: content (required), filePath (required), projectPath (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools target clearly different lifecycle actions: session setup, project scaffolding, scene CRUD, overlay management, asset handling, preview control, and rendering. A couple of pairs could be momentarily confused, such as start_session vs. init_project or read_file vs. scan_assets, but the descriptions explicitly clarify the boundaries.

    Naming Consistency5/5

    The tool set uses a consistent snake_case verb_noun convention throughout: create_scene, update_scene, delete_scene, reorder_scenes, start_preview, stop_preview, add_overlay, remove_overlay, etc. Minor singular/plural variation (scan_assets vs. import_asset) and abbreviation (init_project) do not break the predictable pattern.

    Tool Count4/5

    Eighteen tools is slightly above the ideal 3-15 range, but each maps to a meaningful part of the Remotion project lifecycle rather than duplicating functionality. The surface is broad but still cohesive, with no obvious redundant tool that should be removed.

    Completeness4/5

    The set covers the core workflow well: onboarding, project initialization, scene creation/editing/reordering/deletion, overlays, assets, preview, frame capture, and final rendering. Minor gaps remain, such as no explicit file-deletion or project-wide file listing tool, and overlay updates must be done via remove plus add rather than a dedicated update_overlay.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers