Nano Banana image generation and editing server for Cursor, Claude Code and other MCP clients.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add nano-banana --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx nano-banana-mcp~/.codex/config.toml
[mcp_servers.nano-banana]
command = "npx"
args = ["nano-banana-mcp"]
env = { GEMINI_API_KEY = "<GEMINI_API_KEY>" }
# codex mcp add nano-banana --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx nano-banana-mcp~/.cursor/mcp.json
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": [
"nano-banana-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"nano-banana": {
"type": "stdio",
"command": "npx",
"args": [
"nano-banana-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": [
"nano-banana-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": [
"nano-banana-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": [
"nano-banana-mcp"
],
"env": {
"GEMINI_API_KEY": "<GEMINI_API_KEY>"
}
}
}
}Environment variables
GEMINI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.