mcpField
N
Nano Banana Ai Image Generator

Nano Banana Ai Image Generator

Local
github.com/nanana-appMedia & Design10Updated 55w ago

About Nano Banana Ai Image Generator

Nano Banana Ai Image Generator is an MCP server for Claude Desktop and other MCP clients that use Nanana AI's Google Gemini nano banana model. It provides text-to-image generation and prompt-guided image transformation, using an account API token.

Key features

  1. 01Generate images from text prompts
  2. 02Transform images using text prompts
  3. 03Accept 1–9 image URLs for transformation

Use cases

  1. 01Create an image from a written description
  2. 02Restyle existing images using a prompt

MCP support

Exposes text-to-image and image-to-image tools to MCP clients, backed by Nanana AI's image generation service.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": [
"-y",
"@nanana-ai/mcp-server-nano-banana"
],
"env": {
"NANANA_API_TOKEN": "<NANANA_API_TOKEN>"
}
}
}
}
Run commandnpx -y @nanana-ai/mcp-server-nano-banana
Environment variables to set
NANANA_API_TOKENSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@nanana-ai/mcp-server-nano-banana

Tools

2

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
promptstringYesThe text prompt describing the image to generate

Details

From the project README

@nanana-ai/mcp-server-nano-banana

MCP (Model Context Protocol) server for Nanana AI image generation service powered by Google Gemini's nano banana model. This server allows Claude Desktop and other MCP clients to generate and transform images using nano banana's powerful image generation capabilities.

Installation

npm install -g @nanana-ai/mcp-server-nano-banana

Configuration

1. Get your API token
  1. Visit nanana.app and sign in
  2. Go to your account dashboard
  3. Generate an API token in the "API Access" section
  4. Copy and save the token (it will only be shown once)
2. Configure Claude Desktop

Add the server to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "nanana": {
      "command": "npx",
      "args": ["-y", "@nanana-ai/mcp-server-nano-banana"],
      "env": {
        "NANANA_API_TOKEN": "your-api-token-here"
      }
    }
  }
}
3. Restart Claude Desktop

After saving the config file, restart Claude Desktop to load the MCP server.

Available Tools

text_to_image

Generate an image from a text prompt.

Parameters:

  • prompt (string, required): The text description of the image to generate

Example:

Generate an image of a cute cat wearing a hat
image_to_image

Transform existing images based on a text prompt.

Parameters:

  • imageUrls (array of strings, required): 1-9 image URLs to transform
  • prompt (string, required): The text description of how to transform the images

Example:

Transform these images to look like oil paintings: ["https://example.com/image1.jpg"]

Environment Variables

  • NANANA_API_TOKEN (required): Your Nanana AI API token
  • NANANA_API_URL (optional): Custom API URL (defaults to https://nanana.app)

Development

Local Testing
  1. Clone the repository
  2. Install dependencies: npm install
  3. Build: npm run build
  4. Test locally by updating Claude Desktop config to point to the built file:
{
  "mcpServers": {
    "nanana": {
      "command": "node",
      "args": ["/path/to/packages/mcp-server/dist/index.js"],
      "env": {
        "NANANA_API_TOKEN": "your-token",
        "NANANA_API_URL": "http://localhost:3000"
      }
    }
  }
}
Build
npm run build
Watch mode
npm run dev

Credits and Pricing

Image generation with nano banana consumes credits from your Nanana AI account. Check your dashboard at nanana.app/account to view your credit balance and purchase more credits if needed.

Support

For issues and questions:

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.