dcc-mcp-comfyui
Production ComfyUI adapter for the DCC Model Context Protocol (MCP) ecosystem. It gives agents a typed, bounded path from API-format workflow validation to queue execution and artifact delivery through ComfyUI's local REST API.
Illustrative workflow generated with OpenAI ImageGen from the retained source in docs/assets/sources; it depicts only the implemented validation, queue, polling, and artifact-delivery path.
Capabilities
validate_workflowchecks API-format structure, graph references, live node classes, and required inputs against the running ComfyUI registry.submit_workflowvalidates before queue submission and can wait for a bounded terminal result.query_job_statusreturns status, node outputs, errors, and normalized artifact metadata.get_artifactbuilds a local download URL for a known output without exposing filesystem paths.- Standalone discovery, packaged Skill subprocesses, and six-part DCC-MCP readiness are supported out of the box.
The production path was live-validated on ComfyUI 0.31.0 with a three-node EmptyImage -> ImageInvert -> SaveImage workflow, including typed CLI validation, execution, status polling, and artifact retrieval.
Quick Start
# Install
pip install dcc-mcp-comfyui
# Start ComfyUI locally (in another terminal)
python main.py --listen 127.0.0.1
# Start the MCP server
dcc-mcp-comfyui --comfyui-base-url http://127.0.0.1:8188
Environment Variables
| Variable | Default | Description |
|---|---|---|
DCC_MCP_COMFYUI_BASE_URL |
http://127.0.0.1:8188 |
ComfyUI server URL |
DCC_MCP_COMFYUI_TIMEOUT |
120 |
Request timeout (seconds) |
DCC_MCP_COMFYUI_PORT |
OS-assigned | MCP instance port |
DCC_MCP_GATEWAY_PORT |
9765 |
Gateway port |
DCC_MCP_COMFYUI_ENABLE_GATEWAY_FAILOVER |
true |
Gateway failover |
Skills
comfyui-workflow
The bundled Skill for ComfyUI workflow management:
validate_workflow— Validate workflow JSON structuresubmit_workflow— Submit workflow for executionquery_job_status— Poll execution status and outputsget_artifact— Get download URL for output images
MCP Client Config
{
"mcpServers": {
"dcc-mcp-comfyui": {
"url": "http://127.0.0.1:9765/mcp"
}
}
}
Build & Test
uv pip install -e ".[dev]"
uv run pytest
uv run ruff check src/ tests/
Architecture
MCP Client → Gateway (:9765) → ComfyUiMcpServer (OS port)
└─ Skill scripts → ComfyUIBridge → ComfyUI REST API (:8188)
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dcc_mcp_comfyui-0.1.0.tar.gz.
File metadata
- Download URL: dcc_mcp_comfyui-0.1.0.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb2283c836b26d76bbbfb691f8550dbac055b95bd3518efbb1def792bb90a489
|
|
| MD5 |
f3890cb2239faec1b262d188a4a156e8
|
|
| BLAKE2b-256 |
74ca0f10b9518b7f5f4b129d8231ccad1493f39f5b036ab45a50c3db23ce7a76
|
Provenance
The following attestation bundles were made for dcc_mcp_comfyui-0.1.0.tar.gz:
Publisher:
release.yml on dcc-mcp/dcc-mcp-comfyui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dcc_mcp_comfyui-0.1.0.tar.gz -
Subject digest:
bb2283c836b26d76bbbfb691f8550dbac055b95bd3518efbb1def792bb90a489 - Sigstore transparency entry: 2438538906
- Sigstore integration time:
-
Permalink:
dcc-mcp/dcc-mcp-comfyui@055b00f6ae77dcd3bcf8235a2043a2542f55eea1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dcc-mcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@055b00f6ae77dcd3bcf8235a2043a2542f55eea1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dcc_mcp_comfyui-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dcc_mcp_comfyui-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a0a044846b94aa09c4b4e021b2c5bf4affae6ebfc5f1aa7725aea81e99f4760
|
|
| MD5 |
ad1d34a1a507163352ebe5ec9dc54876
|
|
| BLAKE2b-256 |
0e4a528c907d99a2fb6e99f1f6ace9d1f7c6ed008cd8e231c90a4a14115dc796
|
Provenance
The following attestation bundles were made for dcc_mcp_comfyui-0.1.0-py3-none-any.whl:
Publisher:
release.yml on dcc-mcp/dcc-mcp-comfyui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dcc_mcp_comfyui-0.1.0-py3-none-any.whl -
Subject digest:
3a0a044846b94aa09c4b4e021b2c5bf4affae6ebfc5f1aa7725aea81e99f4760 - Sigstore transparency entry: 2438539254
- Sigstore integration time:
-
Permalink:
dcc-mcp/dcc-mcp-comfyui@055b00f6ae77dcd3bcf8235a2043a2542f55eea1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dcc-mcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@055b00f6ae77dcd3bcf8235a2043a2542f55eea1 -
Trigger Event:
push
-
Statement type: