What are the dependencies or runtime requirements?
Node.js 18.0.0 or higher and a Gemini API key from Google AI Studio are required.
@ConechoAI
Basic information
A Model Context Protocol (MCP) server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. Generate stunning images, edit existing ones, and iterate on your creations with simple text prompts.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": [
"nano-banana-mcp"
],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key-here"
}
}
}
}Configure your Gemini API token for nano-banana image generation
Generate a NEW image from text prompt. Use this ONLY when creating a completely new image, not when modifying an existing one.
Edit a SPECIFIC existing image file, optionally using additional reference images. Use this when you have the exact file path of an image to modify.
Check if Gemini API token is configured
Continue editing the LAST image that was generated or edited in this session, optionally using additional reference images. Use this for iterative improvements, modifications, or changes to the most recent image. This automatically uses the previous image without needing a file path.
Get information about the last generated/edited image in this session (file path, size, etc.). Use this to check what image is currently available for continue_editing.
Nano Banana Mcp is a Model Context Protocol (MCP) server that provides AI image generation and editing capabilities using Google’s Gemini 2.5 Flash Image API. It lets you create images from text prompts, edit existing images, iterate on results, and use reference images for style transfer.
Configure the server with your Gemini API key via an environment variable in your MCP client config (e.g., GEMINI_API_KEY), a system environment variable, or the built-in configure_gemini_token tool. Then invoke commands such as generate_image, edit_image, continue_editing, get_last_image_info, or get_configuration_status through your MCP client (Claude Code, Cursor, or others).
Node.js 18.0.0 or higher and a Gemini API key from Google AI Studio are required.
You can set it as an environment variable in your MCP client config (recommended), as a system environment variable (`GEMINI_API_KEY`), or use the `configure_gemini_token` tool to create a local `.nano-banana-config.json` file.
Images are saved to platform-specific directories: `%USERPROFILE%\Documents\nano-banana-images\` on Windows, `./generated_imgs/` on macOS/Linux, or `~/nano-banana-images/` when run from system paths.
You can edit a specific image file with `edit_image`, continue editing the last generated/edited image with `continue_editing`, and optionally supply reference images for style transfer.
The recommended method keeps the key in your MCP client’s environment config, which is contained within the MCP configuration. System environment variables and a local config file are also supported, with the config file automatically ignored by Git and NPM.

Soar Flight Booking MCP is a remote MCP server available at https://mcp.soar.flights.

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
Painless E2E Automation for Mobile and Web
YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
A search tool helps dev to solve the naming things problem.
Comments