
Nano Banana
io.github.mindstone由 GitHub 帳號 mindstone 發布v0.5.0更新於 Nov 3, 2026
Nano Banana MCP server — Google Gemini image generation and editing via Model Context Protocol
概覽
本機 MCP 伺服器,讓助理用 Google Gemini 模型生成與編輯圖片,並存到工作區資料夾。
- 可以做什麼
- 依文字描述生成圖片,可選擇 Gemini 圖像模型與輸出解析度。
- 編輯或合成既有圖片,最多可引用 14 張來自工作區路徑或 HTTPS 網址的參考圖。
- 將結果存到工作區指定路徑,檔案僅擁有者可讀寫,且不會覆蓋既有檔案。
- 透過設定工具儲存 Gemini API 金鑰,不必手動改設定檔。
- 適用情境
- 適合讓助理在對話中依提示詞產生插圖、示意圖或變體,或對現有圖片進行編輯、組合與放大,而不必切換到其他工具。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 20+ 與 npm。需在 GEMINI_API_KEY 提供 Google Gemini API 金鑰。可選設定:MCP_WORKSPACE_PATH 指定圖片儲存目錄,以及逾時覆寫 NANO_BANANA_GEMINI_TIMEOUT_MS 與 NANO_BANANA_BRIDGE_TIMEOUT_MS。需要可連線至 Google Gemini API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Nano Banana,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@mindstone/mcp-server-nano-banana
[npm version] [License: FSL-1.1-MIT]
Nano Banana MCP server — Google Gemini image generation and editing via Model Context Protocol. Generate images from text descriptions and edit existing images using Google Gemini's AI capabilities.
Status
- Version: 0.5.0 · npm
- Auth: API key (
GEMINI_API_KEY) - Tools: 3 (image-generation, image-editing)
- Surface: cloud-api
- Machine-readable:
STATUS.json
Requirements
- Node.js 20+
- npm
One-click install
[Add to Cursor] [Add to VS Code] [Add to VS Code Insiders]
After clicking the button, your host will prompt you to fill: GEMINI_API_KEY, NANO_BANANA_GEMINI_TIMEOUT_MS, NANO_BANANA_BRIDGE_TIMEOUT_MS.
Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (Nano Banana)
Quick Start
Install & build
npx (once published)
Local
Configuration
Environment variables
GEMINI_API_KEY— Google Gemini API keyMCP_WORKSPACE_PATH— optional workspace path for saving generated imagesMCP_HOST_BRIDGE_STATE— optional path to a host bridge state file used for credential managementMINDSTONE_REBEL_BRIDGE_STATE— backwards-compatible alias forMCP_HOST_BRIDGE_STATENANO_BANANA_GEMINI_TIMEOUT_MS— optional override (positive integer ms) for the outbound Gemini request timeout. Default:180000(3 min). Increase this if you usegemini-3-pro-imageand seeTIMEOUTerrors on slow generations; decrease it if you want tighter bounds.NANO_BANANA_BRIDGE_TIMEOUT_MS— optional override (positive integer ms) for requests to the host bridge. Default:30000.
Host configuration examples
Claude Desktop / Cursor
Local development (no npm publish needed)
Tools (3)
Configuration
configure_nano_banana_api_key— Save your Gemini API key for image generation
Image generation
nano_banana_generate— Generate images from text descriptionsnano_banana_edit— Edit existing images using AI; accepts up to 14 reference images (source_image_paths) for multi-image composition/fusion. Each source may be a workspace file path or anhttps://URL — every source is capped at 20MB per image (local files included) with a combined-size cap across sources, and remote fetches are SSRF-guarded (HTTPS only, no userinfo, private/loopback/link-local hosts refused with DNS re-validation, redirects re-validated per hop, PNG/JPEG/WebP only)
Both image tools accept an optional save_path inside the workspace. Saves never overwrite: if a file (or symlink) already exists at save_path, the tool returns a SAVE_EXISTS error (with the image still included inline) — choose a different path or delete the existing file. Saved files are written owner-only (0600).
Generated and edited output is identified from its bytes before it is returned or saved. PNG, JPEG, and WebP are supported; other or unrecognised formats (including GIF) return a structured UNSUPPORTED_IMAGE_FORMAT error instead of being relabelled.
Output resolution
Both image tools accept an optional image_size parameter ("1K", "2K", or "4K"; default "1K" ≈ 1024px). Higher resolutions are only honoured by the Gemini 3 image models (gemini-3.1-flash-image, the default, gemini-3-pro-image and gemini-nano-banana-2.1); the legacy gemini-2.5-flash-image always produces ~1K output and rejects an explicit image_size.
gemini-nano-banana-2.1 (Nano Banana 2.1) can be chosen with model; it is not the default. Google enables thinking on it by default (level medium, billed), so it is slower than gemini-3.1-flash-image. It takes 1K, 2K or 4K.
The model parameter also accepts the retired preview ids gemini-3.1-flash-image-preview and gemini-3-pro-image-preview, which Google shut down on 2026-06-25; a request naming one is sent as its generally available id (gemini-3.1-flash-image, gemini-3-pro-image).
Licence
FSL-1.1-MIT — Functional Source License, Version 1.1, with MIT future licence. The software converts to MIT licence on 2030-04-08.
來源:connectors/nano-banana/README.md,提交 9b9aa57
工具
0版本歷史
2- v0.5.0最新Nov 3, 2026
- v0.4.1Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。