Skip to main content

MCP server for 4K video generation using Google VEO 3.1 -- text-to-video, image-to-video, video extension

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veo_mcp_server-1.1.1.tar.gz (76.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veo_mcp_server-1.1.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file veo_mcp_server-1.1.1.tar.gz.

File metadata

  • Download URL: veo_mcp_server-1.1.1.tar.gz
  • Upload date:
  • Size: 76.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for veo_mcp_server-1.1.1.tar.gz
Algorithm Hash digest
SHA256 0335b6d3a3449703915feb7928884b3a7d4600a1935320ff97334ca9f3677c49
MD5 51375b4dd5b4cdd13ce6a71e50b1e73b
BLAKE2b-256 878e117d65c226d8a5ec35cbb9762e6061442e6fdc7ab7aadd96e50f84a9f47b

See more details on using hashes here.

Provenance

The following attestation bundles were made for veo_mcp_server-1.1.1.tar.gz:

Publisher: publish.yml on u2n4/gemini-media-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file veo_mcp_server-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: veo_mcp_server-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for veo_mcp_server-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 858b23122501a9dd787dfc41a4394d424c03abd0067c30d50f2eaf8ea1767b65
MD5 4e45bdd85a3842bae1f1ed06144ca154
BLAKE2b-256 8664213f6c02a0c9873b25dce2c01585c1bae2b0269bfd08a4cedcec2c3b2278

See more details on using hashes here.

Provenance

The following attestation bundles were made for veo_mcp_server-1.1.1-py3-none-any.whl:

Publisher: publish.yml on u2n4/gemini-media-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page