Skip to main content
Glama

ViralSpin MCP — the video editor your AI agent operates

MCP Registry npm license

Turn a talking-head clip + a folder of B-roll into a polished vertical short — and let Claude do the edit. Point it at your footage in plain English; it transcribes, picks B-roll cutaways matched to what's said, adds captions + a hook, and renders a 9:16 short. Then publishes to TikTok, Instagram, or YouTube. No timeline-wrangling required.

The agent operates a real timeline. Swap a clip, trim it, reorder scenes, cut a span — all by asking. Edits are instant; you render once when the cut is right.

demo

Quick start

# Claude Code
claude mcp add viralspin -- npx -y @viralspin/mcp

# or Claude Desktop — add to claude_desktop_config.json:
{
  "mcpServers": {
    "viralspin": { "command": "npx", "args": ["-y", "@viralspin/mcp"] }
  }
}

Then just ask:

Turn my A-roll at C:/clips/talk.mp4 into a 9:16 short, using B-roll
from C:/my-broll and my Google Photos.

Publish that to TikTok and Instagram with the caption: posting through the chaos.

Related MCP server: VE-MCP

What the agent can do

Tool

What it does

create_video_assembly

A-roll + B-roll (local files, a folder, URLs, or Google Photos) → a rendered vertical short. Local or hosted.

suggest_clips / swap_clip

See the cutaways; swap one for better-fitting B-roll (with a reason).

trim_clip / remove_span / reorder_scenes

Granular timeline edits — instant, no re-render.

render_project

Bake captions/overlays into the final MP4 (the one render).

publish_now / schedule_post / send_to_drafts

Post to TikTok / Instagram / YouTube.

generate_caption, create_kinetic_text, carousels, image ads

The rest of the content pipeline.

Edits are instant and free (they patch the timeline); render_project is the single cloud render. Iterate the cut as much as you like, then finalize once.

Open source

The MCP server, the editor, and the agent verbs are MIT — use them free. Cloud generation (AI B-roll, rendering, publishing) runs on ViralSpin's infrastructure and is metered as credits; sign in at viralspin.ai. You never paste an API key for the AI — the heavy lifting is server-side.

  • Listed in the official MCP registry: ai.viralspin/viralspin

  • Hosted connector (no install, for URL / Google Photos workflows): https://mcp.viralspin.ai/mcp

Local vs hosted

  • Hosted (the default): the cloud pipeline does the heavy lifting — assembly, AI B-roll, rendering — and every edit opens in the web Swap & Refine editor. B-roll from Google Photos / URLs / your synced library. Needs a viralspin.ai account (generation is metered as credits); no API keys to paste. The mcp.viralspin.ai/mcp hosted connector is the same, zero-install.

  • Local (advanced): point VIRALSPIN_ASSEMBLY_DIR at a local engine checkout to read your disk — index a folder of clips, select B-roll contextually, and render locally. The npm package ships without the engine, so the local-render tools route you to the hosted path until that env var is set.

Either way, the agent reads local files to upload them (A-roll, a B-roll folder); only on-disk rendering needs the local engine.

License

MIT — see LICENSE.

Available Tools

27 tools
assemble_image_adA

Generate image ad variants from a product photo using Higgsfield AI. Uploads the product image, generates styled variants with your prompt, then creates a client review link showing all variants in a carousel. Requires Higgsfield credentials saved in ViralSpin Settings.

Inputs: prompt (required), product_image_path (required), pin.

cancel_postB

Cancel a pending scheduled post by ID.

Inputs: post_id (required).

check_review_statusA

Check whether a client has approved or requested changes on a review link. Pass the token from the URL (e.g. 'abc123xyz456' from /review/abc123xyz456).

Inputs: token (required).

create_kinetic_textA

Render a standalone cinematic typing-animation video — great for explainer intros that visually demo what a user types into the prompt. Text is typed out character-by-character with a blinking cursor while a 3D camera slowly pans, giving a cinematic 'Star Wars pull-back' feel. Three effects: 'typing' (character-by-character with 3D camera), 'billboard_flip' (words fly from Z-depth and snap into place), 'isometric' (letters extrude upward on a tilted plane). Three styles: 'terminal' (green-on-dark, monospace, scanlines), 'cinematic' (white-on-black, serif, vignette), 'minimal' (transparent background, for overlay use). Returns the path to a finished MP4 — feed it to publish_now or as A-roll in create_video_assembly.

Inputs: text (required), out, style, camera, +4 more.

create_video_assemblyA

Turn an A-roll talking-head/performance clip into a polished vertical (9:16) short by editing in B-roll cutaways. Runs a LOCAL pipeline: transcribes the A-roll, finds each B-roll's focal point (face/subject-aware so nothing is cropped off), matches B-roll to what's being said, and renders with Ken Burns motion + the speaker's voice as the soundtrack (B-roll clip audio is mixed in as a low faded bed). Accepts LOCAL file paths OR public URLs for both A-roll and B-roll, and a B-roll FOLDER is expanded automatically. Pass style_ref (a reference video) to AUTO-INFER the editing style from it — captions, hook headline, keyword pops, pace, and aspect ratio — so you don't have to describe them. Returns the path to the finished MP4, which you can then publish with publish_now / schedule_post.

Inputs: aroll (required), out, broll, style, +8 more.

generate_captionA

Generate an AI caption and hashtags for a post on a specific platform.

Inputs: title (required), platform (required).

index_explainer_sourcesA

Index a local folder of screen recordings and OBS videos with Twelve Labs so they can be searched semantically inside create_video_assembly. Call this once per folder — indexing is cached, so re-running skips already-indexed files. Returns an index_id to pass as explainer_index_id in create_video_assembly. Requires TWELVE_LABS_API_KEY in the MCP environment.

Inputs: sources_folder (required), index_name.

list_connectionsA

List your connected social media accounts (TikTok, Instagram, YouTube). Returns each account's connection ID — pass the ID to publish_now / schedule_post / send_to_drafts via the account_ids param when you have multiple accounts on the same platform.

Inputs: no named parameters.

list_postsB

List your scheduled, published, or failed posts.

Inputs: status.

prepare_product_assetA

Download and verify a product image from a local path or public URL, upload it to ViralSpin cloud storage, and return a stable cloud URL ready for Higgsfield image ad generation.

Inputs: image_url (required).

publish_nowA

Upload local file(s) and publish immediately to TikTok, Instagram, and/or YouTube. Pass a folder path to publish all images in it as a carousel. Use account_ids (from list_connections) to target a specific account when you have multiple accounts on the same platform.

Inputs: paths (required), caption (required), hashtags, platforms, +1 more.

publish_to_metaA

Publish an image (or video) to Instagram and/or Facebook. Use after a client approves an image ad variant from assemble_image_ad.

Inputs: caption (required), media_url (required), platforms (required).

remove_spanA

Cut a span of time [from_sec, to_sec] out of a hosted Swap & Refine video — e.g. a duplicated opening sentence or a dead pause. The backbone A-roll is trimmed and the rest shifts up; reuses cached B-roll. Re-renders; streams into the editor.

Inputs: to_sec (required), from_sec (required), job_id.

render_projectA

Bake the current hosted Swap & Refine timeline into a final MP4 — the ONE cloud render after a batch of instant timeline edits (swap_clip / trim_clip / reorder_scenes). Captions, hook, overlays and motion are applied here. Costs a render/credits. Returns immediately; the finished preview lands on the project, then publish with publish_now or schedule_post.

Inputs: job_id.

reorder_scenesA

See or reorder the A-roll's backbone scenes in a hosted Swap & Refine project. Call with no order to LIST the scenes (id + label + time) — the reorderable building blocks. Call with order (the scene ids in the new running order; omit ids to drop them) to apply it and re-render.

Inputs: order, job_id, render.

schedule_postA

Upload local file(s) and schedule a post for a future time. Pass a folder path to schedule all images as a carousel.

Inputs: paths (required), caption (required), scheduled_time (required), hashtags, +3 more.

send_to_draftsA

Upload local file(s) and send to the platform's drafts (TikTok inbox / YouTube as private) so the user can finish in the mobile app — useful when they want to add licensed music or polish before publishing. Instagram does NOT support drafts via API (IG drafts are local to the mobile app only) — if instagram is in the platforms list, that platform will return an error explaining the limitation. Pass a folder path to send all images as a carousel draft.

Inputs: paths (required), caption (required), platforms (required), hashtags.

start_photo_pickerA

Open a Google Photos picker to choose B-roll for create_video_assembly. Returns a link to open in your browser. Google does not allow listing or searching your albums programmatically — so use the picker's OWN search box to find an album or topic that matches your video (by person, place, event, or theme), select the photos/clips, and finish. Then call create_video_assembly with google_picker_session set to the returned sessionId. Requires a Google account connected at app.viralspin.ai/settings.

Inputs: no named parameters.

suggest_clipsA

See a project's cutaways and find better B-roll for one of them. LOCAL project (default): pass cut (0-based) to get ranked alternatives for that cutaway, each with a thumbnail. HOSTED Swap & Refine project (pass job_id, or set VIRALSPIN_HOSTED_JOB_ID): call with no query to list the timeline's cutaways (segment id + the beat each covers + current clip); call with query (e.g. "newborn in hospital") to search the user's B-roll library — each result includes the library tags it matched on, which is the 'why this clip fits' to show the user. Then call swap_clip to apply a choice.

Inputs: cut, query, job_id.

swap_caption_styleA

Change the caption style of the most recently assembled video and re-render. Uses the cached edit data — much faster than a full re-assembly (no re-transcription, no B-roll re-analysis). Styles: default (bold white spring pop), hormozi (word-by-word yellow highlight), glow_neon (neon cyan pulse), minimalist (lowercase clean fade), whiteboard (left-to-right reveal).

Inputs: caption_style (required), job_id.

swap_clipA

Replace one cutaway with a chosen B-roll asset (from suggest_clips), then re-render. LOCAL project (default): pass cut (0-based) + asset (filename) → re-renders locally, returns the MP4 path. HOSTED Swap & Refine project (pass job_id, or set VIRALSPIN_HOSTED_JOB_ID): pass segment_id + asset_url → patches the same timeline the browser editor shows and kicks off a cloud re-render; the change appears live in Swap & Refine. Returns immediately — the new preview lands on the project shortly.

Inputs: cut, asset, job_id, reason, +4 more.

trim_clipA

Shorten (or restore) how long ONE B-roll cutaway stays on screen in a hosted Swap & Refine project, freeing that time back to the A-roll. Audio-safe — total video length is preserved. Get the segment id from suggest_clips. Instant timeline edit by default (no render); call render_project when done.

Inputs: segment_id (required), duration_sec (required), job_id, render.

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 27 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but the publishing tools (publish_now, publish_to_meta, publish_carousel_as_video) and video creation tools (create_video_assembly, create_kinetic_text) could be confused at first glance. Detailed descriptions help resolve overlaps, making the set mostly unambiguous.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern with predictable prefixes like list_, create_, publish_, schedule_, swap_, and check_. This makes the set easy to navigate and anticipate.

    Tool Count2/5

    With 27 tools, the set exceeds the 25-tool threshold and feels heavy for an MCP server. While some tools are niche, the count is high enough to overwhelm agents, and a few could potentially be consolidated.

    Completeness4/5

    The tool surface covers the core domain well: connections, publishing, scheduling, video assembly, editing, review, captions, keyword automation, and ad generation. Minor gaps exist—such as no update/reschedule for posts (only cancel) and no delete for published posts—but the main workflows have no dead ends.

    Related MCP Connectors

    Related MCP Servers