A side-by-side look at the Codex Imagegen MCP and Nanobanana MCP Server MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.
Verdict: choose Codex Imagegen MCP for multimedia process work as a local process; choose Nanobanana MCP Server for multimedia process as a local process. You can also run both side by side in one mcpServers block.
generate_image, edit_image, remove_background.GEMINI_API_KEY, NANOBANANA_AUTH_METHOD, GCP_PROJECT_ID, GCP_REGION.generate_image, upload_file, show_output_stats.Rows where the two servers differ are marked.
| Spec | C Codex Imagegen MCP | |
|---|---|---|
| Category | Multimedia Process | Multimedia Process |
| Quality signal | 61/100 · Good | 63/100 · Good |
| Install command | Confirmed | Confirmed |
| Transport | Local subprocess (stdio) | Local subprocess (stdio) |
| Auth | Not declared | Not declared |
| Pricing | Not declared | Not declared |
| Required env vars | None listed | GEMINI_API_KEYNANOBANANA_AUTH_METHODGCP_PROJECT_IDGCP_REGION |
| Verified owner | Community listing | Community listing |
| GitHub stars | 7 | 400 |
| Directory activity | 0 views 0 installs 0 upvotes | 1 views 0 installs 0 upvotes |
| Tools | 5 | 4 |
| Full listing | View Codex Imagegen MCP | View Nanobanana MCP Server |
generate_imageA new image from a promptedit_imageEdit images, or generate from 1–5 referencesremove_backgroundCut a flat backdrop out locally (no quota)auth_statusSign-in, plan, credential source, usage windowssign_inStart a ChatGPT sign-in and return a link or code for yougenerate_imageGenerate new images or edit existing images using natural language instructions.
Supports multiple input modes:
1. Pure generation: Just provide a prompt to create new images
2. Multi-image conditioning: Provide up to 3 input images using input_image_path_1/2/3 parameters
3. File ID editing: Edit previously uploaded images using Files API ID
4. File path editing: Edit local images by providing single input image path
Automatically detects mode based on parameters or can be explicitly controlled.
Input images are read from the local filesystem to avoid massive token usage.
Returns both MCP image content blocks and structured JSON with metadata.upload_fileUpload a local file through the Gemini Files API and return its URI & metadata.
Useful when the image is larger than 20MB or reused across prompts.show_output_statsShow statistics about the output directory and recently generated images.maintenancePerform maintenance operations following workflows.md patterns.
Available operations:
- cleanup_expired: Remove expired Files API entries from database
- cleanup_local: Clean old local files based on age/LRU
- check_quota: Check Files API storage usage vs. ~20GB budget
- database_hygiene: Clean up database inconsistencies
- full_cleanup: Run all cleanup operations in sequencePaste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.
{
"mcpServers": {
"codex-imagegen-mcp": {
"command": "npx",
"args": [
"-y",
"codex-imagegen-mcp"
]
}
}
}
{
"mcpServers": {
"nanobanana-mcp-server": {
"command": "uvx",
"args": [
"nanobanana-mcp-server@latest"
],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY_HERE",
"NANOBANANA_AUTH_METHOD": "YOUR_NANOBANANA_AUTH_METHOD_HERE",
"GCP_PROJECT_ID": "YOUR_GCP_PROJECT_ID_HERE",
"GCP_REGION": "YOUR_GCP_REGION_HERE"
}
}
}
}