Skip to main content

VEO 3.1 MCP Server

Professional-grade MCP server for Google VEO 3.1 video generation with async job pattern, API key rotation, and multi-fallback download.

Quick Install

pip install veo-mcp-server
# or
uvx veo-mcp-server --help

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "veo": {
      "command": "uvx",
      "args": ["veo-mcp-server"],
      "env": {
        "GEMINI_API_KEY": "your_key_here"
      }
    }
  }
}
Variable Description Default
GEMINI_API_KEY Gemini API key — required for all generation --
GEMINI_API_KEY_BACKUP Backup key for automatic rotation on 429 --
VIDEO_OUTPUT_DIR Directory where generated videos are saved ~/veo-videos

What It Does

Generates AI videos using Google's VEO 3.1 model. Supports text-to-video, image-to-video, video extension, and frame interpolation. Uses an async job pattern where generation starts immediately in the background and returns a job ID for polling.

Tools (9)

Tool Description
veo_generate_video Generate video from a text prompt. Supports resolution (720p/1080p/4K), aspect ratio (16:9/9:16), duration (4/6/8s), negative prompts, reference images, seed control, and batch generation (1-4 videos).
veo_image_to_video Animate a reference image with a text prompt. Supports resolution, aspect ratio, reference images, and seed control.
veo_interpolate_video Create a smooth video transition between a first frame and a last frame image.
veo_extend_video Extend an existing VEO-generated video by ~7 seconds. 720p only, max 148 seconds total. Source must be from a previous VEO generation (tracks provenance server-side).
veo_check_job Check the status of an async video generation job. Call repeatedly until status is 'completed' or 'failed'.
veo_list_jobs List all video generation jobs and their current status.
veo_api_status Show current API key rotation status — keys configured, active key, keys remaining.
veo_pricing_info Show VEO 3.1 pricing per second of generated video for both standard and fast models at all resolutions.
veo_show_output_stats Display statistics about generated videos and active/recent jobs.

Configuration

Variable Description Default
GEMINI_API_KEY Primary Gemini API key (required) --
GEMINI_API_KEY_BACKUP Backup key for automatic rotation on 429 --
VIDEO_OUTPUT_DIR Directory where generated videos are saved ~/veo-videos

Architecture

  • Async Job Pattern: All generation tools return a job ID instantly. Background threads handle the long-running Google API calls, so each MCP call returns in under 5 seconds.
  • API Key Rotation: On 429/RESOURCE_EXHAUSTED, automatically switches to the backup key and retries.
  • 3-Layer Download Fallback: SDK download -> URI fallback -> Wait-for-ACTIVE state. Handles Google's Files API edge cases.
  • Preventive Cleanup: Deletes stuck PROCESSING files before each generation to prevent cascading 500 errors.

Models

Tier Model ID Use Case
Standard veo-3.1-generate-preview Higher quality output
Fast veo-3.1-fast-generate-preview Quicker generation

License

MIT

Metadata

Release files for veo-mcp-server 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for veo-mcp-server 1.1.5
File Size Uploaded
veo_mcp_server-1.1.5.tar.gz 83.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for veo-mcp-server 1.1.5
File Interpreter ABI Platform
veo_mcp_server-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 102.0 kB

Release files / veo_mcp_server-1.1.5.tar.gz

Download URL veo_mcp_server-1.1.5.tar.gz
Size 83.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7a6f8ca6c6b48f2aebe2c652fd17d61660bd287c31358168bb0263d52413a57e
BLAKE2b-256 checksum
How to use checksums
83ac86e2c7ebcc6da3bbe2ea97173dc7f923ef8da09469b2a68cce8b59e61184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.

Transparency log

Release files / veo_mcp_server-1.1.5-py3-none-any.whl

Download URL veo_mcp_server-1.1.5-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff172cbe4c36a2a4a1583b891742e1393955dbe30d8c2f64e70694eae8c65742
BLAKE2b-256 checksum
How to use checksums
6a7bd0b2d4c874c2e2a9faca3e94fc1b8ae1448780ed410b746172977e2246d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page