comfyui-mcp 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/llms-install.md +139 -0
  2. package/package.json +1 -1
@@ -0,0 +1,139 @@
1
+ # comfyui-mcp — Install Guide for AI Agents
2
+
3
+ This document tells an AI agent (Cline, Claude Code, Cursor, etc.) how to
4
+ install and configure **comfyui-mcp** in one shot. It is a focused subset of
5
+ the project [README](./README.md) — see that file for full documentation.
6
+
7
+ ## What you are installing
8
+
9
+ An MCP server that lets the user's AI assistant drive
10
+ [ComfyUI](https://github.com/comfyanonymous/ComfyUI): generate images, run and
11
+ author workflows, manage models and custom nodes, and control the server.
12
+ **86 MCP tools** across the categories shown in
13
+ [docs/tools/](https://comfyui-mcp.artokun.io/docs/tools/image-generation).
14
+
15
+ ## Prerequisites
16
+
17
+ - **Node.js ≥ 22.** Confirm with `node --version`; install via
18
+ [nodejs.org](https://nodejs.org/) or `nvm` if missing.
19
+ - The package is published to npm as **`comfyui-mcp`** and runs via `npx` — no
20
+ global install required.
21
+ - The server needs a ComfyUI to talk to. **Three options**, pick one with the
22
+ user (ask if unclear):
23
+
24
+ 1. **Local ComfyUI** — the user is running ComfyUI on the same machine. The
25
+ server auto-detects the install path and port (8188 → 8000 fallback). No
26
+ extra config needed.
27
+ 2. **Remote ComfyUI** — the user runs ComfyUI on a different host
28
+ (RunPod, VPS, LAN box). Pass `--comfyui-url <url>` or set
29
+ `COMFYUI_URL` env. When the host is non-loopback, local-FS auto-detection
30
+ is suppressed.
31
+ 3. **Comfy Cloud** — the user has a [cloud.comfy.org](https://cloud.comfy.org)
32
+ API key. Set `COMFYUI_API_KEY` env. The server routes HTTP primitives to
33
+ the cloud; local-only tools throw `CLOUD_UNSUPPORTED`.
34
+
35
+ ## Add to the MCP client config
36
+
37
+ ### Claude Code / Claude Desktop (`~/.claude/settings.json`)
38
+
39
+ **Local ComfyUI** (most common):
40
+
41
+ ```json
42
+ {
43
+ "mcpServers": {
44
+ "comfyui": {
45
+ "command": "npx",
46
+ "args": ["-y", "comfyui-mcp"]
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ **Remote ComfyUI:**
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "comfyui": {
58
+ "command": "npx",
59
+ "args": ["-y", "comfyui-mcp", "--comfyui-url", "https://my-comfy.example.com"]
60
+ }
61
+ }
62
+ }
63
+ ```
64
+
65
+ **Comfy Cloud:**
66
+
67
+ ```json
68
+ {
69
+ "mcpServers": {
70
+ "comfyui": {
71
+ "command": "npx",
72
+ "args": ["-y", "comfyui-mcp"],
73
+ "env": {
74
+ "COMFYUI_API_KEY": "<ask the user for their cloud.comfy.org key>"
75
+ }
76
+ }
77
+ }
78
+ }
79
+ ```
80
+
81
+ ### Cline / Cursor / generic MCP
82
+
83
+ Use the same `command` + `args` shape (Cline expects `command` + `args` in
84
+ its `cline_mcp_settings.json`; Cursor expects similar in its MCP settings
85
+ panel).
86
+
87
+ ## Optional environment variables
88
+
89
+ Set in the `env` block above. None are required for the local-default flow.
90
+
91
+ - `COMFYUI_HOST` / `COMFYUI_PORT` — override host/port (defaults: auto-detect)
92
+ - `COMFYUI_PATH` — explicit ComfyUI install path (auto-detected on Mac / Linux
93
+ / Windows when unset)
94
+ - `COMFYUI_DOWNLOAD_CACHE_DIR` — model download cache (default
95
+ `~/.comfyui-mcp/cache`)
96
+ - `COMFYUI_LRU_CACHE_SIZE_GB` — cap the cache; `0` disables eviction
97
+ - `CIVITAI_API_TOKEN`, `HUGGINGFACE_TOKEN`, `GITHUB_TOKEN` — for gated
98
+ downloads and higher API rate limits
99
+ - `REGISTRY_ACCESS_TOKEN` — Comfy Registry API key for `publish_custom_node`
100
+ - `COMFY_API_KEY` — comfy.org API key for hosted partner nodes (different
101
+ from `COMFYUI_API_KEY`, which is for Comfy Cloud)
102
+ - `COMFYUI_CLOUD_URL` — override the Comfy Cloud endpoint
103
+ (default `https://cloud.comfy.org`)
104
+
105
+ Full reference: [docs/configuration](https://comfyui-mcp.artokun.io/docs/configuration).
106
+
107
+ ## Verify
108
+
109
+ After updating the settings file, **restart the MCP client** (Claude Code: run
110
+ `/mcp` to reconnect; Cline: toggle the server). Then ask the assistant:
111
+
112
+ > What ComfyUI tools do you have?
113
+
114
+ It should list ~86 tools across generation, workflow execution/authoring,
115
+ models, custom nodes, etc. If the user wants a quick smoke test, ask:
116
+
117
+ > Generate a 1024×1024 image of a red apple on a wooden table.
118
+
119
+ That exercises the `generate_image` tool end-to-end (auto-selects a local
120
+ checkpoint or uses defaults; returns an `asset_id` you can `view_image` to
121
+ see).
122
+
123
+ ## Common issues
124
+
125
+ - **"ComfyUI not detected on ports 8188, 8000"** — ComfyUI isn't running. Tell
126
+ the user to start it (Desktop app or `python main.py`).
127
+ - **`CLOUD_UNSUPPORTED` errors** — `COMFYUI_API_KEY` is set, so the server is
128
+ in cloud mode and a local-only tool was called. Either unset the key (to
129
+ use a local install) or stick to cloud-compatible tools.
130
+ - **Empty model lists** — `extra_model_paths.yaml` is misconfigured. Run
131
+ `health_check` for a diagnostic.
132
+
133
+ ## License + repo
134
+
135
+ - **License:** [MIT](./LICENSE)
136
+ - **Repo:** https://github.com/artokun/comfyui-mcp
137
+ - **npm:** https://www.npmjs.com/package/comfyui-mcp
138
+ - **Docs:** https://comfyui-mcp.artokun.io/docs
139
+ - **Issues:** https://github.com/artokun/comfyui-mcp/issues
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comfyui-mcp",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "mcpName": "io.github.artokun/comfyui-mcp",
5
5
  "description": "MCP server for ComfyUI — workflow execution, visualization, composition, registry, and skill generation",
6
6
  "homepage": "https://comfyui-mcp.artokun.io/docs",