Gemini Image MCP
Provides tools for AI image generation, editing, and description using Google's Gemini models, supporting up to 4K resolution and multi-image reference guidance.
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., "@Gemini Image MCPgenerate a 4K cinematic cyberpunk city at night with neon lights"
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.
Gemini Image MCP
A Model Context Protocol (MCP) server for AI image generation using Google's Gemini 3.0 models (Nano Banana Pro).
Features
generate_image - Create images from text prompts with up to 4K resolution
edit_image - Modify existing images with instructions, style transfer, multi-image mixing
describe_image - Analyze and describe images
Reference Images - Support for up to 14 reference images for style/content guidance
Related MCP server: Nano Banana MCP Server
Installation
npm install
npm run buildConfiguration
Claude Code CLI
claude mcp add gemini-image --env GEMINI_API_KEY=your_key -- node /path/to/dist/index.jsClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"gemini-image": {
"command": "node",
"args": ["/path/to/dist/index.js"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}Zed Editor
Copy and paste this prompt to your Zed AI assistant:
Install the gemini-image MCP server for me. Here's what you need to do:
1. Clone the repo and build it:
git clone https://github.com/dfeirstein/gemini-image-mcp.git ~/.config/zed/mcp-servers/gemini-image-mcp
cd ~/.config/zed/mcp-servers/gemini-image-mcp
npm install
npm run build
2. Add this to my Zed settings.json under "context_servers":
{
"context_servers": {
"gemini-image": {
"command": {
"path": "node",
"args": ["~/.config/zed/mcp-servers/gemini-image-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
}
3. Remind me to replace YOUR_API_KEY_HERE with my actual Gemini API key from https://aistudio.google.com/apikey
The MCP provides three tools: generate_image, edit_image, and describe_image using Google's Gemini 3.0 (Nano Banana Pro) models.Get API Key
Get a Gemini API key from Google AI Studio.
Note: Gemini 3 Pro Image (Nano Banana Pro) requires billing enabled - no free tier.
Usage Examples
Generate Image
Generate a cyberpunk cityscape at night with neon lightsWith high resolution:
Generate a detailed landscape at 4K resolutionEdit Image
Add sunglasses to this photo
Remove the background
Apply a watercolor styleDescribe Image
What objects are in this image?
Describe the mood and compositionModels
Model | ID | Description |
Nano Banana Pro |
| Best quality, up to 4K resolution (default) |
Flash |
| Faster, good for descriptions |
Legacy |
| Fallback option |
Parameters
Image Size (Nano Banana Pro)
1K- Standard resolution (default)2K- High resolution4K- Ultra high resolution
Aspect Ratio
1:1- Square (default)3:4- Portrait4:3- Landscape9:16- Tall portrait16:9- Widescreen
License
MIT
Available Tools
3 toolsdescribe_imageB
Analyze and describe one or more images using Google Gemini. Returns text description only.
| Name | Required | Description | Default |
|---|---|---|---|
| images | Yes | Images to analyze | |
| prompt | No | Custom analysis prompt (default: general description) | |
| model | No | Model to use | gemini-3-pro-image-preview |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool uses Google Gemini and returns text descriptions, but doesn't cover important aspects like rate limits, authentication needs, error handling, or whether the operation is idempotent. The description adds some context but leaves significant gaps for a tool that interacts with an external AI service.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with just one sentence that efficiently communicates the core functionality, technology used, and output format. Every word earns its place with no wasted text, making it easy to parse and understand quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 3 parameters, 100% schema coverage, but no annotations or output schema, the description provides basic functionality context but lacks important behavioral details. It covers what the tool does and what technology it uses, but doesn't address reliability, limitations, or what the agent should expect in terms of response format or potential errors.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all three parameters thoroughly. The description mentions analyzing 'one or more images' which aligns with the 'images' array parameter, and references 'custom analysis prompt' which maps to the 'prompt' parameter, but doesn't add meaningful semantic context beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'analyze and describe' and the resource 'one or more images using Google Gemini', with the output format 'text description only'. It distinguishes from sibling tools like 'edit_image' and 'generate_image' by focusing on analysis rather than modification or creation, though it doesn't explicitly name these alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for image analysis and description, but doesn't provide explicit guidance on when to use this tool versus alternatives like 'edit_image' or 'generate_image'. It mentions the default prompt behavior but lacks context about specific scenarios or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
edit_imageC
Edit one or more images using Google Gemini 3.0 (Nano Banana Pro). Supports style transfer, object manipulation, and multi-image mixing.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Instructions for how to edit the image(s) | |
| images | Yes | Images to edit (up to 14 images) | |
| model | No | Model to use | gemini-3-pro-image-preview |
| imageSize | No | Resolution of the output image | 1K |
| outputPath | No | Optional file path to save the edited image |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the AI model used and editing capabilities but omits critical information like rate limits, authentication requirements, whether edits are destructive to original images, processing time, or error handling. For a complex image editing tool, this leaves significant behavioral gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately concise with two sentences that efficiently communicate the core functionality. The first sentence establishes the main purpose, and the second lists key capabilities. No wasted words, though it could be slightly more structured by separating capabilities more clearly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a complex image editing tool with 5 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what the tool returns (edited images, success/failure indicators, error formats), doesn't mention prerequisites or limitations, and provides minimal guidance on parameter usage despite the schema doing most of the technical documentation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds minimal value beyond the schema - it mentions 'multi-image mixing' which relates to the 'images' array parameter, but doesn't provide additional semantic context about how parameters interact or practical usage examples.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Edit one or more images using Google Gemini 3.0 (Nano Banana Pro).' It specifies the verb ('Edit'), resource ('images'), and technology used, but doesn't explicitly differentiate from sibling tools like 'describe_image' or 'generate_image' beyond mentioning editing capabilities.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings ('describe_image' and 'generate_image'). It mentions capabilities like 'style transfer, object manipulation, and multi-image mixing' but doesn't clarify whether these are exclusive to this tool or available in alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_imageC
Generate an image using Google Gemini 3.0 (Nano Banana Pro). Supports up to 4K resolution and up to 14 reference images for style/content guidance.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed description of the image to generate | |
| model | No | Model to use: "gemini-3-pro-image-preview" (default, Nano Banana Pro - best quality up to 4K), "gemini-2.5-flash-preview-05-20" (faster), or "gemini-2.0-flash-exp" (legacy) | gemini-3-pro-image-preview |
| aspectRatio | No | Aspect ratio of the generated image | 1:1 |
| imageSize | No | Resolution of the generated image (Nano Banana Pro supports up to 4K) | 1K |
| outputPath | No | Optional file path to save the image (e.g., ./output/image.png) | |
| referenceImages | No | Optional reference images to guide generation (up to 14 images for style, object, or layout references) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions some constraints (e.g., 'up to 4K resolution,' 'up to 14 reference images') but lacks critical details like rate limits, authentication requirements, cost implications, error handling, or output format. For a generative AI tool with potential side effects, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose and key features. It avoids redundancy and wastes no words, though it could be slightly more structured (e.g., separating purpose from constraints).
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (generative AI with multiple parameters) and lack of annotations or output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., image data, file path), error conditions, or usage limits, leaving significant gaps for an agent to operate effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema—it mentions 'up to 4K resolution' and 'up to 14 reference images,' which are partially covered in the schema's descriptions. Baseline 3 is appropriate as the schema does most of the work.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Generate an image using Google Gemini 3.0 (Nano Banana Pro).' It specifies the verb ('Generate') and resource ('image'), and mentions key capabilities like resolution and reference images. However, it doesn't explicitly differentiate from sibling tools like 'describe_image' or 'edit_image' beyond the core generation function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings ('describe_image' and 'edit_image'). It mentions technical capabilities (e.g., up to 4K resolution, reference images) but doesn't indicate scenarios where this tool is preferred over alternatives or any prerequisites for use.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool has a clearly distinct purpose: describe_image analyzes images, edit_image modifies existing images, and generate_image creates new images. There is no overlap in functionality, making it easy for an agent to select the correct tool.
All tools follow a consistent verb_noun pattern (describe_image, edit_image, generate_image) with the same noun and clear action verbs. The naming is predictable and readable throughout.
With 3 tools, this server is well-scoped for image processing with Gemini. Each tool earns its place by covering a distinct aspect: analysis, editing, and generation, which is appropriate for the domain.
The tool set provides complete coverage for the image processing domain with Gemini: describe for analysis, edit for modification, and generate for creation. There are no obvious gaps, and agents can handle core workflows without dead ends.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for Qwen Image 3 AI image generation
MCP server for NanoBanana AI image generation and editing
MCP server for Google Veo AI video generation
MCP server for Midjourney AI image generation and editing
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. It allows users to create new images from text, modify existing files, and perform iterative edits through natural language prompts.6758MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides AI-powered image generation through Google Gemini models with intelligent selection between Flash (speed) and Pro (quality) modes, supporting up to 4K resolution and advanced features like Google Search grounding.MIT
- AlicenseBqualityBmaintenanceAn MCP server for AI-powered image generation, editing, analysis, and transformation using Google's Gemini and Imagen 4 models.192AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides AI image generation using Google Gemini models with intelligent model selection, aspect ratio control, and support for high-quality outputs up to 4K.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/dfeirstein/gemini-image-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server