Comfy Pilot
Allows Claude to download models (including gated ones, via token auth) from Hugging Face directly into the user's ComfyUI models folder, so it can then build workflows around them.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Comfy Pilot Look at the preview image and increase the detail"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Comfy Pilot
Talk to your ComfyUI workflows. Comfy Pilot gives Claude Code direct access to see, edit, and run your workflows — with an embedded terminal right inside ComfyUI.
![]()
Why?
Building ComfyUI workflows means manually searching for nodes, dragging connections, and tweaking values one at a time. With Comfy Pilot, you just describe what you want:
"Build me an SDXL workflow with ControlNet" — Claude creates all the nodes, connects them, and sets the parameters
"Look at the output and increase the detail" — Claude sees your generated image and adjusts the workflow
"Download the FLUX schnell model and set up a workflow for it" — Claude downloads the model and builds a workflow from scratch
No copy-pasting node names. No hunting through menus. Just say what you want.
Related MCP server: ComfyUI MCP Server
Installation
CLI (Recommended):
comfy node install comfy-pilotComfyUI Manager:
Open ComfyUI
Click Manager → Install Custom Nodes
Search for "Comfy Pilot"
Click Install
Restart ComfyUI
Git Clone:
cd ~/Documents/ComfyUI/custom_nodes && git clone https://github.com/ConstantineB6/comfy-pilot.gitClaude Code CLI will be installed automatically if not found.
Requirements
ComfyUI
Python 3.8+
Features
MCP Server - Gives Claude Code direct access to view, edit, and run your ComfyUI workflows
Embedded Terminal - Full xterm.js terminal running Claude Code right inside ComfyUI
Image Viewing - Claude can see outputs from Preview Image and Save Image nodes
Graph Editing - Create, delete, move, and connect nodes programmatically
Demo
https://github.com/user-attachments/assets/325b1194-2334-48a1-94c3-86effd1fef02
Usage
Restart ComfyUI after installation
The floating Claude Code terminal appears in the top-right corner
The MCP server is automatically configured for Claude Code
Ask Claude to help with your workflow:
"What nodes are in my current workflow?"
"Add a KSampler node connected to my checkpoint loader"
"Look at the preview image and tell me what you see"
"Run the workflow up to node 5"
MCP Tools
The MCP server provides these tools to Claude Code:
Tool | Description |
| Get the current workflow from the browser |
| Human-readable workflow summary |
| Search available node types with filtering |
| Get detailed info about a specific node type |
| Queue status, system stats, and execution history |
| Run workflow (optionally up to a specific node) or interrupt |
| Batch create, delete, move, connect, and configure nodes |
| View images from Preview Image / Save Image nodes |
| Search ComfyUI Manager registry for custom nodes |
| Install a custom node from the registry |
| Uninstall a custom node |
| Update a custom node to latest version |
| Download models from Hugging Face, CivitAI, or direct URLs |
Example: Creating Nodes
Create a KSampler and connect it to my checkpoint loaderClaude will use edit_graph to:
Create the KSampler node
Connect the MODEL output from CheckpointLoader to KSampler's model input
Position it appropriately in the graph
Example: Viewing Images
Look at the preview image and describe what you seeClaude will use view_image to fetch and analyze the image output.
Example: Downloading Models
Download the FLUX.1 schnell model for meClaude will use download_model to download from Hugging Face to your ComfyUI models folder. Supports:
Hugging Face (including gated models with token auth)
CivitAI
Direct download URLs
Terminal Controls
Drag title bar to move
Drag bottom-right corner to resize
− Minimize
× Close
↻ Reconnect session
Architecture
┌─────────────────────────────────────────────────────┐
│ Browser (ComfyUI) │
│ ┌─────────────────┐ ┌──────────────────────────┐ │
│ │ xterm.js │ │ Workflow State │ │
│ │ Terminal │ │ (synced to backend) │ │
│ └────────┬────────┘ └────────────┬─────────────┘ │
│ │ WebSocket │ REST API │
└───────────┼────────────────────────┼────────────────┘
│ │
▼ ▼
┌─────────────────────────────────────────────────────┐
│ ComfyUI Server │
│ ┌─────────────────┐ ┌──────────────────────────┐ │
│ │ PTY Process │ │ Plugin Endpoints │ │
│ │ (claude CLI) │ │ /claude-code/* │ │
│ └─────────────────┘ └──────────────────────────┘ │
└─────────────────────────────────────────────────────┘
│ │
│ ▼
│ ┌──────────────────────────┐
└──────────▶│ MCP Server │
│ (stdio transport) │
└──────────────────────────┘Files
__init__.py- Plugin backend: WebSocket terminal, REST endpointsjs/claude-code.js- Frontend: xterm.js terminal, workflow syncmcp_server.py- MCP server for Claude Code integrationCLAUDE.md- Instructions for Claude when working with ComfyUI
Troubleshooting
"Command 'claude' not found"
Install Claude Code CLI:
macOS / Linux / WSL:
curl -fsSL https://claude.ai/install.sh | bashWindows (PowerShell):
irm https://claude.ai/install.ps1 | iexWindows (CMD):
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmdMCP server not connecting
The plugin auto-configures MCP on startup. Check ComfyUI console for errors, or manually add to ~/.claude.json:
{
"mcpServers": {
"comfyui": {
"command": "python3",
"args": ["/path/to/comfy-pilot/mcp_server.py"]
}
}
}Terminal disconnected
Click the ↻ button to reconnect, or check ComfyUI console for errors.
License
MIT
Available Tools
14 toolscenter_on_nodeA
Center the user's viewport on a specific node. Useful after creating nodes to show the user where they were placed.
Inputs: node_id (required).
download_modelA
Download a model to the ComfyUI models folder. Supports Hugging Face, CivitAI, and direct URLs. For gated HF models, will return instructions to provide a token.
Inputs: url (required), model_type (required), filename, hf_token, +1 more.
edit_graphA
Edit workflow graph with batched operations. Actions: create, delete, move, resize, set, connect, disconnect. Operations execute in order; 'create' returns node_id for chaining.
Inputs: operations (required).
get_node_infoB
Get detailed info about a specific node in the workflow: type, properties, inputs, outputs, widget values.
Inputs: node_id (required).
get_node_typesA
Search available node types. Returns minimal info by default. Use 'fields' for more details.
Inputs: fields, search, category.
get_statusA
Get ComfyUI status: queue, system stats, and/or history. Returns lightweight summaries by default (counts, IDs). Use detail='full' for more info. History is always paginated.
Inputs: detail, include, history_limit, history_offset.
get_workflowA
Get the current workflow from ComfyUI. Returns full node graph with all nodes, connections, and widget values. Use summarize_workflow for a lighter overview.
Inputs: no named parameters.
install_custom_nodeA
Install a custom node via ComfyUI Manager. Requires restart to complete.
Inputs: node_id (required).
runC
Run workflow or interrupt current generation.
Inputs: action, node_ids.
search_custom_nodesA
Search for custom nodes in the ComfyUI Manager registry. Returns name, author, description, install status, and star count.
Inputs: limit, query, status, category.
summarize_workflowA
Get a concise summary of the current workflow: node IDs, types, titles, positions, and connections. Lighter than get_workflow.
Inputs: no named parameters.
uninstall_custom_nodeA
Uninstall a custom node via ComfyUI Manager. Requires restart to complete.
Inputs: node_id (required).
update_custom_nodeB
Update a custom node to the latest version via ComfyUI Manager. Requires restart to complete.
Inputs: node_id (required).
view_imageA
View an image from a Preview Image or Save Image node. Returns the image as base64 so you can see it. Run the workflow first to generate images.
Inputs: node_id, image_index.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have clearly distinct targets: reading graph state, mutating graph, custom-node CRUD, and model download. The only real friction is the cluster of read tools (get_workflow, summarize_workflow, get_node_info, get_node_types), which the descriptions do a decent job separating by scope and weight. The 'run' tool bundles two unrelated actions (run vs. interrupt), which is a small ambiguity an agent could stumble on.
Nearly all tools follow a verb_noun pattern (get_workflow, edit_graph, view_image, install_custom_node, download_model). 'run' stands alone as a bare verb and 'summarize_workflow' is fine, so the deviations are minor. The custom-node family is consistently named, which helps grouping.
14 tools is comfortably in the sweet spot for a ComfyUI control server. Each tool maps to a concrete capability (graph read/edit, node discovery, queue/status, images, custom-node management, model download) with no obvious filler.
Graph editing and custom-node lifecycle are well covered, but the model surface stops at download_model — no list/delete/inspect models, which will cause dead ends. Likewise there is no way to clear or remove specific queue items and no save/load workflow to file, so several common ComfyUI workflows require workarounds or manual UI action.
Maintenance
Related MCP Connectors
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
- Wireflow MCP serverDeprecatedai.wireflow
Connect Claude or any MCP client to Wireflow, the AI canvas for image, video and audio workflows. List, build, inspect and run your workflows and published apps, browse templates, check models, prices and credits, edit a video node's timeline, and plan or schedule social posts. Drafts and edits cost no credits; run tools spend the user's credits.
Build and run visual creative-production workflows from your AI agent.
Build, validate, test-run and publish AIOS workflows from Claude Code, Codex, Cursor or VS Code.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude Desktop to interact with local ComfyUI installations for AI-powered image generation, including workflow management, model selection, real-time monitoring, and custom workflow execution through natural language.1418MIT
- AlicenseAqualityDmaintenanceEnables comprehensive ComfyUI workflow automation including image generation, workflow management, node discovery, and system monitoring through natural language interactions with local or remote ComfyUI servers.3161 PyPI14MIT
- AlicenseAqualityAmaintenanceMCP server + Claude Code plugin for ComfyUI: execute workflows, generate images, visualize pipelines as Mermaid diagrams, compose/validate workflows, manage and download models, control VRAM, and explore custom nodes. 36 tools, cross-platform, installs via npx -y comfyui-mcp.4112,667 npm952MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to generate images via ComfyUI from natural language requests, automating workflow construction and execution.1MIT