comfyui
v1.1.29MCP server for ComfyUI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
comfyui_inspect_node
Search or inspect ComfyUI nodes; use node_class for full schema.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum results to return (1–100, default 20) |
node_class | string | Exact class for full schema. Prefer this after list/search picks a name. |
offset | integer | Number of results to skip for pagination (default 0) |
query | string | Token search on class, display name, category (hyphens optional). |
comfyui_get_server_status
Check ComfyUI server availability, GPU devices, VRAM usage, and queue status.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Include full system and device metrics. |
comfyui_discover_workflows
Search server userdata + templates (+ MCP clones). Prefer these; do not invent graphs.
| Parameter | Type | Description |
|---|---|---|
directory_path | string | Optional MCP-host folder extension; server catalogs are default. |
limit | integer | Maximum results to return (1–100, default 20) |
offset | integer | Number of results to skip for pagination (default 0) |
query | string | OR tokens on name/nodes/assets/templates; ranks relevance first. |
comfyui_workflow_run
Run existing workflow_ref with scalar overrides; do not invent graph JSON.
| Parameter | Type | Description |
|---|---|---|
await | boolean | Wait briefly for images. Prefer short timeout polls if the host cuts long waits. |
max_images | integer | Native images to return (0=refs only). Prefer output over temp; extras stay in image_refs. |
overrides | object | Flat string, number, or boolean values. Example: {"positive_prompt":"a cat","seed":7,"6.prompt":"waist-up portrait"}. Never wrap a value in an object. |
timeout | integer | Wait poll seconds (default 25). Call wait again if timed out. |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |
comfyui_get_workflow
Inspect existing workflow and override keys; fix health warnings before run.
| Parameter | Type | Description |
|---|---|---|
include_prompt | boolean | Include normalized API JSON in structuredContent. |
verbose | boolean | Include every editable input, not just high-signal ones. |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |
comfyui_save_workflow
Clone an existing workflow to MCP disk for edits; not for authoring new graphs.
| Parameter | Type | Description |
|---|---|---|
include_prompt | boolean | Include saved API JSON in structuredContent. |
output_file_name | string | Filename to write locally. (default: anchored to ./) |
overrides | object | Flat string, number, or boolean values. Example: {"positive_prompt":"a cat","seed":7,"6.prompt":"waist-up portrait"}. Never wrap a value in an object. |
overwrite | boolean | Replace an existing local file when true. |
repair_invalid | boolean | Auto-fix invalid combo/type widgets before save (Web UI scramble). |
verbose | boolean | Include every editable input, not just high-signal ones. |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |
comfyui_wait_for_workflow
Poll a prompt_id until done; recall with same id if timed out (~25s).
| Parameter | Type | Description |
|---|---|---|
prompt_id * | string | The prompt_id of the submitted workflow. |
max_images | integer | Native images to return (0=refs only). Prefer output over temp; extras stay in image_refs. |
timeout | integer | Wait poll seconds (default 25). Call again with the same prompt_id if timed out. |
comfyui_interrupt_workflow
Interrupt the running workflow and optionally clear the queue.
| Parameter | Type | Description |
|---|---|---|
clear_queue | boolean | Clear pending queue items when true. |
prompt_id | string | Running prompt to interrupt. Omit to stop the current job. |
comfyui_upload_image
Upload via file_path or previous prompt_id+filename. Image bytes never pass through the model.
| Parameter | Type | Description |
|---|---|---|
file_path | string | Workspace image path. Use when the file is already on disk. |
filename | string | Required with prompt_id (ComfyUI output filename). Optional destination name for file_path. |
image_type | string | ComfyUI upload folder type. |
overwrite | boolean | Replace an existing file when true. |
prompt_id | string | Previous wait/run prompt_id. Server copies that output into input without image bytes in the model. |
source_type | string | ComfyUI folder to read when using prompt_id. |
subfolder | string | ComfyUI subfolder for a prompt_id source. |
comfyui_list_models
List installed checkpoints, LoRAs, VAEs, and other models.
| Parameter | Type | Description |
|---|---|---|
filename | string | Exact model filename: list node class_types whose COMBO options include it. |
limit | integer | Maximum results to return (1–100, default 20) |
model_type | string | Folder or alias (checkpoint, lora, ipadapter, …). Omit to list folders. |
offset | integer | Number of results to skip for pagination (default 0) |
comfyui_install_skill
Optional playbook export; tools already return next-step guidance without it.
| Parameter | Type | Description |
|---|---|---|
target_dir | string | Cwd-relative export dir. Defaults to .mcp-skills under cwd. |
comfyui_connect_nodes
Connect nodes semantically with type validation and auto-wiring.
| Parameter | Type | Description |
|---|---|---|
output_file_name | string | Filename to write locally. (default: anchored to ./) |
overwrite | boolean | Replace existing local file (default true; in-place edits always overwrite). |
source | string | Required unless source_node is set. Short alias of source_node. |
source_node | string | Required unless source is set. Source node ID or role (e.g. "@checkpoint", "3"). |
source_output | Source output name, type, index, or {name|type|index}. Omit to auto-wire. | |
target | string | Required unless target_node is set. Short alias of target_node. |
target_input | string | Target input name (auto-wired if omitted). |
target_node | string | Required unless target is set. Target node ID or role (e.g. "@sampler", "5"). |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |
comfyui_insert_node
Insert node with optional pipeline interception between source and target.
| Parameter | Type | Description |
|---|---|---|
class_type * | string | ComfyUI class_type to add (e.g. "LoraLoader"). |
alias | string | Human-readable alias or title for this node. |
between | Auto-rewire between source and target (e.g. ["@checkpoint", "@sampler"] or {source,target}). | |
inputs | object | Initial input parameters or literals. |
output_file_name | string | Filename to write locally. (default: anchored to ./) |
overwrite | boolean | Replace existing local file (default true; in-place edits always overwrite). |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |
comfyui_remove_node
Remove a node and automatically clean dependent connections.
| Parameter | Type | Description |
|---|---|---|
node_ref * | string | Node ID or role to remove (e.g. "3", "@lora"). |
output_file_name | string | Filename to write locally. (default: anchored to ./) |
overwrite | boolean | Replace existing local file (default true; in-place edits always overwrite). |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |
comfyui_list_connections
List workflow connections, port types, and detected semantic roles.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Include dangling connections and port details. |
workflow_file_path | string | Deprecated alias of workflow_ref. |
workflow_id | string | Deprecated alias of workflow_ref. |
workflow_ref | string | server:workflows/…, template:default/…, MCP path, filename, or id. |