ConstantineB6/comfy-pilot

🎨 Art & Culture🟒 Verified Active
0 Views
0 Installs

🐍 🏠 - MCP server for ComfyUI that lets AI agents view, edit, and run node-based image generation workflows with an embedded terminal.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "constantineb6-comfy-pilot": {
      "command": "npx",
      "args": [
        "-y",
        "constantineb6-comfy-pilot"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

Comfy Pilot

Stars License: MIT ComfyUI Registry

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.

Comfy Pilot

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.

Installation

CLI (Recommended):

comfy node install comfy-pilot

ComfyUI Manager:

  1. Open ComfyUI
  2. Click Manager β†’ Install Custom Nodes
  3. Search for "Comfy Pilot"
  4. Click Install
  5. Restart ComfyUI

Git Clone:

cd ~/Documents/ComfyUI/custom_nodes && git clone https://github.com/ConstantineB6/comfy-pilot.git

Claude 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

  1. Restart ComfyUI after installation
  2. The floating Claude Code terminal appears in the top-right corner
  3. The MCP server is automatically configured for Claude Code
  4. 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:

ToolDescription
get_workflowGet the current workflow from the browser
summarize_workflowHuman-readable workflow summary
get_node_typesSearch available node types with filtering
get_node_infoGet detailed info about a specific node type
get_statusQueue status, system stats, and execution history
runRun workflow (optionally up to a specific node) or interrupt
edit_graphBatch create, delete, move, connect, and configure nodes
view_imageView images from Preview Image / Save Image nodes
search_custom_nodesSearch ComfyUI Manager registry for custom nodes
install_custom_nodeInstall a custom node from the registry
uninstall_custom_nodeUninstall a custom node
update_custom_nodeUpdate a custom node to latest version
download_modelDownload models from Hugging Face, CivitAI, or direct URLs

Example: Creating Nodes

Create a KSampler and connect it to my checkpoint loader

Claude will use edit_graph to:

  1. Create the KSampler node
  2. Connect the MODEL output from CheckpointLoader to KSampler's model input
  3. Position it appropriately in the graph

Example: Viewing Images

Look at the preview image and describe what you see

Claude will use view_image to fetch and analyze the image output.

Example: Downloading Models

Download the FLUX.1 schnell model for me

Claude 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 endpoints
  • js/claude-code.js - Frontend: xterm.js terminal, workflow sync
  • mcp_server.py - MCP server for Claude Code integration
  • CLAUDE.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 | bash

Windows (PowerShell):

irm https://claude.ai/install.ps1 | iex

Windows (CMD):

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

MCP 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

Related MCP Servers

8enSmith/mcp-open-library

πŸ“‡ ☁️ - A MCP server for the Open Library API that enables AI assistants to search for book information.

🎨 Art & Culture0 views
abhiemj/manim-mcp-server

🐍 🏠 πŸͺŸ 🐧 - A local MCP server that generates animations using Manim.

🎨 Art & Culture0 views
AceDataCloud/MCPFlux

🐍 ☁️ - Flux AI image generation and editing (Black Forest Labs) via Ace Data Cloud API.

🎨 Art & Culture0 views
AceDataCloud/MCPNanoBanana

🐍 ☁️ - NanoBanana AI image generation and editing with virtual try-on and product placement in realistic scenes.

🎨 Art & Culture0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Active

Recent health check succeeded.

Last checked: 7/28/2026, 9:16:32 PM

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.