This is a Comfy Cloud feature and is only available in the cloud version. To learn more about Comfy Cloud, see Comfy Cloud.
Public beta. Comfy Cloud MCP is in public beta. APIs, tools, and behavior may change while we iterate. See Feedback to report issues or share suggestions.
Overview
The Comfy Cloud MCP server connects AI agents to Comfy Cloud over the Model Context Protocol. Once connected, you can generate images, video, audio, and 3D, search models, nodes, and templates, and run ComfyUI workflows from a chat with your agent. The server runs remotely atcloud.comfy.org/mcp. Workflows execute on Comfy Cloud GPUs, so you do not need a local GPU. Your agent talks to the server over HTTPS; the server translates tool calls into authenticated requests to Comfy Cloud on your behalf.
Any MCP-compatible client can connect to the same server URL. Claude Code, Claude Desktop, Cursor, and Codex have first-class setup below. Windsurf, Amp, and other agents use the same URL with OAuth or an API key.
Install Comfy Cloud MCP
You need a Comfy Cloud account before connecting. Sign up if you do not have one yet. OAuth sign-in during setup uses your Comfy account.
- Claude Code
- Claude Desktop
- Cursor
- Codex
- Other clients
Install the comfy-cloud plugin. It adds the MCP connection and slash commands in one step. The plugin is published through the Comfy Skills repository, which hosts Claude Code plugins and community agent skills for Comfy.
The plugin adds these slash commands:
| Command | What it does |
|---|---|
/comfy-cloud:generate-image | Generate, edit, or modify an image |
/comfy-cloud:generate-video | Generate, edit, or extend a video |
/comfy-cloud:generate-audio | Generate audio, music, or sound effects |
/comfy-cloud:generate-3d | Generate a 3D model from text or an image |
/comfy-cloud:remove-background | Remove the background from an image |
/comfy-cloud:upscale-image | Upscale an image to higher resolution |
/comfy-cloud:search-templates | Find pre-built workflow templates on comfy.org |
/comfy-cloud:search-models | Search for available models |
/comfy-cloud:search-nodes | Search for nodes and get wiring suggestions |
/comfy-cloud:help | See what you can do with ComfyUI Cloud |
Prefer just the connection, without the plugin?
Prefer just the connection, without the plugin?
Add the server directly:Then run
/mcp, select comfy-cloud → Authenticate. Add -s user to make it available in all your projects.This path still exposes the same workflows as MCP prompts: /mcp__comfy-cloud__generate-image, /mcp__comfy-cloud__search-models, and so on (the /mcp__<name>__ prefix uses the name you passed to claude mcp add). The plugin above is recommended because it wraps these as the friendlier /comfy-cloud:* commands.What your agent can do
You do not call MCP tools yourself. Your agent picks the right tool based on what you ask for. Slash commands and prompts (below) are shortcuts that steer the agent toward common tasks, but plain language works too (“generate an image of a cat astronaut”, “upscale this photo”, “find a Wan 2.2 video template”). Typical flow:- Discover what is available (
search_templates,search_models,search_nodes, orcqlfor graph-style questions). - Run a generation:
run_templatefor a matching pre-built template,submit_workflowfor a custom workflow (withupload_filewhen an input image is needed), orpartner_generatefor partner models like Flux, Grok, Gemini, OpenAI, Ideogram, and Seedance. - Wait and retrieve outputs (
wait_for_job, thenget_outputreturns a download command your agent runs in your shell).
MCP tools
These are the tools your agent has access to once connected. Names match what appears in MCP client logs and debugging.Discovery
| Tool | Description |
|---|---|
search_templates | Search pre-built workflow templates from comfy.org by text, tag, media type, or model |
get_template | Fetch a template’s full workflow JSON for inspection or hand-editing |
get_template_schema | See which of a template’s parameters can be overridden at run time |
search_models | Search the model catalog by text, type, base model, or source |
search_nodes | Search available nodes by text, category, or input/output types. Also surfaces subgraph blueprints (pre-wired node groups like Text to Image or Remove Background) |
get_node | Get the complete input spec for specific nodes, including full option lists |
cql | Run a CQL graph query for structural questions (for example, which nodes produce images, or paths between node types). Use search_nodes when you need full input specs for a specific node |
get_prompting_guide | Prompt style and recommended settings (steps, cfg, sampler, resolution) per model family |
Generation
| Tool | Description |
|---|---|
run_template | Run a pre-built template by name, with optional parameter overrides — the preferred path when a template matches |
submit_workflow | Submit a ComfyUI API-format workflow for execution on Comfy Cloud |
partner_generate | Generate with partner-API models (Flux/BFL, Grok, Gemini, OpenAI, Ideogram, Seedream/Seedance, and more) |
upload_file | Upload an input image or file for use in workflows (for example, with LoadImage) |
apply_slots | Apply parameter overrides to a workflow’s interior values and return the modified workflow |
Jobs and batches
| Tool | Description |
|---|---|
get_job_status | Poll execution status of a submitted workflow |
wait_for_job | Wait until a job finishes instead of polling repeatedly |
get_output | Retrieve output images, videos, or audio from a completed workflow |
use_previous_output | Chain workflows by reusing output from one run as input to another |
cancel_job | Cancel a pending or running job |
get_queue | Check how many jobs are running and pending |
submit_batch, get_batch_status, get_batch_output, wait_for_batch | Submit many generations in one call and collect them together later — the batch ID stays valid across sessions |
Saved workflows
| Tool | Description |
|---|---|
list_saved_workflows | Browse your saved workflows from Comfy Cloud |
get_saved_workflow | Inspect a saved workflow’s nodes, inputs, and customizable settings |
save_workflow | Save a workflow to your Comfy Cloud account |
update_workflow | Update an existing workflow in place as a new version (earlier versions stay recoverable) |
run_saved_workflow | Run a saved workflow by filename — the server converts it from editor format to executable format automatically |
Sharing workflows
| Tool | Description |
|---|---|
share_workflow | Publish a saved workflow and return a ?share=<id> URL anyone can open |
import_shared_workflow | Resolve a share URL or bare share ID into workflow JSON, optionally saving it to your account |
comfy.org/workflows/<slug>-<hex> hub URL is the share ID. For example, comfy.org/workflows/topaz-starlight-upscale-1c77e82713b7 has share ID 1c77e82713b7. Pass that token to import_shared_workflow as share_id. The share_url parameter only accepts ?share=<id> query URLs like https://cloud.comfy.org/?share=..., not hub page URLs.
Apps and links
| Tool | Description |
|---|---|
create_app | Turn a saved workflow into an App Mode app — a simplified “run this workflow” view with chosen inputs and outputs |
get_app_mode_url | Get the stable link that opens a workflow as a runnable app |
get_workflow_canvas_url | Get a link that opens a workflow directly on the Comfy Cloud canvas, ready to view, edit, or run |
Account and session
| Tool | Description |
|---|---|
get_billing_status | Check your credit balance, subscription tier, and billing link |
get_server_info | Confirm which server the agent reached: environment, host, version, and auth state |
submit_feedback | Get the beta feedback survey link |
report_session_summary | Share an anonymized session summary with the Comfy team — only with your explicit consent; the agent must ask first, and no prompts, file paths, or personal information are included |
Credits and spending
Discovery is free:search_templates, search_models, and search_nodes work with just a Comfy account. Running generations consumes Comfy Cloud credits and requires a subscription or credit balance.
Tools that spend real money are spend-gated. When a generation uses a paid partner model (partner_generate) or a workflow/template containing paid API nodes (run_template, run_saved_workflow, submit_batch), the server blocks execution until your agent confirms you agreed to spend credits — so expect the agent to check with you before those runs. Free, local-only workflows never prompt.
You can ask your agent about your balance at any time (“how many credits do I have?”) — it answers via get_billing_status.
Outputs and downloads
The MCP server runs in the cloud and never writes files to your machine. When a generation completes, your agent callsget_output, which returns:
- A temporary signed download URL (valid for a short window).
- A ready-to-run shell command (
curlon macOS and Linux,curl.exeon Windows).
Related resources
| Resource | What it’s for |
|---|---|
| Comfy Skills | Claude Code plugin marketplace and community skill library. The comfy-cloud plugin used above is distributed here; browse or contribute additional skills for Comfy workflows. |
| Comfy CLI | Command-line tool for local ComfyUI install/launch and for calling hosted partner nodes from scripts or CI (comfy generate, in beta). Complements MCP when you need terminal or automation workflows. |
| Share a workflow on Comfy Cloud | Share workflows from the Comfy Cloud UI (the MCP share_workflow tool does this from an agent session). |
Feedback
Comfy Cloud MCP is in public beta. Please try it out and tell us what works and what doesn’t:- Feedback survey: report bugs, request features, or share general impressions.
- Discord: #comfy-mcp-and-cli on the Comfy Discord for questions and discussion.
Known limitations
Comfy Cloud MCP is an early release. These limitations are known and being worked on: Workflows- Editor-to-executable conversion has rough edges. Saved workflows run by filename via
run_saved_workflow(the server converts them automatically), but some node configurations still convert imperfectly. - Assets generated via
submit_workflowmay not embed workflow metadata. They might not reopen the originating workflow when opened in ComfyUI. - Workflow building depends on agent accuracy. Complex multi-node workflows may need a retry or refinement.
- Outputs require a shell download step. See Outputs and downloads.
- Upload size limits may apply depending on your MCP client. Some clients impose their own limits on file uploads.
- OAuth or API key. Claude Code and Claude Desktop use a one-time browser OAuth flow. Cursor requires a Comfy Cloud API key in your MCP config (no OAuth). Other headless clients can pass a Comfy Cloud API key via the
X-API-Keyheader instead. A device-code OAuth flow for clients that cannot open a browser is planned.
FAQ
Which clients are supported?
Which clients are supported?
Any MCP-compatible client that supports remote HTTP transport can connect to
https://cloud.comfy.org/mcp. We document first-class setup for Claude Code, Claude Desktop, Cursor, and Codex. Windsurf, Amp, OpenClaw, and other agents follow the same URL with OAuth or an API key. See Install Comfy Cloud MCP.Do I need an API key?
Do I need an API key?
Not for interactive clients that support OAuth (Claude Code, Claude Desktop, Codex, and others). Cursor requires a Comfy Cloud API key in your MCP config. An API key is also needed for other headless or CI setups with no browser. See the Cursor tab or Other clients tab under Install Comfy Cloud MCP.
Why does my agent ask before generating?
Why does my agent ask before generating?
Paid generations are spend-gated: when a run would consume Comfy Cloud credits (a partner model, or a workflow/template with paid API nodes), the server requires your explicit agreement before executing. See Credits and spending.
Do the slash commands work in Claude Desktop?
Do the slash commands work in Claude Desktop?
No. Slash commands ship in the Claude Code plugin. Claude Desktop connects to the same MCP server (the tools work if you ask in plain language or use the prompt picker), but it does not support Claude Code plugins or slash commands.
I typed /comfy or /cloud and nothing came up.
I typed /comfy or /cloud and nothing came up.
There is no
/comfy or /cloud command. Commands appear under one of two prefixes depending on how you connected:- Plugin (recommended):
/comfy-cloud:generate-image,/comfy-cloud:generate-video, … — type/comfy-cloud:to see them all. - Direct connection (no plugin):
/mcp__comfy-cloud__generate-image, … — type/mcp__to see them.
The sign-in did not open a browser.
The sign-in did not open a browser.
In Claude Code, run
/mcp, select comfy-cloud, and choose Authenticate. In Claude Desktop, reopen the connector from Customize → Connectors and trigger sign-in.What about running Comfy locally with an agent?
What about running Comfy locally with an agent?
Comfy Cloud MCP is our hosted offering, but local agent workflows have existed since ComfyUI was open-sourced. See What about local ComfyUI? on the Agent Tools overview for why Cloud shipped first, community MCP servers you can use today, and Comfy CLI as another option.











