🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

veo-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

veo-mcp-server

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

pipPyPI
Version
1.1.5
Weekly downloads
94
Maintainers
1
Created

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"
      }
    }
  }
}
VariableDescriptionDefault
GEMINI_API_KEYGemini API key — required for all generation--
GEMINI_API_KEY_BACKUPBackup key for automatic rotation on 429--
VIDEO_OUTPUT_DIRDirectory 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)

ToolDescription
veo_generate_videoGenerate 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_videoAnimate a reference image with a text prompt. Supports resolution, aspect ratio, reference images, and seed control.
veo_interpolate_videoCreate a smooth video transition between a first frame and a last frame image.
veo_extend_videoExtend 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_jobCheck the status of an async video generation job. Call repeatedly until status is 'completed' or 'failed'.
veo_list_jobsList all video generation jobs and their current status.
veo_api_statusShow current API key rotation status — keys configured, active key, keys remaining.
veo_pricing_infoShow VEO 3.1 pricing per second of generated video for both standard and fast models at all resolutions.
veo_show_output_statsDisplay statistics about generated videos and active/recent jobs.

Configuration

VariableDescriptionDefault
GEMINI_API_KEYPrimary Gemini API key (required)--
GEMINI_API_KEY_BACKUPBackup key for automatic rotation on 429--
VIDEO_OUTPUT_DIRDirectory 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

TierModel IDUse Case
Standardveo-3.1-generate-previewHigher quality output
Fastveo-3.1-fast-generate-previewQuicker generation

License

MIT

Keywords

4k

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts