z-image-studio
Verified Safeby iconben
Overview
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.
Installation
docker run -d --name z-image-studio -p 8000:8000 -v zimg-data:/data -v zimg-config:/home/appuser/.z-image-studio -v zimg-outputs:/data/outputs iconben/z-image-studio:latestEnvironment Variables
- SDNQ_LOG_LEVEL
- ZIMAGE_BASE_URL
- ZIMAGE_DISABLE_MCP
- ZIMAGE_ENABLE_TORCH_COMPILE
- Z_IMAGE_STUDIO_DATA_DIR
- Z_IMAGE_STUDIO_OUTPUT_DIR
Security Notes
File upload (`/loras` endpoint) allows `.safetensors` files up to 1GB. While `safetensors` are generally safer than `pickle`, a malicious file could potentially exploit vulnerabilities in the `diffusers` loading process. The server performs hash checks and filename collision resolution, and files are stored in a dedicated `loras` directory. URL construction for `ResourceLink` in MCP SSE/Streamable HTTP modes relies on extracting base URL from request headers (`X-Forwarded-Proto`, `X-Forwarded-Host`) if `ZIMAGE_BASE_URL` is not set. In a misconfigured proxy environment, these headers could be spoofed, potentially leading to incorrect or malicious resource URIs. However, path traversal within the URL is mitigated by `urllib.parse.urljoin` and `urllib.parse.quote` for file paths. Image saving (`save_image`) includes robust path safety checks to prevent directory traversal attacks.
Similar Servers
comfyui-mcp-server
The server enables AI agents to generate and iteratively refine images, audio, and video using a local ComfyUI instance through the Model Context Protocol (MCP).
imgenx
AI image and video generation and processing, functioning as a command-line tool or MCP server.
atlantis-mcp-server
An MCP (Model Context Protocol) server for hosting and managing dynamic Python functions and third-party MCP tools, enabling AI agents to discover and utilize shared capabilities across a network.
seedream-image-mcp
Generates images using the Volcengine SeeDream model via the Model Context Protocol (MCP) for AI agents and clients.