image-gen-mcp
by marc-shade
Overview
Provides a multi-provider image generation service with automatic fallback, specialized pixel art mode, and advanced latent space manipulation capabilities.
Installation
python -m image_gen_mcp.serverEnvironment Variables
- CLOUDFLARE_API_TOKEN
- CLOUDFLARE_ACCOUNT_ID
- HUGGINGFACE_API_TOKEN
- TOGETHER_API_KEY
- REPLICATE_API_TOKEN
- OLLAMA_HOST
- IMAGE_GEN_OUTPUT_DIR
Security Notes
The `DiffusionLatentHacker` module uses Python's `pickle` library to serialize and deserialize `LatentState` objects to and from disk cache. Deserializing pickled data from an untrusted source can lead to arbitrary code execution. While the cache directory is managed locally by the agent, a compromise of this directory by an external attacker could pose a significant risk. Additionally, the `dspy_prompter.py` module uses an `OLLAMA_HOST` environment variable, defaulting to localhost. If configured to point to an unauthenticated public Ollama endpoint, this could be abused, though this is a configuration rather than a code vulnerability.
Similar Servers
z-image-studio
Z-Image Studio is a local toolkit for high-quality text-to-image generation using the Z-Image-Turbo model, providing CLI, Web UI, and MCP server interfaces with hardware optimizations.
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.