PlugWiki
ComfyUI MCP (artokun) logo

ComfyUI MCP Server (artokun): Setup for Claude Code, Cursor and Other Apps

CommunityLocal
Getnpmcomfyui-mcpartokun/comfyui-mcp

Not the official ComfyUI MCP server. This one is built by the community. ComfyUI makes its own: Comfy MCP →

Lets Claude, Cursor and other assistants run ComfyUI for you: generate images, video and audio, edit workflows and manage models.

This community server drives a ComfyUI install on your own machine or a remote one. Your assistant can pick a model, build and run a workflow, look at the image and try again. It can also install custom nodes, download models and free GPU memory.

It runs through npx and needs Node 22 or newer, plus a running ComfyUI. It is not made by Comfy-Org. A few tools reach further than image generation, such as installing and removing node packs, starting and stopping ComfyUI, and renting RunPod GPUs, so read the safety notes.

Good for

  • ComfyUI users who want to describe an image and let the assistant build the workflow
  • Artists running parameter sweeps and comparing results
  • Power users who manage models, custom nodes and VRAM from chat

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install ComfyUI MCP (artokun)

Claude Code

  1. 1

    Copy this prompt.

    Add the ComfyUI MCP (artokun) server to Claude Code. Run this command:
    
    claude mcp add comfyui-artokun -- npx -y comfyui-mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js 22+, A running ComfyUI (desktop or from source).

Read-only mode: No read-only mode is documented.

Start ComfyUI first (Node.js 22 or newer is required). For a remote ComfyUI, add a COMFYUI_URL environment variable with its address. CIVITAI_API_TOKEN is optional and only used for model downloads.

Built from the package data we hold. Not yet tested by us.

Tools

  • Generates images, video, audio or 3D from a prompt

    Builds and runs a ComfyUI workflow from one line. Actions cover plain text-to-image, ControlNet and IP-Adapter guidance, video, audio, 3D, upscaling and background removal. It fills gaps from your saved defaults and picks a checkpoint for you.

    Try: “Generate an image of a sunset over mountains.”

    Write · generate_image

  • Views, lists and analyses generated images

    Returns a generated image so the assistant can see it, lists recent outputs and assets, gives an image's palette and contrast, and shows how an asset was made.

    Try: “Show me the last three images you made.”

    Network · get_image

  • Runs a workflow you supply or a template

    Submits a workflow and returns right away. It can also re-run a past generation, run a shared workflow from a URL, or run a bundled template with your overrides.

    Try: “Run this workflow with a different seed.”

    Write · enqueue_workflow

  • Shows and manages the ComfyUI job queue

    Lists running and pending jobs, checks one job, and can reorder, edit or cancel pending jobs.

    Try: “What is in the queue right now?”

    Write · queue

  • Shows past runs, errors and good settings

    Returns execution history with errors and timings, explains why a run failed, and suggests sampler, steps and CFG settings that worked before on your machine.

    Try: “Why did my last run fail?”

    Network · get_history

  • Builds a workflow from a template or by editing

    Creates workflows from templates such as txt2img, img2img, inpaint, upscale, ControlNet and audio, and edits them node by node.

    Try: “Make an inpaint workflow I can run.”

    Write · create_workflow

  • Reads saved workflows from your library

    Lists the saved workflows, returns one by filename, or summarises what it does.

    Try: “List my saved workflows.”

    Files · get_workflow

  • Saves a workflow to your library

    Stores a workflow, overwriting a file with the same name, and can record a lock of the models and node versions it used.

    Try: “Save this workflow as portrait-v2.”

    Write · save_workflow

  • Draws a workflow as a diagram

    Renders a workflow you pass in as a Mermaid flowchart, and converts between workflow formats.

    Try: “Draw a diagram of this workflow.”

    Read · visualize_workflow

  • Reads or sets your generation defaults

    Shows the merged defaults with where each came from, updates them, and can save to the config file. It can also read and write ComfyUI's own interface settings.

    Try: “Set my default steps to 30.”

    Write · get_defaults

  • Copies a local image into ComfyUI

    Copies an image from your computer into ComfyUI's input folder for img2img, inpainting or ControlNet.

    Try: “Upload ~/Pictures/pose.png for ControlNet.”

    Write · upload_image

  • Lists the models installed in ComfyUI

    Shows installed checkpoints, LoRAs, VAEs, upscalers and more, and where ComfyUI looks for them.

    Try: “Which checkpoints do I have?”

    Network · list_local_models

Read from the source code

Permissions

high risk · 4 things to watch

High risk

The assistant can generate files, install and remove ComfyUI node packs, restart ComfyUI and start paid cloud GPU pods. Approve installs, deletes and anything that costs money by hand.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It can install and remove software

    Tools can install and delete custom node packs, run pip installs from a manifest and run training jobs. Approve those calls by hand. github.com

  • It can spend money

    The RunPod tool says it spends money, and partner API nodes spend paid Comfy credits. Check costs before approving. github.com

  • It can stop and restart ComfyUI

    It starts, stops and restarts the ComfyUI process, and can run the comfy-cli tool. Save your work first. github.com

  • The remote option opens a public address

    The tunnel option makes a public URL protected by a token. Keep that token private and use it only when you need it. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyNo read-only mode is documented. The README describes an operator setting that limits which tools appear, but not a read-only preset.
Talks toYour ComfyUI server. HuggingFace, Civitai and the node registry for downloads and searches. RunPod, if you use its tools
Sign-in and keysComfyUI needs no sign-in. Optional tokens are read from environment variables in your client config.
Scopes
  • Optional Civitai token, Comfy account or RunPod credentials for those tools

Questions

Is this the official ComfyUI MCP server?

No. It is a community project by artokun. Comfy-Org ships its own agent tools separately, including a hosted Comfy Cloud connector.

What do I need before installing it?

A running ComfyUI (desktop or from source) and Node.js 22 or newer. Optionally add a Civitai token for model downloads.

Is the tool list complete?

It lists the 38 tools the published package registers plus a 3-tool catalog facade. Autoloaded workflows can add more tools, and many tools take an action setting that covers several jobs.

Can it use a remote ComfyUI?

Yes. Set COMFYUI_URL to another server's address, for RunPod, a VPS or a LAN machine. The README also covers a tunnel mode for Claude Desktop custom connectors.

Can it spend money or delete things?

Yes. The RunPod tool and partner API nodes cost money, and it can remove custom node packs and delete training jobs.

Is it free?

The package is MIT licensed and free. Local rendering uses your own GPU. Hosted partner nodes and RunPod charge you directly.

Does it work with a local model through Ollama?

The README describes a panel agent that can use Ollama or hosted models. That is a separate part of the project from the MCP server.

Information

updated Nov 2, 2026

Publisher
Community
Package
comfyui-mcp
Registry
npm
Transport
stdio
Auth
None
Version
0.52.206
License
MIT
Last commit
Oct 26, 2026
Listed in
Official MCP registry

WebsiteGitHubnpmOfficial MCP RegistryChangelogIssues

Other ComfyUI MCP servers

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 2
  1. github.com · github.com
  2. www.npmjs.com · npmjs.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.