How to Use NanoBanana MCP from Claude Code for Image Editing Workflows

If you already live in the terminal while building, the awkward part of making product visuals is usually not the prompt writing — it is leaving your coding flow, uploading images somewhere else, copying results back, and trying to keep context intact.
NanoBanana MCP gives Claude Code a direct tool path for image generation, image editing, and multi-image composition. In practice, that means you can ask Claude Code to create a 404 illustration, remove unwanted text from a screenshot, or combine the object from one image with the scene from another without switching out of the project context.
What you can do
The Ace Data Cloud NanoBanana MCP document describes two callable tools inside Claude Code:
nanobanana_generate_image— text-to-image generation.nanobanana_edit_image— image editing, including multiple image input.
The most useful part for builders is the editing workflow. NanoBanana is described as understanding image content well enough to reason about relationships between inputs. For example, you can provide two images and ask it to place an item from image A into the scene from image B, while adjusting angle and lighting so the result looks natural.
How it works
Claude Code supports MCP servers over HTTP. Once the NanoBanana MCP server is registered, Claude Code can keep working from the terminal while calling the remote image tools when the task requires them.
The documented server URL is:
https://nanobanana.mcp.acedata.cloud/mcp
Authentication uses an Ace Data Cloud API token passed as an HTTP authorization header. The document is explicit about token hygiene: examples should use a masked placeholder such as YOUR_ACEDATACLOUD_API_KEY, and real tokens should not be pasted into public repositories, issues, screenshots, or chat records.
Choose the right Claude Code scope
The same MCP server can be added with three different Claude Code scopes. The choice is less about NanoBanana itself and more about how widely you want the configuration to apply.
local: use this for a single project or a quick trial. Claude Code writes the record into local configuration together with the current project path.user: use this when you want NanoBanana available across projects opened with Claude Code.project: use this for a team project. Claude Code writes configuration into.mcp.jsonin the project root. Do not commit a real token to a public repository; use a placeholder or have each teammate add their own token locally.
Add NanoBanana MCP to the current project
For a first test, I would start with the local scope. It limits the configuration to the project you are currently working in and keeps the experiment contained.
claude mcp add nanobanana --transport http https://nanobanana.mcp.acedata.cloud/mcp -H "Authorization: Bearer YOUR_ACEDATACLOUD_API_KEY" -s local
Two small details matter here. First, -H must be uppercase because lowercase -h is help. Second, replace only the token placeholder after Authorization: Bearer; keep the header format intact.
If you later decide this should be available everywhere, use the same command with -s user:
claude mcp add nanobanana --transport http https://nanobanana.mcp.acedata.cloud/mcp -H "Authorization: Bearer YOUR_ACEDATACLOUD_API_KEY" -s user
For shared project configuration, use -s project:
claude mcp add nanobanana --transport http https://nanobanana.mcp.acedata.cloud/mcp -H "Authorization: Bearer YOUR_ACEDATACLOUD_API_KEY" -s project
When Claude Code reads project-level MCP configuration for the first time, it may show Pending approval. The document treats this as a normal security prompt; confirm trust inside the Claude Code session if the project configuration is expected.
Verify the connection before asking for images
Before you rely on the tools in a workflow, run:
claude mcp list
A healthy setup should show nanobanana with ✓ Connected. If it does not, debug the simple things first: the token, the service URL, and the selected configuration scope. The document also warns not to judge the current state by old client versions or fixed tool counts.
Use it in real builder workflows
Once connected, you do not need to call the tool names manually every time. You can describe the intent in natural language and let Claude Code choose the appropriate NanoBanana tool.
Compose product images
For product mockups, the multi-image behavior is the most interesting path. A prompt from the document looks like this:
Place the phone from the first image onto the desk in the second image, adjusting the angle and lighting to make it look natural.
This is useful when you have a clean object shot and a target environment, such as a desk, landing-page hero scene, or app showcase background.
Clean up screenshots
For documentation and release notes, screenshots often contain distracting text, watermarks, or UI fragments. The documented workflow is direct:
Edit this image to remove the text watermark in the lower right corner, filling it with the background.
That kind of request fits naturally after Claude Code has helped update a README, write a changelog, or prepare a blog post.
Generate small page illustrations
NanoBanana can also be used when no source image is needed. For example, the document suggests generating a 404 page illustration:
Generate an illustration of a small dinosaur squatting next to a crack in the ground looking down, to be used for a 404 page.
The important habit is to keep the prompt tied to the UI context: where the image will appear, what mood it should carry, and what constraints matter for the page.
A practical first run
Here is a minimal sequence I would use in a real project:
- Add the server with
-s local. - Run
claude mcp listand confirm✓ Connected. - Open the page or README where the visual will be used.
- Ask Claude Code for one concrete asset, such as a 404 illustration or a cleaned screenshot.
- Review the output and keep the generated asset with the project files or your publishing workflow.
The setup is small, but the shift is meaningful: image work becomes another terminal-native step in the same builder loop. Start with a local configuration, verify the connection, and try one narrow image-editing task before making it part of a larger content or UI workflow.
Read the full Ace Data Cloud documentation here: Claude Code with NanoBanana MCP.
Comments
Post a Comment