When an image belongs in a prototype, issue comment, or README, the slow part is often not writing the prompt—it is breaking flow to open another app, move files around, and return to the terminal. A small MCP connection can make image generation available where you already work: inside a Gemini CLI conversation.
This guide shows a minimal, reproducible setup for connecting Gemini CLI to NanoBanana MCP. The result is a terminal assistant that can call a text-to-image tool or an image-editing tool when you ask for it.
What you can do
The NanoBanana MCP server exposes two tools to Gemini CLI:
Tool Purpose
nano_banana_generate Text-to-image generation using nano-banana, nano-banana 2, or nano-banana pro
nano_banana_edit Image editing
That split is useful in everyday builder workflows. Use generation when a project needs a fresh hero illustration, product placeholder, or concept image.…