Skip to main content

AI-powered video editing MCP server with Submagic API integration

Project description

Submagic MCP Server

AI-powered video editing MCP server for automatic captions, magic zooms, B-rolls, and viral clip generation. Process videos in 107 languages with professional templates and advanced editing features.

Status: Production-Ready | API Coverage: 100% | Rating: 9.5/10


Quick Start

Installation

# 1. Create virtual environment
python3 -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# 2. Install dependencies
pip install -r requirements.txt

# 3. Configure API key
echo 'SUBMAGIC_API_KEY="sk-your-key-here"' > .env

# 4. Test the server
python tests/test_server.py

Get your API key at: https://app.submagic.co/signup

Claude Desktop Setup

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "submagic": {
      "command": "/absolute/path/to/venv/bin/python",
      "args": ["/absolute/path/to/submagic_mcp.py"],
      "env": {
        "SUBMAGIC_API_KEY": "sk-your-api-key"
      }
    }
  }
}

Restart Claude Desktop - done!


Features

AI Video Processing

  • AI Captions - 107 languages, 98%+ accuracy
  • Magic Zooms - AI-powered dynamic zoom effects
  • Magic B-rolls - Auto-insert stock footage (0-100% coverage)
  • Silence Removal - 3 speeds: natural (0.6+s), fast (0.2-0.6s), extra-fast (0.1-0.2s)
  • Bad Takes Removal - AI removes "um", "uh", "like" filler words
  • Custom B-rolls - Insert your own videos at exact timestamps

Social Media Optimization

  • 30+ Templates - Hormozi series, Beast, Sara, professional styles
  • Magic Clips - Auto-generate viral clips from YouTube (15-300s duration)
  • Platform Presets - TikTok (15-30s), Reels (30s), Shorts (45-60s)
  • Custom Themes - Apply your branded styling
  • Aspect Ratios - 9:16, 1:1, 16:9, 4:5 via export dimensions

Professional Workflow

  • Post-Creation Editing - Update silence removal, add filler word cleanup, insert B-rolls
  • Iterative Refinement - Update and re-export multiple times
  • Webhook Notifications - Get notified when processing completes
  • Custom Dictionary - Improve transcription accuracy

Usage Examples

Basic: Create Video with AI Captions

submagic_create_project(
    title="Product Demo",
    language="en",
    video_url="https://example.com/video.mp4",
    template_name="Hormozi 2",
    magic_zooms=True,
    magic_brolls=True,
    remove_silence_pace="fast"
)

Advanced: Professional Editing Workflow

# 1. Create project
project_id = submagic_create_project(...)

# 2. Wait for processing (2-10 min)
submagic_get_project(project_id)

# 3. Fine-tune after reviewing
submagic_update_project(
    project_id=project_id,
    remove_silence_pace="extra-fast",  # Tighten pacing
    remove_bad_takes=True               # Clean filler words
)

# 4. Export for TikTok (9:16 vertical)
submagic_export_project(
    project_id=project_id,
    width=1080,
    height=1920,
    fps=30
)

# 5. Get download URL
submagic_get_project(project_id)  # Check for downloadUrl

Magic Clips: YouTube to TikTok

# Generate 15-second TikTok clips from YouTube video
submagic_create_magic_clips(
    title="TikTok Highlights",
    youtube_url="https://youtube.com/watch?v=abc123",
    language="en",
    min_clip_length=15,
    max_clip_length=30,
    user_theme_id="your-brand-uuid"  # Optional branding
)

Insert Custom B-Roll

# Replace boring section with product demo
submagic_update_project(
    project_id=project_id,
    custom_broll_items=[
        {
            "startTime": 30.0,
            "endTime": 45.0,
            "userMediaId": "your-broll-uuid"  # From Submagic editor
        }
    ]
)

Tools Reference

Tool Purpose Rate Limit
submagic_list_languages Get 107 language codes 1000/hour
submagic_list_templates List 30+ templates 1000/hour
submagic_create_project Create video with AI features 500/hour
submagic_get_project Check status, get download URLs 100/hour
submagic_update_project Edit after creation 100/hour
submagic_export_project Export with custom settings 500/hour
submagic_create_magic_clips Generate clips from YouTube 500/hour

Platform-Specific Exports

TikTok (9:16 Vertical)

submagic_export_project(project_id, width=1080, height=1920)

Instagram Reels (9:16)

submagic_export_project(project_id, width=1080, height=1920)

Instagram Feed (1:1 Square)

submagic_export_project(project_id, width=1080, height=1080)

YouTube (16:9 Landscape)

submagic_export_project(project_id, width=1920, height=1080)

Instagram Feed Optimized (4:5)

submagic_export_project(project_id, width=1080, height=1350)

Important Notes

Workflow

  • Create → Wait 2-10 min → (Optional) Update → Re-export → Download
  • After updating, MUST re-export to apply changes
  • Can iterate multiple times for refinement

Limitations

  • Videos must be publicly accessible URLs (no local files yet)
  • Max: 2GB file size, 2 hours duration
  • Formats: MP4, MOV input | MP4, MOV output
  • remove_bad_takes adds 1-2 minutes processing time

Dashboard vs API

Some dashboard features are NOT available via API:

  • Correct Eye Contact (AI)
  • Clean Audio enhancement
  • Generate Hook Title (AI)
  • Explicit aspect ratio parameter (use export dimensions instead)

See docs/API_LIMITATIONS_DISCOVERED.md for full analysis.


Troubleshooting

Server won't start:

pip install -r requirements.txt
python -c "from submagic_mcp import app; print('OK')"

Authentication failed:

  • Check .env file has correct API key
  • Key must start with sk-

Project stuck processing:

  • Normal: 2-10 minutes
  • Large videos: up to 15 minutes
  • Check every 30-60 seconds

Pricing

  • Free Trial: 3 videos with watermark
  • Starter: $14/month - 20 videos
  • Growth: $40/month - Unlimited
  • Business: $60/month - Unlimited + features

https://www.submagic.co/pricing


Resources


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

submagic_mcp_server-1.0.0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

submagic_mcp_server-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file submagic_mcp_server-1.0.0.tar.gz.

File metadata

  • Download URL: submagic_mcp_server-1.0.0.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for submagic_mcp_server-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fc84e213b5eb202f33395bd81a09dda428edbd7f21befdcfb12f8b145fb287fd
MD5 b9d87f9df12c411a1e7dc1aac0248216
BLAKE2b-256 7d3f445863929b16442e493394df27be1662720a8e3c0140131b050fb274487a

See more details on using hashes here.

File details

Details for the file submagic_mcp_server-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for submagic_mcp_server-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d549385bb894f0a991676ea7ecae3927be927e5fe26a1a1508c9dad5cfa9654b
MD5 c73bacec8e731a2864bb9fa3b55ca225
BLAKE2b-256 a79d4c7aa2cffc0a7ebe113753067fd2d1e60fbab5c4d8c8db2b1299864333fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page