Skip to main content

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.

PyPI Version Python Versions License: MIT CI


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

  1. Workfllow discovery: fetch remote or local JSON.
  2. Tool generation: parameters mapped into callable MCP tools.
  3. Execution: runs workflow via ComfyUI API and returns image URLs as Markdown.
  4. Batching: repeated invocations, seed randomization.

Development

pip setup -hatch
hatch test
hatch build
hatch run release

Contributing

  1. Fork the repo on GitHub.
  2. Make changes, add tests, and build
  3. Run hatch test to ensure all passes
  4. Submit a PR

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comfyui_mcp-0.0.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comfyui_mcp-0.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file comfyui_mcp-0.0.3.tar.gz.

File metadata

  • Download URL: comfyui_mcp-0.0.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for comfyui_mcp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 41741cb1a2d07092fcf4f5d450b81cb023b2cbfadf496a955746842f305580cc
MD5 53248bcbb35086b28616e80b4628f1bd
BLAKE2b-256 f06ba36394cc9b18b070b3d8ede5319cb6fd7d135f151c0fbf2afb0e7e66a803

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_mcp-0.0.3.tar.gz:

Publisher: ci.yml on ModdingFox/comfyui_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file comfyui_mcp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: comfyui_mcp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for comfyui_mcp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12730a63848a87efffbbc032921178ae5357fa91a23f1623428646d9bab0e97d
MD5 2a9ecebf0e484766c98817edc54fffd7
BLAKE2b-256 63b5105188d0d3a220869bf4743a9d00f923d22edb6c386584e8d923fe85a856

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_mcp-0.0.3-py3-none-any.whl:

Publisher: ci.yml on ModdingFox/comfyui_mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page