MCP server for Google Gemini image generation, upgraded for Nano Banana 2 (gemini-3.1-flash-image-preview).
A fork/rewrite of ConechoAI/Nano-Banana-MCP with:
Get one from Google AI Studio.
Via Claude Code plugin (recommended):
claude plugin add nano-banana-2-mcp
Or manually via npx — add to your Claude Code MCP settings:
{
"mcpServers": {
"nano-banana-2": {
"command": "npx",
"args": ["-y", "nano-banana-2-mcp"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}
Or from source for development:
git clone https://github.com/daveremy/nano-banana-2-mcp.git
cd nano-banana-2-mcp
npm install
npm run build
Then point your MCP config at dist/index.js:
{
"mcpServers": {
"nano-banana-2": {
"command": "node",
"args": ["/path/to/nano-banana-2-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}
The tools will be available after restart.
generate_imageGenerate a new image from a text prompt.
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt | string | (required) | Text prompt for the image |
aspectRatio | string | "1:1" | Aspect ratio (e.g. "16:9", "9:16") |
resolution | string | "1K" | 1K, 2K, or 4K |
thinking | string | "minimal" | minimal or high |
numberOfImages | number | 1 | 1–4 |
returnInlineImage | boolean | true | If false, return only file path |
edit_imageEdit an existing image file.
Same parameters as generate_image, plus:
| Parameter | Type | Description |
|---|---|---|
imagePath | string | (required) Path to the image to edit |
referenceImages | string[] | Optional additional reference images |
continue_editingContinue editing the last generated/edited image. Same parameters as edit_image minus imagePath (uses the last image automatically).
get_configuration_statusCheck API key, active model, and settings.
get_last_image_infoGet path and size of the last generated image.
| Variable | Default | Description |
|---|---|---|
GEMINI_API_KEY | (required) | Google Gemini API key |
NANO_BANANA_MODEL | gemini-3.1-flash-image-preview | Model ID override |
NANO_BANANA_OUTPUT_DIR | ./generated_imgs | Image save directory |
NANO_BANANA_INLINE_IMAGE | true | Default for returnInlineImage |
The server auto-detects model capabilities:
*-image, *-image-preview): get imageConfig (resolution, aspect ratio)thinkingConfigThis means you can use NANO_BANANA_MODEL=gemini-2.5-flash-image and it will send imageConfig but skip thinkingConfig.
This repo includes a Claude Code plugin with a generate-image skill that provides best-practice prompting guidance. Install via claude plugin add nano-banana-2-mcp or add the repo path to your Claude Code plugins config.
See CONTRIBUTING.md for development setup, testing, and release process.
Based on ConechoAI/Nano-Banana-MCP (MIT License).
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Oura Ring MCP server — sleep, readiness, activity, HR, stress, SpO2, workouts, and sessions
Query Function Health lab results, track biomarker changes, and get health recommendations
Read and send iMessages — contact resolution, message search, group chats, reactions
Query Apple Health daily metrics, workouts, and trends via Health Auto Export CSVs
Open .md files in a native macOS markdown viewer. Adds the /markviewz skill to preview markdown files with proper formatting, dark mode, and GitHub-style typography.
npx claudepluginhub daveremy/nano-banana-2-mcpAI image generation CLI powered by Gemini 3.1 Flash (default) and Gemini 3 Pro. Multi-resolution, aspect ratios, cost tracking, green screen transparency, and reference images.
Generate images using fal.ai nano-banana model
Generate or edit images using Google Gemini API via nanobanana
AI image generation Creative Director powered by Google Gemini Nano Banana models. Claude interprets intent, selects domain expertise, constructs optimized prompts, and orchestrates Gemini for best results.
Generate optimized prompts for Gemini 2.5 Flash Image (Nano Banana). Use for image generation, crafting photo prompts, art styles, or multi-turn editing workflows with best practices.
Generate and edit images using Gemini's Nano Banana Pro (gemini-3-pro-image-preview) model