MCP HubMCP Hub
lalanikarim

comfy-mcp-pipeline

by: lalanikarim

This is a pipeline wrapper for comfy-mcp-server for Open WebUI.

6created 17/02/2025
Visit
pipeline
wrapper

📌Overview

Purpose: The Comfy MCP Pipeline serves as a wrapper for the Comfy MCP Server, facilitating seamless integration with Open WebUI pipelines for image generation workflows.

Overview: The Comfy MCP Pipeline leverages the functionalities of the Comfy MCP Server to enable users to execute image generation tasks through an intuitive chat interface. By connecting to predefined workflows, the pipeline streamlines the process of utilizing Comfy UI features and enhances accessibility for users aiming to generate images based on specified prompts.

Key Features:

  • Integration with Comfy MCP Server: Provides a direct interface to operate the Comfy MCP Server within Open WebUI, simplifying workflow management and execution.

  • Customizable Workflow Handling: Supports the import and setup of custom workflows from Comfy UI, allowing users to tailor image generation processes based on specific project requirements.


Comfy MCP Pipeline

This is a pipeline wrapper for comfy-mcp-server for Open WebUI.

Prerequisites

  • Open WebUI
  • Open WebUI Pipelines
  • ComfyUI
  • Updated requirements.txt for pipelines server
  • JSON Export of a ComfyUI Workflow API:
    • From ComfyUI, select a workflow to export
    • From the top menu, Workflow -> Export (API) -> provide a filename -> Confirm
    • This file will need to be uploaded to the pipeline server

Pipeline Installation and Setup

  • Follow Open WebUI Pipelines documentation to upload the comfy-mcp-pipeline.py to Pipeline server
  • Choose comfy-mcp-pipeline (pipe) from Pipeline Valves
  • Set configuration for the following valves:
    • Comfy Url: URL for your Comfy UI server
    • Comfy Url External: External URL for your Comfy UI server. Use Comfy Url value if same
    • Comfy Workflow Json File: path of the workflow JSON file
    • Prompt Node Id: Id of the text prompt node from the workflow JSON file
    • Output Node Id: Id of the generated image node from the workflow JSON file
  • If all steps are successful, you will see Comfy MCP Pipeline in the list of models

Usage

  • Select New Chat and choose Comfy MCP Pipeline
  • Enter an image generation prompt and hit send
  • If the setup was successful, you should see the generated image