NanoBananaMCP < mcp-name: io.github.AceDataCloud/mcp-nanobanana-pro A Model Context Protocol (MCP) server for AI image generation and editing using Google's Nano Banana model through the AceDataCloud API.
NanoBananaMCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server for AI image generation and editing using Google's Nano Banana model through the AceDataCloud API.
Generate and edit AI images directly from Claude, VS Code, or any MCP-compatible client.
Features
- **Image Generation** - Create high-quality images from text prompts
- **Image Editing** - Modify existing images or combine multiple images
- **Virtual Try-On** - Put clothing on people in photos
- **Product Placement** - Place products in realistic scenes
- **Task Tracking** - Monitor generation progress and retrieve results
Tool Reference
| Tool | Description |
|------|-------------|
| nanobanana_generate_image | Generate an AI image from a text prompt using Google's Nano Banana model. |
| nanobanana_edit_image | Edit or combine images using AI based on a text prompt. |
| nanobanana_get_task | Query the status and result of an image generation or edit task. |
| nanobanana_get_tasks_batch | Query multiple image generation/edit tasks at once. |
Connect: hosted OAuth, API token, or local stdio
The hosted endpoint is https://nanobanana.mcp.acedata.cloud/mcp. Choose one route for the MCP client:
| Route | When to use it | Credential setup |
|---|---|---|
| Hosted OAuth | The client supports remote MCP OAuth | Add only the URL, then sign in to AceDataCloud and approve access. No token needs to be pasted into client configuration. |
| Hosted API token | The client cannot finish OAuth, or you need an explicit integration credential | Send an AceDataCloud API token in the Authorization: Bearer … header. Keep it in a local secret store or environment variable. |
| Local stdio | The client runs a local MCP process | Install mcp-nanobanana-pro and pass ACEDATACLOUD_API_TOKEN to that process. It still calls the AceDataCloud API. |
The hosted service advertises OAuth metadata and Dynamic Client Registration (DCR). **DCR registers the client application; it is not an API key.** OAuth signs you in and the client sends the resulting Bearer token; it may reuse or create an API credential for the account. Browser sign-in still requires an AceDataCloud account. The hosted service can be metered: review current service documentation and displayed pricing before a real operation. Do not configure both an OAuth login and a fixed Authorization header for the same server.
Hosted OAuth examples
- **Claude and Claude Desktop chat:** Add a remote custom connector in Customize → Connectors → Add custom connector, enter https://nanobanana.mcp.acedata.cloud/mcp, select sign-in, and choose **Register automatically** if Claude asks how to register its OAuth client. Complete consent. Claude Desktop's local claude_desktop_config.json is a separate setup. Claude connector guide.
- **Claude Code:** claude mcp add --transport http --scope user nanobanana https://nanobanana.mcp.acedata.cloud/mcp, then claude mcp login nanobanana. Check /mcp. Claude Code MCP guide.
- **Cursor:** Add a remote server with only https://nanobanana.mcp.acedata.cloud/mcp. For a project, merge the entry below into /.cursor/mcp.json; for personal use, use ~/.cursor/mcp.json. Cursor MCP guide.
- **VS Code / Copilot:** Run **MCP: Add Server**, select HTTP, enter https://nanobanana.mcp.acedata.cloud/mcp, then finish the browser sign-in. New portable workspace configs use /.mcp.json; the VS Code-specific format below uses /.vscode/mcp.json or the user profile. Check **MCP: List Servers**. VS Code MCP setup.
- **Codex:** codex mcp add nanobanana --url https://nanobanana.mcp.acedata.cloud/mcp, then codex mcp login nanobanana. Its user settings are in ~/.codex/config.toml. Official Codex MCP guide.
Cursor project config (OAuth):
VS Code-specific workspace config (OAuth):
Hosted API token
1. Open Ace Data Cloud → Applications. Sign in, or register an account first.
2. Find **General application**. If it has not been created, choose **Initialize General Application**. A general key can use the services available to your account; a dedicated application's key is limited to its service. Check the required service/model access and current pricing.