Hooks Claude directly into ComfyUI's node system and execution engine. You get 50+ tools spanning node discovery, a dynamic workflow builder, nine templates (txt2img, img2img, ControlNet, etc.), and real-time WebSocket execution with sub-second progress updates. Seeds a local knowledge base of ComfyUI nodes that syncs from running instances or ComfyUI-Manager packs. Handles model management, queue control, batch runs, and output downloads. The workflow builder lets you assemble pipelines programmatically instead of hand-editing JSON. Useful when you're prototyping image generation flows in Claude and want to execute them against a local ComfyUI server without context-switching to the web UI.
ComfyUI Node Discovery — seed knowledge base and MCP tools for Cursor/Claude.
Publishable to the MCP Registry via server.json and mcpName.
knowledge/base-nodes.json and node-compatibility.json from bundled data (62 seed nodes; 100–600+ after sync). No external services required for suggest/build.sync-nodes CLI or on MCP startup.npm install mcp-comfy-ui-builder
Or from source: git clone https://github.com/MIt9/mcp-comfy-ui-builder.git && cd mcp-comfy-ui-builder && npm install
Build (postbuild fills knowledge from seed)
npm run build
npm run mcp
Use knowledge in code
import baseNodes from './knowledge/base-nodes.json' assert { type: 'json' };
| Command | Description |
|---|---|
npm run seed | Fill knowledge from seed. Use --force to overwrite. |
npm run sync-manager | Update custom packs list from ComfyUI-Manager |
npm run sync-nodes | Sync nodes from running ComfyUI to knowledge base (requires COMFYUI_HOST) |
npm test | Run tests (vitest) |
npm run mcp | Start MCP server (after npm run build) |
Single entry point — task-oriented navigation:
docker pull siniidrozd/mcp-comfy-ui-builder | docker-compose for MCP + ComfyUImcpName in package.json; see MCP Registry quickstart to publish after npm publish.Server provides 50+ tools across 9 categories:
Node Discovery:
Dynamic Workflow Builder:
Templates & Macros:
Real-time execution 📡
Resources & Model Management:
Outputs & Queue:
Plugins:
Install (requires COMFYUI_PATH):
Set COMFYUI_HOST environment variable for execution/model/output tools:
export COMFYUI_HOST="http://localhost:8188"
See doc/MCP-SETUP.md for full tool list and doc/WEBSOCKET-GUIDE.md for real-time features.
From project root, first build the project, then start the server:
npm run build
npm run mcp
Or without npm: node dist/mcp-server.js. Server works via stdio (stdin/stdout). More details → doc/MCP-SETUP.md.
What you need: Node.js 18+, one-time build (npm run build), absolute path to dist/mcp-server.js, restart after config change. If the server fails to start with «spawn node ENOENT», use the full path to node in command (run which node and put that path). See doc/MCP-SETUP.md → Troubleshooting.
Minimal config (knowledge and workflow tools only):
{
"mcpServers": {
"comfy-ui-builder": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/mcp-comfy-ui-builder/dist/mcp-server.js"]
}
}
}
Use full path in command (e.g. "/opt/homebrew/bin/node") if Cursor/IDE reports «spawn node ENOENT».
With ComfyUI execution (execute_workflow, get_execution_status, list_outputs, etc.): add "env": { "COMFYUI_HOST": "http://127.0.0.1:8188" } to the server block. See doc/MCP-SETUP.md for full checklist, optional env vars (COMFYUI_PATH, COMFYUI_KNOWLEDGE_DIR), and troubleshooting.
Create a new repository on GitHub: name mcp-comfy-ui-builder, visibility Public (or Private). Do not initialize with README, .gitignore, or license (project already has them).
Add remote and push:
git remote add origin https://github.com/MIt9/mcp-comfy-ui-builder.git
git branch -M main
git push -u origin main
If you fork this repo, replace MIt9 with your GitHub username in the URLs above.
Cursor: Settings → MCP; Claude Desktop: config file ~/Library/Application Support/Claude/claude_desktop_config.json (macOS). Replace the path with your absolute path to dist/mcp-server.js, then restart the app. Full guide: doc/MCP-SETUP.md.
MIT
COMFYUI_HOSTComfyUI API URL (e.g. http://127.0.0.1:8188). Required for execution, queue, outputs.
COMFYUI_PATHPath to ComfyUI install. Required for install_custom_node, install_model.
COMFYUI_KNOWLEDGE_DIRPath to knowledge directory (default: package knowledge/). Use when MCP runs from different cwd.
csoai-org/pdf-document-mcp
xt765/mcp-document-converter
io.github.xjtlumedia/markdown-formatter
io.github.ai-aviate/better-notion
suekou/mcp-notion-server
meterlong/mcp-doc