mcp-imagegen-comfyui mcp

v1.0.0 · MCP Tool · ai · registry.pascalai.org

Generate images using ComfyUI workflow API with custom node graph workflows.

comfyuistablediffusionimagegenworkflowlocal

Input Parameters

ParameterTypeDescription
hostrequired string Default: http://localhost:8188.
operationrequired string One of: generate, queue_prompt, get_history, get_queue, cancel, get_models, upload_image.
workflowoptional object ComfyUI workflow JSON (API format).
workflow_pathoptional string Path to workflow JSON file.
prompt_overridesoptional object Node ID to override prompt text.
seed_overridesoptional object Node ID to override seed values.
output_pathoptional string
client_idoptional string
prompt_idoptional string

Output Fields

FieldTypeDescription
images array[string]
prompt_id string
history object
queue object
models array[string]

Examples

Queue generation workflow

// Input
{
  "host": "http://localhost:8188",
  "operation": "generate",
  "workflow_path": "/workflows/sdxl_basic.json",
  "prompt_overrides": {
    "6": "A serene forest path in autumn"
  }
}

// Output
{
  "images": [
    "data:image/png;base64,..."
  ],
  "prompt_id": "uuid-xxx"
}

Install & Discovery

Install

ppm install mcp-imagegen-comfyui

Get JSON Schema

GET /v1/packages/mcp-imagegen-comfyui/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=comfyui
Discovery hint: Install with ppm install mcp-imagegen-comfyui or invoke remotely via POST /v1/invoke/mcp-imagegen-comfyui on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-imagegen-comfyui');
var R := Tool.Call(JsonObj([]));
Writeln(R.ToJSON);