Nanobanana MCP server
io.github.getjoystick/nanobanana-mcp·v0.1.2·1 starsLean MCP server for Google's Nano Banana (Gemini) image models. Returns file paths, not base64.
1 stars34 downloads/wk
Reviews
Write oneNobody has reviewed Nanobanana yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Nanobanana tools (3)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
edit_imageEdit or combine images per a text prompt. First image is the base; any others are references (style, characters, objects). Saves to disk and returns the file path.
generate_imageGenerate an image from a text prompt. Saves to disk and returns the file path.
list_modelsList Gemini image model ids usable with generate_image/edit_image.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 43 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
How Nanobanana compares
Against every graded Media MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 80/100
- higher than 62% of 1,337 Media servers
- Tools
- 3
- the typical Media server has 7
- Tools that change things
- 0%
- typical: 4%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 55% of 715 Media servers
- Downloads a week
- 34
- more than 18% of 365 Media servers with a package
What its tools let an agent do: 1 read · 1 create · 1 change
Install Nanobanana in Claude Code, Cursor or VS Code
Runs npx -y @nanobanana/mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add nanobanana-mcp -- npx -y @nanobanana/mcp
What the publisher says
From the Nanobanana repository's README, as published. We do not edit it. Read it on GitHub
@nanobanana/mcp 🍌
A lean MCP server for Google's Nano Banana (Gemini) image models and Veo video models. It generates and edits images and generates video from any MCP client (Claude Code, Claude Desktop, Cursor) and hands back file paths instead of base64, so your agent's context stays small.
- Six tools and nothing else: generateimage, editimage, generatevideo, extendvideo, getvideoresult, list_models
- Defaults to Nano Banana 2 (gemini-3.1-flash-image) and Veo 3.1 Fast (veo-3.1-fast-generate-preview). Switch models per call or via env. If a pinned model id ever goes stale, list_models shows what your key can actually use.
- Multi-image editing: pass reference images for style transfer, characters, or compositing
- Control over aspect ratio (1:1 through 21:9, out to 1:4 and 8:1) and resolution (512, 1K, 2K, 4K)
- Google Search grounding for images that need real-world accuracy, like infographics
- Video as a job, not a blocked call: generation takes 1–6 min, so generatevideo returns a job id and getvideo_result polls within every client's 60s timeout
- Safe output paths. The server never writes to / when a desktop MCP client spawns it there.
- Auth lives in env vars only, so your API key never passes through chat context
Quick start
Get a free Gemini API key at aistudio.google.com/apikey.
Claude Code
claude mcp add nanobanana -e GEMINI_API_KEY=your_key -- npx -y @nanobanana/mcpAlso listed in the MCP Registry as io.github.getjoystick/nanobanana-mcp.
Claude Desktop / Cursor: add this to claudedesktopconfig.json or .cursor/mcp.json:
{
"mcpServers": {
"nanobanana": {
"command": "npx",
"args": ["-y", "@nanobanana/mcp"],
"env": { "GEMINI_API_KEY": "your_key" }
}
}
}Tools
generate_image
edit_image
Same params, plus:
Both tools save to disk and return the file path.
list_models
Takes no params. Lists the image and video model ids your API key can use, in two sections. Handy when a pinned model id stops working, which is how earlier Nano Banana servers broke — and Veo's ids are previews that will be renamed.
Video
Veo generation takes 1–6 minutes, and MCP clients kill a tool call at ~60s. So video is a job: you start one, then poll.
generate_video → "Video job started: <jobId>"
get_video_result → "Still processing (<jobId>)…" ← blocks up to 45s, then call again
get_video_result → "Saved: /path/to/clip.mp4 (veo-3.1-fast-generate-preview)
Veo URI (needed for extend_video; expires ~2 days): https://…"getvideoresult does the waiting for you — each call blocks up to waitSeconds (45 by default, the most that fits inside a client's 60s timeout). Call it right away and call it again the moment it returns; there is no need to pause in between, which matters because an agent has no way to sleep.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Nanobanana: common questions
- Is Nanobanana MCP server safe?
- Mostly: it is graded B (80/100). Read the Nanobanana safety report
- How do I install Nanobanana?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Nanobanana need an API key?
- Yes. The registry entry asks for
GEMINI_API_KEY. - Is Nanobanana maintained?
- The last commit was 82 days ago (2026-08-14). The latest release is v0.1.2.
- What can I use instead of Nanobanana?
- Servers from other publishers that do the same job: anymd MCP server, Gemini MCP server and Free the Tools MCP server.
- How does Nanobanana compare with other Media MCP servers?
- safety score 80/100 (higher than 62% of 1,337 Media servers); tools 3 (the typical Media server has 7); tools that change things 0% (typical: 4%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Nanobanana
Same job from other publishers: the closest match first, then the best rated.
- anymdAny file → clean Markdown for AI agents: PDF, Office, EPUB, HTML, images, audio/video. Local MCP.not reviewedEstablishedA
- GeminiGemini 3 MCP server with 30+ tools: images, video, research, TTS, code exec & CLInot reviewedEstablishedB
Free the ToolsLocal PDF, image, data and text tools for AI assistants. Files stay on your computer.not reviewedGrowingA- Remove AI WatermarksIdentify and remove AI watermarks and provenance metadata from your own images and video.not reviewedWidely usedA
Transloadit Media ProcessingProcess video, audio, images and documents with Transloadit Robots. Connect by URL with OAuth.not reviewedEstablishedA