Back to Home
merlinrabens icon

image-gen-mcp-server

Verified Safe

by 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

Run Command
npx @merlinrabens/image-gen-mcp-server

Environment 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

Stats

Interest Score35
Security Score9
Cost ClassLow
Avg Tokens1000
Stars4
Forks0
Last Update2025-12-10

Tags

MCPImage GenerationAIMulti-ProviderIntelligent Routing