Labsco
MCP SERVER

Gemini Image MCP Server

by creating-cat

Generate an image from a prompt with Gemini and have it written to a path you name, with the output format, quality and size ceiling settled in the same call.

Image GenerationVerified
Summary
The argument list carries more about the file than about the picture, which is what separates this from a generate-and-return-bytes server.

`jpeg_quality`, `webp_quality`, `png_compression_level`, `optipng_optimization_level` and `target_image_max_size` all shape what is written to disk, and `skip_compression_and_resizing` turns that stage off in one flag — so the image arrives already sized for wherever it is going, rather than needing a second pass. The vendor's description of the tool is a single sentence, which makes the argument list the real documentation. With a single tool there is no call ordering to learn.

What it is

A single-tool image generation server: `generate_image` takes a `prompt` and saves the result into `output_directory` under `file_name`.

What you get
  • A single call that generates the image and writes the file: `prompt` carries the request, `output_directory` and `file_name` decide where it goes.
  • Output handling in the same arguments: `force_conversion_type` for the format, `jpeg_quality`, `webp_quality`, `png_compression_level` and `optipng_optimization_level` for the encoders, `target_image_max_size` for the ceiling, and `skip_compression_and_resizing` to bypass that stage.
  • `input_image_paths` for sending existing images along with the request, and `use_enhanced_prompt` for switching prompt enhancement on.
Requirements

A Gemini API key, supplied as GEMINI_API_KEY, and a writable `output_directory` for the file the call produces.

Setup effort

One command plus a key — npx -y @creating-cat/gemini-image-mcp-server, then supply credentials