Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

nanobanana-mcp-server

local MCP server

nanobanana-mcp-server is a local MCP server: An MCP server that provides image generation and editing capabilities. Install it from pypi as nanobanana-mcp-server.

Installation

Terminal

claude mcp add nanobanana-mcp-server -e GEMINI_API_KEY=... -e IMAGE_OUTPUT_DIR=... -- uvx nanobanana-mcp-server

Run in your project folder. Add --scope user to use it everywhere.

Claude Desktop, Cursor & other clients

Add to claude_desktop_config.json or .cursor/mcp.json.

{
  "mcpServers": {
    "nanobanana-mcp-server": {
      "command": "uvx",
      "args": [
        "nanobanana-mcp-server"
      ],
      "env": {
        "GEMINI_API_KEY": "...",
        "IMAGE_OUTPUT_DIR": "..."
      }
    }
  }
}

Fill in the environment variables with your own credentials.

What you need

  • Runtime: Python with uv (runs with uvx).
  • MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
  • Environment variables: GEMINI_API_KEY, IMAGE_OUTPUT_DIR

Summary

An MCP server that provides image generation and editing capabilities

nanobanana-mcp-server vs similar servers

ServerStarsTypeAPI keyRuntime
nanobanana-mcp-server400LocalYespypi
mcp-image167LocalYesnpm
Unraid MCP131LocalYespypi
Unraid MCP131LocalYespypi
Serena MCP: the IDE for your agent30KLocalNopypi

Questions

It reads 2 environment variables: GEMINI_API_KEY, IMAGE_OUTPUT_DIR. Set them in your MCP config before starting the server.

Python with uv (runs with uvx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.

nanobanana-mcp-server is a local MCP server distributed as the pypi package nanobanana-mcp-server.

Run: claude mcp add nanobanana-mcp-server -e GEMINI_API_KEY=... -e IMAGE_OUTPUT_DIR=... -- uvx nanobanana-mcp-server

Run: codex mcp add nanobanana-mcp-server --env GEMINI_API_KEY=... --env IMAGE_OUTPUT_DIR=... -- uvx nanobanana-mcp-server

Similar MCP servers

NameStars
  1. mcp-imageio.github.shinpr/mcp-image167
  2. Unraid MCPai.dinglebear/unraid-mcp131
  3. Unraid MCPtv.tootie/unraid-mcp131
  4. Serena MCP: the IDE for your agentio.github.oraios/serena30K
  5. DBHubio.github.bytebase/dbhub3,574
  6. browserbasehq-mcp-browserbaseai.smithery/browserbasehq-mcp-browserbase3,413
  7. Ui.Vision MCPio.github.A9T9/uivision-mcp2,042
  8. Hex Lineio.github.levnikolaevich/hex-line-mcp565