flux-mcp
Verified Safeby tehw0lf
Overview
A server and CLI tool for generating high-quality images using FLUX models, featuring VRAM management and automatic model unloading.
Installation
uv run flux-mcpEnvironment 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
mcp-server-csdn
The server automatically publishes Markdown articles to the CSDN platform, acting as a tool called by a Spring AI agent.
mcp-server-manager
Manage MCP servers for multiple AI clients through a unified CLI/TUI gateway.
mt-data-mcp
A MetaTrader5 (MT5) Market Data Provider offering advanced financial analysis capabilities including price forecasting, volatility estimation, pattern detection, technical indicators, and algorithmic trading decision support.
mcp-server
This server acts as an API Gateway, aggregating multiple external OpenAPI-defined services (like Petstore and Tenable) into a single unified endpoint using the FastMCP framework.