Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI image and video generation using Google Vertex AI's Imagen and Veo models, with support for configurable parameters and local storage.

README.md

MCP Google Vertex AI Server

A Model Context Protocol (MCP) server that provides AI-powered image and video generation capabilities using Google Vertex AI's Imagen and Veo models.

Features

  • 🎨 Image Generation: Create AI images using Google's Imagen model
  • 🎬 Video Generation: Generate AI videos using Google's Veo model
  • 💾 Local Storage: Automatically save generated content to local server storage
  • 🔒 Secure Configuration: Environment-based configuration for API credentials
  • 🚀 Express v5: Built on the latest Express framework
  • 📝 TypeScript: Fully typed for better developer experience
  • ♻️ DRY Principles: Clean, maintainable, and reusable code architecture

Prerequisites

  • Node.js 24.0.0 or higher
  • Google Cloud Project with Vertex AI API enabled
  • Service account credentials with appropriate permissions

MCP Tools

generate-image

Generate AI images using the configured Imagen model (set via VERTEX_AI_IMAGE_MODEL).

Parameters:

| Parameter | Type | Default | Description | | ---------------- | ------------------------------------------- | ----------- | ----------------------------------------- | | prompt | string | required | Text description of the image to generate | | numberOfImages | number (1-8) | 1 | Number of images to generate | | aspectRatio | 1:1 \| 3:4 \| 4:3 \| 9:16 \| 16:9 | 1:1 | Aspect ratio | | imageSize | 1K \| 2K | 2K | Output resolution | | outputMimeType | image/png \| image/jpeg | image/png | Output format | | negativePrompt | string | — | Things to avoid in the image | | guidanceScale | number (1-20) | — | How closely the model follows the prompt | | seed | number | — | Random seed for reproducible results | | enhancePrompt | boolean | false | Auto-enhance the prompt before generation |

Example:

{
  "name": "generate-image",
  "arguments": {
    "prompt": "A serene mountain landscape at sunset with a lake",
    "aspectRatio": "16:9",
    "numberOfImages": 2
  }
}

generate-video

Generate AI videos using the configured Veo model (set via VERTEX_AI_VIDEO_MODEL).

Parameters:

| Parameter | Type | Default | Description | | ----------------- | ------------------------- | -------- | ------------------------------------------------ | | prompt | string | required | Text description of the video to generate | | numberOfVideos | number (1-4) | 1 | Number of videos to generate | | durationSeconds | number (4-8) | 8 | Clip length in seconds (4, 6, or 8) | | aspectRatio | 16:9 \| 9:16 | 16:9 | Aspect ratio | | resolution | 720p \| 1080p \| 4K | 1080p | Video resolution | | seed | number | — | Random seed for reproducible results | | negativePrompt | string | — | Things to avoid in the video | | enhancePrompt | boolean | true | Auto-enhance the prompt before generation | | generateAudio | boolean | false | Generate audio alongside the video | | lastFrame | string | — | Image to use as the last frame (image-to-video) | | referenceImages | array | — | Reference images to guide generation (see below) |

Reference images (provide either a local file path, Cloud Storage URI, or public URL):

  • Local file path: /path/to/image.png
  • Cloud Storage URI: gs://my-bucket/image.jpg
  • Public URL: https://cdn.example.com/image.jpg

Supported formats: JPEG, PNG. Maximum size: 10 MB.

referenceImages supports up to 3 ASSET images or 1 STYLE image.

Example — text to video:

{
  "name": "generate-video",
  "arguments": {
    "prompt": "A butterfly flying through a garden of flowers",
    "durationSeconds": 8,
    "aspectRatio": "16:9",
    "resolution": "1080p"
  }
}

Example — image reference:

{
  "name": "generate-video",
  "arguments": {
    "prompt": "The product spinning on a white background",
    "referenceImages": [
      {
        "image": "/path/to/product.png",
        "referenceType": "ASSET"
      }
    ]
  }
}

Connecting to MCP Clients

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "google-vertex": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:3005/mcp"]
    }
  }
}

VS Code

Add to your .vscode/mcp.json:

{
  "servers": {
    "google-vertex": {
      "type": "http",
      "url": "http://localhost:3005/mcp"
    }
  }
}

MCP Inspector

Test your server with the MCP Inspector:

npx @modelcontextprotocol/inspector

Then connect to: http://localhost:3005/mcp

Architecture

The server follows clean architecture principles with separation of concerns:

  • Config Layer: Environment variable management and validation
  • Service Layer: Vertex AI integration and storage management
  • Tools Layer: Shared utilities (e.g. reference image resolution)
  • Server Layer: MCP protocol implementation and Express server setup

Error Handling

The server includes comprehensive error handling:

  • Graceful error responses for tool invocations
  • Detailed error messages for troubleshooting
  • Proper HTTP status codes

Performance Tips

  • Use appropriate aspect ratios and resolutions for your use case
  • Monitor Vertex AI quotas and billing
  • Consider implementing request queuing for high-traffic scenarios

License

MIT

Acknowledgments

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Vector & Memory servers.