Sora 2 MCP Server
Provides video processing capabilities including concatenating multiple video files into a single seamless clip and creating professional fade animations from static images.
Enables video generation using Sora 2 and Sora 2 Pro models, allowing users to create high-quality videos from text prompts, monitor generation progress, and manage video jobs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sora 2 MCP Server create a 12s video of a cyberpunk city in the rain using sora-2-pro"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sora 2 MCP Server
Model Context Protocol (MCP) server for OpenAI's Sora 2 video generation API. Generate professional AI videos, merge clips, and create fade animations directly from Claude Code or any MCP-compatible client.
Features
Video Generation: Create videos from text prompts using Sora 2 or Sora 2 Pro
Video Merging: Concatenate multiple video files using FFmpeg
Fade Animations: Create fade in/out/in-out effects from static images
Status Monitoring: Monitor video generation progress in real-time
Job Management: List and delete video generation jobs
Flexible Parameters: Control resolution (720p to 4K), duration (4-12s), and model selection
Related MCP server: Sora MCP Server
Prerequisites
Node.js 18+
OpenAI API key with Sora 2 access
Verified organization on OpenAI platform (required for Sora access)
FFmpeg (optional, for video merging and fade animation features)
Installation
npm install -g sora-2-mcp-serverOr use with npx (no installation required):
npx sora-2-mcp-serverConfiguration
Add to Claude Code
Add this server to your Claude Code MCP settings (~/.config/claude-code/mcp_settings.json):
{
"mcpServers": {
"sora-2": {
"command": "npx",
"args": ["-y", "sora-2-mcp-server"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here"
}
}
}
}Or if installed globally:
{
"mcpServers": {
"sora-2": {
"command": "sora-2-mcp-server",
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here"
}
}
}
}Available Tools
1. create_video
Generate a video using Sora 2 or Sora 2 Pro.
Parameters:
prompt(required): Text description of the videomodel(optional): "sora-2" or "sora-2-pro" (default: "sora-2")size(optional): Resolution - "1280x720", "720x1280", "1792x1024", or "1024x1792" (default: "1280x720")seconds(optional): Duration - "4", "8", or "12" (default: "8")
Example:
{
"prompt": "A serene sunset over a mountain lake with gentle waves",
"model": "sora-2-pro",
"size": "1792x1024",
"seconds": "12"
}2. get_video_status
Check the status of a video generation job.
Parameters:
video_id(required): ID of the video generation job
Example:
{
"video_id": "vid_abc123"
}3. list_videos
List all video generation jobs.
Parameters:
limit(optional): Maximum number of videos to return (default: 20)after(optional): Cursor for pagination
Example:
{
"limit": 10
}4. delete_video
Delete a video generation job.
Parameters:
video_id(required): ID of the video to delete
Example:
{
"video_id": "vid_abc123"
}5. merge_videos
Concatenate multiple video files into a single seamless video using FFmpeg.
Parameters:
video_urls(required): Array of video file paths or URLs to merge (in order)output_path(optional): Path where the merged video will be saved (default: "merged_video.mp4")
Example:
{
"video_urls": [
"/path/to/intro.mp4",
"/path/to/main_content.mp4",
"/path/to/outro.mp4"
],
"output_path": "final_video.mp4"
}Note: Requires FFmpeg to be installed on your system.
6. create_fade_animation
Transform static images into dynamic video clips with professional fade effects.
Parameters:
image_path(required): Path or URL to the input imageduration(optional): Duration of the fade animation in seconds (default: 3)output_path(optional): Path where the video will be saved (default: "fade_animation.mp4")fade_type(optional): Type of fade effect - "in", "out", or "in-out" (default: "in")
Example:
{
"image_path": "/path/to/logo.png",
"duration": 3,
"fade_type": "in-out",
"output_path": "logo_animation.mp4"
}Fade types:
"in": Fade from black to full visibility
"out": Fade from full visibility to black
"in-out": Fade in, hold, then fade out
Note: Requires FFmpeg to be installed on your system.
Usage with Claude Code
Once configured, you can use the Sora 2 tools directly in Claude Code:
Generate a video of a cat playing piano in a jazz clubClaude Code will automatically use the create_video tool to generate the video.
API Access Notes
Sora 2 API requires organization verification at platform.openai.com/settings/organization/general
After verification, it can take up to 15 minutes for access to propagate
Pricing (as of 2025-10-09):
Sora 2: $0.10-0.20/second
Sora 2 Pro: $0.30-0.50/second
Development
# Watch mode for development
npm run watch
# Build for production
npm run buildTroubleshooting
"Organization not verified" error
Go to platform.openai.com/settings/organization/general
Click "Verify Organization"
Wait up to 15 minutes for access to propagate
API endpoint errors
The Sora 2 API may still be in beta. Ensure your OpenAI account has access to the Sora 2 models through the web interface at sora.com before using the API.
License
MIT
Available Tools
6 toolscreate_fade_animationB
Create a fade-in animation video from a static image. The image will fade from black to full visibility.
Inputs: image_path (required), duration, output_path, fade_type.
create_videoC
Generate a video using Sora 2 or Sora 2 Pro model. Creates a video from a text prompt with optional parameters for resolution, duration, and model selection.
Inputs: prompt (required), model, size, seconds.
delete_videoC
Delete a video generation job and its associated data.
Inputs: video_id (required).
get_video_statusB
Get the status and details of a video generation job. Returns information about whether the video is still processing, completed, or failed.
Inputs: video_id (required).
list_videosB
List all video generation jobs with optional filtering and pagination.
Inputs: limit, after.
merge_videosB
Merge multiple video files into a single video. Videos are concatenated in the order provided.
Inputs: video_urls (required), output_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no ambiguity. The tools cover different aspects of video generation and management: creation (create_video, create_fade_animation), status checking (get_video_status), listing (list_videos), deletion (delete_video), and merging (merge_videos). There is no overlap in functionality that would cause misselection.
All tool names follow a consistent verb_noun pattern using snake_case. The verbs (create, delete, get, list, merge) are clear and appropriate for their actions, and the nouns (fade_animation, video, video_status, videos) accurately describe the resources. There are no deviations or mixed conventions.
With 6 tools, the server is well-scoped for its purpose of video generation and management. Each tool earns its place by covering essential operations: creating videos, checking status, listing jobs, deleting jobs, and merging videos. This count is neither too thin nor too heavy for the domain.
The tool set provides complete CRUD/lifecycle coverage for video generation jobs. It includes creation (create_video, create_fade_animation), reading (get_video_status, list_videos), deletion (delete_video), and additional utility (merge_videos). There are no obvious gaps, and agents can handle the full workflow from generation to management.
Maintenance
Related MCP Connectors
Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables video generation from text prompts or images using Google's Veo 3 API. Supports multiple models, audio generation, and various aspect ratios for creating high-quality videos.2,129 PyPI2MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates with OpenAI's Sora 2 API to generate, remix, and manage AI-generated videos from text prompts. Supports video creation, status monitoring, downloading, and remixing through natural language commands.207MIT
- AlicenseAqualityDmaintenanceEnables programmatic creation, management, and remixing of AI-generated videos using OpenAI's Sora API. Supports video generation with customizable parameters, status monitoring, downloading, and video remixing capabilities.66 npm3MIT
- AlicenseBqualityDmaintenanceProvides tools for agent-driven video creation, including image generation via Google's GenAI, video generation, and local video stitching with FFmpeg.31Apache 2.0