Nano Banana Mcp

io.github.fjacquetv3.2.1更新於 Oct 11, 2026

AI image generation and editing with Google Gemini: Nano Banana 2.1, Pro and Lite models

已驗證STDIO僅桌面AI & MLMedia & Design

概覽

AI 產生的概覽

讓助理透過 Google Gemini 圖像模型生成並反覆編輯圖片,需使用 Gemini API 金鑰。

功能
這個本機 MCP 伺服器提供 AI 圖像相關工具:generate_image 依文字提示生成新圖片,edit_image 修改現有圖片並可附上參考圖,continue_editing 對上一張圖片反覆編輯。另有 get_last_image_info 查詢上一張圖片資訊、configure_gemini_token 設定 API 金鑰、get_configuration_status 檢查設定狀態。生成與編輯工具都接受選用的 model 參數,用來在多個 Gemini 圖像模型之間選擇。
適用情境
適合想在 Claude Code、Cursor 等 MCP 用戶端中,用自然語言提示讓助理建立或修改圖片,並對同一張圖片進行多步驟編輯的情境。適用於把圖像生成當成任務一部分的桌面工作流程。
執行需求
以 stdio 方式在本機執行,需要 Node.js 18 或更新版本以及 npx。必須提供來自 Google AI Studio 的 Gemini API 金鑰,可透過 GEMINI_API_KEY 環境變數傳入,或稍後用 configure_gemini_token 工具設定。需要連線至 Google Gemini API 的網路。
安裝前請注意
伺服器需要 GEMINI_API_KEY 密鑰,該密鑰可存取你的 Google AI Studio 帳戶,並可能在該帳戶產生使用費用。圖像提示詞以及你傳入的參考圖會送往 Google 的 Gemini API。configure_gemini_token 工具可在執行時設定密鑰,因此執行中的行程會持有該憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Nano Banana Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Nano-Banana MCP Server

[npm version] [CI] [License: MIT] [Node.js >= 18] [Release] [License]

An MCP server for AI image generation and editing using Google Gemini. Works with Claude Code, Cursor, and other MCP clients.

Models supported:

Brand nameModel IDNotes
Nano Banana 2.1gemini-nano-banana-2.1Default — pro quality at Flash speed
Nano Banana Progemini-3-pro-imageHighest quality, advanced reasoning
Nano Banana 2gemini-3.1-flash-imagePrevious default
Nano Banana 2 Litegemini-3.1-flash-lite-imageFastest and cheapest — 1K output only
Nano Bananagemini-2.5-flash-imageLegacy — shut down by Google on 2027-03-15

Quick Start

  1. Get a Gemini API key from Google AI Studio

  2. Add to your MCP client config (Claude Code example):

json
{  "mcpServers": {    "nano-banana": {      "command": "npx",      "args": ["-y", "github:fjacquet/Nano-Banana-MCP"],      "env": {        "GEMINI_API_KEY": "your-key-here"      }    }  }}

See docs/configuration.md for Cursor and other MCP clients.

  1. Use the tools:
Generate an image of a sunset over mountainsEdit this image to add some birds in the skyContinue editing to make it more dramatic

Tools

ToolDescription
generate_imageCreate new images from text prompts
edit_imageModify existing images with optional reference images
continue_editingIteratively edit the last image
get_last_image_infoGet info about the last image
configure_gemini_tokenSet API key
get_configuration_statusCheck configuration

All generation/editing tools accept an optional model parameter to choose between the two models.

See docs/tools.md for full API reference, docs/configuration.md for setup details, and docs/workflows.md for usage patterns.

Development

bash
npm installnpm run dev          # Run with tsxnpm run build        # Compile TypeScriptnpm test             # Run testsnpm run lint         # Lintnpm run typecheck    # Type-check

Requires Node.js >= 18.0.0.

License

MIT — see LICENSE.

Fork of ConechoAI/Nano-Banana-MCP.

來源:README.md,提交 dd44598

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v3.2.1最新Oct 11, 2026