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. Workflow 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.4.tar.gz (11.7 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.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for comfyui_mcp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 40ecd404da67df55f4832c05cab8eed95357d5206ff005bd784e64c0c581c441
MD5 4b2a48b2559b25b77efe4197e3d77bcd
BLAKE2b-256 d52604fa4e482c67dc692e274545cae82998344b185c9384be374169ddd31daa

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_mcp-0.0.4.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.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

Hashes for comfyui_mcp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5e341311d6a3f4ca3937e22d275185e319febee2dbe7ab5b64b4ad629e6fb3
MD5 7b9e69d8e288a8ede7682d3947b5a2d5
BLAKE2b-256 610e12fee35790a94a4bd8e0489d8822a98bc281bdb7f81355f4819a6371d510

See more details on using hashes here.

Provenance

The following attestation bundles were made for comfyui_mcp-0.0.4-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