Back to Home
robertelee78 icon

image-gen-mcp-server

Verified Safe

by 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

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
  • 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

Stats

Interest Score0
Security Score9
Cost ClassHigh
Avg Tokens1
Stars0
Forks0
Last Update2025-11-28

Tags

image generationimage editingAImulti-providerintelligent routing