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
- Managed / enterprise Claude Code
The server auto-detects a local install and its port. Add it to
~/.claude/settings.json:/mcp in Claude Code to connect.
3. Starting the panel orchestrator
Only needed for the sidebar panel. Skip this if you are driving ComfyUI from Claude Code or another MCP client — that path uses the MCP server configured above. The panel is a pure-frontend ComfyUI extension: it cannot start a process on your machine, so you start the orchestrator yourself and the panel connects to it.--panel-orchestrator. It auto-targets the ComfyUI your browser is on,
serves the bridge on ws://127.0.0.1:9199 (override with COMFYUI_MCP_BRIDGE_PORT), and
must keep running while you use the panel. Then open the Agent tab, pick a provider,
and click Connect.
Driving a remote ComfyUI — a cloud pod or another box on your LAN? Run the same command
on your own machine, not the remote one, and pass the URL:
4. (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.