Skip to main content
Glama
gemini-nano-banana-mcp

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.

Inputs: prompt (required), model, file_name, aspect_ratio.

Tool Schema Changelog

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

Loading tool schema changelog…

    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.

    Related MCP Connectors

    Related MCP Servers