Gemini Image Generator MCP Server logo

Gemini Image Generator MCP Server

by qhdrl12

This MCP server allows AI assistants to generate images using Google's Gemini AI model. It handles prompt engineering, text-to-image conversion, and local image storage.

View on GitHub

Last updated: N/A

What is Gemini Image Generator MCP Server?

This is an MCP server that enables AI assistants to generate images from text prompts using Google's Gemini AI model. It provides tools for text-to-image conversion and image-to-image transformation via the MCP protocol.

How to use Gemini Image Generator MCP Server?

After installing the server and configuring it with your Gemini API key and output path, you can use an MCP client like Claude to send text prompts to generate new images or transform existing ones. The server provides MCP tools like generate_image_from_text, transform_image_from_encoded, and transform_image_from_file.

Key features of Gemini Image Generator MCP Server

  • Text-to-image generation using Gemini 2.0 Flash

  • Image-to-image transformation based on text prompts

  • Automatic intelligent filename generation based on prompts

  • Automatic translation of non-English prompts

  • Local image storage with configurable output path

  • High-resolution image output

Use cases of Gemini Image Generator MCP Server

  • Generating images from text descriptions within AI assistants

  • Transforming existing images based on text prompts

  • Creating visual content for various applications using AI

  • Integrating AI image generation capabilities into MCP-compatible clients

FAQ from Gemini Image Generator MCP Server

What is an MCP server?

MCP stands for Modular Communication Protocol. An MCP server allows different applications to communicate with each other.

What is the Gemini API key used for?

The Gemini API key is used to authenticate your requests to Google's Gemini AI model for image generation.

Where are the generated images stored?

The generated images are stored in the output path configured in the .env file.

What MCP clients are compatible with this server?

This server is compatible with any MCP-compatible client, such as Claude Desktop App and Cursor.

What are the known issues with Claude Desktop Host?

There may be performance issues when using transform_image_from_encoded and path resolution problems when using Claude Desktop Host.