image_gen_mcp
Verified Safeby pietrozullo
Overview
Generate and transform images using Google's Gemini AI model through the MCP protocol.
Installation
python server.pyEnvironment Variables
- GEMINI_API_KEY
- PORT
- MCP_URL
- IMAGE_STORAGE_DIR
- GEMINI_IMAGE_MODEL
- IMAGE_TTL_SECONDS
- CLEANUP_INTERVAL_SECONDS
Security Notes
The server implements good security practices including loading API keys from environment variables, robust validation for uploaded and remote images (size, format, type), and protection against directory traversal for served images. It also converts uploaded images to PNG which can strip potentially malicious metadata. The `0.0.0.0` host binding is standard for cloud deployments but requires external network configuration (firewall/proxy) in production.
Similar Servers
gemini-mcp-server
An MCP server providing a suite of 7 AI-powered tools (Image Gen/Edit, Chat, Audio Transcribe, Code Execute, Video/Image Analysis) powered by Google Gemini, featuring a self-learning "Smart Tool Intelligence" system for prompt enhancement and user preference adaptation.
nanobanana-api-mcp
An MCP server providing image generation and editing capabilities via the Google Gemini API, integrable with various AI coding assistants and IDEs.
ultimate-image-gen-mcp
A professional MCP server for Google's Gemini 3 Pro Image Preview, enabling state-of-the-art image generation with advanced reasoning, high-resolution output (1K-4K), up to 14 reference images, Google Search grounding, and automatic thinking mode.
gemini-mcp
The server provides a Model Context Protocol (MCP) interface to Google Gemini AI services, enabling multimodal generation including image creation, image editing, and video production.