Gemini Image MCP Server
by rocksun
Google Gemini-based image generation and editing service providing AI image processing capabilities through MCP protocol. It allows for both text-to-image generation and image editing.
Last updated: N/A
What is Gemini Image MCP Server?
This is a server that provides AI image processing capabilities based on Google's Gemini model, accessible through the MCP protocol. It offers functionalities for generating images from text prompts and editing existing images.
How to use Gemini Image MCP Server?
- Install dependencies using
uv pip install -r requirements.txt
. 2. Set the Gemini API key as an environment variable (e.g.,export GEMINI_API_KEY=your_api_key_here
). 3. Configure the server in yourmcp.json
file, ensuring to replace the absolute path with the correct location. 4. Use thegenerate_image
andedit_image
tools via the MCP protocol.
Key features of Gemini Image MCP Server
Text-to-Image Generation
Image Editing & Modification
PNG Format Support
Automatic File Path Management
Use cases of Gemini Image MCP Server
Generating images from text descriptions
Modifying existing images based on text prompts
Integrating AI image processing into MCP-based workflows
Automated image creation and manipulation
FAQ from Gemini Image MCP Server
How do I set the Gemini API key?
How do I set the Gemini API key?
Set the GEMINI_API_KEY
environment variable with your API key.
Where are the generated images saved?
Where are the generated images saved?
By default, generated images are saved in the generated-images/
directory.
What language is supported for image editing prompts?
What language is supported for image editing prompts?
Image editing prompts support Chinese.
What image format is supported?
What image format is supported?
PNG format is supported.
Do I need to replace the absolute path in mcp.json?
Do I need to replace the absolute path in mcp.json?
Yes, ensure to replace the absolute path with the correct location of the parent folder in the mcp.json
configuration.