# comfy-mcp

comfy-mcp is a Claude Code MCP server that drives a local ComfyUI instance to generate images and monitor jobs.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 366 repo stars
- Author: Comfy-Org
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Comfy-Org/comfy-mcp
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/comfy-mcp

## What it does

The server connects AI agents to a local ComfyUI installation via the `comfy-cli` engine. It executes workflow files, polls job status, inspects outputs, and introspects live nodes and models.

Python 3.10 or newer and a working `comfy` binary in `PATH` are required before starting the server.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add comfy-mcp -- uvx comfy-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from comfy-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add comfy-mcp -- uvx comfy-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from comfy-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "comfy-mcp": {
            "command": "uvx",
            "args": [
                "comfy-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from comfy-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "comfy-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "comfy-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from comfy-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add comfy-mcp uvx comfy-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from comfy-mcp <command>

## When to use it
- generate images from text prompts
- monitor and cancel background rendering jobs
- validate and build workflow graphs
- manage the ComfyUI server process

## Example prompts
- Generate an image using the local ComfyUI workflow
- Check the status of the current render job
- Restart the local ComfyUI server

## Similar
- [comfy-workflow-ui](https://affpapa.org/en/nevibecode/skills/comfy-workflow-ui.md) — skill · ★ 139 repo stars
- [cinematic-trailer-production](https://affpapa.org/en/nevibecode/skills/cinematic-trailer-production.md) — skill · 204 installs
- [ai-game-art-generation](https://affpapa.org/en/nevibecode/skills/ai-game-art-generation.md) — skill · 265 installs
- [tencent-hunyuan3d](https://affpapa.org/en/nevibecode/skills/tencent-hunyuan3d.md) — skill · 152 installs
- [qwencloud-video-generation](https://affpapa.org/en/nevibecode/skills/qwencloud-video-generation.md) — skill · 1800 installs
- [vidmuse](https://affpapa.org/en/nevibecode/skills/vidmuse.md) — skill · 771 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
