by conechoai
Generate and edit images from text with Nano-Banana, an AI image generator powered by Gemini 2.5 Flash. Fast, seamless,
Connects to Google's Gemini 2.5 Flash API to generate and edit images from text prompts. Supports iterative editing workflows and automatically saves images with organized file management.
Nano-Banana (Gemini 2.5 Flash Image) is a community-built MCP server published by conechoai that provides AI assistants with tools and capabilities via the Model Context Protocol. Generate and edit images from text with Nano-Banana, an AI image generator powered by Gemini 2.5 Flash. Fast, seamless, It is categorized under ai ml.
You can install Nano-Banana (Gemini 2.5 Flash Image) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Nano-Banana (Gemini 2.5 Flash Image) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
Nano-Banana (Gemini 2.5 Flash Image) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
I recommend Nano-Banana (Gemini 2.5 Flash Image) for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Strong directory entry: Nano-Banana (Gemini 2.5 Flash Image) surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Nano-Banana (Gemini 2.5 Flash Image) is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Nano-Banana (Gemini 2.5 Flash Image) is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
According to our notes, Nano-Banana (Gemini 2.5 Flash Image) benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
I recommend Nano-Banana (Gemini 2.5 Flash Image) for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Nano-Banana (Gemini 2.5 Flash Image) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Nano-Banana (Gemini 2.5 Flash Image) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Nano-Banana (Gemini 2.5 Flash Image) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
showing 1-10 of 36
🤖 This project was entirely generated by Claude Code - an AI coding assistant that can create complete, production-ready applications from scratch.
A Model Context Protocol (MCP) server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. Generate stunning images, edit existing ones, and iterate on your creations with simple text prompts.
<a href="https://glama.ai/mcp/servers/@ConechoAI/Nano-Banana-MCP"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@ConechoAI/Nano-Banana-MCP/badge" alt="Nano-Banana-MCP MCP server" /> </a>Get your Gemini API key:
Configure the MCP server: See configuration examples for your specific client below (Claude Code, Cursor, or other MCP clients).
Add this to your Claude Code MCP settings:
Option A: With environment variable (Recommended - Most Secure)
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": ["nano-banana-mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key-here"
}
}
}
}
Option B: Without environment variable
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": ["nano-banana-mcp"]
}
}
}
Generate an image of a sunset over mountains
Edit this image to add some birds in the sky
Continue editing to make it more dramatic
Add to your Cursor MCP configuration:
Option A: With environment variable (Recommended)
{
"nano-banana": {
"command": "npx",
"args": ["nano-banana-mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key-here"
}
}
}
Option B: Without environment variable
{
"nano-banana": {
"command": "npx",
"args": ["nano-banana-mcp"]
}
}
If you're using a different MCP client, you can configure nano-banana-mcp using any of these methods:
Method A: Environment Variable in MCP Config (Recommended)
{
"nano-banana": {
"command": "npx",
"args": ["nano-banana-mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key-here"
}
}
}
Method B: System Environment Variable
export GEMINI_API_KEY="your-gemini-api-key-here"
npx nano-banana-mcp
Method C: Using the Configure Tool
npx nano-banana-mcp
# The server will prompt you to configure when first used
# This creates a local .nano-banana-config.json file
generate_imageCreate a new image from a text prompt.
generate_image({
prompt: "A futuristic city at night with neon lights"
})
edit_imageEdit a specific image file.
edit_image({
imagePath: "/path/to/image.png",
prompt: "Add a rainbow in the sky",
referenceImages?: ["/path/to/reference.jpg"] // optional
})
continue_editingContinue editing the last generated/edited image.
continue_editing({
prompt: "Make it more colorful",
referenceImages?: ["/path/to/style.jpg"] // optional
})
get_last_image_infoGet information about the last generated image.
get_last_image_info()
configure_gemini_tokenConfigure your Gemini API key.
configure_gemini_token({
apiKey: "your-gemini-api-key"
})
get_configuration_statusCheck if the API key is configured.
get_configuration_status()
The MCP server loads your API key in the following priority order:
🥇 MCP Configuration Environment Variables (Highest Priority)
claude_desktop_config.json or MCP client config"env": { "GEMINI_API_KEY": "your-key" }🥈 System Environment Variables
export GEMINI_API_KEY="your-key"🥉 Local Configuration File (Lowest Priority)
configure_gemini_token tool.nano-banana-config.json in current directory💡 Recommendation: Use Method 1 (MCP config env variables) for the best security and convenience.
Images are automatically saved to platform-appropriate locations:
%USERPROFILE%\Documents\ ano-banana-images\./generated_imgs/ (in current directory)~/nano-banana-images/ (when run from system paths)File naming convention:
generated-[timestamp]-[id].pngedited-[timestamp]-[id].pnggenerate_image - Create your base imagecontinue_editing - Refine and improvecontinue_editing - Add final touchesgenerate_image - Create base contentedit_image - Use reference images for stylecontinue_editing - Fine-tune the resultgenerate_image - Start with a conceptget_last_image_info - Check current statecontinue_editing - Make adjustmentsThis project was created with Claude Code and follows these technologies:
# Clone the repository
git clone https://github.com/claude-code/nano-banana-mcp.git
cd nano-banana-mcp
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run tests
npm test
This project was generated by Claude Code, but contributions are welcome! Please feel free to:
MIT License - see LICENSE file for details.
✨ Generated with love by Claude Code - The future of AI-powered development is here!
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.