原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Nano Banana

作者:codeFi版本 1.2.2i★ –i在你的电脑上运行
注册名称io.github.codeFi/mcp-nano-banana

安装

概览

作者提供的说明(英文原文)

MCP server for Google Nano Banana (Gemini) image generation

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 设计、图片与音频

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add nano-banana --env GEMINI_API_KEY=your-value -- npx -y mcp-nano-banana

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "nano-banana": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "nano-banana": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-nano-banana"
      ],
      "env": {
        "GEMINI_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • GEMINI_API_KEY env
    Google Gemini API key used for image generation requests.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 codeFi 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“设计、图片与音频”中的其他服务器比较i

  • 星标数多于此分类中其他 2800 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2800 个服务器的 12% 更新
  • 基础检查结果等于或优于此分类中其他 2800 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Nano Banana 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.2.2)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Figma Context MCP, Claude Real Video, Figma MCP Server

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Figma Context MCP

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

作者:GLips广泛使用↓ 16.1万/周★ 1.6万5个月前更新

在你的电脑上运行

Claude Real Video

Let any LLM watch a video locally — and search everything it has ever watched.

作者:HUANGCHIHHUNGLeo广泛使用↓ 1106/周★ 22842个月前更新

在你的电脑上运行

Figma MCP Server

The Figma MCP server brings Figma design context directly into your AI workflow.

作者:figma广泛使用★ 215213个月前更新

在云端运行✓ mcp.figma.com

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mcp-nano-banana

MCP server for AI-powered image generation using Google Gemini Nano Banana models. Generate, edit, and combine images from text prompts — directly from your AI coding assistant.

Features

  • Text-to-image generation — Create images from natural language descriptions
  • Image editing — Upload images and modify them with text instructions
  • Multi-image combination — Mix up to 14 reference images into one composite
  • Resolution control — Generate at 512px, 1K, 2K, or 4K resolution
  • 13+ aspect ratios — From square (1:1) to ultra-wide (21:9) and tall (1:8)
  • Auto-fallback — Pro model falls back to Flash on rate limits (429/403/402)
  • File output — Save to specific paths or return inline base64
  • Favicon generation — Generate complete favicon packages with one command
  • Multi-format output — PNG, JPEG, and WebP support

Quick Start

Prerequisites
  1. Get a Gemini API key from Google AI Studio
  2. Enable billing on your Google Cloud project — image generation requires a paid tier (~$0.04-0.05/image for NB2 at standard resolution)
Installation
npm install -g mcp-nano-banana

Set your API key:

export GEMINI_API_KEY=your-api-key

For MCP Registry publication metadata, the registry name is io.github.codeFi/mcp-nano-banana.

MCP Configuration

Codex
codex mcp add nano-banana --env GEMINI_API_KEY=your-api-key -- npx -y mcp-nano-banana@latest

Or add manually to ~/.codex/config.toml:

[mcp_servers.nano-banana]

command = "npx" args = ["-y", "mcp-nano-banana@latest"]

[mcp_servers.nano-banana.env] GEMINI_API_KEY = "your-api-key"

Qwen Code

Add to ~/.qwen/settings.json:

{

"mcpServers": { "nano-banana": { "command": "npx", "args": ["-y", "mcp-nano-banana@latest"], "env": { "GEMINI_API_KEY": "your-api-key" } } } }

Claude Code
claude mcp add nano-banana -e GEMINI_API_KEY=your-api-key -- npx -y mcp-nano-banana@latest

Or add manually to ~/.claude/claude_desktop_config.json:

{

"mcpServers": { "nano-banana": { "command": "npx", "args": ["-y", "mcp-nano-banana@latest"], "env": { "GEMINI_API_KEY": "your-api-key" } } } }

Other MCP Clients

For CLIs and desktop clients that use the standard mcpServers JSON format, register:

{

"mcpServers": { "nano-banana": { "command": "npx", "args": ["-y", "mcp-nano-banana@latest"], "env": { "GEMINI_API_KEY": "your-api-key" } } } }

Local / Development Build
git clone https://github.com/codeFi/mcp-nano-banana.git

cd mcp-nano-banana npm install npm run build

Then register with your MCP client:

{

"mcpServers": { "nano-banana": { "command": "node", "args": ["/path/to/mcp-nano-banana/dist/index.js"], "env": { "GEMINI_API_KEY": "your-api-key" } } } }

Models

ModelMCP NameDescriptionMax Ref Images
gemini-3-pro-image-previewNano Banana ProHigh quality, thinking mode, professional assets6 object + 5 character
gemini-3.1-flash-image-previewNano Banana 2Fast, high-efficiency, 1:4/4:1/1:8/8:1 ratios10 object + 4 character
gemini-2.5-flash-imageNano BananaFastest, optimized for high-volume tasks-

The server defaults to Nano Banana Pro for best quality and automatically falls back to Flash on rate limits.

Available Parameters

Resolution
ValueApprox. PixelsSupported Models
"512"~512pxNano Banana 2 only
"1K"~1024pxAll models
"2K"~2048pxAll models
"4K"~4096pxAll models

Default: "1K"

Aspect Ratio
ValueDimensions at 1KCommon Use Case
1:11024×1024Social posts, icons
16:91344×768Headers, presentations
9:16768×1344Stories, mobile
4:31152×896Desktop, photos
3:4896×1152Portraits
2:3~896×1344Print, magazines
3:2~1344×896Photos
4:5~896×1120Instagram posts
5:4~1120×896Instagram landscape
21:9~2048×878Ultra-wide banners
1:4~512×2048Nano Banana 2 only — tall strips
4:1~2048×512Nano Banana 2 only — wide strips
1:8~512×4096Nano Banana 2 only — extra tall
8:1~4096×512Nano Banana 2 only — extra wide

Tools

generate_image

Generate or edit images from text prompts.

ParameterTypeRequiredDefaultDescription
promptstring✅ Yes—Text description or editing instructions
imagePathsstring[]No—Reference image paths on disk (up to 14)
modelstringNogemini-3-pro-image-previewModel to use
aspectRatiostringNo1:1See table above for all options
resolutionstringNo1K512, 1K, 2K, or 4K
outputFormatstringNopngpng, jpeg, webp
outputPathstringNo—Save image to this file path
Examples

Generate from text:

{

"prompt": "A sunset over mountains with dramatic lighting", "aspectRatio": "16:9", "resolution": "2K", "outputPath": "/Users/currentUser/Desktop/sunset.png" }

Edit an existing image:

{

"prompt": "Change the background to a coffee shop interior", "imagePaths": ["/Users/currentUser/photo.jpg"], "outputPath": "/Users/currentUser/edited.png" }

Combine multiple images:

{

"prompt": "Put these glasses on this person's face", "imagePaths": ["/path/to/face.jpg", "/path/to/glasses.jpg"], "outputPath": "/path/to/result.png" }

High-res wallpaper:

{

"prompt": "A futuristic cityscape at night with neon lights and rain", "aspectRatio": "16:9", "resolution": "4K", "outputPath": "/path/to/wallpaper.png" }

generate_favicons

Generate a complete favicon package from a prompt or existing image.

ParameterTypeRequiredDefaultDescription
promptstringNo\*—Icon description (required if imagePath not set)
imagePathstringNo\*—Path to existing master icon image
modelstringNogemini-3-pro-image-previewModel for prompt generation
outputDirstringNo—Directory for individual favicon files
outputPathstringNo—Save ZIP package to this path
returnZipBase64booleanNofalseReturn ZIP as base64 text
appNamestringNoMy AppManifest name
shortNamestringNoAppManifest short_name
themeColorstringNo#ffffffManifest theme color
backgroundColorstringNo#ffffffManifest background color
includeReadmebooleanNotrueInclude README.md in package
Example
{

"prompt": "A minimalist banana icon with a soft gradient", "outputDir": "/path/to/favicon", "outputPath": "/path/to/favicon.zip", "appName": "MyBrand", "shortName": "Brand", "themeColor": "#1a1a2e", "backgroundColor": "#ffffff" }

Generated files:

  • favicon.ico — Multi-size icon (16/32/48px)
  • favicon-16x16.png — Browser tabs
  • favicon-32x32.png — Higher-res tabs
  • apple-touch-icon.png — iOS home screen
  • android-chrome-192x192.png — Android
  • android-chrome-512x512.png — Android HD
  • site.webmanifest — PWA manifest

HTML snippet (included in response):

<link rel="icon" href="/favicon.ico" sizes="any">

Pricing

Image generation requires a paid Google AI Studio account. Approximate costs:

Model1K2K4K
Nano Banana 2~$0.04~$0.08~$0.15
Nano Banana Pro~$0.06~$0.13~$0.24

You only pay for what you generate — no monthly minimum.

Supported Image Formats

Input (reference images): png, jpg, jpeg, webp, gif Output: png, jpeg, webp

Development

# Build TypeScript

npm run build

Watch mode

npm run dev

Run tests

npm test

Run the server directly

node dist/index.js

Troubleshooting

IssueSolution
GEMINI_API_KEY is not setExport the env var or add it to your MCP config
429 Too Many RequestsServer auto-falls back to Flash model. Add billing to your account.
403/402 Quota exceededEnable billing at Google Cloud Console
503 UnavailableHigh demand — retry in a moment. Common with 4K requests.
Image not updating after editMake sure you rebuilt the TypeScript (npm run build)
imagePaths not foundUse absolute paths. Relative paths may not resolve correctly.

Architecture

AI Assistant (MCP Client)

│ (MCP Protocol over stdio) ▼ mcp-nano-banana Server │ (HTTPS POST) ▼ Google Gemini API │ ▼ Generated Image → saved to outputPath (or returned inline base64)

License

MIT

Author

codeFi

问 PopNx