Skip to main content
Glama
VPCriativo94

gemini-nano-banana-mcp

by VPCriativo94

gemini-nano-banana-mcp

Minimal MCP server that generates images through Google's Gemini "Nano Banana" image models (gemini-2.5-flash-image by default), using your own free Google AI Studio API key.

No third-party service, no paid credits — requests go straight to Google's Gemini API.

Setup

npm install
npm run build

Get a free API key at https://aistudio.google.com/apikey.

Related MCP server: Nano Banana MCP Server

Register with Claude Code

claude mcp add gemini-image --scope user -e GEMINI_API_KEY=your-key-here -- node /absolute/path/to/gemini-nano-banana-mcp/dist/index.js

Tool

generate_image

Argument

Required

Description

prompt

yes

Text description of the image to generate

model

no

Gemini image model id (default: gemini-2.5-flash-image)

aspect_ratio

no

e.g. 1:1, 16:9, 9:16

file_name

no

Output file name (default: a timestamp)

Generated images are saved to OUTPUT_DIR (default: ./output) and the tool returns the saved file path.

Environment variables

Variable

Required

Default

GEMINI_API_KEY

yes

OUTPUT_DIR

no

./output

License

MIT

Available Tools

1 tool
generate_imageGenerate imageA

Generate an image from a text prompt using Google's Gemini image models (Nano Banana). Saves the result as a local file and returns its path.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNoGemini image model id. Defaults to "gemini-2.5-flash-image".
promptYesText description of the image to generate
file_nameNoOptional output file name. Defaults to a timestamp.
aspect_ratioNoOptional aspect ratio, e.g. "1:1", "16:9", "9:16".

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It explicitly discloses the key side effect of saving the result as a local file and returning its path, which is essential for an agent to understand the tool's behavior. It does not mention potential errors or network dependencies, but the core behavioral trait is transparent.

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 a single, well-structured sentence that front-loads the primary action, includes the model context, and states the output. Every clause earns its place with no unnecessary fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there is no output schema, the description covers the return value (the file path). It explains the core purpose and the side effect of file creation. The tool's complexity is low, with only one required parameter, and the description provides enough context for an agent to invoke it correctly. Minor gaps like error conditions are not critical.

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?

All four parameters are fully documented in the schema (100% coverage), so the description does not add significant parameter-level clarification beyond what the schema already provides. The mention of 'text prompt' and 'local file' loosely relates to prompt and file_name, but it does not add new meaning to individual parameters. Baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Generate') and resource ('an image'), clearly states the model family (Gemini image models) and the output behavior (saves to a local file, returns its path). This is unambiguous and distinguishes the tool from any potential image-related sibling, though none exist.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There are no sibling tools to differentiate against, but the description clearly implies the usage scenario: converting a text prompt into an image. It does not explicitly state when not to use it or list alternatives, but given the absence of siblings and the self-explanatory nature, it provides clear context without exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observedgenerate_image

TDQS

A4.2/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool exists, so there is no possibility of confusion or overlap.

Naming Consistency5/5

The tool name 'generate_image' follows a clear verb_noun pattern and is descriptive.

Tool Count3/5

With only one tool, the server feels minimal, but it is focused on image generation so it is borderline acceptable.

Completeness4/5

The server covers the core image generation task, but lacks additional capabilities like editing or variations that might be expected in a full-featured image tool.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers