Skip to main content

A production-ready MCP server for AI-powered image generation using Gemini 3 Pro Image and Gemini 2.5 Flash Image with intelligent model selection

Project description

Banana Image MCP

Let Claude Generate Images for You

PyPI version Python 3.11+ License: MIT

中文文档


What is this?

Banana Image MCP is an MCP server that gives Claude (and other AI assistants) the ability to generate images using Google's Gemini models.

Simply tell Claude what image you want, and it will create it for you - from quick sketches to professional 4K artwork.

Features

Feature Description
Dual Model Support Flash (fast, 2-3s) + Pro (4K quality, 5-8s)
Smart Auto-Selection Automatically picks the best model for your needs
4K Resolution Up to 3840px professional-grade output
Google Search Grounding Pro model uses real-world knowledge for accuracy
Flexible Aspect Ratios 1:1, 16:9, 9:16, 21:9, and more
Image Editing Edit existing images with AI

Quick Start

1. Get a Gemini API Key

Get your free API key from Google AI Studio

2. Install & Configure

For Claude Desktop, add to claude_desktop_config.json:

{
  "mcpServers": {
    "banana-image": {
      "command": "uvx",
      "args": ["banana-image-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key-here"
      }
    }
  }
}
Config file location
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
Other clients (Cursor, VS Code, etc.)

Cursor / VS Code Claude Extension:

{
  "mcpServers": {
    "banana-image": {
      "command": "uvx",
      "args": ["banana-image-mcp"],
      "env": {
        "GEMINI_API_KEY": "your-api-key-here"
      }
    }
  }
}

3. Start Using

Just ask Claude to generate images:

"Generate a cute cat wearing a space suit"

"Create a professional product photo of a coffee cup, 4K quality"

"Make a 16:9 thumbnail for my YouTube video about cooking"

Models

Model Speed Max Resolution Best For
Flash 2-3s 1024px Quick drafts, iterations, prototypes
Pro 5-8s 4K (3840px) Final assets, marketing, professional work

The server automatically selects the best model, or you can specify:

  • Say "quick sketch" or "draft" → Flash
  • Say "4K", "professional", or "high quality" → Pro

Environment Variables

Variable Required Default Description
GEMINI_API_KEY Yes - Your Gemini API key
IMAGE_OUTPUT_DIR No ~/banana-images Where to save images

Links


Made by Wenliang Zeng

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

banana_image_mcp-0.1.2.tar.gz (185.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

banana_image_mcp-0.1.2-py3-none-any.whl (80.3 kB view details)

Uploaded Python 3

File details

Details for the file banana_image_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: banana_image_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 185.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for banana_image_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 31322f3551a2f737afed3b7da2bdd4928ccbab7afc922b814a34ed99d061d14b
MD5 d996ab0a0861e1943255b8b310657c6d
BLAKE2b-256 ea9e04a745be33c1f7b339c0a5bf5e586ef5773e89e984ca6af22045992701b6

See more details on using hashes here.

File details

Details for the file banana_image_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for banana_image_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a22b86f0a3e0a3a4ef50f1b9adff22e59cc54361f7672c2e9da5449c8a1b6d3b
MD5 b0569bd831a4f6233653981611be3fc2
BLAKE2b-256 4719141ddf120e21e087ec272459ba4644e98d8a13cd4893993f98b6f20e9955

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page