zimage-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zimage-mcpgenerate a hero banner for the homepage, save to ./public/hero.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
zimage-mcp
A local MCP server for generating web-dev images with the
Z-Image Turbo model running on the ComfyUI box. It hard-codes the verified Z-Image graph
(UNETLoader + CLIPLoader lumina2 + ModelSamplingAuraFlow shift 3 + KSampler 8/cfg1/res_multistep/simple),
downloads the result, and saves it to a local path at exact pixel dimensions.
It runs alongside the existing @peleke.s/comfyui-mcp (which stays for SDXL/FLUX); tools are
namespaced mcp__zimage__*.
Tools
generate_image(prompt, output_path, size="square", width?, height?, seed?, steps?=8, negative?="", n?=1)
Generates and saves image(s).
output_path— local path, e.g../public/img/hero.png. Parent dirs are created. Format follows the extension (.png/.jpg/.jpeg/.webp).size— a preset (below), or pass exactwidth+height. Because Z-Image needs dimensions that are multiples of 16, any exact size is generated at the nearest valid size (≥ requested, matching aspect) then resize-cover + center-crop to your exact pixels.seed— omitted = random; echoed back in the result for reproducibility.n— 1–4 variants. Files get_1,_2, … suffixes; seeds arebase, base+1, ….Returns
{ images, seed, gen_size, output_size, seconds }.
list_presets()
Returns the preset table (name → WxH).
health()
ComfyUI pre-flight: reachable, comfyui_version, gpu, vram_free_mb.
Related MCP server: Flux Schnell Server
Size presets
preset | output | use |
| 1024×1024 | cards, avatars, icons |
| 1216×832 | general content images |
| 832×1216 | tall cards |
| 1280×720 | 16:9 hero/banner |
| 1536×640 | wide banner (12:5) |
| 1200×630 | OpenGraph/social share |
| 768×1344 | mobile-first portrait |
Z-Image is tuned around ~1 MP. Very large custom dimensions (>~1.3 MP) may reduce quality or slow down; for big hero art, generate at a preset and upscale separately (a 2K upscaler template exists on the box). Note: text-in-image is weak — use FLUX/Qwen for legible baked-in text.
Configuration (env vars)
var | default |
|
|
|
|
|
|
|
|
|
|
|
|
Run / register
Requires uv. Add to ~/.claude.json under mcpServers:
"zimage": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/Users/jaimie/projects/zimage-mcp", "server.py"],
"env": { "COMFYUI_URL": "http://10.0.0.109:8188" }
}Restart Claude Code; the tools appear as mcp__zimage__generate_image, etc.
Develop / test
uv sync
uv run pytest -q # unit tests (no network)
ZIMAGE_TEST_LIVE=1 uv run pytest -q # + live tests against the boxMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseCqualityDmaintenanceAn MCP server that generates images based on text prompts using Black Forest Lab's FLUX model, allowing for customized image dimensions, prompt upsampling, safety settings, and batch generation.Last updated31
- FlicenseBqualityDmaintenanceAn MCP image generation server based on the Flux Schnell model that provides API access for generating images from text prompts with customizable dimensions and seeds.Last updated11
- AlicenseBqualityDmaintenanceAn MCP server that enables image generation using Replicate's Flux 1.1 Pro model. It provides a tool for creating visuals from text prompts with customizable settings for aspect ratio, output format, and quality.Last updated1MIT
- AlicenseBqualityDmaintenanceA local MCP server for generating and editing images using OpenAI-compatible APIs. It provides text-to-image generation and image editing capabilities with configurable endpoints and saves output directly to local files.Last updated27MIT
Related MCP Connectors
MCP server for Luma Dream Machine AI video generation
MCP server for Flux AI image generation
MCP server for NanoBanana AI image generation and editing
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sjemmeh/zimage-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server