comfyui

v1.1.29
@fre4x/comfyui Checked 1 day ago Published 1 month ago

MCP 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.

ParameterTypeDescription
limitintegerMaximum results to return (1–100, default 20)
node_classstringExact class for full schema. Prefer this after list/search picks a name.
offsetintegerNumber of results to skip for pagination (default 0)
querystringToken search on class, display name, category (hyphens optional).

comfyui_get_server_status

Check ComfyUI server availability, GPU devices, VRAM usage, and queue status.

ParameterTypeDescription
verbosebooleanInclude full system and device metrics.

comfyui_discover_workflows

Search server userdata + templates (+ MCP clones). Prefer these; do not invent graphs.

ParameterTypeDescription
directory_pathstringOptional MCP-host folder extension; server catalogs are default.
limitintegerMaximum results to return (1–100, default 20)
offsetintegerNumber of results to skip for pagination (default 0)
querystringOR tokens on name/nodes/assets/templates; ranks relevance first.

comfyui_workflow_run

Run existing workflow_ref with scalar overrides; do not invent graph JSON.

ParameterTypeDescription
awaitbooleanWait briefly for images. Prefer short timeout polls if the host cuts long waits.
max_imagesintegerNative images to return (0=refs only). Prefer output over temp; extras stay in image_refs.
overridesobjectFlat string, number, or boolean values. Example: {"positive_prompt":"a cat","seed":7,"6.prompt":"waist-up portrait"}. Never wrap a value in an object.
timeoutintegerWait poll seconds (default 25). Call wait again if timed out.
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver:workflows/…, template:default/…, MCP path, filename, or id.

comfyui_get_workflow

Inspect existing workflow and override keys; fix health warnings before run.

ParameterTypeDescription
include_promptbooleanInclude normalized API JSON in structuredContent.
verbosebooleanInclude every editable input, not just high-signal ones.
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver: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.

ParameterTypeDescription
include_promptbooleanInclude saved API JSON in structuredContent.
output_file_namestringFilename to write locally. (default: anchored to ./)
overridesobjectFlat string, number, or boolean values. Example: {"positive_prompt":"a cat","seed":7,"6.prompt":"waist-up portrait"}. Never wrap a value in an object.
overwritebooleanReplace an existing local file when true.
repair_invalidbooleanAuto-fix invalid combo/type widgets before save (Web UI scramble).
verbosebooleanInclude every editable input, not just high-signal ones.
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver: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).

ParameterTypeDescription
prompt_id *stringThe prompt_id of the submitted workflow.
max_imagesintegerNative images to return (0=refs only). Prefer output over temp; extras stay in image_refs.
timeoutintegerWait 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.

ParameterTypeDescription
clear_queuebooleanClear pending queue items when true.
prompt_idstringRunning 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.

ParameterTypeDescription
file_pathstringWorkspace image path. Use when the file is already on disk.
filenamestringRequired with prompt_id (ComfyUI output filename). Optional destination name for file_path.
image_typestringComfyUI upload folder type.
overwritebooleanReplace an existing file when true.
prompt_idstringPrevious wait/run prompt_id. Server copies that output into input without image bytes in the model.
source_typestringComfyUI folder to read when using prompt_id.
subfolderstringComfyUI subfolder for a prompt_id source.

comfyui_list_models

List installed checkpoints, LoRAs, VAEs, and other models.

ParameterTypeDescription
filenamestringExact model filename: list node class_types whose COMBO options include it.
limitintegerMaximum results to return (1–100, default 20)
model_typestringFolder or alias (checkpoint, lora, ipadapter, …). Omit to list folders.
offsetintegerNumber of results to skip for pagination (default 0)

comfyui_install_skill

Optional playbook export; tools already return next-step guidance without it.

ParameterTypeDescription
target_dirstringCwd-relative export dir. Defaults to .mcp-skills under cwd.

comfyui_connect_nodes

Connect nodes semantically with type validation and auto-wiring.

ParameterTypeDescription
output_file_namestringFilename to write locally. (default: anchored to ./)
overwritebooleanReplace existing local file (default true; in-place edits always overwrite).
sourcestringRequired unless source_node is set. Short alias of source_node.
source_nodestringRequired unless source is set. Source node ID or role (e.g. "@checkpoint", "3").
source_outputSource output name, type, index, or {name|type|index}. Omit to auto-wire.
targetstringRequired unless target_node is set. Short alias of target_node.
target_inputstringTarget input name (auto-wired if omitted).
target_nodestringRequired unless target is set. Target node ID or role (e.g. "@sampler", "5").
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver:workflows/…, template:default/…, MCP path, filename, or id.

comfyui_insert_node

Insert node with optional pipeline interception between source and target.

ParameterTypeDescription
class_type *stringComfyUI class_type to add (e.g. "LoraLoader").
aliasstringHuman-readable alias or title for this node.
betweenAuto-rewire between source and target (e.g. ["@checkpoint", "@sampler"] or {source,target}).
inputsobjectInitial input parameters or literals.
output_file_namestringFilename to write locally. (default: anchored to ./)
overwritebooleanReplace existing local file (default true; in-place edits always overwrite).
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver:workflows/…, template:default/…, MCP path, filename, or id.

comfyui_remove_node

Remove a node and automatically clean dependent connections.

ParameterTypeDescription
node_ref *stringNode ID or role to remove (e.g. "3", "@lora").
output_file_namestringFilename to write locally. (default: anchored to ./)
overwritebooleanReplace existing local file (default true; in-place edits always overwrite).
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver:workflows/…, template:default/…, MCP path, filename, or id.

comfyui_list_connections

List workflow connections, port types, and detected semantic roles.

ParameterTypeDescription
verbosebooleanInclude dangling connections and port details.
workflow_file_pathstringDeprecated alias of workflow_ref.
workflow_idstringDeprecated alias of workflow_ref.
workflow_refstringserver:workflows/…, template:default/…, MCP path, filename, or id.