About Nanobanana MCP
Nanobanana MCP is an MCP server published by YCSE in the AI category: gemini Vision & Image Generation MCP for Claude Desktop and Claude Code. Conduid read 7 tools from its source: clear_conversation, gemini_chat, gemini_edit_image, gemini_generate_image, get_image_history, set_aspect_ratio and 1 more. It is published to npm as @ycse/nanobanana-mcp and starts with npx.
The repository has 32 stars and 6 forks, is licensed MIT, and its last commit was on 3 Mar 2026. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include cloudflare-workers and image-generation.
Install
claude mcp add nanobanana-mcp -- npx -y @ycse/nanobanana-mcpnpx -y @ycse/nanobanana-mcpgit clone https://github.com/YCSE/nanobanana-mcpTools (7)
clear_conversationReset session context| Parameter | Type | Description |
|---|---|---|
| conversation_id * | string | The conversation ID to clear |
gemini_chatMulti-turn conversation with images| Parameter | Type | Description |
|---|---|---|
| conversation_id | string | Optional conversation ID for maintaining context and accessing image history |
| images | array | Array of image paths to include in the chat (max 10). Supports file paths, 'last', or 'history:N' references. |
| message * | string | The message to send to Gemini |
| system_prompt | string | Optional system prompt to guide the model's behavior |
gemini_edit_imageEdit images with natural language| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Aspect ratio for the edited image. Overrides session setting if provided. |
| conversation_id | string | Session ID for accessing image history and maintaining consistency |
| edit_prompt * | string | Instructions for how to edit the image |
| enable_google_search | boolean | Enable Google Search for real-world reference grounding |
| image_path * | string | Path to the original image. Use 'last' for most recent generated image, or 'history:N' (e.g., 'history:0') to reference by index |
| output_path | string | Optional output path. If not provided, saves to ~/Documents/nanobanana_generated/ |
| reference_images | array | Additional reference images for style consistency (max 10). Supports file paths, 'last', or 'history:N' references. |
gemini_generate_imageGenerate images from text prompts| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Aspect ratio for the generated image. Overrides session setting if provided. |
| conversation_id | string | Session ID for maintaining image history and consistency across generations |
| enable_google_search | boolean | Enable Google Search for real-world reference grounding |
| output_path | string | Optional path where to save the generated image. If not provided, saves to ~/Documents/nanobanana_generated/ |
| prompt * | string | Description of the image to generate |
| reference_images | array | Array of file paths to reference images for style/character consistency |
| use_image_history | boolean | If true, includes previous generated images from this session for style/character consistency |
get_image_historyView session image history| Parameter | Type | Description |
|---|---|---|
| conversation_id * | string | The session ID to get image history for |
set_aspect_ratioRequired. Set aspect ratio before image generation| Parameter | Type | Description |
|---|---|---|
| aspect_ratio * | string | The aspect ratio to use for image generation/editing |
| conversation_id | string | Session ID to apply this setting to (default: 'default') |
set_modelSwitch between flash/pro models at runtime| Parameter | Type | Description |
|---|---|---|
| conversation_id | string | Session ID to apply this setting to (default: 'default') |
| model * | string | Model to use: 'flash' (gemini-3.1-flash-image-preview) or 'pro' (gemini-3-pro-image-preview) |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 752 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 2 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:51
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 1 callsrc/index.ts:122
- Writes or deletes files
- 7 callssrc/index.ts:34, src/index.ts:37, src/index.ts:263
- Lockfile
- package-lock.json
Pattern matches on the source text of 2 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 752 words, fetched a month ago. The original in the repository is authoritative.
Read full README