Codex CLI Integration with NanoBanana MCP

📘 Complete Guide: Using All 11 AceData Cloud MCPs in Codex CLI →

Based on Gemini’s multimodal image model, excels at understanding complex instructions, fine editing, and coherent consistent characters. After integrating MCP with Codex CLI, you can invoke it directly in conversations without switching windows or copy-pasting.

Obtain API Token

Register an account at AceData Cloud Platform and copy the API Token on the homepage — one token grants access to all 11 MCP Servers. Detailed steps are in the Complete Guide.

Configuration

Edit the config file: ~/.codex/config.toml

[mcp_servers.nanobanana]
url = "https://nanobanana.mcp.acedata.cloud/mcp"
type = "http"

http_headers = { "Authorization" = "Bearer yourToken" }

After saving, the tool will be automatically loaded on the next codex session startup.

Usage Examples

Generate an orange cat wearing a spacesuit, eating a burger on the moon using NanoBanana

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

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

Tools

Tool Description
nano_banana_generate Text-to-image (nano-banana / 2 / pro)
nano_banana_edit Image editing