Skip to content

Comfy MCP

Local MCP server for ComfyUI, run your local ComfyUI from AI agents

Install: claude mcp add --transport http comfy-cloud https://cloud.comfy.org/mcp

Works with Claude Code · 335 GitHub stars

Install

One-click install

Remote server
Claude Code (no install link, copy and run)
$claude mcp add --transport http comfy-cloud https://cloud.comfy.org/mcp

Buttons open the app on your computer and ask you to confirm before anything is added.

$claude mcp add --transport http comfy-cloud https://cloud.comfy.org/mcp
mcp.json (Cursor, Claude Desktop, Windsurf)
{
  "mcpServers": {
    "comfy-cloud": {
      "url": "https://cloud.comfy.org/mcp"
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

Comfy MCP

Drive your own ComfyUI from Claude Code, Claude Desktop, Cursor, or any MCP-speaking AI agent — an MCP server built on comfy-cli.

Quickstart · Configure your client · Comfy Cloud MCP · Tools · Contributing

Looking for the cloud-hosted version? Comfy Cloud MCP is set up below — install it instead of this server, or alongside it.

What it does:

  • 🖼️ Generate — run a workflow JSON (API-format or UI export), or go text-prompt → image in one call.
  • ⏱️ Monitor jobs — submit async, then wait / watch / cancel, read the failure verdict, and collect the output PNGs.
  • 🔍 Introspect your live install — search the nodes, models, and templates your ComfyUI actually has (custom nodes included), not a static catalog.
  • 🧩 Build workflows — validate a graph, edit a template's slots, and fan one workflow into variants.
  • ♻️ Manage ComfyUI — launch / stop / restart the server, tail its logs, and stage input assets.

Each tool shells out to the comfy command with --where local --json, parses comfy-cli's envelope/1 output, and returns it — comfy-cli is the engine, and by default everything targets the ComfyUI on your machine (127.0.0.1:8188).

Scope — local-first, not local-only. A few flows already reach beyond your machine: partner_generate runs hosted partner models (Flux / Ideogram / Kling / …) entirely on partner infrastructure — no local ComfyUI in the execution path — and partner-API nodes let a locally-executed workflow call those same hosted models, while COMFYUI_URL points the run/job tools at a ComfyUI on another machine you control.

This server vs. Comfy Cloud MCP. Two different servers, and running both is normal. This one is stdio: your client launches it as a subprocess on your own machine, and it drives the ComfyUI installed there (or one on another machine you control). Comfy Cloud MCP is a remote HTTP server at https://cloud.comfy.org/mcp that your client connects to over the network, and it executes workflows on Comfy Cloud GPUs — no local GPU, no ComfyUI install. Both authenticate: this one signs in to Comfy through comfy-cli (auth_login or COMFY_API_KEY), the cloud one through OAuth in your browser or a Comfy Cloud API key. Both can spend credits on partner models, so partner generation is not the dividing line — what this server has no path to is Comfy Cloud itself: no cloud-hosted execution, no cloud queue, no cross-session cloud batches. Every tool here shells out to comfy --where local. Pick by where you want the work to run, or install the cloud server too.

Status: beta. 40 tools; core loop validated end-to-end against a live local ComfyUI (server_info → run_workflow → fetch_outputs → PNG on disk). CI runs pytest + ruff on Python 3.10 and 3.14.

Quickstart

Four steps take you from a fresh install to your first generated image.

  1. Install the pieces.

    pip install comfy-mcp "comfy-cli>=1.14.0"  # this server + the engine it wraps
    comfy install                              # create a ComfyUI workspace (skip if you have one)
    

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related