Gemini Image MCP Server

by creating-cat

Not rated
GitHub

About

Image generation using Google's Gemini API.

Details

Author
creating-cat
Categories
Developer Tools, AI, Other

Example MCP server configuration for Roo Code

{ "mcpServers": { "gemini-image-mcp-server": { "command": "npx", "args": [ "-y", "@creating-cat/gemini-image-mcp-server" ], "env": { "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY" }, "disabled": false, "timeout": 300 } } }

-

ReplaceYOUR_GEMINI_API_KEYwith your actual Gemini API Key.

- You can also use${env:GEMINI_API_KEY}to retrieve the key from environment variables (Roo Code feature).

This MCP server provides a tool namedgenerate_image.

On success, the server returns the save path of the generated image and a message detailing the process, including the original and compressed file sizes. Example:

{ "content": [ { "type": "text", "text": "Image successfully generated and compressed at output/images/my_cat.jpg.\nOriginal size: 1024.12KB, Final size: 150.45KB" } ] }

If an error occurs, an error message will be returned.

- The MIME type and aspect ratio of the generated images depend on the default settings of the Gemini API.
- Handle your API key with care.
- This server uses the modelgemini-2.0-flash-preview-image-generation. Google may discontinue this model in the future.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Generate images using Google's Gemini API.

Generate images using Amazon Nova Canvas with text prompts and color guidance.

Server for advanced AI-driven video editing, semantic search, multilingual transcription, generative media, voice cloning, and content moderation.

Universal tool adapter — @tool decorator exports Python functions to OpenAI, Claude, Gemini, MCP, JSON Schema. Audit token costs.

Standing review layer for coding agents: Claude, GPT and Gemini debate each answer and return one recommendation plus the strongest dissent.

Generate images using the Together AI API. Supports custom aspect ratios, save paths, and batch generation.

Integrates with Google AI Studio/Gemini API for PDF to Markdown conversion and content generation.

Trim, watermark, extract audio from, and convert any video to 9:16 vertical — via REST API or MCP tools for Claude, Cursor, and other AI agents.

A command-line tool that summarizes code files in a directory using Gemini Flash 2.0.

Generate images using OpenAI's DALL-E API.

This is an MCP (Model Context Protocol) server that uses Google's Gemini API to generate images and save them to a specified directory. In addition to text prompts, you can optionally provide input images to guide the image generation process. Generated images are automatically compressed to reduce file size.

- Image generation from text prompts
- (Optional) Image generation using input reference images
- Automatic compression of generated images (JPEG, PNG)
- Unique file name assignment to prevent file name conflicts
- Operates as an MCP server, accepting tool calls via standard input/output

- Node.js (v18 or higher recommended)
- Google Cloud Project with Gemini API enabled
- Gemini API Key

Example MCP server configuration for Roo Code

{ "mcpServers": { "gemini-image-mcp-server": { "command": "npx", "args": [ "-y", "@creating-cat/gemini-image-mcp-server" ], "env": { "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY" }, "disabled": false, "timeout": 300 } } }

-

ReplaceYOUR_GEMINI_API_KEYwith your actual Gemini API Key.

- You can also use${env:GEMINI_API_KEY}to retrieve the key from environment variables (Roo Code feature).

This MCP server provides a tool namedgenerate_image.

On success, the server returns the save path of the generated image and a message detailing the process, including the original and compressed file sizes. Example:

{ "content": [ { "type": "text", "text": "Image successfully generated and compressed at output/images/my_cat.jpg.\nOriginal size: 1024.12KB, Final size: 150.45KB" } ] }

If an error occurs, an error message will be returned.

- The MIME type and aspect ratio of the generated images depend on the default settings of the Gemini API.
- Handle your API key with care.
- This server uses the modelgemini-2.0-flash-preview-image-generation. Google may discontinue this model in the future.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Generate images using Google's Gemini API.

Generate images using Amazon Nova Canvas with text prompts and color guidance.

Server for advanced AI-driven video editing, semantic search, multilingual transcription, generative media, voice cloning, and content moderation.

Universal tool adapter — @tool decorator exports Python functions to OpenAI, Claude, Gemini, MCP, JSON Schema. Audit token costs.

Standing review layer for coding agents: Claude, GPT and Gemini debate each answer and return one recommendation plus the strongest dissent.

Generate images using the Together AI API. Supports custom aspect ratios, save paths, and batch generation.

Integrates with Google AI Studio/Gemini API for PDF to Markdown conversion and content generation.

Trim, watermark, extract audio from, and convert any video to 9:16 vertical — via REST API or MCP tools for Claude, Cursor, and other AI agents.

A command-line tool that summarizes code files in a directory using Gemini Flash 2.0.

Generate images using OpenAI's DALL-E API.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.