Nano Banana MCP logo

Nano Banana MCP

Community
charlesdove977

This is the newest updated nano banana MCP for Claude Code.

Publishercharlesdove977
Repositorynanobanana-mcp
Forks
10
Stars
40
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Nano Banana MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    40 stars and 10 forks from the linked repository.


What is this?

A fork of nano-banana-mcp with one critical upgrade: configurable model selection via environment variable.

The original package hardcodes gemini-2.5-flash-image-preview (shut down January 2026). This fork defaults to gemini-3.1-flash-image-preview and lets you swap models without touching code.

Features

  • Generate images from text prompts
  • Edit existing images with natural language
  • Iterative editing (continue refining the last image)
  • Multi-image reference support (style transfer, combining elements)
  • Configurable aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 4:5, 5:4, 21:9, and more)
  • Configurable Gemini model via GEMINI_MODEL env var

Setup

Claude Code / Cursor

Add to your .mcp.json:

json
{
  "mcpServers": {
    "nano-banana": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/nanobanana-mcp/dist/index.js"],
      "env": {
        "GEMINI_API_KEY": "your-api-key-here",
        "GEMINI_MODEL": "gemini-3.1-flash-image-preview"
      }
    }
  }
}

Install Dependencies

bash
git clone https://github.com/charlesdove977/nanobanana-mcp.git
cd nanobanana-mcp
npm install

Get a Gemini API Key

  1. Go to Google AI Studio
  2. Create a new API key
  3. Add it to your MCP config as GEMINI_API_KEY

Models

Set GEMINI_MODEL in your env to any of these (or omit it to use the default):

Model IDTierPriceBest For
gemini-3.1-flash-image-previewFlash (default)~$0.045/imgSpeed + quality balance
gemini-3-pro-image-previewPro~$0.134/imgHighest quality, best text rendering
gemini-2.5-flash-imageLegacy Flash~$0.039/imgBudget, high-volume

All models support both generation and editing through the same API.

Tools

ToolDescription
generate_imageCreate a new image from a text prompt (optional aspectRatio)
edit_imageModify an existing image file with a prompt (optional aspectRatio)
continue_editingKeep refining the last generated/edited image (optional aspectRatio)
get_last_image_infoCheck the path and size of the last image
configure_gemini_tokenSet API key at runtime
get_configuration_statusCheck if API key is configured

Aspect Ratios

All image tools accept an optional aspectRatio parameter. Supported values:

1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9 1:4 1:8 4:1 8:1

Examples

Generate (default 1:1):

"A futuristic city skyline at sunset with flying cars"

Generate (16:9 widescreen):

prompt: "A futuristic city skyline at sunset with flying cars", aspectRatio: "16:9"

Edit:

Edit photo.png: "Remove the background and replace with a gradient"

Continue editing:

"Make the colors more vibrant and add lens flare"

Image Storage

Generated images are saved to ./generated_imgs/ in your working directory (macOS/Linux) or ~/Documents/nano-banana-images/ (Windows).

Credits

Forked from ConechoAI/Nano-Banana-MCP. Updated with configurable model support and latest Gemini models.

License

MIT

Installation

TypingMind
{
  "mcpServers": {
    "nanobanana-mcp": {
      "command": "node",
      "args": [
        "/path/to/nanobanana-mcp/dist/index.js"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Use Nano Banana MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Nano Banana MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Nano Banana MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Nano Banana MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "nanobanana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "nanobanana-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Nano Banana MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Nano Banana MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Nano Banana MCP to help me with this task?
Nano Banana MCP
Sure. I read it.
Here is what I found using Nano Banana MCP.

Frequently asked questions

What is the Nano Banana MCP MCP server used for?

Nano Banana MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Nano Banana MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Nano Banana MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Nano Banana MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Nano Banana MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Nano Banana MCP MCP to TypingMind?

Nano Banana MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Nano Banana MCP MCP provide in TypingMind?

Nano Banana MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Nano Banana MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Nano Banana MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇