Nano Banana Extension
This tutorial covers how to add the Nano Banana MCP Server as a goose extension that provides AI image generation and editing capabilities using Google's Gemini Image API.
- goose Desktop
- goose CLI
Command
npx nano-banana-mcp
Environment Variable
GEMINI_API_KEY: <YOUR_API_KEY>
Configuration
Note that you'll need Node.js installed on your system to run this command, as it uses npx.
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your Gemini API Key and paste it in
- Click
Add Extension - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
goose configure
- Choose to add a
Command-line Extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension (SSE)
│ ○ Remote Extension (Streaming HTTP)
└
- Give your extension a name.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ Nano Banana
└
- Enter the command to run when this extension is used.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Nano Banana
│
◆ What command should be run?
│ npx nano-banana-mcp
└
- Enter the number of seconds Goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Nano Banana
│
◇ What command should be run?
│ npx nano-banana-mcp
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Nano Banana
│
◇ What command should be run?
│ npx nano-banana-mcp
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ Image generation with Gemini
└
- Add an environment variable for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Nano Banana
│
◇ What command should be run?
│ npx nano-banana-mcp
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ Image generation with Gemini
│
◆ Would you like to add environment variables?
│ Yes
│
◇ Environment variable name:
│ GEMINI_API_KEY
│
◇ Environment variable value:
│ ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪
│
◇ Add another environment variable?
│ No
│
└ Added Nano Banana extension
Example Usage
With Nano Banana, you can generate new images and edit existing images in natural language. Simply describe what you want created or modified and goose will turn that into a detailed prompt to provide to Nano Banana.
Image Creation Examples
Create images from scratch by describing what you want:
- "Create an image of a sunset over mountains"
- "Generate a logo for a coffee shop called Bean There"
- "Make a fantasy dragon guarding a treasure hoard"
Image Iteration Examples
After generating or editing an image, you can keep refining it:
- "Make the sky more purple"
- "Add a cat in the corner"
- "Remove the text"
- "Make it more cartoon-style"
goose Prompt
use nano banana to create an image of a fantasy ice mage crafting ice sculptures in a frozen workshop
goose Output
🎨 Image generated with nano-banana (Gemini 2.5 Flash Image)!
Prompt: "A fantasy ice mage crafting ice sculptures in a frozen workshop. The mage wears flowing robes with frost patterns, their hands glowing with blue magical energy as they shape intricate ice sculptures. The workshop is filled with beautiful frozen creations - ice animals, crystalline flowers, and elaborate figurines. Icicles hang from the ceiling, frost covers the stone walls, and magical blue light illuminates the space. Snow gently drifts through the air. Detailed fantasy art style with magical atmosphere."
✨ Done! Here's your fantasy ice mage image!
The image turned out beautifully — it features:
- The Ice Mage: A hooded figure in elegant deep blue robes with intricate frost and snowflake embroidery, hands glowing with blue magical energy
- Ice Sculptures: A stunning unicorn being crafted, a pegasus in the background, crystalline rose bouquets, and small knight figurines
- The Frozen Workshop: A magnificent ice cathedral-like space with dramatic icicles hanging from vaulted ceilings, frost-covered pillars, and geometric ice patterns
- Magical Atmosphere: Rainbow light refractions, drifting snow particles, and an ethereal blue glow throughout
The image has been saved to:
generated_imgs/generated-2025-12-04T04-15-47-907Z-3grhec.png

Would you like me to make any modifications to this image? I can adjust elements like the mage's appearance, add more sculptures, change the lighting, or tweak any other details using the continue_editing feature!