Back to Home
tehw0lf icon

flux-mcp

Verified Safe

by tehw0lf

Overview

A server and CLI tool for generating high-quality images using FLUX models, featuring VRAM management and automatic model unloading.

Installation

Run Command
uv run flux-mcp

Environment Variables

  • FLUX_UNLOAD_TIMEOUT
  • FLUX_OUTPUT_DIR
  • FLUX_MODEL_CACHE
  • FLUX_MODEL_ID
  • FLUX_DEFAULT_STEPS
  • FLUX_DEFAULT_GUIDANCE

Security Notes

The code appears robust in handling user input, with parameters like steps, guidance, and dimensions being type-cast and range-validated before use in the generation pipeline. File paths for output are derived from configuration or validated CLI arguments, reducing path traversal risks. System calls (`subprocess.run` for opening file managers) use controlled arguments (a `Path` object), mitigating command injection. There are no obvious hardcoded secrets or direct `eval()`/`exec()` calls on user-controlled input. The primary potential vectors for vulnerability would lie in the underlying `diffusers` library or malicious model weights from HuggingFace, which are outside the scope of this code's direct security implementation.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens40
Stars0
Forks0
Last Update2025-12-07

Tags

FLUXImage GenerationAIMCPCLIVRAM Management