ultimate-gemini-mcp
Allows generating images using Google's Gemini 3.1 Flash Image model with features like high-resolution output (up to 4K), Google Search grounding, Google Image Search for visual references, up to 14 reference images, and configurable thinking levels.
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., "@ultimate-gemini-mcpgenerate a 4K image of a cyberpunk city at night"
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.

Ultimate Gemini MCP
MCP server for Google's Gemini 3.1 Flash Image — fast image generation with advanced reasoning, 512px–4K resolution, up to 14 reference images, Google Search grounding, and automatic thinking mode.
All generated images include invisible SynthID watermarks for authenticity and provenance tracking.
Features
Gemini 3.1 Flash Image
High-Resolution Output: 512px, 1K, 2K, and 4K resolution
Advanced Text Rendering: Legible, stylized text in infographics, menus, diagrams, and logos
Up to 14 Reference Images: Up to 10 objects + 4 characters for style/character consistency
Google Search Grounding: Real-time data (weather, stocks, events, maps)
Google Image Search: Visual context from web images — the model can FIND real images of anything
Thinking Mode: Configurable reasoning - "minimal" (fast) or "high" (best quality)
This model is different. Unlike traditional image generators that rely solely on training data, Gemini 3.1 Flash has live access to Google Search and Image Search. It can find actual references for products, people, events, or anything that exists online. "Way of Wade 12" → generates the REAL shoe. "Tony Hawk" → finds real photos. Don't over-prompt — let the model cook.
Server Features
Batch Processing: Generate multiple images in parallel (up to 8 concurrent)
22 Expert Prompt Templates: MCP slash commands for photography, logos, cinematics, storyboards, and more
Flexible Aspect Ratios: 14 options — 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9
Configurable via Environment Variables: Output directory, default size, timeouts, and more
Showcase
Photorealistic Capabilities
Jensen Huang — GPU Surfing

Elon Musk — Mars Chess Match

Jensen Huang — GPU Kitchen

Elon Musk — Cybertruck Symphony

Jensen Huang — Underwater Data Center

Elon Musk — SpaceX Skateboarding

Google Search Grounding
Current Weather in San Francisco

Google Image Search
Butterfly on Flower

Different Resolutions
512px (fastest)

1K

2K

Quick Start
Prerequisites
Python 3.11+
Google Gemini API key (free tier available)
Installation
Using uvx (recommended — no install needed):
uvx ultimate-gemini-mcp@latestNote: Use
@latestto ensure uv always fetches the newest version from PyPI. Without it, uv may use a cached environment.
Using pip:
pip install ultimate-gemini-mcpFrom source:
git clone https://github.com/anand-92/ultimate-image-gen-mcp
cd ultimate-image-gen-mcp
uv syncSetup
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ultimate-gemini": {
"command": "uvx",
"args": ["ultimate-gemini-mcp@latest"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
macOS
spawn uvx ENOENTerror: Use the full path — find it withwhich uvx, then set"command": "/Users/you/.local/bin/uvx".
Claude Code
claude mcp add ultimate-gemini \
--env GEMINI_API_KEY=your-api-key \
-- uvx ultimate-gemini-mcp@latestCursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"ultimate-gemini": {
"command": "uvx",
"args": ["ultimate-gemini-mcp@latest"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}Images are saved to ~/gemini_images by default. Add "OUTPUT_DIR": "/your/path" to customize.
Tools
generate_image
Generate an image with Gemini 3.1 Flash Image.
Parameter | Type | Default | Description |
| string | required | Text description. Less is more — "Tony Hawk kickflip" beats a long description. The model with search can find references automatically. |
| string |
| One of: |
| string |
|
|
| string |
|
|
| list |
| Up to 14 local image paths (10 objects + 4 characters) |
| bool |
| USE THIS for products, people, events — anything that exists now. The model searches Google for real info. |
| bool |
| USE THIS for visual references. The model finds actual images to work from. This is huge — it can reference real photos of anyone/anything. |
| string |
|
|
| list |
|
|
Image size guide:
512px— fastest, lowest cost (0.5K)1K— fast, good for testing (~1-2 MB)2K— recommended for most use cases (~3-5 MB)4K— maximum quality for production assets (~8-15 MB)
batch_generate
Generate multiple images in parallel.
Parameter | Type | Default | Description |
| list | required | List of prompt strings (max 8) |
| string |
| Aspect ratio applied to all images |
| string |
| Resolution for all images |
| string |
| Format for all images |
| list |
| Modalities for all images |
| int |
| Max concurrent requests |
| bool |
| Use Google Image Search for visual context |
| string |
|
|
MCP Prompt Templates
22 expert prompt templates are available as MCP slash commands in Claude Code (type / to browse). Each template returns a crafted prompt and recommended parameters ready to pass directly to generate_image or batch_generate.
Command | Description | Default aspect ratio |
| Photorealistic shot with lens/lighting specs | 16:9 |
| Professional brand identity | 1:1, 4K, IMAGE only |
| Film still with cinematography language | 21:9 |
| Commercial e-commerce photography | 1:1 or 4:5 |
| Multi-scene storyboard → calls | 16:9 |
| Extreme macro with micro-snoot lighting | 1:1 |
| Editorial fashion with gobo shadow patterns | 4:5 |
| Stephen Biesty-style cutaway diagram | 3:2, 4K, IMAGE only |
| Overhead knolling photography | 1:1 |
| High-speed strobe with motion blur background | 16:9 |
| Moody night street with practical light sources | 16:9 |
| Straight-down golden hour aerial | 4:5, 4K, IMAGE only |
| UE5-style render with subsurface scattering | 1:1, IMAGE only |
| Scanning electron microscope false-color | 1:1, IMAGE only |
| Silhouette-blended double exposure | 2:3, IMAGE only |
| Ray-traced architectural visualization | 3:2, 4K |
| Orthographic isometric 3D illustration | 1:1, IMAGE only |
| High-end backlit food photography | 4:5 |
| Rear-curtain sync slow shutter sequence | 16:9 |
| Text embedded in physical environment | 16:9, 4K, IMAGE only |
| 1970s cassette-futurism analog sci-fi | 4:3, IMAGE only |
| Surrealist impossible physics scene | 1:1, IMAGE only |
| Video game character concept art sheet | 3:2, 4K, IMAGE only |
| Seamless PBR texture map with raking light | 1:1, IMAGE only |
| Period-accurate photography with film emulation | 4:5 |
| Long-exposure bioluminescence macro | 1:1 |
| Cinematic pure-black silhouette master shot | 21:9, 4K |
Configuration
Variable | Default | Description |
| — | Required. Google Gemini API key |
|
| Directory where images are saved |
|
| Default resolution ( |
|
| Default model |
|
| Auto-enhance prompts by default |
|
| Enable Google Search grounding by default |
|
| API timeout in seconds |
|
| Max parallel requests in batch mode |
|
| Logging level |
Troubleshooting
spawn uvx ENOENT — Claude Desktop can't find uvx. Use the full path:
"command": "/Users/yourusername/.local/bin/uvx"Find it with: which uvx
GEMINI_API_KEY not found — Set the key in your MCP config env block or in a .env file. Get a free key at Google AI Studio.
Content blocked by safety filters — Rephrase the prompt to avoid sensitive content.
Rate limit exceeded — Wait and retry, or upgrade your API quota.
Images not saving — Check OUTPUT_DIR exists and is writable: mkdir -p /your/output/path.
License
MIT — see LICENSE for details.
Links
Google AI Studio — Get your API key
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
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/anand-92/ultimate-image-gen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server