comfy-pilot

作者 ConstantineB6已验证

MCP server + embedded terminal that lets Claude Code see and edit your ComfyUI workflows

215
Stars
43
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/ConstantineB6/comfy-pilot

快速入门

使用 comfy-pilot 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

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 ManagerInstall 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

常见问题

What is comfy-pilot?

comfy-pilot is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ConstantineB6. MCP server + embedded terminal that lets Claude Code see and edit your ComfyUI workflows. It has 215 GitHub stars.

Is comfy-pilot safe to use?

Yes. comfy-pilot passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install comfy-pilot?

Clone the repository with "git clone https://github.com/ConstantineB6/comfy-pilot" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is comfy-pilot written in?

comfy-pilot is primarily written in Python. It is open-source under ConstantineB6 on GitHub, so you can review or fork the full source.

Are there alternatives to comfy-pilot?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh comfy-pilot against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP 服务器
查看详情

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP 服务器
查看详情

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP 服务器
查看详情

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP 服务器
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情