artokun avatar

Comfyui Mcp

artokun/comfyui-mcp

A bridge between Claude and your ComfyUI installation that exposes 80+ tools for building and executing image generation workflows. You can queue workflows, manage models and LoRAs, control VRAM, search custom nodes, and retrieve generated assets with full provenance. Ships with slash commands for quick tasks like `/comfy:gen` for text-to-image or `/comfy:debug` to trace failures. Includes autonomous agents that research custom node packs or optimize workflow performance. Works with local installs on any OS, remote instances, and Comfy Cloud. The progress monitor connects to ComfyUI's WebSocket for real-time step updates instead of polling. Useful when you want programmatic control over ComfyUI pipelines without leaving your editor or chat interface.

GitHub stars
895
tools
20
transport
STDIO
last updated
Oct 14, 2026

Tools

20 tools

Public tool metadata for what this MCP can expose to an agent.

generate_imageGenerate from a text prompt — builds a txt2img workflow, fills unspecified params from your defaults, auto-selects a checkpoint

Generate from a text prompt — builds a txt2img workflow, fills unspecified params from your defaults, auto-selects a checkpoint

No parameter schema in public metadata yet.

get_imageReturn a generated asset's bytes as an inline image so the agent can see the result

Return a generated asset's bytes as an inline image so the agent can see the result

No parameter schema in public metadata yet.

get_defaultsShow merged generation defaults with per-source attribution

Show merged generation defaults with per-source attribution

No parameter schema in public metadata yet.

enqueue_workflowSubmit a workflow (API format JSON) — returns prompt_id immediately, non-blocking

Submit a workflow (API format JSON) — returns prompt_id immediately, non-blocking

No parameter schema in public metadata yet.

queueOne action-parameterized tool for the execution queue: list, status, get_workflow, move/edit, cancel, cancel_queued, clear

One action-parameterized tool for the execution queue: list, status, get_workflow, move/edit, cancel, cancel_queued, clear

No parameter schema in public metadata yet.

get_system_statsGet system info — GPU, VRAM, Python version, OS

Get system info — GPU, VRAM, Python version, OS

No parameter schema in public metadata yet.

visualize_workflowOne action-parameterized tool for rendering and converting a workflow you pass in: render, render_hierarchical, mermaid, to_dsl/from_dsl

One action-parameterized tool for rendering and converting a workflow you pass in: render, render_hierarchical, mermaid, to_dsl/from_dsl

No parameter schema in public metadata yet.

create_workflowOne action-parameterized tool for authoring: create, modify, validate, node_info

One action-parameterized tool for authoring: create, modify, validate, node_info

No parameter schema in public metadata yet.

get_workflowOne action-parameterized tool for READING a saved workflow file: list, get, analyze, query, strip, slice, from_image, prompt_director

One action-parameterized tool for READING a saved workflow file: list, get, analyze, query, strip, slice, from_image, prompt_director

No parameter schema in public metadata yet.

save_workflowOne action-parameterized tool for WRITING to the library: save, lock, verify_lock

One action-parameterized tool for WRITING to the library: save, lock, verify_lock

No parameter schema in public metadata yet.

upload_imageCopy a local image into ComfyUI's input/ directory for img2img, inpaint, or ControlNet

Copy a local image into ComfyUI's input/ directory for img2img, inpaint, or ControlNet

No parameter schema in public metadata yet.

download_modelFind and fetch model weights, and track the transfers. action: download, status, cancel, search, search_civitai, search_creators, download_civitai, resolve_missing

Find and fetch model weights, and track the transfers. action: download, status, cancel, search, search_civitai, search_creators, download_civitai, resolve_missing

No parameter schema in public metadata yet.

list_local_modelsWhat is installed, and where ComfyUI looks. action: list, remove, embeddings, list_paths, add_path, remove_path

What is installed, and where ComfyUI looks. action: list, remove, embeddings, list_paths, add_path, remove_path

No parameter schema in public metadata yet.

clear_vramFree GPU VRAM by unloading cached models — calls ComfyUI's /free endpoint, reports before/after stats

Free GPU VRAM by unloading cached models — calls ComfyUI's /free endpoint, reports before/after stats

No parameter schema in public metadata yet.

search_custom_nodesSearch the ComfyUI Registry for node packs by keyword (action: search), or get one pack's full details (action: details)

Search the ComfyUI Registry for node packs by keyword (action: search), or get one pack's full details (action: details)

No parameter schema in public metadata yet.

list_packsGenerate a Claude skill .md file from a Registry ID or GitHub URL

Generate a Claude skill .md file from a Registry ID or GitHub URL

No parameter schema in public metadata yet.

comfy_cliOne action-parameterized tool for the whole official CLI: status, server control, jobs, search_nodes, workflow, transfer, models, and skills actions

One action-parameterized tool for the whole official CLI: status, server control, jobs, search_nodes, workflow, transfer, models, and skills actions

No parameter schema in public metadata yet.

kitchenSee what comfy-kitchen can do on this GPU (status), find where a graph leaves it on the table (assess), and apply the faster path (apply)

See what comfy-kitchen can do on this GPU (status), find where a graph leaves it on the table (assess), and apply the faster path (apply)

No parameter schema in public metadata yet.

get_historyGet execution history with full error details, Python tracebacks, timing, and cached node info; also diagnose, suggest, and stats actions

Get execution history with full error details, Python tracebacks, timing, and cached node info; also diagnose, suggest, and stats actions

No parameter schema in public metadata yet.

restart_comfyuiStop, start, restart, or check status of the ComfyUI process, preserving launch arguments

Stop, start, restart, or check status of the ComfyUI process, preserving launch arguments

No parameter schema in public metadata yet.

Sponsors

Readme

comfyui-mcp — drive ComfyUI with ANY LLM

The Agent panel driving ComfyUI end to end. Click to watch the demo

The Agent panel driving ComfyUI end to end. It reads what is installed locally, wires the graph, frees VRAM, and runs the render.
Watch the 76s demo →


View the full README on GitHub

Details

Repository
github.com/artokun/comfyui-mcp
Package
comfyui-mcp
Transport
STDIO
Registry
MCP registry, active