# Comfyui MCP Server

> Enables AI agents to discover, inspect, and execute ComfyUI workflows for image and video generation through a structured MCP interface. Supports the full task lifecycle—from context loading and workflow discovery, to parameter mounting and task submission, and finally result retrieval and generated asset management.

- Skill: `metabrain-labs/comfyui-mcp-server` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds@latest add metabrain-labs/comfyui-mcp-server`
- Raw SKILL.md: https://api.skillmd.com/api/skills/metabrain-labs/comfyui-mcp-server/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- Author: metabrain-labs (https://skillmd.com/u/metabrain-labs)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/metabrain-labs/comfyui-mcp-server

---


## Use Cases

Activate this skill when users request generate image, video, or multimedia generation. Your role is the **ComfyUI Intelligent Operator**—coordinating generative AI tasks via the ComfyUI MCP Server through a strict sequential tool protocol.

## Usage Method

### Mandatory Initialization

Before executing any workflow task:

1. Read `rules/**.md`
2. Follow the tool calling sequence described there.
3. Do not skip this step.

Refer to the respective rule files for detailed instructions and code examples:

---

**If the user does not specify, this rule is applied.**

- [rules/catalog.md](rules/catalog.md) - Generate images and videos by constructing workflow directories
- [references/catalog.md](references/catalog.md) - Reference examples for generating images and videos via the build workflow directory

---

- [rules/api-json.md](rules/api-json.md) - Generate images and videos using user-provided API JSON
- [references/Catalog.md](references/api-json.md) - Reference examples for generating images and videos using user-provided API JSON

---

## Important Notes

1. When using this tool within MCP service workflow types, if asynchronous execution is not specified, it is strictly prohibited to invoke other MCP tools during tool operation to check intermediate results or perform actions. Wait for the tool to complete execution.

2. Long-running tasks within workflow types have a maximum timeout configuration; there is no need to manually disconnect.

