Open-source CLI & MCP
for the Framlit platform
Generate, edit and render Framlit videos from your terminal or any MCP-enabled IDE. The client is MIT; generation and rendering run on Framlit and use your account credits.
Same pattern as Stripe CLI or Vercel CLI: open-source tool, hosted backend.
Quick start
Get your API key
Create an API key from your Framlit profile. You'll use this to authenticate requests.
Go to profileChoose your interface
Add MCP to your editor, or use the CLI from your terminal.
{
"mcpServers": {
"framlit": {
"command": "npx",
"args": ["-y", "framlit", "mcp"],
"env": {
"FRAMLIT_API_KEY": "your_api_key_here"
}
}
}
}Replace your_api_key_here with your actual API key. Keep this file private.
CLI for terminal workflows
The same tools from your terminal, with JSON output, a dry-run mode, and schema introspection for agents.
Bring your agent
Claude Code, Cursor, or your own script can design a video as a Framlit Scene: plain JSON with a canvas, layers, timing, and motion. Framlit turns it into an editable project, a person polishes it in the editor, and the agent reads their edits back.
Agent writes a scene
Positions, text, media, entrance presets, and motion paths as JSON. No Remotion code.
People refine it
Drag layers, retime them on the timeline, and record motion in the Framlit editor.
Agent reads it back
framlit_get_scene returns the edited scene, ready for the next change or a render.
{
"version": 1,
"canvas": {
"width": 1080,
"height": 1920,
"fps": 30,
"durationInFrames": 150
},
"background": {
"gradient": {
"from": "#0f172a",
"to": "#1e293b",
"angle": 160
}
},
"layers": [
{
"id": "headline",
"type": "text",
"text": "Ship faster",
"x": 80,
"y": 300,
"width": 920,
"height": 260,
"style": {
"fontFamily": "Poppins",
"fontSize": 120,
"fontWeight": 800,
"color": "#ffffff",
"textAlign": "center"
},
"enter": {
"preset": "rise"
}
},
{
"id": "cta",
"type": "text",
"text": "Order now",
"x": 240,
"y": 1560,
"width": 600,
"height": 140,
"frameRange": [
60,
149
],
"style": {
"background": "#22c55e",
"borderRadius": 70,
"fontSize": 56,
"textAlign": "center",
"color": "#052e16"
},
"enter": {
"preset": "slideLeft"
}
}
]
}Full schema: framlit.app/schemas/framlit-scene.v1.json
Available tools
18 tools for the whole video workflow: generate, manage, render and iterate from the CLI or your agent.
framlit_generate_code
Generate Remotion video code from text description
framlit_modify_code
Modify existing code with natural language
framlit_create_scene
Turn a Framlit Scene (JSON your agent writes) into an editable project
framlit_get_scene
Read a project back as a scene, including edits made in the editor
framlit_preview_code
Get a shareable preview URL for code Framlit generated
framlit_get_credits
Check your credit balance and plan
framlit_list_projects
List and manage your saved projects
framlit_get_project
Get project details including code
framlit_create_project
Create a new project to save your video
framlit_update_project
Update an existing project
framlit_render_video
Render a project to MP4 via AWS Lambda
framlit_get_render_status
Check render progress and get download URL
framlit_list_templates
Browse available video templates
framlit_generate_narrated_ad
Script, voiceover and word-synced visuals in one run (Editor Pro and Studio)
framlit_get_narration_cap
Check this month's narrated-ad usage and remaining cap
framlit_get_narrated_ad_stages
Inspect the script, audio, storyboard and code of a narrated ad
framlit_get_brand
Get the brand profile used for brand-aware generation
framlit_set_brand
Save your brand colors, fonts, tone and logo
Full render workflow
Generate, save, render, and download, all from your IDE or terminal.
Generate
framlit_generate_code
Describe your video in natural language
Save
framlit_create_project
Save to a project for rendering
Render
framlit_render_video
Export to MP4 via AWS Lambda
Download
framlit_get_render_status
Poll progress and get download URL
Example usage
Describe the video in plain language and Framlit writes the Remotion code.
Create a "Hello World" text with fade-in animation, modern dark background
Generated Remotion code (1 credit used, 29 remaining):
Open the link to see the video preview
API billing follows the app account
MCP and CLI calls use the same Framlit account credits as the web app. Motion Editor access is handled through direct-web plans.
Ready to start?
Get an API key and start generating videos from your editor or terminal in minutes.
Works with Claude Desktop, Cursor, VS Code, Windsurf, and any MCP-compatible client. CLI works everywhere Node.js runs.