Skip to main content

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 as comfyui-mcp and runs via npx — no global install needed.
The server auto-detects a local install and its port. Add it to ~/.claude/settings.json:
Then run /mcp in Claude Code to connect.

3. (Optional) Tokens

Some tools use API tokens. Set them in the server’s env block (see Configuration):
  • CIVITAI_API_TOKEN — gated CivitAI downloads
  • HUGGINGFACE_TOKEN — higher HuggingFace rate limits
  • GITHUB_TOKEN — skill generation / node metadata fetches
  • COMFY_API_KEY — hosted comfy.org API nodes

Local development

The project uses npm link so npx comfyui-mcp resolves to your local build:
After code changes: npm run build, then /mcp to reconnect.