Skip to main content
Glama

MCP Nano Banana

MCP Nano Banana

This project is an MCP (Model Context Protocol) server that generates images using the Google Gemini API.

Description

This server implements the Model Context Protocol to expose a single tool, generate_image, to a compatible AI model. The tool accepts a text prompt, uses the Google Gemini API to generate an image, saves the image to the public/ directory for auditing, and returns the raw image data as a base64-encoded string.

To use the server with Claude Desktop or other applications

You need a Google Gemini API key and ImgBB API key to use this server.

Access https://api.imgbb.com/ to generate a IMGBB API Key. This is used to store and host the image online.

{ "mcpServers": { "mcp-nano-banana": { "command": "uvx", "args": [ "mcp-nano-banana" ], "env": { "GEMINI_API_KEY": "YOUR_API_KEY_HERE", "IMGBB_API_KEY": "YOUR_API_KEY_HERE" } } } }

Dev Setup

1. Dependencies

This project uses Python and its dependencies are defined in pyproject.toml. You can install them using pip:

pip install .

This will install mcp, google-generativeai, and other required packages.

2. API Key

You need a Google Gemini API key and ImgBB API key to use this server.

Access https://api.imgbb.com/ to generate a IMGBB API Key. This is used to store and host the image online.

  1. Create a file named .env in the root of the project.
  2. Add your API key to the .env file in the following format:
GEMINI_API_KEY="YOUR_API_KEY_HERE" IMGBB_API_KEY="YOUR_API_KEY_HERE"

Running the Server

This server is designed to be run as a subprocess by an MCP client or using the mcp command-line tool. The server listens for requests on stdio.

uvx --from git+https://github.com/GuilhermeAumo/mcp-nano-banana mcp-nano-banana
-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables image generation using the Google Gemini API through a simple text prompt. Generated images are saved locally and hosted online via ImgBB for easy access and sharing.

  1. Description
    1. To use the server with Claude Desktop or other applications
      1. Dev Setup
        1. 1. Dependencies
        2. 2. API Key
      2. Running the Server

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          A server that provides AI-powered image generation, modification, and processing capabilities through the Model Context Protocol, leveraging Google Gemini models and other image services.
          Last updated -
          13
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          A server that connects to the xAI/Grok image generation API, allowing users to generate images from text prompts with support for multiple image generation and different response formats.
          Last updated -
          8
        • A
          security
          A
          license
          A
          quality
          Allows AI assistants to generate and transform high-quality images from text prompts using Google's Gemini model via the MCP protocol.
          Last updated -
          3
          19
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides image generation capabilities using Google's Gemini 2 API, allowing users to generate multiple images with customizable parameters like prompts, aspect ratios, and person generation settings.
          Last updated -
          1
          37
          3
          MIT License
          • Apple
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/GuilhermeAumo/mcp-nano-banana'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server