by junhan2
Gemini Nanobanana: AI image generator for creating, editing, and composing stunning images using advanced artificial int
Integrates Google's Gemini 2.5 Flash Image API into Claude conversations, allowing you to generate images from text prompts directly in chat.
Gemini Nanobanana (Image Generation) is a community-built MCP server published by junhan2 that provides AI assistants with tools and capabilities via the Model Context Protocol. Gemini Nanobanana: AI image generator for creating, editing, and composing stunning images using advanced artificial int It is categorized under ai ml.
You can install Gemini Nanobanana (Image Generation) 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
Gemini Nanobanana (Image Generation) 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
Gemini Nanobanana (Image Generation) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Gemini Nanobanana (Image Generation) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
We wired Gemini Nanobanana (Image Generation) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
According to our notes, Gemini Nanobanana (Image Generation) benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
Gemini Nanobanana (Image Generation) is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
We wired Gemini Nanobanana (Image Generation) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Gemini Nanobanana (Image Generation) reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Gemini Nanobanana (Image Generation) has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
We wired Gemini Nanobanana (Image Generation) into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Strong directory entry: Gemini Nanobanana (Image Generation) surfaces stars and publisher context so we could sanity-check maintenance before adopting.
showing 1-10 of 62
Generate images from text with Claude! Simply type "Draw a cute cat" and get instant AI-generated images.
A beginner-friendly Model Context Protocol (MCP) server that brings Google's Gemini 2.5 Flash Image generation directly into your Claude conversations.
YOUR_API_KEY with your actual key:{
"mcpServers": {
"gemini-nanobanana-mcp": {
"command": "npx",
"args": ["gemini-nanobanana-mcp@latest"],
"env": {
"GEMINI_API_KEY": "YOUR_API_KEY"
}
}
}
}
%APPDATA%/Claude/claude_desktop_config.jsonYOUR_API_KEY):cat > ~/Library/Application\ Support/Claude/claude_desktop_config.json << 'EOF'
{
"mcpServers": {
"gemini-nanobanana-mcp": {
"command": "npx",
"args": ["gemini-nanobanana-mcp@latest"],
"env": {
"GEMINI_API_KEY": "YOUR_API_KEY"
}
}
}
}
EOF
Just run this one command in your terminal (replace YOUR_API_KEY):
claude mcp add gemini-nanobanana-mcp -s user -e GEMINI_API_KEY="YOUR_API_KEY" -- npx -y gemini-nanobanana-mcp@latest
</details>
<details>
<summary><b>Cursor</b></summary>
Cursor Settings → MCP → Add new MCP Servergemini-nanobanana-mcpnpxgemini-nanobanana-mcp@latestGEMINI_API_KEY = YOUR_API_KEYTry these in Claude:
Your images automatically save to ~/Downloads/gemini-images/
You: Generate a cozy coffee shop interior
Claude: [Generating image...]
Image generated and saved to: ~/Downloads/gemini-images/generate-2025-01-09-14-30-45.png
Size: 1.2MB | Format: PNG
You: Create a sunset landscape and save it as ./my-sunset.png
Claude: Image saved to: ./my-sunset.png
Create any image you can imagine from a text description.
Examples:
"A majestic dragon flying over a medieval castle""Modern minimalist living room with plants""Vintage bicycle on a cobblestone street"Edit existing images with natural language instructions.
How to use:
"Make this image black and white""Add a sunset background to this photo"Combine multiple images into one creative composition.
How to use:
"Combine these images into a collage""Blend these photos together artistically"Apply the artistic style of one image to another.
How to use:
"Apply the style of the second image to the first"| Variable | Default | Description |
|---|---|---|
GEMINI_API_KEY | Required | Your Google AI Studio API key |
AUTO_SAVE | true | Automatically save images when no path specified |
DEFAULT_SAVE_DIR | ~/Downloads/gemini-images | Default directory for saved images |
LOG_LEVEL | info | Logging level (error, warn, info, debug) |
Example with custom settings:
{
"mcpServers": {
"gemini-nanobanana-mcp": {
"command": "npx",
"args": ["gemini-nanobanana-mcp@latest"],
"env": {
"GEMINI_API_KEY": "your-api-key",
"AUTO_SAVE": "true",
"DEFAULT_SAVE_DIR": "~/Pictures/AI-Images",
"LOG_LEVEL": "debug"
}
}
}
}
</details>
<details>
<summary><b>Disable Auto-Save</b></summary>
To only save when you explicitly request it:
{
"env": {
"GEMINI_API_KEY": "your-api-key",
"AUTO_SAVE": "false"
}
}
Then images will only appear in the chat without saving to disk.
</details>Want images to open automatically after generation? Set up Claude Code hooks for instant Quick Look previews!
# Clone this repo and run the installer
git clone https://github.com/nanobanana/nanobanana-mcp.git
cd nanobanana-mcp
bash hooks/install.sh
Full setup guide: hooks/README.md
Solution:
YOUR_API_KEY with your actual API keySolution:
Checklist:
Solution:
Check your configuration has AUTO_SAVE: "true" (default behavior).
If you want to disable auto-save, set it to "false".
Common fixes:
Run as an HTTP server instead of stdio:
MCP_TRANSPORT=http MCP_HTTP_PORT=8080 npx gemini-nanobanana-mcp@latest
Access at http://localhost:8080/mcp
Enable detailed logging:
{
"env": {
"GEMINI_API_KEY": "your-key",
"LOG_LEVEL": "debug"
}
}
</details>
Found a bug? Have a feature idea? Contributions are welcome!
MIT License - feel free to use this in your own projects!
⭐ If this helped you, please star the repository on GitHub!
Built with ❤️ for the Claude community
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.