← Back to Leaderboard
CComfy-Org

Comfy-Org/comfy-mcp

A stdio MCP bridge from AI agents to ComfyUI workflows via comfy-cli

View on GitHub ↗
Engineering Health (Methodology)
A · 78/100
Maintenance Activity
● Updated today
Latest Release
v0.11.0
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity6/20
MCPCLISelf-Hosted
Total Stars
★ 388
24h Growth
+1
7d Growth
+8
Forks
57

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Comfy-Org/comfy-mcp Star History (2026-08-06 - 2026-12-04) ALL-TIME STAR HISTORY (2026-08 – 2026-12) +387 in 120d · avg +3/day 410 205 0 2026-08-06: ★ 12026-08-15: ★ 172026-08-29: ★ 1862026-09-12: ★ 2182026-09-26: ★ 2372026-10-10: ★ 2682026-10-24: ★ 2992026-11-01: ★ 3202026-11-09: ★ 3362026-11-17: ★ 3552026-11-25: ★ 3752026-12-04: ★ 388 ★ 388 08-06 10-05 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Comfy MCP is a Python 3.10+ stdio server and a thin bridge from an MCP client to comfy-cli. The client launches comfy-mcp as a subprocess. The bridge invokes comfy with --where local --json, parses its envelope/1 response, and returns it through MCP. The default ComfyUI target is 127.0.0.1:8188; COMFYUI_URL redirects the run and job tools to a ComfyUI instance you control.

The comfy executable is resolved from PATH or COMFY_BIN, not installed as a dependency of the MCP package. Compatibility therefore depends on the executable the client-launched process actually sees. The output viewer registers an inline HTML resource through MCP Apps, using the APIs available from MCP 2.3 and checking whether the client supports the extension.

Key Capabilities & Differentiators

The tool surface covers more than prompt-to-image generation. It runs workflow JSON in API format or as a UI export, validates graphs, edits template slots, and fans workflows out into variants. Asynchronous jobs can be submitted, watched or waited on, and canceled; the agent can inspect a failure verdict and collect output files. Video contact sheets and audio waveforms let the agent inspect media without handling the full output directly.

Discovery operates against the actual ComfyUI installation, including custom nodes, rather than a static catalog. Agents can also stage inputs, launch, stop, or restart ComfyUI, and tail logs. partner_generate runs models such as Flux, Ideogram, and Kling on partner infrastructure without a local ComfyUI execution path. Partner API nodes are distinct: the workflow runs in ComfyUI but delegates specific operations to hosted APIs.

Trade-offs & Limitations

Compared with scripting comfy-cli directly, the MCP layer gives an agent discoverable tools for workflow authoring, environment inspection, and job management. It also adds a client-to-subprocess boundary and a separate CLI version to manage. In particular, a successful MCP handshake does not test whether comfy is present or usable: the missing-engine error can first appear on a tool call. If a script already knows the workflow and job sequence, direct CLI use has fewer moving parts.

Self-hosting gives you control over the ComfyUI workspace and custom-node inventory, but leaves you responsible for inference capacity and runtime upkeep. It also does not guarantee that a workflow stays local: partner nodes and partner_generate use hosted infrastructure and can spend credits. Comfy Cloud MCP trades local setup for a hosted HTTP connection and an account. For self-hosted licensing, the manifest declares AGPL-3.0-or-later OR LicenseRef-Comfy-Commercial; check LICENSE and NOTICE against your intended use.

Hardware & Deployment Guide

Install Python 3.10+ and both packages with pip install comfy-mcp "comfy-cli>=1.14.0". Run comfy install if you do not already have a workspace, start ComfyUI with comfy launch, and register comfy-mcp as a stdio command in Claude Code, Claude Desktop, or Cursor. Set COMFY_BIN when the client environment cannot find comfy, and provide COMFY_API_KEY only for partner features that need it. On macOS, keep the workspace out of protected folders unless the client has the required access.

For local inference, size the ComfyUI host for the chosen models, output sizes, and concurrency, not for the MCP subprocess. The hosted HTTP option is a separate service at https://cloud.comfy.org/mcp, with OAuth or API-key authentication. v0.9.0 was the first PyPI release and fixed the broken generate_image path; v0.10.0 added the api marker to template results. The v0.11.0 correction clarifies that billing_status needs comfy-cli 1.17.0 or later to return a balance, even though the general minimum is 1.14.0.

Process boundary: The client launches a Python stdio server; the selected comfy binary runs commands and returns envelope/1 JSON.
Live discovery: Node, model, and template searches reflect the active installation, including custom nodes.
Job lifecycle: Submit asynchronously, wait or watch, cancel, and retrieve failure verdicts and output files.
Workflow authoring: Run API-format JSON or UI exports, validate graphs, edit template slots, and generate variants.
Output inspection: Produce video contact sheets and audio waveforms; inline rendering uses MCP Apps and depends on client support.
Spend visibility: search_templates exposes an api flag for credit-consuming templates; billing_status returns a balance with comfy-cli 1.17.0 or newer.
Best For

Teams with a self-managed ComfyUI workspace that want agents in Claude Code, Claude Desktop, or Cursor to discover installed nodes and models, adapt workflows, and manage render jobs.

Skip If

A fixed comfy-cli script already does the job, you need hosted GPUs without maintaining ComfyUI, or your client requires a native remote HTTP MCP endpoint rather than a local stdio subprocess.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPCLISelf-Hosted
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)

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
comfy-mcp ★388+8Python—A stdio MCP bridge from AI agents to ComfyUI workflows via comfy-cli
agents43.2k+221PythonMITOne Markdown plugin catalog adapted to seven AI coding tools
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis
chrome-devtools-mcp60.4k+801TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Comfy-Org/comfy-mcp.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Comfy-Org/comfy-mcp Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about comfy-mcp

Does a successful MCP connection mean ComfyUI is ready to run workflows?

No. The MCP client starts comfy-mcp as a stdio subprocess, and the server invokes the external comfy executable. Install comfy-cli separately and set COMFY_BIN to its absolute path if the client cannot resolve it. A successful MCP handshake does not prove the CLI is available or that ComfyUI is running.

How much GPU memory does a local deployment need?

Size the machine that runs ComfyUI for your actual models, resolutions, workflow graphs, and concurrent jobs. The Python MCP process brokers calls; it does not perform local model inference. No fixed VRAM requirement is given, so test a representative workflow at your intended concurrency. With COMFYUI_URL, the target machine bears the inference load for the run and job tools.

What should a commercial self-hosting team check before adopting it?

The package manifest declares AGPL-3.0-or-later OR LicenseRef-Comfy-Commercial. Self-hosting is a deployment choice, not a licensing exemption. Review LICENSE and NOTICE, check the obligations of your chosen license against your modification, distribution, and network-use plans, and contact licensing@comfy.org if you need commercial terms.

When should I use comfy-cli directly or choose Comfy Cloud MCP instead?

Use comfy-cli directly if scripts already know which workflow to run and how to handle its results. Choose comfy-mcp when an agent needs to discover nodes and models, compose or adjust workflows, and monitor jobs through MCP. Choose the separate Comfy Cloud MCP endpoint if you want hosted GPU execution without managing a ComfyUI workspace. A locally launched server targeting another ComfyUI via COMFYUI_URL is still a stdio deployment, not Comfy Cloud MCP.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Comfy-Org/comfy-mcp? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Comfy-Org/comfy-mcp on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare