Gemini Image Generation MCP
About
A Model Calling Protocol (MCP) server that allows Claude and other LLMs to generate images using Google's Gemini AI model.
Details
- Author
- collactivelabs
- Downloads
- 453
- Categories
- AI
Jump to
- Generate images from text prompts using Google’s Gemini model.
- Save generated images locally.
- Configure generation parameters like temperature, topK, and topP.
- Interactive web interface for testing and demonstration.
- Docker support for easy deployment.
- Simple MCP standard implementation.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Gemini Image Generation MCPCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install Node.js 18+, clone the repository, install dependencies (npm install), and set your GEMINI_API_KEY in the .env file. Run the MCP server with node src/mcp-server.js or use Docker. Configure Claude or another MCP client to connect via the MCP protocol—either through JSON configuration or the Claude console’s MCPs section.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"gemini image generation mcp": {
"openai-image-generation": {
"command": "node",
"args": [
"/full/path/to/openai-image-gen-mcp/src/mcp-server.js"
],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here"
}
}
}
}
}
McpServers
{
"openai-image-generation": {
"command": "node",
"args": [
"/full/path/to/openai-image-gen-mcp/src/mcp-server.js"
],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here"
}
}
}
Gemini Image Generation MCP
A Model Calling Protocol (MCP) server that allows Claude and other LLMs to generate images using Google's Gemini AI model.
Overview
This MCP server enables Large Language Models (LLMs) like Claude to delegate image generation tasks to Google's Gemini model. It follows the MCP standard to provide a seamless integration experience.
Features
- Generate images from text prompts using Google's Gemini model (gemini-2.0-flash-preview-image-generation)
- Save generated images locally
- Configure generation parameters like temperature, topK, and topP
- Interactive web interface for testing and demonstration
- Docker support for easy deployment
- Simple MCP standard implementation
Prerequisites
- Node.js 18 or higher
- Google API key with access to Gemini API (specifically the image generation preview model)
- For Docker: Docker and Docker Compose
Getting Started
Installation
1. Clone this repository:
git clone https://your-repository-url/gemini-image-gen-mcp.git
cd gemini-image-gen-mcp
2. Install dependencies:
npm install
3. Create your environment configuration:
cp .env.example .env
4. Edit the .env file to add your Google API key:
GEMINI_API_KEY=your_gemini_api_key_here
Running the Server
Option 1: Using Node.js directly
For MCP server only:
node src/mcp-server.js
For web interface only:
node src/web-server.js
Or use the provided script:
```
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
