
doriandarko/sora-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
doriandarko/sora-mcpは、https://github.com/doriandarko/sora-mcp.からインポートされたMCPサーバー候補です。
概要
doriandarko/sora-mcpは、https://github.com/doriandarko/sora-mcp.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
OpenAIのSora 2 APIと統合し、動画生成とリミックスを行うモデルコンテキストプロトコル(MCP)サーバーです。
特徴
- 動画作成:Sora 2を使ってテキストプロンプトから動画を生成する
- リミックス動画:既存の動画のバリエーションを新しいプロンプトで作成
- ビデオステータス:ビデオ生成ジョブの状況と進捗を確認する
前提条件
- Node.js 18+
- Soraアクセス付きのOpenAI APIキー
- MCP互換クライアント(Claude、Cursor、VS Codeなど)
設置
-
リポジトリのクローン:
-
依存関係のインストール:
-
プロジェクトを構築する:
-
Claude Desktopの設定:
claude_desktop_config.example.jsonを[[T1]にコピーする]- インストールディレクトリに一致するように
argsパスを更新する - OpenAI APIキーを
OPENAI_API_KEYフィールドに追加してください - オプションで
DOWNLOAD_DIRを希望のダウンロードフォルダに設定
サーバーアーキテクチャ
このプロジェクトには、異なるユースケース向けの2つのサーバー実装が含まれています。
📱 stdio-server.ts - クロードデスクトップ用
- Transport: stdio(標準入出力)
- ユースケース: ローカルプロセス通信
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Sora MCP Server
A Model Context Protocol (MCP) server that integrates with OpenAI’s Sora 2 API for video generation and remixing.
Features
- Create Videos: Generate videos from text prompts using Sora 2
- Remix Videos: Create variations of existing videos with new prompts
- Video Status: Check the status and progress of video generation jobs
Prerequisites
- Node.js 18+
- OpenAI API key with Sora access
- An MCP-compatible client (Claude, Cursor, VS Code, etc.)
Installation
- Clone the repository:
git clone https://github.com/Doriandarko/sora-mcp
cd sora-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
- Configure for Claude Desktop:
- Copy
claude_desktop_config.example.jsonto~/Library/Application Support/Claude/claude_desktop_config.json - Update the
argspath to match your installation directory - Add your OpenAI API key to the
OPENAI_API_KEYfield - Optionally set
DOWNLOAD_DIRto your preferred download folder
- Copy
Server Architecture
This project includes two server implementations for different use cases:
📱 stdio-server.ts - For Claude Desktop
- Transport: stdio (Standard Input/Output)
- Use case: Local process communication
- How it works: Claude Desktop spawns this as a child process
- Benefits: Fast, secure, no network needed
- Used by: Claude Desktop
🌐 server.ts - For Remote Access
- Transport: HTTP/Streamable HTTP
- Use case: Remote clients, web-based tools
- How it works: Runs as HTTP server on port 3000
- Benefits: Network accessible, multiple clients
- Used by: MCP Inspector, VS Code, Cursor, browsers
Why two servers? Different MCP clients use different transports. This separation keeps the code clean and optimized for each transport type.
Usage
For Claude Desktop (stdio mode)
Claude Desktop will automatically start the server when configured. Just make sure:
- Your
.envfile has yourOPENAI_API_KEY - Restart Claude Desktop after updating the config
The config uses src/stdio-server.ts which communicates via stdio.
For HTTP Mode (MCP Inspector, web clients)
Run the server in development mode with auto-reload:
npm run dev
Or in production mode:
npm run build
npm start
Connecting to MCP Clients
Claude Desktop
The server is already configured!
Setup:
The configuration is at: ~/Library/Application Support/Claude/claude_desktop_config.json
It uses the compiled server and passes your API key via environment variables:
{
"mcpServers": {
"sora-server": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/sora-mcp/dist/stdio-server.js"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here",
"DOWNLOAD_DIR": "/Users/yourname/Downloads/sora"
}
}
}
}
See claude_desktop_config.example.json for a complete example.
インストール
npx @modelcontextprotocol/inspector設定
{
"mcpServers": {
"sora-server": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/sora-mcp/dist/stdio-server.js"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here",
"DOWNLOAD_DIR": "/Users/yourname/Downloads/sora"
}
}
}
}