Nano Banana MCP Integration Guide
MCP (Model Context Protocol) is a model context protocol introduced by Anthropic that allows AI models (such as Claude and GPT) to call external tools through a standardized interface. With the Nano Banana MCP Server provided by AceData Cloud, you can generate and edit AI images directly in AI clients such as Claude Desktop, VS Code, and Cursor.
¶ Feature Overview
Nano Banana MCP Server provides the following core features:
- Image generation — Generate high-quality images from text prompts
- Image editing — Modify existing images or combine multiple images
- Virtual try-on — Put clothing on a person in a photo
- Product placement — Place products in realistic scenes
- Multiple model support — Supports the nano-banana, nano-banana-2, and nano-banana-pro models
- Task queries — Monitor generation progress and retrieve results
¶ Prerequisites
When configuring HTTP manually or running locally, use the application API Key. For clients connecting through OAuth, log in by following the authorization prompts.
Log in to the application list, open General Application, and click the copy button to the right of API KEY.

Replace the Token placeholder in the configuration below with the copied Key. When running locally, you can provide the raw Key through ACEDATACLOUD_API_TOKEN.
¶ Method 1: Use the Hosted MCP Server (Recommended, No Installation)
AceData Cloud already hosts the Nano Banana MCP Server in the cloud. There is no need to install any dependencies locally; simply enter the URL below in your AI client to use it:
https://nanobanana.mcp.acedata.cloud/mcp
Authentication: Add Authorization: Bearer Your API Token to the request header (Claude.ai completes this automatically through OAuth, so there is no need to enter a Token manually).
¶ Claude.ai (Web Version, OAuth Login, Easiest)
- Open Claude.ai → Customize in the bottom-left corner → Connectors → Add More
- Enter the URL:
https://nanobanana.mcp.acedata.cloud/mcp - Complete the OAuth authorization login (you will be automatically redirected to the AceData Cloud login page)
- Return to the conversation interface, and the tools will be ready to use
¶ Claude Desktop
Edit the configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"nanobanana": {
"type": "http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的API Token"
}
}
}
}
Save the file and restart Claude Desktop for the changes to take effect.
¶ Claude Code (Terminal Command Line)
claude mcp add nanobanana --transport http https://nanobanana.mcp.acedata.cloud/mcp \
-H "Authorization: Bearer 你的API Token"
¶ VS Code (GitHub Copilot)
Create .vscode/mcp.json in the project root directory:
{
"servers": {
"nanobanana": {
"type": "http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的API Token"
}
}
}
}
¶ Cursor
Create .cursor/mcp.json in the project root directory:
{
"mcpServers": {
"nanobanana": {
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer 你的API Token"
}
}
}
}
¶ Other MCP-Compatible Clients
Any client that supports the MCP Streamable HTTP protocol (Windsurf, Cline, ChatGPT Connectors, Gemini CLI, JetBrains AI Assistant, etc.) can connect by entering the following two items:
- URL:
https://nanobanana.mcp.acedata.cloud/mcp - Header:
Authorization: Bearer Your API Token
¶ Method 2: Run Locally (pip / uvx Installation)
If you need to run offline, customize the code, or deploy on an internal network, you can install the MCP Server locally and start it through stdio.
¶ Installation
Install with pip (recommended):
pip install mcp-nanobanana-pro
Or install from source:
git clone https://github.com/AceDataCloud/NanoBananaMCP.git
cd NanoBananaMCP
pip install -e .
Once installation is complete, you can use the mcp-nanobanana-pro command to start the service.
¶ Use in Claude Desktop (Local)
Edit the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"nanobanana": {
"command": "mcp-nanobanana-pro",
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
If using uvx (no need to install the package in advance):
{
"mcpServers": {
"nanobanana": {
"command": "uvx",
"args": ["mcp-nanobanana-pro"],
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
Save the configuration and restart Claude Desktop for the changes to take effect.
¶ Use in VS Code / Cursor (Local)
Create .vscode/mcp.json in the project root directory:
{
"servers": {
"nanobanana": {
"command": "mcp-nanobanana-pro",
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
Or use uvx:
{
"servers": {
"nanobanana": {
"command": "uvx",
"args": ["mcp-nanobanana-pro"],
"env": {
"ACEDATACLOUD_API_TOKEN": "你的API Token"
}
}
}
}
¶ Available Tools
| Tool Name | Description |
|---|---|
nanobanana_generate_image |
Generate images from text prompts |
nanobanana_edit_image |
Edit or combine existing images |
nanobanana_get_task |
Query the status of a single task |
nanobanana_get_tasks_batch |
Query the status of tasks in batches |
¶ Usage Examples
Once configured, you can call these features directly in your AI client using natural language, for example:
- “Help me generate a watercolor-style landscape painting”
- “Photoshop this clothing onto this person”
- “Place this product in a café scene”
- “Generate a high-quality portrait using the nano-banana-pro model”
¶ More Information
- GitHub repository: AceDataCloud/NanoBananaMCP
- PyPI package: mcp-nanobanana-pro
- API documentation: Nano Banana API
