Comfy Cloud MCP Server

Official MCP server for Comfy Cloud - generate images, video, audio, and 3D, run ComfyUI workflows, and search models directly from Claude and other AI agents

Documentation

Comfy Cloud MCP

Use Comfy Cloud from Claude Code and Claude Desktop through the Comfy Cloud MCP server — generate images, video, audio, and 3D, search models and nodes, and run workflows.

This is a **Comfy Cloud** feature and is only available in the cloud version. To learn more about Comfy Cloud, see [Comfy Cloud](/get_started/cloud). **Public beta.** Comfy Cloud MCP is in public beta. APIs, tools, and behavior may change while we iterate. See [Feedback](#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 at cloud.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.

Support is currently scoped to Claude Code and Claude Desktop, which sign in with OAuth (a one-time browser sign-in). Support for more clients is coming.

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:

  1. Discover what is available (search_templates, search_models, search_nodes, or cql for graph-style questions).
  2. Run a generation or workflow (submit_workflow, with upload_file when an input image is needed).
  3. Retrieve outputs (get_output returns a download command your agent runs in your shell).

The server prefers matching pre-built templates before building a workflow from scratch, which tends to produce better results faster.

MCP tools

These are the tools your agent has access to once connected. Names match what appears in MCP client logs and debugging.

Discovery

ToolDescription
search_templatesSearch pre-built workflow templates from comfy.org by text, tag, media type, or model
search_modelsSearch the model catalog by text, type, base model, or source
search_nodesSearch available nodes by text, category, or input/output types. Also surfaces subgraph blueprints (pre-wired node groups like Text to Image or Remove Background)
cqlRun 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

Execution

ToolDescription
submit_workflowSubmit a ComfyUI API-format workflow for execution on Comfy Cloud
upload_fileUpload an input image or file for use in workflows (for example, with LoadImage)
get_job_statusPoll execution status of a submitted workflow
get_outputRetrieve output images, videos, or audio from a completed workflow
use_previous_outputChain workflows by reusing output from one run as input to another
cancel_jobCancel a pending or running job
get_queueCheck how many jobs are running and pending

Saved workflows

ToolDescription
list_saved_workflowsBrowse your saved workflows from Comfy Cloud
get_saved_workflowInspect a saved workflow's nodes, inputs, and configuration
save_workflowSave a workflow to your Comfy Cloud account
You can browse and inspect saved workflows, but the agent cannot run them by ID directly today. Saved workflows use the ComfyUI graph format and must be converted to API format before execution. See [Known limitations](#known-limitations).

Sharing workflows

ToolDescription
share_workflowPublish a saved workflow and return a ?share=<id> URL anyone can open
import_shared_workflowResolve a share URL or bare share ID into workflow JSON, optionally saving it to your account

Hub URL share IDs: the trailing hyphen-delimited hex token in a 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.

Install

Pick your client:

Install the plugin. Connection and commands in one step. Add a custom connector in the app, then sign in.

<span style={{ marginRight: "0.6rem" }}> Claude Code

Install the comfy-cloud plugin. It adds the MCP connection and the 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.

Register the Comfy Skills marketplace (one-time):
```
/plugin marketplace add Comfy-Org/comfy-skills
```
``` /plugin install comfy-cloud@comfy-skills ``` Run `/mcp`, select **comfy-cloud** → **Authenticate**. Your browser opens to sign in, and tokens refresh automatically.

The plugin adds these slash commands:

CommandWhat it does
/comfy-cloud:generate-imageGenerate, edit, or modify an image
/comfy-cloud:generate-videoGenerate, edit, or extend a video
/comfy-cloud:generate-audioGenerate audio, music, or sound effects
/comfy-cloud:generate-3dGenerate a 3D model from text or an image
/comfy-cloud:remove-backgroundRemove the background from an image
/comfy-cloud:upscale-imageUpscale an image to higher resolution
/comfy-cloud:search-templatesFind pre-built workflow templates on comfy.org
/comfy-cloud:search-modelsSearch for available models
/comfy-cloud:search-nodesSearch for nodes and get wiring suggestions
/comfy-cloud:helpSee what you can do with ComfyUI Cloud
Add the server directly:
claude mcp add --transport http comfy-cloud https://cloud.comfy.org/mcp

Then run /mcp, select comfy-cloudAuthenticate. 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.

<span style={{ marginRight: "0.6rem" }}> Claude Desktop

Claude Desktop adds Comfy Cloud as a custom connector through its UI, then runs the OAuth sign-in.

In Claude Desktop, open **Customize**, then choose **Connectors**.
<img src="https://mintcdn.com/dripart/hggE7jk4IUe9Dgn5/images/cloud/mcp/desktop-connectors.png?fit=max&auto=format&n=hggE7jk4IUe9Dgn5&q=85&s=64d90eeac78724a81cee358e4a509a9b" alt="Claude Desktop Connectors" width="566" height="232" data-path="images/cloud/mcp/desktop-connectors.png" />
Click the **+** button, then choose **Add custom connector**.
<img src="https://mintcdn.com/dripart/VcJUoOhemC23a4kR/images/cloud/mcp/desktop-add-custom-connector.png?fit=max&auto=format&n=VcJUoOhemC23a4kR&q=85&s=ace4d0901bcbfcccf6e688c9f88ac369" alt="Add custom connector" width="794" height="292" data-path="images/cloud/mcp/desktop-add-custom-connector.png" />
Name it anything (for example, *Comfy Cloud*) and set the **Remote MCP server URL** to:
```
https://cloud.comfy.org/mcp
```

<img src="https://mintcdn.com/dripart/hggE7jk4IUe9Dgn5/images/cloud/mcp/desktop-connector-url.png?fit=max&auto=format&n=hggE7jk4IUe9Dgn5&q=85&s=89ff669fd6d2ec94917a1ccfecdd2608" alt="Connector details" width="1138" height="898" data-path="images/cloud/mcp/desktop-connector-url.png" />
Click **Add**, then sign in through Claude Desktop when prompted. You are connected.
<img src="https://mintcdn.com/dripart/hggE7jk4IUe9Dgn5/images/cloud/mcp/desktop-signin.png?fit=max&auto=format&n=hggE7jk4IUe9Dgn5&q=85&s=2a9dbc39cdac3aa4626b3dc911e74568" alt="Sign in through Claude Desktop" width="430" height="561" data-path="images/cloud/mcp/desktop-signin.png" />

Claude Desktop does not support Claude Code slash commands. Instead, open the prompt picker for the same workflows:

PromptDescription
generate-imageGenerate an image from a text description
generate-videoGenerate a video from text or an image
generate-audioGenerate audio, music, or sound effects
generate-3dGenerate a 3D model from text or an image
upscale-imageUpscale an image to higher resolution
remove-backgroundRemove the background from an image
search-templatesFind pre-built workflow templates
search-modelsSearch for models (checkpoints, LoRAs, VAEs)
search-nodesSearch nodes and get wiring suggestions
helpSee what you can do with ComfyUI Cloud

You can also skip prompts and ask in plain language. The MCP tools work the same way.

Headless / CI (API key)

Claude Code and Claude Desktop use OAuth, so you do not need an API key. For headless or CI setups where no browser is available, authenticate with an API key instead:

Go to [platform.comfy.org/profile/api-keys](https://platform.comfy.org/profile/api-keys), click **New API Key**, and copy it (it starts with `comfyui-`). ```bash theme={null} claude mcp add --transport http comfy-cloud https://cloud.comfy.org/mcp -H "X-API-Key: comfyui-…" ```

Outputs and downloads

The MCP server runs in the cloud and never writes files to your machine. When a generation completes, your agent calls get_output, which returns:

  1. A temporary signed download URL (valid for a short window).
  2. A ready-to-run shell command (curl on macOS and Linux, curl.exe on Windows).

Your agent should run that command in your shell. The command includes the destination path and filename.

Run the returned command **verbatim**. Do not re-encode or edit the signed URL. The signature lives in the query string and breaks if the URL is modified.

If your MCP client cannot run shell commands (some GUI-only setups), copy the command and run it yourself in a terminal.

Related resources

ResourceWhat it's for
Comfy SkillsClaude 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 CLICommand-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 CloudShare 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:

Known limitations

Comfy Cloud MCP is an early release. These limitations are known and being worked on:

Workflows

  • Saved workflows cannot be run by ID. Your agent can list and inspect saved workflows, but must reconstruct or convert them to API format before execution.
  • Generated assets may not embed workflow metadata. Images created via MCP might not reopen the workflow when opened in ComfyUI.
  • Workflow building depends on agent accuracy. Complex multi-node workflows may need a retry or refinement.

File handling

  • 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.

Authentication

  • OAuth or API key. Claude Code and Claude Desktop use a one-time browser OAuth flow. Headless clients can pass a Comfy Cloud API key via the X-API-Key header instead. A device-code OAuth flow for clients that cannot open a browser is planned.

FAQ

Claude Code and Claude Desktop today, both signing in with OAuth. Support for more clients is coming. Not for Claude Code or Claude Desktop. They use OAuth. An API key is only needed for headless or CI setups with no browser. 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. 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.

Either way you can also just ask in plain language ("generate an image of …"). The MCP tools are model-invoked and do not require a slash command.
In Claude Code, run `/mcp`, select **comfy-cloud**, and choose **Authenticate**. In Claude Desktop, reopen the connector from **Customize → Connectors** and trigger sign-in. Comfy Cloud MCP is our hosted offering, but local agent workflows have existed since ComfyUI was open-sourced. See [What about local ComfyUI?](/agent-tools#what-about-local-comfyui) on the Agent Tools overview for why Cloud shipped first, community MCP servers you can use today, and [Comfy CLI](/agent-tools/comfy-cli) as another option.