NanoBridge
Generates and edits images using Google's Gemini Nano Banana model, supporting sprites, icons, textures, sprite sheets with animations, and background removal, leveraging the existing Gemini subscription quota or an API key.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NanoBridgegenerate a sprite of a green slime"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NanoBridge
Gemini's Nano Banana image generation, wired into agents as an MCP server and a CLI — using the Gemini plan the account already has, not a per-image bill.
nanobridge sprite "a small knight with a blue shield and a silver sword" --size 160Both of those came out of the commands in this README — the sprite already trimmed and transparent, the animation already sliced from a sheet and assembled into a looping GIF.
Why not just call the API
The AI Studio API key is the obvious route and it does not work on a free plan:
every image model answers 429 RESOURCE_EXHAUSTED, because the free tier grants
zero image quota. Enabling billing fixes it and starts charging per image, while
the Gemini subscription already sitting on the same account goes unused.
NanoBridge takes the other door: it authenticates as the browser does, with the
__Secure-1PSID cookie already in Chrome, and spends the subscription's quota.
Nothing to paste, nothing to buy.
Backend | Auth | Cost |
| Gemini cookies read from the browser | the plan already paid for |
|
| per image, and needs active billing |
nanobridge doctor reports which one is live and how much quota is left.
Related MCP server: Nano Banana Pro MCP
Install
git clone https://github.com/NspxMiguel/NanoBridge.git
cd NanoBridge && ./install.shThe installer builds a virtualenv, puts nanobridge on PATH, registers the MCP
server with Claude Code, and installs the agent skill. Homebrew:
brew install --cask nspxmiguel/tap/nanobridgeRequirements: Python 3.11+, and a browser signed in to https://gemini.google.com.
Use it from the shell
nanobridge doctor # backends, quota, config path
nanobridge sprite "a green slime" --style pixel --size 128
nanobridge icon "a compass rose" --style flat
nanobridge gen "a seamless stone wall texture, top-down, tileable"
nanobridge edit hero.png "make the sky stormy, keep everything else"
nanobridge sheet "a green slime" --grid 4x2 \
--action "squash down and stretch back up, a bouncy idle loop" --fps 10Sheets are generated, sliced into frames, and assembled into a looping GIF with the transparency preserved — GIF has no alpha channel, so a palette index is reserved for the empty pixels.
Two commands never touch the network, so they cost no quota and work on images from anywhere:
nanobridge cut photo.jpg --transparent --trim --size 256
nanobridge slice sheet.png --grid 6x1 --size 96Use it from an agent
The MCP server exposes generate_image, generate_sprite,
generate_sprite_sheet, generate_icon, edit_image, cut_image,
slice_sheet and nanobridge_status.
Every generating tool returns the image back to the model, downscaled to a 512px preview, alongside the paths on disk. That is the point: an agent that cannot see what it drew cannot tell a good sprite from a broken one, and iterates blind.
Registering it by hand:
claude mcp add nanobridge --scope user -- /path/to/.venv/bin/nanobridge mcpWhat the post-processing does
The model returns a large JPEG on a flat background. Sprites need the opposite, so the pipeline is part of the tool rather than an afterthought:
Background removal is border-connected, not colour-matched. A white eye inside a sprite has the same colour as the white behind it; only the region that reaches the image border is erased.
Trim crops to the drawing.
Resize is nearest-neighbour. Pixel art resampled with a smooth filter stops looking like pixel art.
Slicing is geometric. The grid asked for in the prompt is the grid used to cut, and the individual frames are written out — that is where you see whether the model actually obeyed.
Languages
Screen text is Portuguese and English. The system locale picks the default,
nanobridge lang pt|en saves a choice, and NANOBRIDGE_LANG=pt overrides both
for one run.
Limits worth knowing
The web backend depends on a browser session. When it expires, sign in again at https://gemini.google.com;
nanobridge doctorsays so explicitly.It talks to an interface Google does not document, so a change on their side can break it. The
apibackend is the fallback that stays put.Generated images carry Google's SynthID watermark.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables AI assistants to generate images from text prompts and transform existing images using Google Gemini's nano banana model through the Nanana AI service. Supports both text-to-image generation and image-to-image transformation capabilities.21610MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to generate, edit, and analyze images using Google's Gemini image generation models including Nano Banana Pro (gemini-3-pro-image-preview).12517MIT
- AlicenseAqualityDmaintenanceExposes Google Gemini's Nano Banana image generation models to Claude, enabling text-to-image generation, image editing, and multi-image composition through natural language prompts.3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered image generation, icon creation, hero banner design, and UI beautification using Google's Gemini Nano Banana API.
Related MCP Connectors
Generate images, video & speech with Nano Banana, Veo, Omni and Gemini TTS. Pay as you go.
Generate images, video, and audio with Glif's media-generation agent
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NspxMiguel/NanoBridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server