Is the Nano Banana MCP server safe? What it can reach
What the Nano Banana MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Nano Banana is Google’s Gemini 2.5 Flash Image model, and the most used MCP server for it is the community ConechoAI project. It runs locally with your Gemini API key and can generate and edit images from local file paths. The control that matters most is a dedicated Gemini key with a spend limit.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| ConechoAI/Nano-Banana-MCP (community) | Community | active |
It runs as a local process on your machine.
How it signs in
A Gemini API key from Google AI Studio, read from GEMINI_API_KEY in the MCP config, then the system environment, then a local .nano-banana-config.json file. Calls run on your Google account and billing.
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_last_image_info, get_configuration_status |
| Write | generate_image, edit_image, continue_editing, configure_gemini_token |
| Can’t be undone | none documented |
The README says the project was generated by Claude Code. The repository has had no push since November 2025.
Built-in limits
| Option | What it does |
|---|---|
GEMINI_API_KEY in MCP config | The README ranks the key in the MCP client config highest and calls it the most secure option, over a shell variable or the local config file. |
Output location | Images are saved to ./generated_imgs/ on macOS and Linux, to Documents\nano-banana-images on Windows, or to ~/nano-banana-images when run from a system path. The README documents no way to restrict input paths. |
The risks
- edit_image and its referenceImages option take local file paths, so an injected instruction could send any image file the process can read to the Gemini API.
- Every generate and edit call uses your Gemini key and billing, so a looped or injected request can run up charges.
- configure_gemini_token writes your key to .nano-banana-config.json in the current directory, which can end up next to project files.
- This is a community project with no push in over a year, and the README documents no input-path limits.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --env GEMINI_API_KEY=... nano-banana -- npx nano-banana-mcpClaude Code names MCP tools mcp__nano-banana__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__nano-banana__configure_gemini_token"
],
"ask": [
"mcp__nano-banana__generate_image",
"mcp__nano-banana__edit_image",
"mcp__nano-banana__continue_editing"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.nano-banana]
command = "npx"
args = ["nano-banana-mcp"]
env_vars = ["GEMINI_API_KEY"]
disabled_tools = ["configure_gemini_token"]Checklist
- Create a Gemini key just for this server and cap its spend.
- Set the key in the MCP config env, not with configure_gemini_token.
- Deny configure_gemini_token in your client.
- Run it from a folder that holds no private images.
Checked against the vendor documentation on November 25, 2026. Nano-Banana-MCP README · Google AI Studio API keys (linked from the README)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing