Nano Banana MCP: use Nano Banana 2.1, 2 and Pro from Claude, Claude Code and Cursor
Updated 2026-11-25
Model page: Nano Banana 2.1 API — pricing, specs and the playground
A Nano Banana MCP server is a Model Context Protocol server that lets an AI assistant call Google's Nano Banana image models as a tool. With one connected, Claude, Claude Code, Cursor or Codex can generate and edit images in the middle of a conversation or a coding task, without you leaving the app.
We run apimodels.app, which hosts the server described here. The community servers in the comparison below were checked on their listing pages on 25 November 2026.
Add the Nano Banana MCP server to your client
Then ask in plain language: "Use Nano Banana 2.1 to make a 4:5 poster of…". The agent can also call list_models to see every image model on the same server, including GPT Image 2.6 and Seedream, if Nano Banana is not the right fit for a job.
| Client | How to add it |
|---|---|
| Claude.ai and Claude Desktop | Settings → Connectors → Add custom connector, URL https://api.apimodels.app/mcp, then Connect and Authorize. Works on every Claude plan; Free allows one custom connector. |
| ChatGPT | Add a custom connector (remote MCP server) with https://api.apimodels.app/mcp, then sign in and authorize when asked. |
| Claude Code | claude mcp add --transport http apimodels https://api.apimodels.app/mcp |
| Codex | Add the url to ~/.codex/config.toml, then run codex mcp login apimodels. |
| Cursor | Add the url to ~/.cursor/mcp.json, then click Authenticate under Customize → MCPs. |
| Anything else on your computer | npx -y apimodels-mcp install finds Claude Code, Codex, Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI and OpenCode and asks before adding apimodels to each. |
Which Nano Banana to use
Start with Nano Banana 2.1: it is the newest, costs the least and takes up to 10 reference images with ratios from 1:8 to 8:1. For comparison, Google's own list price for Nano Banana 2.1 is $0.0336 per image at 1K. Use Pro when you need to match images already made with it.
| Model | Model id | Price per image | 30-day success rate |
|---|---|---|---|
| Nano Banana 2.1 | nano-banana-2-1 | $0.022 at 1K, $0.036 at 2K, $0.06 at 4K | 99.9% |
| Nano Banana 2 | gemini-3.1-flash-image | $0.06 at 1K and 2K | 99.9% |
| Nano Banana Pro | gemini-3-pro-image-preview | $0.068 at 1K and 2K, $0.13 at 4K | 99.7% |
Editing images and using references
Pass one or more image URLs as references and describe the change: "keep the product, put it on a marble counter". The hosted server cannot read files on your computer, so in Claude Code or Cursor the agent first calls get_upload_url and uploads the local file, then uses the link it gets back. In Claude.ai, give it a public image link.
Hosted server or a community Nano Banana MCP
Choose a community server if you already pay Google for Gemini, want the code on your own machine, or need images written straight to a local folder. Choose the hosted one if you want it in Claude.ai, want other image and video models next to Nano Banana, or do not want to manage a Google Cloud account.
| APIMODELS hosted | Community servers (e.g. nano-banana-mcp, mcp-nano-banana) | |
|---|---|---|
| Setup | Add a URL and sign in | Install with Node or Python, add your Gemini API key |
| Billing | Per image from a prepaid APIMODELS balance | Your Google account at Google prices; billing must be enabled |
| Models | Nano Banana 2.1, 2, Pro, plus GPT Image, Seedream and video models | Nano Banana models only |
| Works in Claude.ai web | Yes, as a custom connector | Only if you host it on a public URL |
| Source code and data path | Third-party hosted service | Open source; requests go straight from your machine to Google |
| Saving files | Returns links kept for 30 days | Some write images straight to a local folder |
Quick start
Nano Banana MCP URL
https://api.apimodels.app/mcpClaude Code
claude mcp add --transport http apimodels https://api.apimodels.app/mcpCursor (~/.cursor/mcp.json)
{
"mcpServers": {
"apimodels": { "url": "https://api.apimodels.app/mcp" }
}
}cURL
curl -X POST https://api.apimodels.app/v1/images/generations \
-H "Authorization: Bearer $APIMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "nano-banana-2-1", "prompt": "Studio product photo of a ceramic coffee mug on oak, soft window light", "aspect_ratio": "16:9", "resolution": "1K"}'
# returns {"data": {"taskId": "...", "state": "pending"}}; poll until state is "completed":
curl "https://api.apimodels.app/v1/images/generations?task_id=TASK_ID" -H "Authorization: Bearer $APIMODELS_API_KEY"FAQ
Is there an official Nano Banana MCP server from Google?
Not as of 25 November 2026. The Nano Banana MCP servers you will find are community projects that use your own Gemini API key, or hosted services such as APIMODELS.
What is the Nano Banana MCP URL?
https://api.apimodels.app/mcp. It is a remote (streamable HTTP) MCP server with OAuth sign-in; clients that prefer a header can send Authorization: Bearer with an APIMODELS key instead.
How do I use the Nano Banana MCP in Claude Code?
Run claude mcp add --transport http apimodels https://api.apimodels.app/mcp, then /mcp to sign in, and ask Claude Code to "generate the hero image with Nano Banana 2.1 and save it to public/". It can upload local images for editing first.
Does the Nano Banana MCP work in Cursor?
Yes. Put the URL in ~/.cursor/mcp.json under mcpServers, then click Authenticate next to apimodels under Customize → MCPs. The Cursor guide has screenshots of each step.
Do I need a Gemini API key?
Not for the hosted server: you sign in to APIMODELS and images are billed to that balance. Community servers do need your own Gemini API key with billing enabled.
How much does the Nano Banana MCP cost?
The server itself is free; you pay per image. Nano Banana 2.1 is $0.022 at 1K, $0.036 at 2K and $0.06 at 4K. Failed generations are not billed, and new accounts get $0.30 to try it.
