Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyDesign and media

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 workflow
  • restart_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

ComfyUI installed and running (Desktop or from source), and Node.js, since it starts with npx -y comfyui-mcp. A Civitai token is optional. For Comfy Cloud, set COMFYUI_API_KEY.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.