Skip to main content

video-generation-mcp

An MCP server that makes narrated "tech explained" reels for Facebook, Instagram and YouTube Shorts: script → Gemini voice → line timings → 3D (three.js) or 2D visuals → background render → music mix → final mp4. It also makes white editorial image posts, step-by-step infographics, thumbnails, captions and other formats.

Built with FastMCP for Claude Desktop, Claude Code, Cursor, Windsurf, VS Code (Cline/Roo), Antigravity, and any MCP client.

Tools (47)

Area Tools
Overview list_reels, reel_status, studio_doctor
Reel + script create_reel, write_script, check_script, write_caption_file
Voice generate_voice, speak_script, speak (chunked, model fallback, style, background), voice_status, polish_voice, import_voice
Timing align_voice, set_line_times
Code + assets list_files, read_file, write_file (returns sha256), file_hashes, add_asset, list_templates, save_as_template
Shot plans shot_guide, write_shots (describe shots as data), fix_frames (automatic check-and-fix)
Asset library import_asset (your models, images, textures, 360° skies; big OBJ/GLB models optimised to web .glb), list_assets, show_asset, use_asset
Images generate_image (photoreal stills from a prompt: plates, backgrounds, textures)
Look before rendering render_stills (contact sheet image), check_frames (automatic checks), safe_zone_check
Render start_render, render_status, cancel_render, finish_reel
Music set_music (calm, upbeat, tense, ambient, none), import_music
After rendering preview_video, check_audio, add_captions, make_thumbnail, export_formats, trim_or_speed, compress_video
Image posts render_image_post, render_infographic
Planning + cleanup log_topic, list_topics, clean_reel

Optimising big models in import_asset needs the models extra (uv sync --extra models / pip install video-generation-mcp[models]).

A typical reel: create_reel → write_script → check_script → generate_voice → align_voice → write_file (3d/world.js with KIT) → write_shots (shot plan) → render_stills → fix_frames → start_render → render_status → preview_video.


Installation & Setup

Prerequisites

  • Python 3.10+
  • uv (recommended package manager) or standard pip / pipx
  • ffmpeg (with libass support for subtitle burning)

Installing ffmpeg:

  • macOS: brew install ffmpeg
  • Linux (Ubuntu/Debian): sudo apt update && sudo apt install -y ffmpeg
  • Windows: winget install Gyan.FFmpeg or choco install ffmpeg

Installation Methods

You can run video-generation-mcp using either the PyPI Package method (recommended, no source clone needed) or the Local Source Clone method.

Method 1: PyPI Package (uvx / pipx)

When using PyPI, there is no need to manually clone the repository or manage virtual environments. uvx automatically runs the published package.

Make sure you install the Playwright Chromium browser once:

uvx --from video-generation-mcp playwright install chromium

Method 2: Local Source Clone

  1. Clone or download this repository:
    git clone https://github.com/SalindaHulangamuwa/video-generation-mcp.git
    cd video-generation-mcp
    
  2. Set up environment file:
    cp .env.example .env
    # Edit .env and specify your BX_STUDIO_DIR and GEMINI_API_KEY
    
  3. Install dependencies and browser:
    uv sync
    uv run playwright install chromium
    
  4. Verify system dependencies:
    uv run video-generation-mcp doctor
    

Configuration Reference

Set these environment variables in your AI client's configuration or .env file:

Variable Required Default Description
BX_STUDIO_DIR Yes — Absolute path to your studio directory containing reels/, posts/, etc.
GEMINI_API_KEY Recommended — Google Gemini API key for TTS narration voices
BX_VOICE No Iapetus Default TTS voice
BX_TTS_MODEL No gemini-2.5-flash-preview-tts TTS model
BX_GL No auto Graphics mode: gpu, swiftshader (software rasterizer), or auto
BX_FPS No 24 Render frame rate
BX_WORKERS No 2 Parallel browser render workers
BX_FOOTNOTE No (empty) Footnote text for 3D frames, e.g. Simulated · illustration

AI Platform Configuration Guides

Configuration file locations by OS:

  • Claude Desktop:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  • Cursor:
    • .cursor/mcp.json in workspace root or Settings > MCP
  • Windsurf:
    • ~/.codeium/windsurf/mcp_config.json
  • VS Code (Cline / Roo Code):
    • macOS: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
    • Windows: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
    • Linux: ~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json

1. Claude Desktop

Option A: PyPI Method (uvx)

Add to claude_desktop_config.json:

macOS / Linux:

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uvx",
      "args": ["video-generation-mcp"],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

Windows:

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uvx.exe",
      "args": ["video-generation-mcp"],
      "env": {
        "BX_STUDIO_DIR": "C:\\Users\\YourUsername\\path\\to\\studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

Option B: Local Source Path (uv run)

macOS / Linux:

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/video-generation-mcp",
        "video-generation-mcp"
      ],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

Windows:

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uv.exe",
      "args": [
        "run",
        "--directory",
        "C:\\Users\\YourUsername\\path\\to\\video-generation-mcp",
        "video-generation-mcp"
      ],
      "env": {
        "BX_STUDIO_DIR": "C:\\Users\\YourUsername\\path\\to\\studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

2. Cursor

Add to your project's .cursor/mcp.json or Cursor Settings → MCP:

Option A: PyPI Method

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uvx",
      "args": ["video-generation-mcp"],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

(On Windows, use "uvx.exe" and Windows formatted paths C:\\path\\to\\studio)

Option B: Local Source Path

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/video-generation-mcp",
        "video-generation-mcp"
      ],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

3. Claude Code (CLI)

Run directly from your terminal:

Option A: PyPI Method

  • macOS / Linux:
    claude mcp add video-generation-mcp -- uvx video-generation-mcp -e BX_STUDIO_DIR="/absolute/path/to/studio" -e GEMINI_API_KEY="your_api_key"
    
  • Windows (PowerShell):
    claude mcp add video-generation-mcp -- uvx.exe video-generation-mcp -e BX_STUDIO_DIR="C:\Users\YourUsername\path\to\studio" -e GEMINI_API_KEY="your_api_key"
    

Option B: Local Source Path

  • macOS / Linux:
    claude mcp add video-generation-mcp -- uv run --directory /absolute/path/to/video-generation-mcp video-generation-mcp -e BX_STUDIO_DIR="/absolute/path/to/studio" -e GEMINI_API_KEY="your_api_key"
    
  • Windows (PowerShell):
    claude mcp add video-generation-mcp -- uv.exe run --directory C:\Users\YourUsername\path\to\video-generation-mcp video-generation-mcp -e BX_STUDIO_DIR="C:\Users\YourUsername\path\to\studio" -e GEMINI_API_KEY="your_api_key"
    

4. Windsurf

In ~/.codeium/windsurf/mcp_config.json:

Option A: PyPI Method

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uvx",
      "args": ["video-generation-mcp"],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

Option B: Local Source Path

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/video-generation-mcp",
        "video-generation-mcp"
      ],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      }
    }
  }
}

5. VS Code (Cline / Roo Code)

In cline_mcp_settings.json:

Option A: PyPI Method

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uvx",
      "args": ["video-generation-mcp"],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Option B: Local Source Path

{
  "mcpServers": {
    "video-generation-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/video-generation-mcp",
        "video-generation-mcp"
      ],
      "env": {
        "BX_STUDIO_DIR": "/absolute/path/to/studio",
        "GEMINI_API_KEY": "your_gemini_api_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Docs

Development

uv sync
uv run pytest              # runs test suite
uv run ruff check src tests && uv run mypy

Metadata

Release files for video-generation-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for video-generation-mcp 0.4.0
File Size Uploaded Provenance Actions
video_generation_mcp-0.4.0.tar.gz 662.1 kB Without provenance Details for video_generation_mcp-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for video-generation-mcp 0.4.0
File Interpreter ABI Platform Actions
video_generation_mcp-0.4.0-py3-none-any.whl Python 3 none any Details for video_generation_mcp-0.4.0-py3-none-any.whl

Total release size: 1.3 MB

Release files / video_generation_mcp-0.4.0.tar.gz

Download URL video_generation_mcp-0.4.0.tar.gz
Size 662.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5fe66c7210d9ac3e4d54dda149b501bef0360a2413ef01fc375ec7e2581f0687
BLAKE2b-256 checksum
How to use checksums
fdf9532022f22fbb2154e64441628babcc93f0d3f4df7b512978e102daa42265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / video_generation_mcp-0.4.0-py3-none-any.whl

Download URL video_generation_mcp-0.4.0-py3-none-any.whl
Size 668.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2234d025397050e35f9bcf2a41c21b9e4f6a7abba6e8eeb7c851c8a12668b33f
BLAKE2b-256 checksum
How to use checksums
9b775700f461034fbeba49841011a4f94fe49f27dddb8ac442171199693149af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for video-generation-mcp 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page