ComfyUI MCP server: knowledge base, workflow builder, real-time execution, models, plugins.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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.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)
Use knowledge in code
| 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:
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:
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):
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:
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
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/comfyui-builder)<a href="https://allmcps.com/mcp/comfyui-builder"><img src="https://allmcps.com/api/badge/comfyui-builder?style=directory" alt="ComfyUI Builder on AllMCPs" /></a>