No project description provided
Project description
comfyui-mcp
A Model Context Protocol(MCP) server that exposes ComfyUI workflows as callable MCP tools. Built using FastMCP and comfyui-utils.
Installation
Contents of this package require Python 3.11 or higher.
pip install comfyui-mcp
Quick Start
mcpo --port 8000 --api-key "AwesomeKey" -- python3 -m comfyui_mcp.server
Architecture Overview
src/comfyui_mcp/
- __about__.py: Version and license metadata
- argument_parser.py: CLI argument definitions using pydantic
- base_types.py: Shared type aliases
- function_utils.py: Dynamic function wrapper generation
- workflow_loader.py: Load workflows from disk or ComfyUI API
- workflow_utils.py: Workflow preparation and invocation
- server.py: FastMCP server entry point
How It Works
- Workflow discovery: fetch remote or local JSON.
- Tool generation: parameters mapped into callable MCP tools.
- Execution: runs workflow via ComfyUI API and returns image URLs as Markdown.
- Batching: repeated invocations, seed randomization.
Development
pip setup -hatch
hatch test
hatch build
hatch run release
Contributing
- Fork the repo on GitHub.
- Make changes, add tests, and build
- Run
hatch testto ensure all passes - Submit a PR
Project details
Release history Release notifications | RSS feed
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 comfyui_mcp-0.0.4.tar.gz.
File metadata
- Download URL: comfyui_mcp-0.0.4.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40ecd404da67df55f4832c05cab8eed95357d5206ff005bd784e64c0c581c441
|
|
| MD5 |
4b2a48b2559b25b77efe4197e3d77bcd
|
|
| BLAKE2b-256 |
d52604fa4e482c67dc692e274545cae82998344b185c9384be374169ddd31daa
|
Provenance
The following attestation bundles were made for comfyui_mcp-0.0.4.tar.gz:
Publisher:
ci.yml on ModdingFox/comfyui_mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comfyui_mcp-0.0.4.tar.gz -
Subject digest:
40ecd404da67df55f4832c05cab8eed95357d5206ff005bd784e64c0c581c441 - Sigstore transparency entry: 669596784
- Sigstore integration time:
-
Permalink:
ModdingFox/comfyui_mcp@a4b3bafa9812d63d2120e1b21f42b55d4be0e7ca -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/ModdingFox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@a4b3bafa9812d63d2120e1b21f42b55d4be0e7ca -
Trigger Event:
push
-
Statement type:
File details
Details for the file comfyui_mcp-0.0.4-py3-none-any.whl.
File metadata
- Download URL: comfyui_mcp-0.0.4-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa5e341311d6a3f4ca3937e22d275185e319febee2dbe7ab5b64b4ad629e6fb3
|
|
| MD5 |
7b9e69d8e288a8ede7682d3947b5a2d5
|
|
| BLAKE2b-256 |
610e12fee35790a94a4bd8e0489d8822a98bc281bdb7f81355f4819a6371d510
|
Provenance
The following attestation bundles were made for comfyui_mcp-0.0.4-py3-none-any.whl:
Publisher:
ci.yml on ModdingFox/comfyui_mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comfyui_mcp-0.0.4-py3-none-any.whl -
Subject digest:
fa5e341311d6a3f4ca3937e22d275185e319febee2dbe7ab5b64b4ad629e6fb3 - Sigstore transparency entry: 669596789
- Sigstore integration time:
-
Permalink:
ModdingFox/comfyui_mcp@a4b3bafa9812d63d2120e1b21f42b55d4be0e7ca -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/ModdingFox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@a4b3bafa9812d63d2120e1b21f42b55d4be0e7ca -
Trigger Event:
push
-
Statement type: