Skip to main content
Glama

Veo MCP Server

An MCP (Model Context Protocol) server for Google's Veo video generation API. This server allows AI assistants to generate videos from text prompts or images using Google's Veo models.

Features

  • Text-to-Video Generation: Create videos from descriptive text prompts

  • Image-to-Video Generation: Animate still images with motion

  • Multiple Models: Support for Veo 2, Veo 3, and Veo 3.1 variants

  • Async Operations: Poll for completion or wait with configurable timeout

  • Native Audio: Veo 3+ models include AI-generated audio

Related MCP server: sora-mcp-server

Prerequisites

Installation

npm install
npm run build

Configuration

Set your Gemini API key as an environment variable:

export GEMINI_API_KEY="your-api-key-here"

Usage with Claude Code

claude mcp add-json veo '{
  "command": "node",
  "args": ["/path/to/veo-mcp-server/dist/index.js"],
  "env": {
    "GEMINI_API_KEY": "your-api-key-here"
  }
}'

Available Tools

veo_generate_video

Generate a video from a text prompt.

Parameters:

  • prompt (required): Text description of the video to generate

  • model (optional): Veo model to use (default: veo-3.0-generate-001)

  • aspect_ratio (optional): 16:9 (landscape) or 9:16 (portrait)

  • duration_seconds (optional): 4, 6, or 8 seconds (Veo 3/3.1) or 5, 6, or 8 (Veo 2)

  • resolution (optional): 720p or 1080p (Veo 3/3.1 only)

  • negative_prompt (optional): Elements to exclude from the video

Example:

Generate a video of a cat wearing a superhero cape flying through clouds

veo_generate_video_from_image

Generate a video using an image as the first frame.

Parameters:

  • prompt (required): Description of the motion/action to apply

  • image_base64 (required): Base64-encoded image data

  • image_mime_type (optional): MIME type of input image (default: image/png)

  • model, aspect_ratio, duration_seconds, resolution: Same as veo_generate_video

Example:

Animate this landscape photo with gently flowing water and clouds drifting across the sky

veo_get_operation_status

Check the status of a video generation operation.

Parameters:

  • operation_name (required): The operation name from a generation request

  • response_format (optional): markdown or json (default: markdown)

veo_wait_for_video

Poll until a video completes or fails.

Parameters:

  • operation_name (required): The operation name from a generation request

  • poll_interval_seconds (optional): Time between checks (default: 10)

  • timeout_seconds (optional): Maximum wait time (default: 300)

  • response_format (optional): markdown or json (default: markdown)

veo_download_video

Download a completed video to a local file.

Parameters:

  • video_uri (required): The video URI from a completed operation

  • output_path (required): Local file path to save the video

veo_list_models

List available Veo models for video generation.

Parameters:

  • response_format (optional): markdown or json (default: markdown)

Prompting Tips

For best results with Veo, describe:

  • Shot type: Wide shot, close-up, tracking shot, aerial view

  • Subject: What/who is in the video

  • Action: What is happening, how things move

  • Setting: Where it takes place, environment details

  • Lighting: Time of day, mood, atmosphere

Example: "Cinematic aerial shot of a coastal town at golden hour, camera slowly descending toward the harbor, warm sunlight reflecting off calm waters."

Models

Model

Best For

Speed

Audio

veo-3.1-generate-preview

Highest quality, 1080p

Slow

Yes

veo-3.1-fast-generate-preview

Quality with faster iteration

Fast

Yes

veo-3.0-generate-001

Production quality

Medium

Yes

veo-3.0-fast-generate-001

Prototyping, iteration

Fast

Yes

veo-2.0-generate-001

Basic generation

Medium

No

Notes

  • Video generation takes 11 seconds to 6 minutes depending on model and settings

  • Generated videos are stored on Google's servers for 2 days

  • Output is MP4 at 24fps with SynthID watermark

  • Veo 3+ models include natively generated audio

Development

# Watch mode with auto-reload
npm run dev

# Build
npm run build

# Run
npm start

License

MIT

Available Tools

6 tools
veo_download_videoDownload VideoA
Idempotent

Download a generated video to a local file.

The video URI from a completed operation requires authentication to download. This tool handles the authenticated download and saves the video locally.

Args:

  • video_uri (string): The video URI from a completed generation operation

  • output_path (string): Local file path to save the video (e.g., '/path/to/video.mp4')

Returns: Confirmation of successful download with file path and size.

Notes:

  • Videos are stored on the server for 2 days after generation

  • Must download within 2 days or the video will be deleted

Inputs: video_uri (required), output_path (required).

veo_generate_videoGenerate VideoA

Generate a video from a text prompt using Google's Veo models.

This tool creates AI-generated videos from descriptive text prompts. For best results:

  • Describe shot type (wide, close-up, tracking, etc.)

  • Specify subject and action clearly

  • Include setting and environment details

  • Mention lighting and atmosphere

  • Add camera movement instructions if desired

Args:

  • prompt (string): Text description of the video to generate

  • model (string): Veo model ID (default: 'veo-3.0-generate-001')

  • negative_prompt (string, optional): Elements to exclude

  • aspect_ratio ('16:9' | '9:16'): Video aspect ratio (default: '16:9')

  • duration_seconds (4 | 6 | 8): Video duration (default: 4)

  • resolution ('720p' | '1080p'): Video resolution (default: '720p')

  • person_generation: Controls people generation (model-dependent, see schema)

  • response_format ('markdown' | 'json'): Output format

Returns: Operation name for tracking the video generation job. Use veo_get_operation_status or veo_wait_for_video to check completion and get the video URL.

Notes:

  • Video generation takes 11 seconds to 6 minutes

  • Videos are stored server-side for 2 days maximum

  • Output is MP4 at 24fps with SynthID watermark

  • Veo 3+ models include natively generated audio

Inputs: prompt (required), model, resolution, aspect_ratio, +4 more.

veo_generate_video_from_imageGenerate Video from ImageA

Generate a video using an image as the first frame reference.

The image guides the visual style and composition of the generated video. This is useful for:

  • Animating still images

  • Creating consistent visual style

  • Extending existing content

Args:

  • prompt (string): Description of the action/motion to apply

  • image_base64 (string): Base64-encoded image data

  • image_mime_type ('image/png' | 'image/jpeg' | 'image/webp'): Image format

  • model (string): Veo model ID (default: 'veo-3.0-generate-001')

  • negative_prompt (string, optional): Elements to exclude

  • aspect_ratio ('16:9' | '9:16'): Should match input image (default: '16:9')

  • duration_seconds (4 | 6 | 8): Video duration (default: 4)

  • resolution ('720p' | '1080p'): Video resolution (default: '720p')

  • person_generation: Controls people generation (model-dependent, see schema)

  • response_format ('markdown' | 'json'): Output format

Returns: Operation name for tracking. Use veo_get_operation_status or veo_wait_for_video to check completion.

Inputs: prompt (required), image_base64 (required), model, resolution, +6 more.

veo_get_operation_statusGet Operation StatusA
Read-onlyIdempotent

Check the status of a video generation operation.

Use this to poll for completion after starting video generation.

Args:

  • operation_name (string): The operation name from a generation request

  • response_format ('markdown' | 'json'): Output format

Returns:

  • status: 'in_progress', 'completed', or 'failed'

  • video_urls: Array of download URLs when completed

  • error: Error details if failed

Inputs: operation_name (required), response_format.

veo_list_modelsList Veo ModelsA
Read-onlyIdempotent

List available Google Veo models for video generation.

Returns information about each supported model including capabilities, status, and recommended use cases.

Args:

  • response_format ('markdown' | 'json'): Output format

Returns: List of available Veo models with their features and specifications.

Inputs: response_format.

veo_wait_for_videoWait for Video CompletionA
Read-onlyIdempotent

Poll a video generation operation until it completes or fails.

This tool continuously checks the operation status until the video is ready, making it convenient for workflows that need to wait for the result.

Args:

  • operation_name (string): The operation name from a generation request

  • poll_interval_seconds (number): Seconds between checks (default: 10, range: 5-60)

  • timeout_seconds (number): Maximum wait time (default: 300, range: 30-600)

  • response_format ('markdown' | 'json'): Output format

Returns: Final operation status with video URLs if successful, or error details if failed.

Notes:

  • Video generation typically takes 11 seconds to 6 minutes

  • Consider using longer timeouts for complex videos

Inputs: operation_name (required), response_format, timeout_seconds, poll_interval_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool maps to a distinct phase or variant of the video workflow: text-to-video, image-to-video, single status check, blocking wait, model listing, and download. The only potential overlap is between status polling and waiting, but the descriptions clearly distinguish single-check polling from blocking until completion.

    Naming Consistency5/5

    All tool names use a consistent snake_case convention with a uniform `veo_` prefix and clear verb_noun structure such as `veo_generate_video`, `veo_get_operation_status`, and `veo_download_video`. There are no mixed casing styles or vague standalone verbs.

    Tool Count5/5

    Six tools are well-scoped for a focused Veo video-generation server, with each tool earning its place in the workflow. The set avoids unnecessary surface area while still covering generation, monitoring, model discovery, and download.

    Completeness4/5

    The surface covers the core end-to-end workflow: generate from text or image, check or wait for completion, list models, and download the result. Minor gaps exist around operation cancellation or management, but agents can work around these for typical video-generation tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers