npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@truffle-ai/sora-video-server

v1.0.0

Published

A powerful MCP server for OpenAI Sora video generation with comprehensive video management

Readme

Sora Video MCP Server

A powerful Model Context Protocol (MCP) server for OpenAI Sora video generation with comprehensive video management capabilities.

Features

  • 🎬 Video Generation: Create videos from text prompts using OpenAI Sora
  • 📊 Status Monitoring: Check video generation progress and status
  • 📹 Video Management: List, download, and delete your videos
  • 🎭 Video Remixing: Create variations of existing videos with new prompts
  • 📁 File Management: Automatic download and organization of generated videos
  • 🖼️ Reference Support: Use images or videos as reference for generation

Prerequisites

  • Node.js 18+
  • OpenAI API key with Sora access
  • An MCP-compatible client (Claude, Cursor, VS Code, etc.)

Installation

  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Set your OpenAI API key:
export OPENAI_API_KEY="your-openai-api-key-here"

Usage

Available Tools

create_video

Generate a video from a text prompt.

Parameters:

  • prompt (required): Text description of the video to generate
  • model (optional): Model to use (default: "sora-2")
  • seconds (optional): Video duration in seconds (default: "4")
  • size (optional): Resolution as "widthxheight" (default: "720x1280")
  • input_reference (optional): Path to reference image/video file
  • output_directory (optional): Directory to save metadata

Example:

{
  "prompt": "A calico cat playing a piano on stage",
  "model": "sora-2",
  "seconds": "8",
  "size": "1024x1808"
}

get_video_status

Check the status and progress of a video generation job.

Parameters:

  • video_id (required): ID of the video to check

Example:

{
  "video_id": "video_123"
}

list_videos

List all your video generation jobs with pagination.

Parameters:

  • limit (optional): Number of videos to retrieve (default: 20)
  • after (optional): Pagination cursor
  • order (optional): Sort order "asc" or "desc" (default: "desc")

save_video

Automatically download and save a completed video to your computer.

Parameters:

  • video_id (required): ID of the video to save
  • output_path (optional): Directory to save to (defaults to ~/Downloads)
  • filename (optional): Custom filename (defaults to video_id.mp4)

remix_video

Create a remix of an existing video with a new prompt.

Parameters:

  • video_id (required): ID of the completed video to remix
  • prompt (required): New text prompt for the remix

delete_video

Delete a video job and its assets.

Parameters:

  • video_id (required): ID of the video to delete

Typical Workflow

  1. Create a video → Get back a video_id
  2. Check status → Monitor progress
  3. Save when ready → Auto-download the video file
  4. Clean up → Delete old videos

Supported Formats

Video Sizes

  • 720x1280 (9:16 vertical)
  • 1280x720 (16:9 horizontal)
  • 1024x1024 (1:1 square)
  • 1024x1808 (9:16 vertical HD)
  • 1808x1024 (16:9 horizontal HD)

Durations

  • 4 seconds
  • 8 seconds
  • 16 seconds
  • 32 seconds

Reference Files

  • Images: JPG, JPEG, PNG, WebP
  • Videos: MP4, MOV, AVI, WebM

Error Handling

The server includes comprehensive error handling:

  • Missing API key validation on startup
  • API error responses with detailed messages
  • File validation for reference inputs
  • Graceful error returns in tool responses

Development

Project Structure

sora-video/
├── src/
│   └── index.ts       # Main server implementation
├── dist/              # Compiled JavaScript (generated)
├── package.json       # Dependencies and scripts
├── tsconfig.json      # TypeScript configuration
└── README.md          # This file

Scripts

  • npm run dev - Run in development mode with auto-reload
  • npm run build - Compile TypeScript to JavaScript
  • npm start - Run compiled JavaScript

Environment Variables

  • OPENAI_API_KEY (required) - Your OpenAI API key

License

MIT

Resources