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 Servercreate 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.
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Path or URL to the input image | |
| duration | No | Duration of the fade animation in seconds (default: 3) | |
| output_path | No | Path where the video will be saved (default: fade_animation.mp4) | fade_animation.mp4 |
| fade_type | No | Type of fade effect: 'in' (fade in), 'out' (fade out), 'in-out' (fade in then out) | in |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that the tool creates a video and describes the fade effect, but lacks critical behavioral details: it doesn't specify file format requirements, performance characteristics, error handling, or what happens if the output path already exists. For a creation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with just two sentences that directly state the tool's function and effect. Every word earns its place—there's no redundancy or unnecessary elaboration. It's front-loaded with the core purpose and follows with a clear explanation of the animation behavior.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (4 parameters, creation operation) and lack of annotations/output schema, the description is minimally adequate. It explains what the tool does but doesn't cover behavioral aspects, error conditions, or output details. For a video creation tool, users would benefit from more context about supported formats, performance, and result verification.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all four parameters thoroughly. The description mentions 'fade-in' specifically, which aligns with the default 'fade_type' value but doesn't add meaningful semantic context beyond what's in the schema. It doesn't explain parameter interactions or provide usage examples, so it meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Create a fade-in animation video from a static image.' It specifies the verb ('create'), resource ('fade-in animation video'), and source material ('static image'). However, it doesn't explicitly distinguish this from sibling tools like 'create_video' or 'merge_videos' beyond mentioning the fade effect.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'create_video' (which might handle other animation types) or 'merge_videos' (which could combine videos). There's no context about prerequisites, limitations, or appropriate scenarios for fade animations versus other video creation methods.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the video to generate | |
| model | No | Model to use for generation. sora-2 is faster and cheaper, sora-2-pro provides higher quality. | sora-2 |
| size | No | Video resolution (width x height) | 1280x720 |
| seconds | No | Video duration in seconds | 8 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the creation action but lacks critical details: it doesn't specify whether this is a synchronous or asynchronous operation (unlike 'get_video_status' which suggests async), doesn't mention rate limits, costs, permissions needed, or what happens on failure. The description is insufficient for a mutation tool with zero annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately concise with two sentences that efficiently convey the core functionality. The first sentence states the main purpose, and the second adds parameter context without unnecessary elaboration. It could be slightly more structured by front-loading more critical behavioral information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a video generation tool with no annotations and no output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., video URL, job ID, error formats), doesn't address async behavior hinted at by sibling 'get_video_status', and provides minimal guidance on parameter trade-offs despite the schema doing most of the work.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value by mentioning 'optional parameters for resolution, duration, and model selection' but doesn't provide additional semantic context beyond what's in the schema. This meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Generate a video') and the resource ('using Sora 2 or Sora 2 Pro model'), with specific details about creating from a text prompt. It distinguishes from siblings like 'create_fade_animation' by specifying the model type, but doesn't explicitly contrast with other video-related tools like 'merge_videos' or 'delete_video'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'create_fade_animation' or 'merge_videos'. It mentions optional parameters but doesn't explain scenarios where one might choose this over sibling tools, leaving the agent without contextual usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_videoC
Delete a video generation job and its associated data.
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | The ID of the video to delete |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool deletes a job and its data, implying a destructive mutation, but lacks details on permissions required, whether deletion is reversible, rate limits, or error handling. This is a significant gap for a destructive operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the key action ('Delete') and resource. There is no wasted verbiage, making it easy for an agent to parse quickly and accurately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's destructive nature, lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects like side effects, success/error responses, or usage constraints, which are crucial for safe and effective tool invocation in this context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with the 'video_id' parameter clearly documented. The description doesn't add any meaning beyond the schema (e.g., format examples or source of the ID), so it meets the baseline score of 3 where the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Delete') and resource ('a video generation job and its associated data'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this from sibling tools like 'list_videos' or 'get_video_status', which are read operations, so it misses the highest score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing video ID), exclusions (e.g., cannot delete in-progress jobs), or comparisons to siblings like 'create_video' or 'merge_videos', leaving the agent with minimal context for decision-making.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | The ID of the video generation job to check |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the tool returns status information (processing, completed, failed), which covers basic output behavior. However, it lacks details on error handling, rate limits, authentication needs, or what specific details are included beyond status. For a tool with no annotations, this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded, stating the purpose in the first sentence and elaborating on return values in the second. Both sentences earn their place by clarifying the tool's function and output. It could be slightly more structured by explicitly separating purpose from behavior, but it remains efficient with no wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (single parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose and output states but lacks depth in behavioral context (e.g., error cases or detailed return format). Without an output schema, more explanation of return values would be beneficial, but it meets the minimum viable threshold for this context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with the 'video_id' parameter clearly documented in the schema. The description does not add any additional meaning or context beyond what the schema provides (e.g., format examples or usage tips). According to the rules, with high schema coverage (>80%), the baseline score is 3, as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get the status and details of a video generation job.' It specifies the verb ('Get') and resource ('video generation job'), but does not explicitly differentiate it from sibling tools like 'list_videos' or 'delete_video' beyond the focus on status retrieval. This makes it clear but not fully sibling-distinctive.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage by stating it returns information about processing, completion, or failure, suggesting it should be used to check job progress. However, it does not provide explicit guidance on when to use this tool versus alternatives (e.g., 'list_videos' for general listing or 'create_video' for initiation), nor does it mention any exclusions or prerequisites for use.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_videosB
List all video generation jobs with optional filtering and pagination.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of videos to return | |
| after | No | Cursor for pagination - ID of the last video from the previous page |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It mentions filtering and pagination but doesn't specify what filtering options exist, whether results are sorted, if there are rate limits, authentication requirements, or what the return format looks like. For a list operation with no annotation coverage, this leaves significant behavioral gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that states the core functionality upfront. It's appropriately sized for a simple list tool, though it could potentially be more structured by separating filtering and pagination aspects into distinct clauses for clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description is incomplete. It doesn't explain what information is returned about each video job, how filtering works, what fields are available, or what the response structure looks like. For a tool that presumably returns multiple video records, this leaves the agent with insufficient context about what to expect.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, with both parameters well-documented in the input schema. The description adds minimal value beyond the schema by mentioning 'optional filtering and pagination' but doesn't provide additional semantic context about parameter usage, relationships, or constraints beyond what's already in the structured schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose as listing video generation jobs with filtering and pagination capabilities. It specifies the resource (video generation jobs) and verb (list), but doesn't differentiate from sibling tools like 'get_video_status' which might also retrieve video information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage context through 'optional filtering and pagination' but doesn't explicitly state when to use this tool versus alternatives like 'get_video_status' for individual videos or 'create_video' for new jobs. No explicit when-not-to-use guidance or alternative recommendations are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
merge_videosB
Merge multiple video files into a single video. Videos are concatenated in the order provided.
| Name | Required | Description | Default |
|---|---|---|---|
| video_urls | Yes | Array of video URLs or local file paths to merge (in order) | |
| output_path | No | Path where the merged video will be saved (default: merged_video.mp4) | merged_video.mp4 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It mentions the concatenation order, but lacks details on permissions needed, whether the operation is reversible, potential rate limits, or what happens if videos have different formats. This is a significant gap for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with zero waste, front-loaded with the core purpose and followed by a key behavioral detail (order of concatenation), making it efficient and easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations and no output schema, the description is incomplete. It lacks information on error handling, output format, or side effects, which are crucial for an agent to use this tool correctly in context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds minimal value by implying order matters for 'video_urls', but does not provide additional syntax or format details beyond what the schema specifies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('merge multiple video files into a single video') and resource ('video files'), distinguishing it from siblings like 'create_video' or 'delete_video' by focusing on concatenation rather than creation or deletion.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage by stating videos are concatenated in order, but it does not provide explicit guidance on when to use this tool versus alternatives like 'create_fade_animation' or 'create_video', nor does it mention prerequisites or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v1.0.0- First observed
create_fade_animation - First observed
create_video - First observed
delete_video - First observed
get_video_status - First observed
list_videos - First observed
merge_videos
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
- RendobarOAuthcom.rendobar
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.
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
Create images and videos from prompts, with options for image mixing, reference images, and start/…
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.3MIT
- AlicenseNot gradedqualityFmaintenanceIntegrates 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.209MIT
- 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