Videoslash API

MCP Server

Connect Claude Desktop and AI coding agents to Videoslash via the Model Context Protocol.

MCP Server

The Videoslash MCP server exposes your account, scripts, and Creative Studio through the Model Context Protocol (MCP). Use it from Claude Desktop / claude.ai Connectors (OAuth) or from Claude Code, Cursor, Codex CLI, and OpenCode (API key).

Server URL

Use the www host — the apex domain can redirect with an HTTPS→HTTP downgrade that MCP clients reject.

https://www.videoslash.com/api/mcp

Authentication

Claude Desktop / claude.ai

Add a custom connector with the URL above, click Connect, and Allow on Videoslash. No API key is pasted into Claude. See Configuration.

Coding agents (API key)

Create a key in Account settings under Developers and pass it as a Bearer token. Each key's scopes control which tools the agent can see:

ScopeTools
readAccount, credits, Creative Studio model catalog
scripts:generateTitle and script generation
creative:generateCreative Studio generations and media uploads

A key only lists tools it is allowed to use. OAuth Connectors receive full MCP account access instead.

Quick start

  1. Claude Desktop: Add connector URL → Connect → Allow.
  2. Coding agents: Create an API key, then follow Configuration.
  3. Ask the agent to check credits, list models, or start a generation.

Example prompts:

  • "Check my Videoslash credit balance."
  • "List fast video models and generate a 5-second product clip."
  • "Generate a script title about ancient civilizations."

Workflow examples

Chain a prior generation as input

  1. Call create_creative_generation to produce an image.
  2. Poll get_creative_generation until status is completed.
  3. Pass the returned outputUrl in mediaUrls when calling create_creative_generation again with a video model.

The agent can reuse any completed CDN outputUrl from list_creative_generations the same way.

Compare models on the same prompt

  1. Call list_creative_models with filters (for example category: Fast).
  2. Call create_creative_generation multiple times with different modelId values and the same prompt.
  3. Poll each generation and compare the outputUrl results.

Async generations

Creative Studio tools mirror the REST API: create_creative_generation returns immediately with a generation id. Poll get_creative_generation until status is completed or failed. Completed outputs expose a CDN URL on cdn.videoslash.com.

Claude Connectors inline previews (MCP Apps)

On Claude Desktop / claude.ai Connectors, Creative Studio generation tools mount an MCP App widget (ui://videoslash/creative-generation) next to the tool call. You get:

  • An aspect-ratio Generating card while the job runs
  • Inline image or video when outputUrl is ready
  • Recreate to rerun the same model, prompt, and parameters

This uses the official MCP Apps extension (sandboxed HTML iframe + _meta.ui.resourceUri). It is not automatic URL rendering from tool text.

Claude Code, Cursor, Codex, and OpenCode do not mount MCP App iframes — they still show JSON text with outputUrl. Behavior is unchanged for API-key clients.

See ADR 0008 for implementation details.

Local file uploads

MCP does not transfer file bytes. For image-to-image or video reference inputs from disk:

  1. Call request_creative_media_upload with file metadata.
  2. Upload bytes with curl -T to the returned uploadUrl using requiredHeaders.
  3. Pass the uploadId in mediaUploads when calling create_creative_generation.

See the Creative Studio API guide for the same presigned upload flow over REST.

Tool reference

See the full list of available tools, parameters, and scopes under Tools.

On this page