Gemini Image Generator MCP Server

Generate high-quality images from text prompts using Google's Gemini model through the MCP protocol.

Local serverstdioPython

What is the Gemini Image Generator MCP Server?

Generate high-quality images from text prompts using Google's Gemini model through the MCP protocol.

What it actually does

This MCP server allows any AI assistant to generate images using Google's Gemini AI model. The server handles prompt engineering, text-to-image conversion, filename generation, and local image storage, making it easy to create and manage AI-generated images through any MCP client.

  • Text-to-image generation using Gemini 2.0 Flash
  • Image-to-image transformation based on text prompts
  • Support for both file-based and base64-encoded images
  • Automatic intelligent filename generation based on prompts
  • Automatic translation of non-English prompts
  • Local image storage with configurable output path

Configuration

  • Python 3.11+ - Google AI API key (Gemini) - MCP host application (Claude Desktop App, Cursor, or other MCP-compatible clients)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Gemini Image Generator MCP Server

{
  "mcpServers": {
    "gemini-image-generator": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/mcp-server-gemini-image-generator",
        "run",
        "mcp-server-gemini-image-generator"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
        "OUTPUT_IMAGE_PATH": "/absolute/path/to/your/images/directory"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.11+ - Google AI API key (Gemini) - MCP host application (Claude Desktop App, Cursor, or other MCP-compatible clients)
VariableDescriptionRequired
GEMINI_API_KEYDeclared in the maintainer’s client configuration.Check documentation
OUTPUT_IMAGE_PATHDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Gemini Image Generator to Prerequisites.”
  • “Use Gemini Image Generator to Installation.”

Frequently asked questions

Generate high-quality images from text prompts using Google's Gemini model through the MCP protocol. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.