MCP Server
Connect 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). Connect it from Claude Code, Cursor, Codex CLI, or OpenCode to generate scripts, images, and videos without leaving your agent session.
Server URL
https://www.videoslash.com/api/mcpAuthentication
The MCP server uses the same API keys as the public REST API. Create a key in Account settings under Developers and pass it as a Bearer token in your MCP client configuration.
Each key's scopes control which tools the agent can see:
| Scope | Tools |
|---|---|
read | Account, credits, Creative Studio model catalog |
scripts:generate | Title and script generation |
creative:generate | Creative Studio generations and media uploads |
A key only lists tools it is allowed to use. Enable Allow script generation and Allow Creative Studio generation when creating a key for write access.
Quick start
- Create an API key with the scopes you need.
- Add the MCP server to your agent — see Configuration.
- Ask your 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
- Call
create_creative_generationto produce an image. - Poll
get_creative_generationuntilstatusiscompleted. - Pass the returned
outputUrlinmediaUrlswhen callingcreate_creative_generationagain 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
- Call
list_creative_modelswith filters (for examplecategory: Fast). - Call
create_creative_generationmultiple times with differentmodelIdvalues and the same prompt. - Poll each generation and compare the
outputUrlresults.
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.
Local file uploads
MCP does not transfer file bytes. For image-to-image or video reference inputs from disk:
- Call
request_creative_media_uploadwith file metadata. - Upload bytes with
curl -Tto the returneduploadUrlusingrequiredHeaders. - Pass the
uploadIdinmediaUploadswhen callingcreate_creative_generation.
See the Creative Studio API guide for the same presigned upload flow over REST.
Tool reference
Generated tool pages live under Tools. Run pnpm docs:generate after changing tool definitions in lib/mcp/tools.ts.