Comfyui MCP Panel 标志

Comfyui MCP Panel

社区
artokun

The local-first sidebar AI agent for ComfyUI — runs on your own Claude OR ChatGPT subscription (no API keys, no extra LLM costs). Drives your live graph: edits, workflows & installs in natural language. The panel UI for comfyui-mcp, the agent-native control plane for ComfyUI.

发布者artokun
代码仓库comfyui-mcp-panel
语言JavaScript
复刻数
27
星标数
120
可用工具
0
传输类型stdio
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Comfyui MCP Panel 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 120 个星标和 27 个复刻。

ComfyUI Agent Panel

[!IMPORTANT] This project is no longer maintained.

ComfyUI now ships official agent and MCP tooling — Comfy Agent and Comfy MCP — built and supported by the Comfy-Org team with deeper integration than a community project can match. If you’re looking for an MCP server or AI agent for ComfyUI, use the official tooling.

This repo will remain public as a reference, but no new features, bug fixes, or dependency updates will be made. Issues and pull requests close when the repo is archived on 2026-10-09. The community Discord goes read-only the same day, with its threads left up as a searchable archive.

Thanks to everyone who used, starred, forked, and contributed to this project. It was a good run. :rocket:

The full story is in the goodbye post.

Looking for a ComfyUI or generative-AI integration expert? I take on custom solutions — reach me by email at art.longbottom.jr@gmail.com or on LinkedIn.

📦 On ComfyUI-Manager & the Comfy Registry as comfyui-agent-panel

The polished public release — native ComfyUI design system, live activity cards for every agent edit, and multi-tab support. Search comfyui-agent-panel in ComfyUI-Manager to install, or see the docs.

An autonomous AI agent embedded in the ComfyUI sidebar that drives your canvas — now on EITHER Claude or ChatGPT (your own subscription, no API key).

Deploy on RunPod Join the Discord  One-click GPU pod — a ready-to-run ComfyUI with this panel + comfyui-mcp + ComfyUI-Manager v2 preinstalled, on your own GPU. No setup.

Stuck or have a question? Join the Discord — or hit 🆘 Need help? in the panel's Settings → About (it copies a diagnostics summary and opens the Discord for you).

🌐 Speaks your language

The whole panel — chat, settings, the CivitAI browser, the training wizard, the RunPod controls, every tooltip — is translated into 12 languages, and it follows ComfyUI's own language setting automatically. Change it any time in Settings → Panel language.

English · 한국어 · 日本語 · 中文 (简体) · 中文 (繁體) · Русский · Français · Español · Português (BR) · Türkçe · العربية · فارسی

Arabic and Persian render right-to-left. Counted strings use each language's real plural rules — Russian's four forms and Arabic's six, not an English one/other pair bolted on.

Pick a provider — Claude or ChatGPT — and the matching agent runs in the background on your subscription, sees the graph you're looking at, and edits it live. Every provider is offered the same surface: the same live-canvas tools, the same model knowledge, the same one-shot workflow loads, the same cost guardrail. Offered, not guaranteed received — a provider applies its own tool budget to what we hand it, and Codex was seen dropping the live-canvas tools silently (#291). That is fixed upstream, and the panel now asks the agent to say so rather than improvise if it ever recurs — see What the agent can do.

Part of the comfyui-mcp project — the local-first, agent-native control plane for ComfyUI (MCP server + agent orchestrator). Full documentation at comfyui-mcp.artokun.io/docs.

Type "add a KSampler and wire it to my checkpoint" in the panel and watch nodes appear on the canvas. Every edit is undoable with Ctrl+Z.

No API keys. No extra LLM costs. The agent runs on your Claude or ChatGPT subscription — a background comfyui-mcp orchestrator the panel starts for you when you click Connect. The panel is just its window into your graph.

this panel ⇄ loopback bridge ⇄ comfyui-mcp orchestrator (background, Claude OR ChatGPT — your subscription) ⇄ your graph

Every provider shares one orchestrator on one loopback port (default ws://127.0.0.1:9199; 9180 is a legacy fallback), so you pick a provider rather than juggle ports.

Features

CapabilityWhat it does
Pick a providerA backend picker with Claude / ChatGPT chips — choose the agent, not a port. Switching providers starts a fresh chat (sessions aren't shared across providers) and posts a system note.
Provider onboardingConnect-time readiness detection per provider (CLI on PATH + a login on disk; macOS Keychain handled). An onboarding card shows only when neither provider is signed in; the panel auto-switches to a ready provider when your saved pick isn't usable (your saved preference is untouched), and a not-ready row becomes a "set up" action.
Live-canvas buildingThe agent adds, wires, moves, retitles, colors, collapses, groups, and lays out nodes on the graph you're viewing — all through a fixed panel_* allowlist (no arbitrary JS), every edit undoable with Ctrl+Z.
One-shot workflow / pack loadpanel_load_workflow drops a whole graph onto the canvas in one call — load a bundled installer pack's local-GPU workflow by name without shuttling the JSON through the chat. UI/litegraph and API/prompt (graph.api.json) both load.
Local-GPU vs paid-API awarenessBundled packs are local/free; for ad-hoc graphs the agent checks the runtime (list_packs action:"check_runtime") and asks before spending paid API credits.
Installer packs + skillsThe agent discovers bundled model-family skills and one-command installer packs, then applies the manifest and loads the ready workflow instead of hand-building a graph.
Rewind & rollbackRoll back code (graph), conversation (fork the session), or both from any past message, plus /revert and double-Esc quick rewind.
Autonomous install → restart → continueInstall custom nodes through your own ComfyUI Manager, restart ComfyUI to load them, and the panel auto-reconnects so the agent resumes its task.
Reasoning effort + model selectorA per-provider effort/model picker — Claude's models, or ChatGPT's GPT-5-class models via Codex — moved into the model selector; a chosen effort survives a provider switch by mapping to the nearest valid level.
Pending-message tray + reconnect durabilityQueue messages while the agent is busy (edit / send-now / reorder), and reclaim a wedged orchestrator on Connect.
Apps (micro-apps)Convert any workflow into a named, one-click app (name, description, thumbnail, chosen input/output endpoints) from the toolbar's Apps button — runs headless (the canvas is never touched), locally or on a connected RunPod pod, with best-effort hidden-workflow packaging and a publish/explore registry (registry/, Cloudflare Worker + D1 + R2) shared with the mobile app.
Durable workflow chat historyKeep multiple named or pinned chats per workflow, search across them, export/import JSON, survive ComfyUI/browser restarts through IndexedDB, and track the graph version used by every user turn.

Quickstart

  1. Install the pack — search comfyui-agent-panel in ComfyUI-Manager, or git clone https://github.com/artokun/comfyui-mcp-panel into ComfyUI/custom_nodes. Restart ComfyUI; an Agent tab (💬) appears in the sidebar.
  2. Sign in to your provider once so the agent can run on your subscription (Node ≥ 22):
    • Claude (via the Claude CLI): claude (or claude setup-token)
    • ChatGPT (via the Codex CLI): codex login
  3. Open the Agent tab, pick Claude or ChatGPT in the backend picker, and click Connect. The panel starts that provider's background orchestrator on your subscription — no API keys — and the status pill turns green.
  4. Type a request — "build a Flux txt2img graph and run it" — and watch the edits land on your canvas. Disconnect stops the agent; nothing is ever started without your click.

Install

Via ComfyUI-Manager (recommended): search for comfyui-agent-panel and install.

Via git:

bash
cd ComfyUI/custom_nodes
git clone https://github.com/artokun/comfyui-mcp-panel

Restart ComfyUI. A new Agent tab (💬) appears in the sidebar.

Connect

Sign in to the provider you want once so the agent can run on your subscription (Node ≥ 22):

bash
claude        # Claude — or: claude setup-token
codex login   # ChatGPT (Codex)

Open the Agent tab, pick a provider in the backend picker (Claude / ChatGPT chips), and click Connect. The panel starts that provider's autonomous background agent — npx -y comfyui-mcp@latest connect, running on your subscription (no API keys) — and the status pill turns green. Type a request ("build a Flux txt2img graph and run it") and watch the edits land on your canvas. Disconnect stops the agent; nothing is ever started without your click.

Switching providers starts a fresh chat — conversations aren't shared across Claude and ChatGPT — and the panel tells you so. Every provider shares one orchestrator on one loopback port (default ws://127.0.0.1:9199, overridable via COMFYUI_MCP_BRIDGE_PORT; 9180 is a legacy fallback so a live session there is not stranded). The bridge is loopback-only. To run an orchestrator yourself, set COMFYUI_MCP_NO_AUTOSPAWN=1, launch it manually, then click Connect (the Bridge URL lives under Advanced).

Type / in the composer for commands — panel ones like /reload (pick up new code, keep the chat), /reload-ui (reload just the panel), /revert (undo the last turn's graph edits), /record-skill (save the open graph as a reusable skill), and /restart (recover an unresponsive agent — kills the orchestrator and its child tree, starts fresh). On the Claude backend, provider slash commands (/compact, /loop, …) are available too.

What the agent can do

The agent drives the workflow you're viewing through a fixed allowlist of panel_* commands (no arbitrary JavaScript). Every graph mutation goes through LiteGraph's change tracking, so ComfyUI's native Ctrl+Z reverts an agent edit exactly like your own. The panel_* tools live in one shared definition list, registered onto the in-process Claude Agent SDK server and a loopback HTTP MCP the orchestrator hosts for the ChatGPT/Codex and other CLI backends, so both surfaces are identical as served.

They are not automatically identical as received, and this page used to claim they were. A backend applies its own tool budget to everything it is handed, and Codex was observed silently dropping the entire panel MCP server once the ~250 headless comfyui tools saturated that budget — the tools were advertised, the model never got them, and it improvised (saving a workflow file instead of editing the canvas) rather than saying it could not (#291). The cause is fixed upstream in comfyui-mcp — the non-Claude lane now spawns comfyui in compact mode, leaving budget for panel_* — so keep comfyui-mcp current.

Because the panel cannot see the agent's toolset, it does not pretend to check. It asks the agent once per session to look, and to say so plainly instead of improvising — both when the canvas tools are absent and when one is listed but its call fails. If you ever see that message: update comfyui-mcp; unset COMFYUI_MCP_TOOL_MODE=full and drop MCP servers you don't need from that backend's own config; then /restart, or switch the chat to the Claude backend, which receives panel_* by a different route.

Read

ToolEffect
panel_graph_outlineOrient in the graph you're viewing — a compact structural overview
panel_query_graphQuery the live canvas — filter, traverse, and project, token-bounded
panel_get_subgraphRead inside a subgraph node's inner graph
panel_get_errorsRead the last execution error + per-node validation errors
panel_list_workflowsList open workflow tabs and which is active
panel_list_nodesList installed custom-node packs (optional search or query filters by pack name)
panel_list_mcpList connected MCP servers
panel_get_content_modeRead the adult-content (NSFW) consent state

Edit the graph (all undoable with Ctrl+Z)

ToolEffect
panel_add_nodeAdd a node by class_type
panel_remove_nodeRemove a node, or several as one undo step (node_ids)
panel_connect / panel_disconnectWire / unwire slots (by name or index)
panel_set_widgetChange a widget value (steps, cfg, prompts, …)
panel_set_propertySet a node property (right-click → Properties), e.g. rgthree Fast Groups Bypasser matchTitle — the counterpart to panel_set_widget
panel_edit_nodeAtomically move, resize, retitle, recolor, reshape, collapse, or pin one or more nodes
panel_clearRemove every node — the whole wipe is one Ctrl+Z

Subgraphs

ToolEffect
panel_select_nodesSelect nodes on the canvas (multi-selection)
panel_create_subgraphGroup selected nodes into a subgraph ("Convert to Subgraph")
panel_enter_subgraphDrill into a subgraph to read/edit its inner nodes
panel_exit_subgraphReturn to the parent / root graph

Spatial layout — the agent sees node positions/sizes + subgraph rails and arranges the canvas

ToolEffect
panel_move_railMove a subgraph's input / output rail so boundary wires stay short
panel_create_group / panel_move_group / panel_edit_group / panel_remove_groupCreate, move, retitle/recolor/resize the box, or delete a labeled group box. panel_edit_group({bounds}) writes the rectangle only — contained nodes stay put (panel_move_group translates them)
panel_screenshotRender the canvas to a PNG so the agent can verify its own layout

Workflow tabs

ToolEffect
panel_new_workflowOpen a fresh blank workflow in a NEW tab (never wipes the current one)
panel_open_workflowSwitch to a workflow by path / filename
panel_rename_workflowRename a workflow
panel_close_workflowClose a tab (refuses unsaved changes unless forced)
panel_save_workflowSave / save-as programmatically (no dialog pops)

Load a whole workflow in one shot

ToolEffect
panel_load_workflowReplace the live graph with a full workflow in one call — prefer pack:<name> to load a bundled installer pack's local-GPU workflow without shuttling the JSON through chat. Accepts UI/litegraph JSON and API/prompt format (graph.api.json). The replaced graph becomes an undo point (double-Esc / revert).

Knowledge & cost awareness — the agent (Claude or ChatGPT) discovers bundled expertise and checks runtime cost before spending credits

ToolEffect
list_packs action:"skill_list" / action:"skill_read"Discover and read bundled model-family + workflow skills (the same knowledge Claude loads natively, exposed to any backend)
list_packs action:"list" / action:"read_workflow"List one-command installer packs (custom nodes + weights + ready workflow; all local-GPU / free) and read a pack's graph
list_packs action:"list_templates"List the official ComfyUI workflow templates available on the connected server
list_packs action:"check_runtime"Classify a workflow as local (your GPU, free) or api / mixed / unknown (hosted API nodes = paid credits) — the agent asks before spending paid API credits

Run & view

ToolEffect
panel_runQueue the open workflow (same as pressing Queue Prompt)
panel_canvasFit, center on a node, pan, or zoom your view

Custom nodes — via your built-in ComfyUI Manager

ToolEffect
panel_search_nodesSearch installable node packs (the Manager's own source; limit defaults to 15, max 40)
panel_install_nodeQueue a pack install (registry id or git URL)
panel_node_queue_statusCheck the Manager's install / update queue
panel_restart_comfyuiRestart ComfyUI to load new nodes — panel auto-reconnects and the agent resumes

MCP & session

ToolEffect
panel_add_mcp / panel_remove_mcpConnect / remove an MCP server in your agent's MCP config (Claude or Codex)
panel_request_secretSecurely collect an API token — the agent never sees the value
panel_reloadSoft-reload the orchestrator (new code/tools) or the panel UI, then resume

Working with you

ToolEffect
panel_askAsk you to choose between options (renders a question card, waits for your pick)
panel_set_todoShow a live TODO checklist in the footer tray
panel_request_adult_consent / panel_disable_adult_modeToggle the 18+ NSFW consent gate

…plus the full comfyui-mcp tool surface (queue, models, custom nodes, workflows, generation) — the agent is the MCP client, so it has everything. The headless comfyui MCP is injected into both backends (in-process for Claude; declared to codex app-server via -c mcp_servers for ChatGPT), so this surface is identical across providers.

Working in the panel

  • Rewind & rollback. Hover any past message for a ✎ edit button that opens a modal to roll back code (the graph), conversation (fork the session), or both, then resend an edited message. Plus /revert (undo the last turn's graph edits) and double-Esc (quick last-turn rewind — revert the graph and recall the message to edit). Graph reverts use per-turn snapshots.
  • Pending-message tray. Messages sent while the agent is busy wait in a fixed Pending tray above the downloads tray — each with edit / send-now / delete buttons. Send-now interrupts the current turn to steer it; a drag handle (≡) reorders how the agent flushes them. On dequeue a message materializes at the bottom of the chat, so it flows in the exact order the agent (Claude or ChatGPT) processes it.
  • Destructive-op confirmation. panel_clear and panel_restart_comfyui pop a yes / no card and only act on yes.
  • Reconnect durability. A wedged orchestrator no longer strands the panel — Connect reclaims a zombie that still holds the bridge port.
  • Richer composer attachments. Attach, drag, or paste images, video, workflow .json, and text files into the composer. Attachments show as expandable chips above the input (kind icon + label; click to preview the full content, × to remove), and pasted text renders inline in the sent bubble — verbatim, exactly as if you'd typed it, rather than a raw [Pasted text #N] token.
  • Rich media metadata. When a render's media is pushed to the agent, the executed-event note includes each output's path (subfolder-relative), file size, pixel dimensions, asset-set grouping ("output K of N from this run" + sibling filenames), render duration, and completion time — videos add format + real frame count / fps.
  • Code-block tools. Rendered fenced code blocks get a Copy button plus a persisted global line-wrap toggle (off by default); inline code gets Copy.
  • Streamed replies in background tabs. Switching away from the ComfyUI tab mid-turn no longer leaves an empty bubble with a stuck cursor — the reply finalizes synchronously while the tab is hidden and flushes on visibilitychange, so long pipeline runs render even if you tab away.
  • Render-stall warning. A tunable stall threshold (Settings → General; default 600s, range 15–3600) warns when a render wedges; it's pushed live, so changing it applies without a reconnect. The standalone orchestrator fallback remains 180s when no Panel value is supplied.

Security notes

  • The bridge binds to 127.0.0.1 only — nothing is reachable from your LAN.
  • The panel executes a fixed command set; no eval, no DOM access for the agent.
  • No tokens or keys are stored anywhere in this pack.

Requirements

  • ComfyUI with a frontend exposing app.extensionManager.registerSidebarTab (any 2024+ release)
  • Node ≥ 22 for the orchestrator (npx -y comfyui-mcp@latest connect, started for you by Connect)
  • A subscription login for the provider you pick — Claude via the Claude CLI (claude) or ChatGPT via the Codex CLI (codex login). The agent runs on your subscription, no API key.

Roadmap

  • Remote pairing via a relay (PartyKit-style room codes) for ComfyUI-on-a-server setups
  • Migration to @comfyorg/extension-api v2 when it ships (v1 call sites tagged // TODO(v2):)

License

MIT.

This pack contains only original code — no ComfyUI or LiteGraph source is copied or bundled. It interoperates with GPL-3.0 ComfyUI at runtime through its public extension API (app.registerExtension), the same pattern used by other MIT/Apache-licensed packs (Crystools, rgthree, ComfyUI-Custom-Scripts). MIT is GPL-compatible; the runtime combination on your machine is yours.

将 Comfyui MCP Panel MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Comfyui MCP Panel 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Comfyui MCP Panel 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Comfyui MCP Panel MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "comfyui-mcp-panel": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Comfyui MCP Panel MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Comfyui MCP Panel MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Comfyui MCP Panel 帮我完成这项任务吗?
Comfyui MCP Panel
当然,我看过了。
以下是我使用 Comfyui MCP Panel 得到的结果。

常见问题

Comfyui MCP Panel MCP 服务器有什么用途?

Comfyui MCP Panel 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Comfyui MCP Panel MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Comfyui MCP Panel。

为什么在 TypingMind 中使用 Comfyui MCP Panel MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Comfyui MCP Panel 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Comfyui MCP Panel MCP 连接到 TypingMind?

Comfyui MCP Panel 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Comfyui MCP Panel MCP 在 TypingMind 中提供哪些工具?

Comfyui MCP Panel 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Comfyui MCP Panel MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Comfyui MCP Panel 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇