Gemini Image Generation MCP Server

Generate images using gemini

Local serverstdio

What is the Gemini Image Generation MCP Server?

Generate images using gemini

The short version

This is a Model Context Protocol (MCP) server that provides image generation capabilities using Google's Gemini 2 API.

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generateImageGenerates images using Gemini 2's experimental image generation API.

How to install the Gemini Image Generation MCP Server

{
       "mcpServers": {
         "gemini-imagen": {
           "command": "npx",
           "args": ["-y", "github:sanxfxteam/gemini-mcp-server"],
           "env": {
             "GEMINI_API_KEY": "your_api_key_here"
           }
         }
       }
     }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Gemini Image Generation to generateImage.”

Frequently asked questions

It acts as an MCP-compatible bridge that sends image generation requests to Google’s Gemini 2 experimental API and returns the resulting images.