MCP Video Generation with Veo2
Veo2 による MCP ビデオ生成
このプロジェクトは、Google Veo2 の動画生成機能を公開する Model Context Protocol(MCP)サーバーを実装します。これにより、クライアントはテキストプロンプトまたは画像から動画を生成し、MCP リソースを介して生成された動画にアクセスできるようになります。
特徴
テキストプロンプトからビデオを生成する
画像からビデオを生成する
MCP リソースを通じて生成されたビデオにアクセスする
ビデオ生成テンプレートの例
stdioとSSEトランスポートの両方をサポート
Related MCP server: hyper-video-service
サンプル画像
動画への画像サンプル
前提条件
Node.js 18以上
Gemini API と Veo2 モデルにアクセスできる Google API キー (= API キーを使用してクレジットカードを設定する必要があります! -> aistudio.google.com にアクセスしてください)
インストール
FLUJOへのインストール
サーバーの追加をクリック
Github URL をコピーして FLUJO に貼り付けます
「解析」、「複製」、「インストール」、「ビルド」、「保存」をクリックします。
Smithery経由でインストール
Smithery経由で Claude Desktop 用の mcp-video-generation-veo2 を自動的にインストールするには:
npx -y @smithery/cli install @mario-andreschak/mcp-veo2 --client claude手動インストール
リポジトリをクローンします。
git clone https://github.com/yourusername/mcp-video-generation-veo2.git cd mcp-video-generation-veo2依存関係をインストールします:
npm installGoogle API キーを使用して
.envファイルを作成します。cp .env.example .env # Edit .env and add your Google API key.envファイルは次の変数をサポートします。GOOGLE_API_KEY: Google APIキー(必須)PORT: サーバーポート(デフォルト: 3000)STORAGE_DIR: 生成されたビデオを保存するディレクトリ (デフォルト: ./generated-videos)LOG_LEVEL: ログレベル(デフォルト: 致命的)使用可能なレベル: verbose、debug、info、warn、error、fatal、none
開発の場合は、より詳細なログを取得するには、
debugまたはinfoに設定します。本番環境では、コンソール出力を最小限に抑えるために、
fatalのままにしておきます。
プロジェクトをビルドします。
npm run build
使用法
サーバーの起動
stdio または SSE トランスポートのいずれかを使用してサーバーを起動できます。
stdio トランスポート (デフォルト)
npm start
# or
npm start stdioSSEトランスポート
npm start sseこれにより、ポート 3000 (または.envファイルで指定されたポート) でサーバーが起動します。
MCPツール
サーバーは次の MCP ツールを公開します。
テキストからビデオを生成する
テキストプロンプトからビデオを生成します。
パラメータ:
prompt(文字列): ビデオ生成のためのテキストプロンプトconfig(オブジェクト、オプション): 設定オプションaspectRatio(文字列、オプション): "16:9" または "9:16"personGeneration(文字列、オプション): "dont_allow" または "allow_adult"numberOfVideos(数値、オプション): 1 または 2durationSeconds(数値、オプション): 5~8enhancePrompt(ブール値、オプション): プロンプトを強化するかどうかnegativePrompt(文字列、オプション): 生成しない内容を説明するテキスト
例:
{
"prompt": "Panning wide shot of a serene forest with sunlight filtering through the trees, cinematic quality",
"config": {
"aspectRatio": "16:9",
"personGeneration": "dont_allow",
"durationSeconds": 8
}
}画像からビデオを生成する
画像からビデオを生成します。
パラメータ:
image(文字列): Base64でエンコードされた画像データprompt(文字列、オプション):ビデオ生成をガイドするテキストプロンプトconfig(オブジェクト、オプション): 構成オプション (上記と同じですが、personGeneration は "dont_allow" のみをサポートします)
生成されたビデオのリスト
生成されたすべてのビデオを一覧表示します。
MCPリソース
サーバーは次の MCP リソースを公開します。
動画://{id}
生成されたビデオに ID でアクセスします。
ビデオ://テンプレート
サンプルのビデオ生成テンプレートにアクセスします。
発達
プロジェクト構造
src/: ソースコードindex.ts: メインエントリポイントserver.ts: MCP サーバー構成config.ts: 構成の処理tools/: MCPツールの実装resources/: MCP リソース実装services/: 外部サービス統合utils/: ユーティリティ関数
建物
npm run build開発モード
npm run devライセンス
マサチューセッツ工科大学
Available Tools
7 toolsgenerateImageC
Generate an image from a text prompt using Google Imagen
Inputs: prompt (required), numberOfImages, includeFullData.
generateVideoFromGeneratedImageC
Generate a video from a generated image (one-step process)
Inputs: prompt (required), aspectRatio, videoPrompt, autoDownload, +7 more.
generateVideoFromImageC
Generate a video from an image
Inputs: image (required), prompt, aspectRatio, autoDownload, +6 more.
generateVideoFromTextC
Generate a video from a text prompt
Inputs: prompt (required), aspectRatio, autoDownload, enhancePrompt, +5 more.
getImageB
Get a specific image by ID
Inputs: id (required), includeFullData.
listGeneratedImagesB
List all generated images
listGeneratedVideosB
List all generated videos
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have distinct purposes, but generateVideoFromGeneratedImage and generateVideoFromImage overlap in functionality; one is described as 'one-step process' but the distinction is not immediately clear from names alone.
Tool names follow a verb_noun pattern, but there is inconsistency: 'generateImage' uses a direct object while video tools use 'from' prepositional phrases. Also, 'getImage' differs from 'listGeneratedImages/listGeneratedVideos' in tense.
With 7 tools, the set is well-scoped for an image/video generation server, covering creation and listing without being overly numerous.
The tool surface includes generation and listing but lacks retrieval of individual videos (no getVideo), update, and delete operations, leaving notable gaps in lifecycle management.
Maintenance
Related MCP Connectors
MCP server for Google Veo AI video generation
MCP server for Kling AI video generation
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Wan AI video generation
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn async video generation MCP server with multi-provider support. Currently in skeleton phase with stub implementations, it will eventually enable video generation through providers like Veo 3.1, Grok Imagine Video, and Sora 2 Pro.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for programmatic video generation. Send a prompt, get an MP4.-
- AlicenseNot gradedqualityBmaintenanceMCP server for generating images and videos using Google Gemini and VEO models, with support for multiple AI models and credential modes.177 PyPI1Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for Google Veo 3.1 video generation. Supports text/video/image-based generation, extension, and interpolation with cost estimation and batch processing.41MIT