image-gen-mcp-server
Verified Safeby robertelee78
Overview
A production-ready Model Context Protocol (MCP) server for multi-provider AI image generation and editing, with intelligent provider selection and enterprise-grade security.
Installation
npx @merlinrabens/image-gen-mcp-serverEnvironment Variables
- OPENAI_API_KEY
- STABILITY_API_KEY
- REPLICATE_API_TOKEN
- GEMINI_API_KEY
- LEONARDO_API_KEY
- IDEOGRAM_API_KEY
- BFL_API_KEY
- FAL_API_KEY
- CLIPDROP_API_KEY
- RECRAFT_API_KEY
- DEFAULT_PROVIDER
- LOG_LEVEL
- DISABLE_FALLBACK
- ALLOW_MOCK_PROVIDER
- IMAGE_OUTPUT_DIR
- IMAGE_SERVER_URL
- MCP_SESSION_ID
Security Notes
The server demonstrates strong security practices including Zod validation with strict enforcement, buffer size limits (10MB), prompt length limits, API key validation against placeholders, and rate limiting. Image fetching from external URLs is a potential SSRF vector, but mitigated by size limits and robust error handling. File I/O for generated images is managed with a configurable output directory, unique filenames, and automatic cleanup of old files, reducing disk exhaustion risks. The use of the 'sharp' library, while standard, should be monitored for potential vulnerabilities.
Similar Servers
neurolink
NeuroLink is a comprehensive AI toolkit that unifies multiple AI providers, offers advanced orchestration, real-time services, and a Human-in-the-Loop safety system, allowing modular enhancement of AI models through an extensible MCP-compliant middleware and tool ecosystem.
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.
imgenx
AI image and video generation and processing, functioning as a command-line tool or MCP server.
image-gen-mcp-server
This repository functions as a landing page and documentation for an AI image generation plugin that unifies multiple AI image providers through a single interface for Claude Code users.