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.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Description of the video to generate |
| aspectRatio | string | No | 16:9 (default) or 9:16 |
| duration | number | No | 5-8 seconds |
| personGeneration | string | No | Controls person generation in video |
| negativePrompt | string | No | What 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.
| Field | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Description of the image to generate |
| numberOfImages | number | No | 1-4 images |
Example:
{
"name": "generateImage",
"arguments": {
"prompt": "A modern office building with glass facade",
"numberOfImages": 2
}
}
Storage
Generated files are:
- Saved to a local temporary directory
- Uploaded to Azure Blob Storage
- A public URL is returned to the caller
Azure Blob configuration via environment variables: connection string, container name.