What it is
An MCP server that puts Google's Gemini 2.0 Flash image generation behind three tools. It handles the parts around the model call: naming the file from the prompt, translating non-English prompts, saving to a configured directory, and returning both the raw image data and the saved path so a client can use whichever it can handle.
Requirements
A Google AI API key for Gemini, from AI Studio, in GEMINI_API_KEY; the key comes with a monthly free quota you can check in AI Studio. Set OUTPUT_IMAGE_PATH to an absolute directory — images are written there and the path is what gets returned. Python 3.11+, installed from a clone with uv pip install -e . and launched with uv run.
Setup effort
Build from source — git clone https://github.com/qhdrl12/mcp-server-gemini-image-generator.git