artokun

Comfyui MCP — AI skill for Claude Code

AI community

ComfyUI MCP server + Claude Code plugin — workflow execution, visualization, composition, model management, and skill generation.

How to install Comfyui MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open artokun/comfyui-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Comfyui MCP does

ComfyUI MCP server + Claude Code plugin — workflow execution, visualization, composition, model management, and skill generation.

Alternatives in AI

  • Zen MCP Server — The power of Claude Code + Gemini / OpenAI / Grok / OpenRouter / Ollama / Custom Model working as one 11.3k ★
  • Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
  • Codex Skill — by klaudworks - Enables users to prompt codex from claude code 914 ★

README

comfyui-mcp

**MCP server + Claude Code plugin for [ComfyUI](https://github.com/comfyanonymous/ComfyUI)** — execute workflows, generate images, visualize pipelines, manage models, control VRAM, and explore custom nodes, all from your AI coding assistant.

[![npm version](https://img.shields.io/npm/v/comfyui-mcp)](https://www.npmjs.com/package/comfyui-mcp) [![Node.js](https://img.shields.io/badge/node-%3E%3D22.0.0-brightgreen)](https://nodejs.org) [![License](https://img.shields.io/npm/l/comfyui-mcp)](./LICENSE)

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**


Quick Start

**1. Install ComfyUI** (if you haven't already): [ComfyUI Desktop](https://www.comfy.org/download) or [from source](https://github.com/comfyanonymous/ComfyUI)

**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. `npx` will download and run it automatically.


Claude Code Plugin

This package also ships as a **Claude Code plugin**, providing slash commands, skills, agents, and hooks on top of the MCP tools.

Install as a plugin

claude plugin install comfyui-mcp

Slash commands

Command Description
/comfy:gen Generate an image from a text description — auto-selects checkpoint, builds workflow, returns image
/comfy:viz Visualize a wor