nano-banana-mcp
Provides tools for generating, editing, and composing images using Google's Gemini 2.5 Flash Image model.
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., "@nano-banana-mcpgenerate a watercolor image of a cat astronaut"
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.
nano-banana-mcp
Servidor MCP (Model Context Protocol) en TypeScript que expone Nano Banana —el modelo de imagen Gemini 2.5 Flash Image de Google— a Claude. Permite generar, editar y componer imágenes desde Claude Desktop, Claude Code o cualquier cliente MCP.
Capacidades (tools)
Tool | Descripción | Entradas |
| Texto → imagen |
|
| Imagen + texto → imagen (inpainting, estilo, retoques) |
|
| N imágenes + texto → imagen (fusión, composición, transferencia de estilo) |
|
Las imágenes de entrada (image / images) aceptan: ruta a archivo local,
data URL (data:image/png;base64,...) o base64 crudo.
Las imágenes de salida se devuelven inline en base64 en la respuesta del tool.
Related MCP server: NanoBanana MCP
Requisitos
Node.js >= 18
Una API key de Google AI Studio: https://aistudio.google.com/apikey
Instalación
npm install
npm run buildCopia .env.example a .env y coloca tu key:
cp .env.example .env
# edita .env -> GEMINI_API_KEY=...El
.enves solo para desarrollo local. Al conectarlo a un cliente MCP, la key se pasa por la variable de entorno del propio cliente (ver abajo).
Conectar a Claude
Claude Code (CLI)
claude mcp add nano-banana \
-e GEMINI_API_KEY=tu_api_key \
-- node /ruta/absoluta/nano-banana-mcp/dist/index.jsClaude Desktop
Edita claude_desktop_config.json:
{
"mcpServers": {
"nano-banana": {
"command": "node",
"args": ["/ruta/absoluta/nano-banana-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "tu_api_key"
}
}
}
}Reinicia el cliente y pídele, por ejemplo: "genera una imagen de un gato astronauta en acuarela".
Desarrollo
npm run dev # ejecuta con tsx (sin compilar)
npm run typecheck # verifica tipos
npm run build # compila a dist/Prueba rápida del protocolo (sin key, solo lista tools):
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0.0.0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| node dist/index.jsConfiguración
Variable | Requerida | Por defecto | Descripción |
| Sí | — | API key de Google AI Studio |
| No |
| Modelo de imagen a usar |
Ambientes
La configuración por ambiente (local / integración / QA / producción) está
documentada en docs/environments/. Las decisiones de
arquitectura en docs/architecture/.
Notas
En un servidor stdio,
stdoutestá reservado para el protocolo MCP; los logs de diagnóstico van astderr.Nunca comitees tu
.envni la API key (ya está en.gitignore).
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
- Alicense-qualityCmaintenanceAn MCP server that provides image generation using Google's Nano Banana Gemini models, with additional tools for background removal, upscaling, and format conversion via deterministic post-processing.Last updated1MIT
- AlicenseAqualityCmaintenanceMCP server that brings Gemini's image generation and editing capabilities to Claude Desktop, Claude Code, and Cursor. Supports Nano Banana 2 (Flash) and Nano Banana Pro models.Last updated772832MIT
- Flicense-qualityCmaintenanceA remote MCP server that gives Claude the ability to generate and edit images with Google's nano banana (Gemini 2.5 Flash Image) model.Last updated
- Alicense-qualityDmaintenanceMCP server for Google's Nano Banana image generation models (Gemini). Generate and edit images via natural language.Last updated171MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Flux AI image generation
MCP server for Grok Imagine AI video generation
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/vmendezg/nano-banana-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server