ComfyUI

by lalanikarim

9 stars
Not rated
GitHub

About

Integrates with ComfyUI to enable natural language-driven image generation using customizable Stable Diffusion workflows

Details

Author
lalanikarim
Repository
lalanikarim/comfy-mcp-pipeline
GitHub stars
9
License
MIT License
Categories
Productivity, Developer Tools, Design, AI, Media, Frontend, API
Tags
#integration

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name ComfyUI
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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

- 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 workflow JSON file.
- Output Node Id: Id of the generated image node from the workflow JSON file.
- If all steps are successfull, you will see Comfy MCP Pipeline in the list of models

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "comfyui": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

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 - see sample for reference workflow.json
- From Comfy UI, 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 workflow JSON file.
- Output Node Id: Id of the generated image node from the workflow JSON file.
- If all steps are successfull, you will see Comfy MCP Pipeline in the list of models

Usage

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.