1. Install ComfyUI
ComfyUI Desktop
The easiest way to get a managed install on macOS / Windows.
From source
Clone and run manually — or use the
install_comfyui tool.2. Add the MCP server
ComfyUI MCP ships on npm ascomfyui-mcp and runs via npx — no global install needed.
- Local ComfyUI
- Remote ComfyUI
- Comfy Cloud
The server auto-detects a local install and its port. Add it to
~/.claude/settings.json:/mcp in Claude Code to connect.
3. (Optional) Tokens
Some tools use API tokens. Set them in the server’senv block (see Configuration):
CIVITAI_API_TOKEN— gated CivitAI downloadsHUGGINGFACE_TOKEN— higher HuggingFace rate limitsGITHUB_TOKEN— skill generation / node metadata fetchesCOMFY_API_KEY— hosted comfy.org API nodes
Local development
The project usesnpm link so npx comfyui-mcp resolves to your local build:
npm run build, then /mcp to reconnect.