You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -15,17 +15,77 @@ import CloudFeature from '/snippets/cloud-feature.mdx'
15
15
16
16
## Overview
17
17
18
-
The **Comfy Cloud MCP server** connects AI agents to [Comfy Cloud](https://cloud.comfy.org) over the [Model Context Protocol](https://modelcontextprotocol.io). Once connected, you can generate images, video, audio, and 3D, search models, nodes, and templates, and run ComfyUI workflows — all from a chat with your agent.
18
+
The **Comfy Cloud MCP server** connects AI agents to [Comfy Cloud](https://cloud.comfy.org) over the [Model Context Protocol](https://modelcontextprotocol.io). 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.
19
19
20
-
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.
20
+
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.
21
+
22
+
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.
23
+
24
+
## What your agent can do
25
+
26
+
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").
27
+
28
+
Typical flow:
29
+
30
+
1.**Discover** what is available (`search_templates`, `search_models`, `search_nodes`, or `cql` for graph-style questions).
31
+
2.**Run** a generation or workflow (`submit_workflow`, with `upload_file` when an input image is needed).
32
+
3.**Retrieve** outputs (`get_output` returns a download command your agent runs in your shell).
33
+
34
+
The server prefers matching [pre-built templates](https://comfy.org/workflows) before building a workflow from scratch, which tends to produce better results faster.
35
+
36
+
## MCP tools
37
+
38
+
These are the tools your agent has access to once connected. Names match what appears in MCP client logs and debugging.
39
+
40
+
### Discovery
41
+
42
+
| Tool | Description |
43
+
| --- | --- |
44
+
|`search_templates`| Search pre-built workflow templates from [comfy.org](https://comfy.org/workflows) by text, tag, media type, or model |
45
+
|`search_models`| Search the model catalog by text, type, base model, or source |
46
+
|`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) |
47
+
|`cql`| Run a [CQL](https://github.com/Comfy-Org/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 |
48
+
49
+
### Execution
50
+
51
+
| Tool | Description |
52
+
| --- | --- |
53
+
|`submit_workflow`| Submit a ComfyUI API-format workflow for execution on Comfy Cloud |
54
+
|`upload_file`| Upload an input image or file for use in workflows (for example, with LoadImage) |
55
+
|`get_job_status`| Poll execution status of a submitted workflow |
56
+
|`get_output`| Retrieve output images, videos, or audio from a completed workflow |
57
+
|`use_previous_output`| Chain workflows by reusing output from one run as input to another |
58
+
|`cancel_job`| Cancel a pending or running job |
59
+
|`get_queue`| Check how many jobs are running and pending |
60
+
61
+
### Saved workflows
62
+
63
+
| Tool | Description |
64
+
| --- | --- |
65
+
|`list_saved_workflows`| Browse your saved workflows from Comfy Cloud |
66
+
|`get_saved_workflow`| Inspect a saved workflow's nodes, inputs, and configuration |
67
+
|`save_workflow`| Save a workflow to your Comfy Cloud account |
68
+
69
+
<Note>
70
+
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).
71
+
</Note>
72
+
73
+
### Sharing workflows
74
+
75
+
| Tool | Description |
76
+
| --- | --- |
77
+
|`share_workflow`| Publish a saved workflow and return a `?share=<id>` URL anyone can open |
78
+
|`import_shared_workflow`| Resolve a share URL or bare share ID into workflow JSON, optionally saving it to your account |
79
+
80
+
**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.
|`/comfy-cloud:upscale-image`| Upscale an image to higher resolution |
127
+
|`/comfy-cloud:search-templates`|Find pre-built workflow templates on [comfy.org](https://comfy.org)|
128
+
|`/comfy-cloud:search-models`| Search for available models|
129
+
|`/comfy-cloud:search-nodes`|Search for nodes and get wiring suggestions|
130
+
|`/comfy-cloud:help`| See what you can do with ComfyUI Cloud |
71
131
72
132
<Accordiontitle="Prefer just the connection, without the plugin?">
73
133
Add the server directly:
@@ -78,7 +138,7 @@ The plugin adds these slash commands:
78
138
79
139
Then run `/mcp`, select **comfy-cloud** → **Authenticate**. Add `-s user` to make it available in all your projects.
80
140
81
-
This path still gives you slash commands, but in raw MCP form —`/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.
141
+
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.
82
142
</Accordion>
83
143
84
144
### <spanstyle={{ marginRight: "0.6rem" }}><Iconicon="desktop"size={22} /></span> Claude Desktop
@@ -118,6 +178,23 @@ Claude Desktop adds Comfy Cloud as a **custom connector** through its UI, then r
118
178
</Step>
119
179
</Steps>
120
180
181
+
Claude Desktop does not support Claude Code slash commands. Instead, open the **prompt picker** for the same workflows:
182
+
183
+
| Prompt | Description |
184
+
| --- | --- |
185
+
|`generate-image`| Generate an image from a text description |
186
+
|`generate-video`| Generate a video from text or an image |
187
+
|`generate-audio`| Generate audio, music, or sound effects |
188
+
|`generate-3d`| Generate a 3D model from text or an image |
189
+
|`upscale-image`| Upscale an image to higher resolution |
190
+
|`remove-background`| Remove the background from an image |
|`search-models`| Search for models (checkpoints, LoRAs, VAEs) |
193
+
|`search-nodes`| Search nodes and get wiring suggestions |
194
+
|`help`| See what you can do with ComfyUI Cloud |
195
+
196
+
You can also skip prompts and ask in plain language. The MCP tools work the same way.
197
+
121
198
### Headless / CI (API key)
122
199
123
200
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:
@@ -133,12 +210,28 @@ Claude Code and Claude Desktop use OAuth, so you do not need an API key. For **h
133
210
</Step>
134
211
</Steps>
135
212
213
+
## Outputs and downloads
214
+
215
+
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:
216
+
217
+
1. A **temporary signed download URL** (valid for a short window).
218
+
2. A ready-to-run **shell command** (`curl` on macOS and Linux, `curl.exe` on Windows).
219
+
220
+
Your agent should run that command in your shell. The command includes the destination path and filename.
221
+
222
+
<Warning>
223
+
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.
224
+
</Warning>
225
+
226
+
If your MCP client cannot run shell commands (some GUI-only setups), copy the command and run it yourself in a terminal.
227
+
136
228
## Related resources
137
229
138
230
| Resource | What it's for |
139
231
| --- | --- |
140
232
|[Comfy Skills](https://github.com/Comfy-Org/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. |
141
233
|[Comfy CLI](/agent-tools/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. |
234
+
|[Share a workflow on Comfy Cloud](/cloud/share-workflow)| Share workflows from the Comfy Cloud UI (the MCP `share_workflow` tool does this from an agent session). |
142
235
143
236
## Feedback
144
237
@@ -147,25 +240,44 @@ Comfy Cloud MCP is in public beta. Please try it out and tell us what works and
147
240
-**[Feedback survey](https://links.comfy.org/cloudmcpbeta)**: report bugs, request features, or share general impressions.
148
241
-**Discord**: [#comfy-mcp-and-cli](https://discord.gg/xWJn6nhE3R) on the Comfy Discord for questions and discussion.
149
242
243
+
## Known limitations
244
+
245
+
Comfy Cloud MCP is an early release. These limitations are known and being worked on:
246
+
247
+
**Workflows**
248
+
249
+
-**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.
250
+
-**Generated assets may not embed workflow metadata.** Images created via MCP might not reopen the workflow when opened in ComfyUI.
251
+
-**Workflow building depends on agent accuracy.** Complex multi-node workflows may need a retry or refinement.
252
+
253
+
**File handling**
254
+
255
+
-**Outputs require a shell download step.** See [Outputs and downloads](#outputs-and-downloads).
256
+
-**Upload size limits** may apply depending on your MCP client. Some clients impose their own limits on file uploads.
257
+
258
+
**Authentication**
259
+
260
+
-**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.
261
+
150
262
## FAQ
151
263
152
264
<AccordionGroup>
153
265
<Accordiontitle="Which clients are supported?">
154
266
Claude Code and Claude Desktop today, both signing in with OAuth. Support for more clients is coming.
155
267
</Accordion>
156
268
<Accordiontitle="Do I need an API key?">
157
-
Not for Claude Code or Claude Desktop — they use OAuth. An API key is only needed for headless or CI setups with no browser.
269
+
Not for Claude Code or Claude Desktop. They use OAuth. An API key is only needed for headless or CI setups with no browser.
158
270
</Accordion>
159
271
<Accordiontitle="Do the slash commands work in Claude Desktop?">
160
-
No. The slash commands ship in the Claude Code plugin. Claude Desktop connects to the same MCP server (so the tools work — just ask in plain language), but it doesn't support Claude Code plugins or slash commands.
272
+
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.
161
273
</Accordion>
162
274
<Accordiontitle="I typed /comfy or /cloud and nothing came up.">
163
275
There is no `/comfy` or `/cloud` command. Commands appear under one of two prefixes depending on how you connected:
164
276
165
277
-**Plugin (recommended):**`/comfy-cloud:generate-image`, `/comfy-cloud:generate-video`, … — type `/comfy-cloud:` to see them all.
166
278
-**Direct connection (no plugin):**`/mcp__comfy-cloud__generate-image`, … — type `/mcp__` to see them.
167
279
168
-
Either way you can also just ask in plain language ("generate an image of …") — the MCP tools are model-invoked and don't need a slash command.
280
+
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.
169
281
</Accordion>
170
282
<Accordiontitle="The sign-in did not open a browser.">
171
283
In Claude Code, run `/mcp`, select **comfy-cloud**, and choose **Authenticate**. In Claude Desktop, reopen the connector from **Customize → Connectors** and trigger sign-in.
Connect to the hosted MCP server at <code>cloud.comfy.org</code>. Runs workflows on Cloud GPUs, uses pre-installed models, and searches the full template library.
16
+
Connect to the hosted MCP server at <code>cloud.comfy.org/mcp</code>. Generate images, video, audio, and 3D on Cloud GPUs, search templates/models/nodes, run workflows, and share saved workflows from chat.
Run a local MCP server using the Comfy Partner-Node SDK. Provides unified <code>generate_image</code>, <code>generate_video</code>, <code>generate_3d</code>, and more tools across 30+ partner providers.
0 commit comments