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. 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.
That is sugar for --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:
Your provider login and the agent stay local; nothing is installed on the remote host. See Cloud deployment for the tunnel details.

4. (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.