FC

filliptm/comfyui_fl-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

126 stars 20 forks 质量 84 趋势 8MIT

filliptm/comfyui_fl-mcp 是从 https://github.com/filliptm/comfyui_fl-mcp. 导入的 MCP 服务器候选

概览

filliptm/comfyui_fl-mcp 是从 https://github.com/filliptm/comfyui_fl-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

内置MCP聊天、工具服务器和浏览器桥接,用于控制ComfyUI。

演示

它的作用

ComfyUI FL-MCP 为 ComfyUI 添加了 MCP 原生工作流程聊天功能,并将相同工具展示给外部客户端,如 Claude Desktop、Cursor、Codex 及其他代理开发环境。内置助手由 任 驱动,直接出现在 ComfyUI 侧边栏。

它提供了三种控制路径:

路径 有效时间 最佳
MCP 聊天(内置) ComfyUI 在桥接后端运行时已开放 在不离开 ComfyUI 的情况下与当前图表聊天、检查和编辑
ComfyUI REST 工具 ComfyUI 运行于 127.0.0.1:8188 模型、队列、历史、Manager v4、文件、诊断
浏览器桥接工具 ComfyUI已在浏览器标签页中打开,连接了FL-MCP 当前画布JSON、节点选择、布局、截图、前端命令

精彩片段

  • 136 个 MCP 工具,用于工作流检查、图表编辑、队列控制、Manager v4、模型发现、文件系统检查、自定义节点开发和诊断。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

ComfyUI FL-MCP

Built-in MCP chat, tool server, and browser bridge for controlling ComfyUI.

Demo

What It Does

ComfyUI FL-MCP adds an MCP-native workflow chat to ComfyUI and exposes the same tools to external clients such as Claude Desktop, Cursor, Codex, and other agentic development environments. The built-in assistant is powered by Ren and appears directly in the ComfyUI sidebar.

It provides three control paths:

Path Works When Best For
MCP chat (built in) ComfyUI is open with the bridge backend running Chatting with, inspecting, and editing the current graph without leaving ComfyUI
ComfyUI REST tools ComfyUI is running on 127.0.0.1:8188 Models, queue, history, Manager v4, files, diagnostics
Browser bridge tools ComfyUI is open in a browser tab with FL-MCP connected Current canvas JSON, node selection, layout, screenshots, frontend commands
flowchart LR
    A[Built-in MCP chat] --> B[backend/mcp_server.py]
    G[External MCP client] --> B
    B --> C[ComfyUI HTTP API127.0.0.1:8188]
    B --> D[FL-MCP bridge backend127.0.0.1:8000]
    D --> E[Open ComfyUI browser tab]
    E --> F[Live graph canvas]

Highlights

  • 136 MCP tools for workflow inspection, graph editing, queue control, Manager v4, model discovery, filesystem inspection, custom node development, and diagnostics.
  • Built-in MCP chat, powered by Ren, with streaming responses, persistent conversation history, chronological tool activity, and approval cards.
  • Bring your own model through LM Studio, Ollama, OpenAI, OpenRouter, Anthropic, Claude Code, Codex, or a custom OpenAI-compatible endpoint.
  • Use existing subscriptions from Claude Code or Codex without copying OAuth credentials into FL-MCP.
  • Canvas-aware editing keeps generated nodes from overlapping and makes ComfyUI’s Fit View respect the open chat panel.
  • Embedded ComfyUI bridge diagnostics remain available from the assistant sidebar.
  • Standalone MCP mode for REST-only control when no browser tab is open.
  • Live canvas bridge for frontend-only actions such as reading the current graph, selecting/focusing nodes, screenshots, and layout edits.
  • Safety gates keep destructive/write actions disabled by default.
  • Custom-node aware coding tools scoped to ComfyUI/custom_nodes.

Installation

Manual Install

cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/filliptm/ComfyUI_FL-MCP.git
cd ComfyUI_FL-MCP
pip install -r requirements.txt
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "comfyui-fl-mcp": { "command": "python", "args": [ "/path/to/ComfyUI/custom_nodes/ComfyUI_FL-MCP/backend/mcp_server.py" ] } } }