image-gen-mcp-server
Verified Safeby merlinrabens
Overview
Provides a unified interface to multiple AI image generation and editing providers with intelligent selection, enterprise-grade security, and performance optimizations for various creative and business needs.
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
Security Notes
The server demonstrates robust security practices for its domain. It includes comprehensive input validation (prompt length up to 4000 characters, image buffer size up to 10MB), API key validation (checking for placeholders and minimum length), and rate limiting (10 requests/min/provider). Resource management is handled with AbortController for timeouts and automatic cleanup of temporary files older than 1 hour. Sensitive data is sanitized in logs. No 'eval' or explicit malicious patterns were found. While `IMAGE_OUTPUT_DIR` allows custom paths, the use of `fs.writeFile` to specific file paths (often within secure temp directories or newly created project subdirectories) rather than arbitrary execution mitigates risks. Overall, it appears safe to run with properly configured environment variables.
Similar Servers
klavis
Creates an AI agent using LangChain in TypeScript that interacts with Gmail and YouTube through a Klavis Strata MCP server, enabling tasks such as summarizing YouTube videos and emailing the summaries.
mesh
A full-stack AI-native platform for building, deploying, and managing AI agents, workflows, and applications with integrated context management, access control, and observability.
cross-llm-mcp
Provides unified access to multiple Large Language Model (LLM) APIs from a single server, offering intelligent model selection, tag-based preferences, and comprehensive prompt logging, tailored for AI coding environments.
imgenx
AI image and video generation and processing, functioning as a command-line tool or MCP server.