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. Exposed over MCP by the gemini image generator mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

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

Its toolset

Everything the assistant can do here goes through one of these:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server

Configuration

You will need 2 environment variables: GEMINI_API_KEY, OUTPUT_IMAGE_PATH. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

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

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Among the AI and media services options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Gemini Image Generator's toolset — Prerequisites, Installation — is a fair guide to whether it matches your workflow. It is maintained by qhdrl12; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Gemini Image Generator's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the gemini image generator mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.

How to install the Gemini Image Generator MCP server

{
  "mcpServers": {
    "server-gemini-image-generator": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "GEMINI_API_KEY": "your-value",
        "OUTPUT_IMAGE_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.11+ - Google AI API key (Gemini) - MCP host application (Claude Desktop App, Cursor, or other MCP-compatible clients)
VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes
OUTPUT_IMAGE_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

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

Frequently asked questions

It connects Gemini Image Generator to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Prerequisites, Installation) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Gemini Image Generator directly.