Skip to main content
Glama
plemio

Nano Banana MCP Server

by plemio

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level: DEBUG, INFO, WARNING, ERROR. Default: INFO.INFO
GCP_REGIONNoGCP region for Vertex AI. Default: 'global'. Use 'us-central1' for legacy 2.5 Flash Image model.global
LOG_FORMATNoLog format: standard, json, detailed. Default: standard.standard
GCP_PROJECT_IDNoYour Google Cloud project ID. Required for Vertex AI authentication.
GEMINI_API_KEYNoYour Google Gemini API key. Required for API key authentication.
GEMINI_BASE_URLNoCustom API endpoint for Gemini (e.g., for proxies/gateways).
IMAGE_OUTPUT_DIRNoDirectory for saving generated images. Default: ~/nanobanana-images.
NANOBANANA_MODELNoModel tier: 'flash', 'nb2', 'pro', or 'auto' (default: auto → nb2).auto
NANOBANANA_AUTH_METHODNoAuthentication method: 'api_key', 'vertex_ai', or 'auto' (default: auto).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageA

Generate new images or edit existing images using natural language instructions.

Supports multiple input modes:

  1. Pure generation: Just provide a prompt to create new images

  2. Editing / fusion: pass input_image_paths — the first image is the one being edited (its scene and subjects are preserved), the rest are references to blend in. Up to 14 images with the 'nb2' and 'pro' tiers, 3 with 'flash'.

  3. File ID editing: Edit previously uploaded images using Files API ID

Automatically detects mode based on parameters or can be explicitly controlled. Input images are read from the local filesystem to avoid massive token usage. Returns both MCP image content blocks and structured JSON with metadata.

upload_fileA

Upload a local file through the Gemini Files API and return its URI & metadata. Useful when the image is larger than 20MB or reused across prompts.

show_output_statsA

Show statistics about the output directory and recently generated images.

maintenanceA

Perform maintenance operations following workflows.md patterns.

Available operations:

  • cleanup_expired: Remove expired Files API entries from database

  • cleanup_local: Clean old local files based on age/LRU

  • check_quota: Check Files API storage usage vs. ~20GB budget

  • database_hygiene: Clean up database inconsistencies

  • full_cleanup: Run all cleanup operations in sequence

Prompts

Interactive templates invoked by user choice

NameDescription
photorealistic_shotGenerate a prompt for high-quality photorealistic images.
logo_textGenerate a prompt for logo creation with accurate text rendering.
product_shotGenerate a prompt for studio product photography.
sticker_flatGenerate a prompt for flat/kawaii style stickers.
iterative_edit_instructionGenerate an instruction for precise image editing.
composition_and_style_transferGenerate an instruction for style transfer and composition blending.

Resources

Contextual data attached and managed by the client

NameDescription
prompt_templates_catalogA compact catalog of prompt templates (same schemas as the @mcp.prompt items).
list_operationsList all tracked operations. Returns: Dict with list of operations and summary statistics

TDQS

A4/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct role: generation/editing, file upload, output statistics, and maintenance operations. There is no meaningful overlap between them, and the descriptions make the boundaries obvious.

Naming Consistency4/5

Three tools follow a consistent verb_noun pattern: generate_image, upload_file, show_output_stats. The 'maintenance' tool breaks this pattern by using a bare noun instead of something like run_maintenance or perform_maintenance.

Tool Count5/5

Four tools is well-scoped for an image generation server: one core generation tool, one upload helper, one stats view, and one maintenance tool. Each tool earns its place without unnecessary bloat or redundancy.

Completeness4/5

The core image generation and editing workflow is covered, along with upload support for large files and basic output monitoring. Minor gaps exist around explicit file deletion or listing of uploaded Files API entries, but these are workable through maintenance and stats tools.

Maintenance

ActivitySlowing
ResponsivenessNo issues