Gemini CLI Integration with NanoBanana MCP

📘 Complete Guide: Use Ace Data Cloud MCP in Gemini CLI →

Based on Gemini's multimodal image model, it excels at understanding complex instructions, precise editing, and coherent, consistent characters. After connecting to Gemini CLI through MCP, it can be called directly in conversations, without switching windows or copying and pasting.

Get API Token

Create or copy an API Key with access to this service from General Applications in the console. For account applicability, see Gemini CLI Overview.

Get Ace Data Cloud API Key

Configuration

Set the environment variable ACEDATACLOUD_API_TOKEN in the terminal where Gemini CLI is started, using an application API Key authorized to access this service. Execute the following commands in a trusted working directory to register it in personal configuration. Single quotes preserve the variable reference.

gemini mcp add --scope user --transport http nanobanana https://nanobanana.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'
gemini mcp list

After confirming that nanobanana is shown as connected, start gemini from the same terminal.

Usage Examples

Use NanoBanana to generate an orange cat wearing a spacesuit and eating a hamburger on the moon

Turn this portrait photo (link xxx) into an ink wash painting while preserving the person's features

Generate a product image: a steaming cup of coffee, backlighting, wooden table, film texture

Tools

Tool Description
nanobanana_generate_image Text-to-image (nano-banana / 2 / pro)
nanobanana_edit_image Image editing