Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By artokun
Generate and manipulate AI images and videos using ComfyUI workflows from Claude Code. Includes tools to build workflows for models like Flux, WAN, Qwen, and Z-Image, batch parameter sweeps, diagnose failures, convert between workflow formats, and install custom nodes. Also provides agents for workflow diagnosis, performance optimization, and skill generation for custom node packs.
npx claudepluginhub artokun/comfyui-mcp --plugin comfyParameter sweep generation across multiple values
Diff two ComfyUI workflows to see what changed
Convert between ComfyUI UI format and API format workflows
Diagnose why a ComfyUI workflow failed
Direct a short film from a story — generates scenes, frames, and video clips
Diagnoses ComfyUI workflow failures by analyzing logs, history, and node definitions
Explores ComfyUI custom node packs and generates comprehensive skills
Analyzes ComfyUI workflows for performance issues and suggests optimizations
Core ComfyUI knowledge — workflow format, node types, pipeline patterns, and MCP tool usage
Full production pipeline — story to scenes, Z-Image start frames, Qwen Edit end frames, WAN FLF video clips, ffmpeg concatenation
Build Flux txt2img workflows — Flux.1 Dev (SRPO), Flux 2 Klein 9B, Turbo LoRAs, FluxGuidance, and DualCLIPLoader patterns
Build LTX-V2 19B video workflows — text-to-video, image-to-video, distilled model, camera control LoRAs, and two-stage upscaling
Model family compatibility matrix — loaders, resolutions, samplers, CFG, VAE, ControlNet, and LoRA compatibility for SD 1.5, SDXL, Flux, SD3, and video models
Requires secrets
Needs API keys or credentials to function
Uses power tools
Uses Bash, Write, or Edit tools
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
9 skills covering ComfyUI custom node development with the V3 and V1 APIs
Visual creative expert — search inspiration, enhance prompts, and generate AI images with intelligent workflow orchestration
AI image generation with creative workflow orchestration, parallel multi-direction output, prompt engineering, and a 1,300+ curated inspiration library. Requires MeiGen MCP server (supports MeiGen Cloud, local ComfyUI, and OpenAI-compatible APIs).
Workflow generation skills for Coze, Dify, and ComfyUI. Generate importable workflow definitions from natural language descriptions.
OpenAI GPT Image 2 prompt gallery, image prompt library, agentic skill + CLI. Gallery-first prompt patterns, reference-image editing workflows, and a packaged CLI for skill-capable agent runtimes.
Generate images and videos with Leonardo.Ai through the leonardo CLI. Includes guides for all model families and recipe references.
MCP server + Claude Code plugin for ComfyUI — execute workflows, generate images, visualize pipelines, manage models, control VRAM, and explore custom nodes, all from your AI coding assistant.
Works on macOS, Linux, and Windows. Auto-detects your ComfyUI installation and port.
31 MCP tools | 10 slash commands | 4 knowledge skills | 3 autonomous agents | 3 hooks
1. Install ComfyUI (if you haven't already): ComfyUI Desktop or from source
2. Add the MCP server to your Claude Code config (~/.claude/settings.json):
{
"mcpServers": {
"comfyui": {
"command": "npx",
"args": ["-y", "comfyui-mcp"],
"env": {
"CIVITAI_API_TOKEN": ""
}
}
}
}
3. Start using it. With ComfyUI running, ask Claude to generate an image:
> Generate an image of a sunset over mountains
Claude will find (or download) a checkpoint, build a workflow, execute it, and return the image.
Note: This runs as a standalone MCP server — no need to clone this repo.
npxwill download and run it automatically.
This package also ships as a Claude Code plugin, providing slash commands, skills, agents, and hooks on top of the MCP tools.
claude plugin install comfyui-mcp
| Command | Description |
|---|---|
/comfy:gen <prompt> | Generate an image from a text description — auto-selects checkpoint, builds workflow, returns image |
/comfy:viz <workflow> | Visualize a workflow as a Mermaid diagram with nodes grouped by category |
/comfy:node-skill <pack> | Generate a Claude skill for a custom node pack from Registry ID or GitHub URL |
/comfy:debug [prompt_id] | Diagnose why a workflow failed — reads history, logs, traces root cause, suggests fixes |
/comfy:batch <prompt, params> | Parameter sweep generation across cfg, sampler, steps, seed, etc. |
/comfy:convert <file> | Convert between UI format and API format workflows |
/comfy:install <pack> | Install a custom node pack — git clone, pip install, optional restart |
/comfy:gallery [filter] | Browse generated outputs with metadata — filter by date, count, or filename |
/comfy:compare <a vs b> | Diff two workflows side by side — shows added/removed nodes and changed parameters |
/comfy:recipe <name> <prompt> | Multi-step recipes: portrait, hires-fix, style-transfer, product-shot |
| Skill | Description |
|---|---|
| comfyui-core | Workflow format, node types, data flow patterns, pipeline architecture, MCP tool usage guide |
| prompt-engineering | CLIP weight syntax (word:1.3), BREAK tokens, embeddings, model-specific prompting for SD1.5/SDXL/Flux/SD3 |
| troubleshooting | Common error catalog — OOM, dtype mismatches, missing nodes, NaN tensors, black images, CUDA errors, with VRAM estimates per model |
| model-compatibility | Compatibility matrix — loaders, resolutions, CFG, samplers, ControlNets, LoRAs, and VAEs per model family (SD1.5/SDXL/Turbo/Lightning/Flux/SD3/LTXV) |
| Agent | Model | Description |
|---|---|---|
| comfy-explorer | Sonnet | Researches custom node packs — reads docs, queries /object_info, generates comprehensive skill files |
| comfy-debugger | Sonnet | Autonomously diagnoses workflow failures — gathers logs + history, identifies failing node, checks models + custom nodes, proposes and optionally applies fixes |
| comfy-optimizer | Sonnet | Analyzes workflows for performance — detects redundant nodes, VRAM waste, wrong CFG/steps for model family, precision issues, suggests optimizations |
| Event | Trigger | Action |
|---|---|---|
| PreToolUse | enqueue_workflow | VRAM watchdog — checks GPU memory via /system_stats and warns if < 1GB free before execution |
| PreToolUse | stop_comfyui, restart_comfyui | Save warning — prompts user to save unsaved workflow changes before stopping ComfyUI |
| PostToolUse | Any comfyui tool | Job completion notify — checks for completed jobs and injects completion summaries into the conversation |