Back to Home
marc-shade icon

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

Run Command
python -m image_gen_mcp.server

Environment 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

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens300
Stars0
Forks0
Last Update2025-12-31

Tags

Image GenerationAIMulti-ProviderLatent SpacePixel Art