An MCP server that provides image generation and editing capabilities
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"nanobanana": {
"env": {
"GEMINI_API_KEY": "your-gemini-api-key-here"
},
"args": [
"nanobanana-mcp-server@latest"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A production-ready Model Context Protocol (MCP) server that provides AI-powered image generation capabilities through Google's Gemini models with intelligent model selection.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'nanobanana-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked nanobanana-mcp-server against OSV.dev.
Click any tool to inspect its schema.
templatesBrowse pre-built prompt templates for photography, design, and editing
nanobanana://templates
file_metadataBrowse uploaded file metadata through MCP resources
nanobanana://files
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in design / ai-ml
Persistent memory using a knowledge graph
Dynamic problem-solving through sequential thought chains
MCP server for accessing Figma plugin console logs and screenshots via Cloudflare Workers or local mode
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
MCP Security Weekly
Get CVE alerts and security updates for io.github.zhongweili/nanobanana-mcp-server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A production-ready Model Context Protocol (MCP) server that provides AI-powered image generation capabilities through Google's Gemini models with intelligent model selection.
Nano Banana 2 (gemini-3.1-flash-image-preview) is now the default model — delivering Pro-level quality at Flash speed:
Option 1: From MCP Registry (Recommended) This server is available in the Model Context Protocol Registry. Search for "nanobanana" or use the MCP name below with your MCP client.
mcp-name: io.github.zhongweili/nanobanana-mcp-server
Option 2: Using uvx
uvx nanobanana-mcp-server@latest
Option 3: Using pip
pip install nanobanana-mcp-server
Nano Banana supports two authentication methods via NANOBANANA_AUTH_METHOD:
api_key): Uses GEMINI_API_KEY. Best for local development and simple deployments.vertex_ai): Uses Google Cloud Application Default Credentials. Best for production on Google Cloud (Cloud Run, GKE, GCE).auto): Defaults to API Key if present, otherwise tries Vertex AI.Set GEMINI_API_KEY environment variable.
Required environment variables:
NANOBANANA_AUTH_METHOD=vertex_ai (or auto)GCP_PROJECT_ID=your-project-idGCP_REGION=global (default; required for Gemini 3 Pro Image and NB2. Use us-central1 only for the legacy 2.5 Flash Image model.)Prerequisites:
gcloud services enable aiplatform.googleapis.comroles/aiplatform.user to the service account.Add to your claude_desktop_config.json:
{
"mcpServers": {
"nanobanana": {
"command": "uvx",
"args": ["nanobanana-mcp-server@latest"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key-here"
}
}
}
}
I