MCP Google Vertex AI Server
Provides integration with Google's Vertex AI for generating AI images and videos using Imagen and Veo models, with support for various parameters and reference images.
Leverages Google Cloud's Vertex AI platform to enable AI-powered image and video generation, with local storage of generated content.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Google Vertex AI ServerCreate an image of a serene mountain landscape at sunset, aspect ratio 16:9"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Gemini Image Gen MCP Server
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 |
| string | required | Text description of the image to generate |
| number (1-8) |
| Number of images to generate |
|
|
| Aspect ratio |
|
|
| Output resolution |
|
|
| Output format |
| string | — | Things to avoid in the image |
| number (1-20) | — | How closely the model follows the prompt |
| number | — | Random seed for reproducible results |
| boolean |
| 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 |
| string | required | Text description of the video to generate |
| number (1-4) |
| Number of videos to generate |
| number (4-8) |
| Clip length in seconds (4, 6, or 8) |
|
|
| Aspect ratio |
|
|
| Video resolution |
| number | — | Random seed for reproducible results |
| string | — | Things to avoid in the video |
| boolean |
| Auto-enhance the prompt before generation |
| boolean |
| Generate audio alongside the video |
| string | — | Image to use as the last frame (image-to-video) |
| 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.pngCloud Storage URI:
gs://my-bucket/image.jpgPublic 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/inspectorThen 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
Built with the Model Context Protocol SDK
Powered by Google Vertex AI
Uses Express v5
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ragna-ai/mcp-google-vertex'
If you have feedback or need assistance with the MCP directory API, please join our Discord server