Skip to main content

MCP Veo2 Tool (Video and Image Generation)

Generates videos and images using Google's Veo2 and Imagen APIs. Generated files are stored in Azure Blob Storage.

  • Tech: TypeScript, MCP SDK, @google/genai, @azure/storage-blob

Tools

generateVideoFromText

Text-to-video generation.

FieldTypeRequiredDescription
promptstringYesDescription of the video to generate
aspectRatiostringNo16:9 (default) or 9:16
durationnumberNo5-8 seconds
personGenerationstringNoControls person generation in video
negativePromptstringNoWhat to avoid in the video

Example:

{
"name": "generateVideoFromText",
"arguments": {
"prompt": "A serene lake at sunset with mountains in the background",
"aspectRatio": "16:9",
"duration": 5
}
}

generateImage

Text-to-image generation.

FieldTypeRequiredDescription
promptstringYesDescription of the image to generate
numberOfImagesnumberNo1-4 images

Example:

{
"name": "generateImage",
"arguments": {
"prompt": "A modern office building with glass facade",
"numberOfImages": 2
}
}

Storage

Generated files are:

  1. Saved to a local temporary directory
  2. Uploaded to Azure Blob Storage
  3. A public URL is returned to the caller

Azure Blob configuration via environment variables: connection string, container name.