Skip to main content
Glama

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 build

Configuration

Claude Code CLI

claude mcp add gemini-image --env GEMINI_API_KEY=your_key -- node /path/to/dist/index.js

Claude 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 lights

With high resolution:

Generate a detailed landscape at 4K resolution

Edit Image

Add sunglasses to this photo
Remove the background
Apply a watercolor style

Describe Image

What objects are in this image?
Describe the mood and composition

Models

Model

ID

Description

Nano Banana Pro

gemini-3-pro-image-preview

Best quality, up to 4K resolution (default)

Flash

gemini-2.5-flash-preview-05-20

Faster, good for descriptions

Legacy

gemini-2.0-flash-exp

Fallback option

Parameters

Image Size (Nano Banana Pro)

  • 1K - Standard resolution (default)

  • 2K - High resolution

  • 4K - Ultra high resolution

Aspect Ratio

  • 1:1 - Square (default)

  • 3:4 - Portrait

  • 4:3 - Landscape

  • 9:16 - Tall portrait

  • 16:9 - Widescreen

License

MIT

Available Tools

3 tools
describe_imageB

Analyze and describe one or more images using Google Gemini. Returns text description only.

ParametersJSON Schema
NameRequiredDescriptionDefault
imagesYesImages to analyze
promptNoCustom analysis prompt (default: general description)
modelNoModel to usegemini-3-pro-image-preview

TDQS

B3.3/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines3/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesInstructions for how to edit the image(s)
imagesYesImages to edit (up to 14 images)
modelNoModel to usegemini-3-pro-image-preview
imageSizeNoResolution of the output image1K
outputPathNoOptional file path to save the edited image

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesDetailed description of the image to generate
modelNoModel 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
aspectRatioNoAspect ratio of the generated image1:1
imageSizeNoResolution of the generated image (Nano Banana Pro supports up to 4K)1K
outputPathNoOptional file path to save the image (e.g., ./output/image.png)
referenceImagesNoOptional reference images to guide generation (up to 14 images for style, object, or layout references)

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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

A3.6/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness5/5

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

ActivityInactive
ResponsivenessNo issues

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

Related MCP Servers

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/dfeirstein/gemini-image-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server