Local Image MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| QWENIMG_MODELS_UNET | No | Overrides the UNet model file name in the configuration (e.g. qwen_image_2.1-Q4_K.gguf). | |
| QWENIMG_COMFY_PRE_ARGS | No | Overrides the Python arguments placed before main.py for ComfyUI. Array fields must be given as a JSON array string, e.g. ["-s"]. | |
| QWENIMG_DEFAULTS_STEPS | No | Overrides the default number of sampling steps used by generate. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generateA | 用本地 ComfyUI 的 Qwen-Image 2.1 模型做文生图,返回图片绝对路径。Generate an image locally with Qwen-Image 2.1 on the local ComfyUI and return the absolute file path. 512x512、20 步在本机约 29 秒(已加载);768×768 冷启动约 60 秒、1024×1024 已加载约 80 秒,仅为单次记录。A local test took about 29s at 512x512 warm, 60s at 768x768 cold, and 80s at 1024x1024 warm; timing varies. 超时返回 prompt_id,请用 get_result 继续查询,避免重复提交。Use get_result after a wait timeout instead of submitting again. |
| get_resultA | 用 generate 返回的 prompt_id 查询任务状态:queued / running / ok / failed / unknown(历史和队列未找到)。Look up a job by prompt_id; unknown means neither history nor queue contains it. 可用 return_image=true 取回图片内容。Use return_image=true for image content. |
| statusA | 体检:ComfyUI 是否可达、版本、队列长度、显卡与显存、三个模型文件是否在可加载列表里、关键节点是否存在。只读,不会启动 ComfyUI。Health check: reachability, version, queue length, GPU/VRAM, whether the three model files are selectable, and whether the key nodes exist. Read-only; it never starts ComfyUI. |
| free_vramA | 让 ComfyUI 卸载模型并释放显存(服务继续运行)。玩游戏或跑别的显卡任务前调用。Ask ComfyUI to unload models and free VRAM while the service keeps running; call it before gaming or another GPU-heavy task. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a distinct role: generate submits a text-to-image job, get_result polls an existing job, status is read-only health inspection, and free_vram manages GPU memory. The only mild overlap is between generate and get_result, but the generate description explicitly tells the agent to switch to get_result on timeout, which resolves the boundary.
Three of four names follow a verb_noun / verb pattern (generate, free_vram, get_result), while 'status' is a bare noun. The deviation is minor and the intent of every name is immediately readable.
Four tools is compact and every tool earns its place: job submission, job polling, environment diagnostics, and VRAM release. Nothing feels padded or missing at the count level for a single-model local image generator.
The surface covers the core lifecycle (submit → poll → retrieve image) plus health checks and VRAM management, which is solid for text-to-image only. Gaps remain for image-to-image/upscale, seed or negative-prompt control, and cancelling a queued job, though agents can mostly work around these.