pmind-veo-mcp
Generates videos from text prompts and animates images using Google's Veo AI models through the Gemini API, with support for multiple models and progress tracking.
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., "@pmind-veo-mcpgenerate a video of a cat playing in the snow"
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.
PMIND Veo MCP Server
⚠️ Experimental: This MCP server is in an experimental state and may have rough edges. Please report any issues you encounter.
A Python implementation of an MCP (Model Context Protocol) server using FastMCP that provides tools for generating videos with Google's Veo AI models through the Gemini API. This server uses a subprocess-based architecture for reliable long-running video generation tasks with the official google-genai Python SDK.
🎯 Features
Core Capabilities
Video Generation: Generate videos from text prompts using Veo models
Image-to-Video: Animate images with Veo 3 models
Fast Generation: Veo 3 Fast model for speed-optimized video creation
Subprocess Architecture: Non-blocking video generation with isolated subprocess handling
Progress Tracking: Real-time status updates via state file monitoring
Video Downloads: Download completed videos using the official google-genai SDK
Multiple Generations: Track and manage multiple concurrent video generations
Process Management: Graceful cancellation and cleanup of generation processes
Related MCP server: Veo 3.1 MCP Server
Installation & Setup
Step 1: Clone the Repository
git clone https://github.com/yourusername/pmind-veo-mcp.git
cd pmind-veo-mcpStep 2: Install Dependencies
# Install dependencies using uv
uv syncStep 3: Set Up API Key
Get a Gemini API key from Google AI Studio
Create a
.envfile in the project root:
cp .env.example .envEdit
.envand add your configuration:
# Required: Your Gemini API key for Veo access
GEMINI_API_KEY=your_api_key_here
# Required: Default Veo model to use
# Options: veo-2.0-generate-001, veo-3.0-generate-preview, veo-3.0-fast-generate-preview
VEO_MODEL=veo-3.0-generate-preview
# Optional: Configuration directory (default: ~/.pmind-veo-mcp)
# CONFIG_DIR=/path/to/configStep 4: Configure with Your Client
Add the MCP server to your client's MCP configuration:
{
"mcpServers": {
"pmind-veo": {
"command": "uv",
"args": ["run", "--directory", "/path/to/pmind-veo-mcp", "pmind-veo-mcp"]
}
}
}Configuration
Required Environment Variables
GEMINI_API_KEY: Your Gemini API key with video generation accessVEO_MODEL: Default model (must be full API name):veo-2.0-generate-001for Veo 2veo-3.0-generate-previewfor Veo 3veo-3.0-fast-generate-previewfor Veo 3 Fast (speed-optimized)
Optional Environment Variables
CONFIG_DIR: Directory for state files and downloads (default:~/.pmind-veo-mcp)
MCP Tools Reference
veo_generate_video- Start video generation with a text promptveo_check_generation- Check the status of a video generationveo_download_video- Download a completed videoveo_list_sessions- List all video generation sessionsveo_cleanup_sessions- Clean up old generation sessions
Available Tools
6 toolsveo_check_generationA
Check the status of a video generation subprocess.
This monitors the subprocess that is handling the video generation, not the Gemini API directly. The subprocess handles all API polling.
If the generation has an operation_id, you can also use veo_check_operation to directly query Google's API for the operation status.
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID returned from veo_generate_video |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of behavioral disclosure. It adds important context that the tool monitors the subprocess rather than the Gemini API directly, and that the subprocess handles API polling. It does not detail potential edge cases like subprocess failure or return behavior, but the output schema likely covers return structure, making this sufficient for a status-check 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 concise and front-loaded, with the core purpose in the first sentence. Each subsequent sentence adds distinct value: clarifying the subprocess architecture and mentioning the alternative tool. 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?
For a simple status-check tool with one parameter and an output schema, the description provides sufficient context. It explains the tool's role in the generation workflow, how it relates to the API, and when to choose an alternative. The return values are presumably covered by the output schema, so no further description is needed.
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 already provides 100% parameter coverage, including the description 'Session ID returned from veo_generate_video.' The tool description adds no further parameter semantics beyond the schema, so the baseline score of 3 applies.
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 opens with 'Check the status of a video generation subprocess,' using a specific verb and resource. It clearly distinguishes this tool from direct API queries by explicitly stating 'not the Gemini API directly' and contrasting with veo_check_operation.
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 explains when to use this tool versus the alternative: 'This monitors the subprocess... If the generation has an operation_id, you can also use veo_check_operation to directly query Google's API.' This gives explicit usage context and a named alternative.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
veo_cleanup_sessionsA
Clean up old generation sessions and their files.
Removes state files and optionally downloaded videos for old sessions.
| Name | Required | Description | Default |
|---|---|---|---|
| completed_only | No | Only cleanup completed/failed sessions | |
| older_than_days | No | Delete sessions older than this many days (minimum 1) |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the full burden. It discloses that it removes state files and optionally downloaded videos, which is useful, but it does not warn about irreversibility or mention filtering behaviors like 'completed_only' or the age threshold. This is moderate transparency but lacks depth 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 two sentences, front-loaded with the main purpose, and every word earns its place. It is concise, clear, and well-structured.
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?
The description covers the core behavior and the output schema handles return values. It does not mention irreversibility or the exact filtering criteria, but for a simple cleanup tool with fully documented parameters, it is adequately complete. A warning about permanence would elevate it further.
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 documents both parameters fully (100% coverage), so the baseline is 3. The description adds some context by mentioning 'state files' and 'downloaded videos', but it does not explain the parameters directly or add meaning beyond what the schema already provides.
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 verb 'clean up' and the resource 'generation sessions and their files', distinguishing it from sibling tools like 'veo_list_sessions' and 'veo_download_video'. It is specific and unambiguous.
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 clear context for when to use this tool (old sessions cleanup) and implicitly contrasts it with list/download tools. However, it does not explicitly mention when not to use it or name alternative tools, so it stops short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
veo_download_videoA
Download a generated video from a completed generation session.
Use this tool to:
Download videos after generation completes
Download a specific video from multiple samples
Re-download previously generated videos
Note: Due to current SDK limitations, this downloads placeholder data. The actual video generation API requires allowlist access.
Returns:
file_path: Path to the downloaded video file
file_size: Size of the downloaded file
success: Whether download was successful
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | Directory to save the video. If not specified, uses default downloads directory. | |
| session_id | Yes | Session ID returned from veo_generate_video | |
| video_index | No | Index of the video to download (for multiple samples, 0-based) |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full responsibility for behavioral disclosure. It transparently notes the SDK limitation that downloads placeholder data and that the actual API requires allowlist access. It also lists return fields (file_path, file_size, success), giving the agent a clear picture of expected output. Could add more details about failure cases, but the key caveat is well covered.
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 well-structured with clear sections: main purpose, usage bullets, caveat, and return values. It is slightly verbose because the 'Use this tool to' list partly repeats the opening sentence, but every section adds useful context, and the critical placeholder-data caveat is effectively highlighted.
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?
The tool is moderately complex, involving a download operation with a major SDK limitation. The description covers the essential context: when to use it, what it returns, and the placeholder-data restriction. The output schema also helps, reducing the need for the description to explain return values in full. It does not cover error handling or prerequisites like session completion, but the sibling tools and schema infer most of this.
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 input schema already documents all three parameters with descriptions. The tool description adds no parameter-specific meaning beyond reinforcing that video_index relates to multiple samples, which is already implied by the schema's 'Index of the video to download' text. The baseline of 3 applies because 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 downloads a generated video from a completed generation session, using the specific verb 'Download' and resource 'video'. It distinguishes from sibling tools by listing specific download-related use cases (downloading after generation, selecting from multiple samples, re-downloading).
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 clear context for when to use the tool via a bulleted 'Use this tool to' list, covering common download scenarios. It does not explicitly state when not to use it or point to alternatives, but the sibling tool names (e.g., veo_check_generation) make the intended use evident.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
veo_generate_videoA
Generate videos using Google's Veo models.
Supports:
Text-to-video: Provide a text prompt (all models)
Image-to-video: Provide an image path (Veo 3 only)
Both: Provide both image and prompt for guided animation (Veo 3 only)
This tool starts a background video generation process that:
Initiates video generation with the specified parameters
Monitors progress in the background
To download generated videos, use veo_download_video after generation completes.
Returns:
session_id: Use with veo_check_generation to monitor progress
status: Current generation status
pid: Process ID of the background worker
Examples: Text-to-video: "Serene waterfall in a lush forest, cinematic lighting" Image-to-video: Use image_path="/path/to/image.jpg" with optional prompt
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second for video generation | |
| seed | No | Seed for reproducible generation | |
| model | No | Veo model to use for generation. veo-3.0-fast optimizes for speed. | veo-3.0-fast-generate-preview |
| prompt | No | Text prompt describing the video to generate. Be specific about visual elements, style, and movement. Required for text-to-video, optional for image-to-video. | |
| image_path | No | Path to input image for image-to-video generation (Veo 3 only). The image becomes the first frame of the video. Max 20MB. | |
| resolution | No | Video resolution (if supported by model) | |
| aspect_ratio | No | Video aspect ratio (SDK supports 16:9 and 9:16) | 16:9 |
| enhance_prompt | No | Let the model enhance your prompt for better results | |
| generate_audio | No | Generate audio for the video | |
| output_gcs_uri | No | GCS bucket where to save the generated videos | |
| negative_prompt | No | Elements to avoid in the generation (e.g., 'low quality, blurry') | |
| duration_seconds | No | Video duration in seconds (2-15). Not supported by veo-3.0-fast model. SDK uses model default if not specified. | |
| number_of_videos | No | Number of video variations to generate (1-4) | |
| person_generation | No | Control person generation in videos (SDK supports dont_allow, allow_adult) | allow_adult |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description carries the full burden. It discloses the asynchronous nature ('starts a background video generation process'), returns (session_id, status, pid), and model-specific constraints (image-to-video only Veo 3). It does not mention rate limits or failure modes, but the critical behavioral traits are covered.
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 well-structured with clear headings and bullet points, making it scannable. Each section (Supports, workflow, Returns, Examples) adds unique, non-redundant information, and there is no filler content.
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 complexity (14 parameters, async workflow), the description covers the full lifecycle: generation, monitoring via session_id, and download via veo_download_video. It names companion tools, explains return values, and provides examples. It is self-sufficient for an agent to select and invoke the tool correctly.
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 has 100% parameter coverage, so baseline is 3. The description adds value beyond the schema by explaining how prompt and image_path combine for the three modes, providing a concrete example ('Serene waterfall in a lush forest, cinematic lighting'), and noting that image_path is Veo 3 only—a constraint not fully explicit in the 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 opens with 'Generate videos using Google's Veo models,' a clear verb+resource statement. It further distinguishes itself from sibling tools (veo_check_generation, veo_download_video) by being the generation entry point and enumerating the three supported modes (text-to-video, image-to-video, both), making its scope unambiguous.
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?
It provides clear workflow context: 'This tool starts a background video generation process' and directs users to 'use veo_download_video after generation completes' and reference veo_check_generation for monitoring. This explains how the tool fits into the pipeline, though it does not explicitly state when not to use it or name alternative generation tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
veo_list_generationsA
List all video generation sessions.
Shows all subprocess-based generation sessions with their current status.
| Name | Required | Description | Default |
|---|---|---|---|
| active_only | No | Only show active (running) generations |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the burden of behavioral disclosure. It states 'List all...' which implies a read-only operation and mentions 'current status' as output, but it does not explicitly note that it is non-destructive, nor does it mention any side effects, permissions, or limitations. The addition of 'subprocess-based' gives some context but not enough to rate higher.
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: two sentences, with the primary action front-loaded in the first sentence. No filler or redundant information is present.
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?
The tool is simple with one well-documented parameter and an output schema. The description clarifies what is listed (all subprocess-based generation sessions) and that status is shown. However, it lacks a note distinguishing it from the similar sibling veo_list_sessions, which would improve completeness.
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 provides a full description for the only parameter, active_only, so schema coverage is 100%. The tool description does not add any parameter semantics beyond the schema, meeting the baseline of 3.
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 uses a specific verb 'List' and identifies the resource as 'video generation sessions', further specifying 'subprocess-based generation sessions' which clearly distinguishes it from siblings like veo_list_sessions and veo_check_generation.
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?
No explicit guidance is given about when to use this tool versus alternatives such as veo_list_sessions or veo_check_generation. The intended usage is only implied by the name and the act of listing sessions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
veo_list_sessionsB
List all video generation sessions.
Shows all subprocess-based generation sessions with their current status.
| Name | Required | Description | Default |
|---|---|---|---|
| active_only | No | Only show active (running) generations |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of explaining behavior. It adds useful detail about subprocess-based sessions and status display, but does not explicitly state read-only nature, potential side effects, or required setup. For a list operation, the transparency is adequate but not comprehensive.
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 concise sentences, front-loaded with the main action, and every sentence contributes relevant information. There is no wasted wording.
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 low complexity (one optional parameter) and the presence of an output schema, the description sufficiently specifies the tool's function and output. It could clarify the difference from list_generations, but that is not essential for correct invocation.
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 fully documents the single parameter active_only with its description and default value, and the tool description aligns with that default behavior of listing all sessions. The description adds no additional parameter semantics beyond what the schema already provides.
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 lists all video generation sessions with the verb 'List' and a specific resource. It adds 'subprocess-based' and 'current status' to clarify scope, but does not explicitly distinguish from the sibling veo_list_generations, so it lacks explicit sibling differentiation.
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 veo_list_generations, and no exclusions or prerequisites are mentioned. It simply states the action without giving contextual usage information.
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
v0.1.0- First observed
veo_check_generation - First observed
veo_cleanup_sessions - First observed
veo_download_video - First observed
veo_generate_video - First observed
veo_list_generations - First observed
veo_list_sessions
TDQS
Scored across 6 tools
The tools are mostly distinct, but veo_list_generations and veo_list_sessions have identical descriptions, making them impossible to differentiate. This redundancy creates clear ambiguity for an agent selecting which to use.
All six tools follow the veo_verb_noun pattern consistently, with clear verbs like generate, check, list, cleanup, and download. There is no mixing of styles or vague naming.
With six tools, the server is well-scoped for video generation workflows. The count covers generation, status checking, listing, downloading, and cleanup without being excessive or thin.
The core lifecycle (generate, check, list, download, cleanup) is covered, but there is no cancel/delete operation, and the description mentions veo_check_operation which is not actually exposed. These gaps could frustrate agents needing abort or granular API status.
Maintenance
Related MCP Connectors
- MusevateOAuthcom.musevate
Text, image and reference-to-video across many AI video models. Musevate account required.
MCP server for Google Veo AI video generation
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
AI image, video, voice and music generation over MCP, routed to Veo 3.1, Seedance 2.5 and more.
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.24 PyPI3MIT
- FlicenseAqualityDmaintenanceEnables high-quality AI video generation using Google's Veo 3.1 model for text-to-video, style-guided, and frame-interpolation tasks. It features token-efficient reference image handling, batch processing, and video extension capabilities with built-in cost estimation.62-
- AlicenseAqualityAmaintenanceEnables AI image generation and editing using Google's Gemini Multimodal Image APIs.61MIT
- AlicenseNot gradedqualityDmaintenanceGenerates videos using Google Gemini Veo from text prompts with optional aspect ratio settings.MIT