ComfyUI MCP
Lets your AI agent generate images, video and audio in ComfyUI, build and run workflows, and manage models.
894 stars on GitHubby artokunLicense MITUpdated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add comfyui -- npx -y comfyui-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Generate an image of a sunset over mountains.
Why did my last workflow fail? Check the logs and tell me the fix.
What it is
This server connects your AI agent to ComfyUI, the node-based tool for generating images, video and audio. The agent can find or download a model, build a workflow, run it and return the result. It also manages custom nodes and models, and can edit your live ComfyUI graph. It works with a local, LAN, VPS or Comfy Cloud setup.
What it can do
enqueue_workflow: run a workflowrestart_comfyui: stop or restart ComfyUI/comfy:gen: generate an image from a text description/comfy:debug: find out why a workflow failed/comfy:batch: run a parameter sweep across settings/comfy:install: install a custom node pack/comfy:viz: draw a workflow as a Mermaid diagram- Skills with model guides for Flux, WAN, LTX and others
When to use
- βΊWhen you want your agent to generate an image in ComfyUI from a sentence
- βΊWhen a workflow fails and you want your agent to find the cause
- βΊWhen you want to install custom nodes or models without doing it by hand
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
comfyuiGuides your agent to set up ComfyUI and run diffusion workflows that generate images, video, or audio on your computer or in the cloud.comfyuiHelps your agent run ComfyUI workflows to make images, videos, and music, including custom workflows and missing model setup.cli-anything-comfyuiLets your agent queue AI image workflows in ComfyUI, check the queue, manage models, and download generated images without a visual interface.Frequently asked questions
Is it free and open source?
It has a license badge and runs from npm. The readme says you can use a free local model through Ollama with no account for the panel agent.
Which AI models can drive it?
The readme lists Claude, ChatGPT, Gemini, local models through Ollama and any hosted model through OpenRouter.
Does it work with Comfy Cloud?
Yes, through a community cloud mode that uses COMFYUI_API_KEY. The readme also says Comfy-Org ships its own cloud tools.
What is the Agent Panel?
A separate sidebar agent for ComfyUI, installable from ComfyUI-Manager, that edits your live graph.
Does it warn me about problems?
As a Claude Code plugin it has hooks that check free GPU memory before a run and warn about unsaved changes before a restart.
Which systems does it run on?
macOS, Linux and Windows. It detects your ComfyUI install and port.
If it does not work
- βΊMake sure ComfyUI is running before you ask for a generation.
- βΊCheck that Node.js is installed so npx can run comfyui-mcp.
- βΊIf memory runs short, check free VRAM before running; the plugin warns when less than 1 GB is free.
5 new skills a week. 1 minute to read.