Feedback

ComfyUI MCP Server — by zuojianghua

@zuojianghua Claim

Basic information

Runtime
python
Category
License
Not specified
Transports
stdio
Author
zuojianghua
Submitted by
Community
Quality
35
Stars
4

About ComfyUI MCP Server

generate_image and other workflows

ComfyUI MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by zuojianghua. Supported transport: stdio. Runtime: python. The repository has 4 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "ComfyUI_MCP_Server": {
            "disabled": false,
            "timeout": 600,
            "command": "python",
            "args": [
                "D:\\code\\comfyui_mcp_server\\server.py"
            ],
            "env": {
                "COMFY_URL": "http://127.0.0.1:8188/"
            },
            "transportType": "stdio"
        }
    }
}

ComfyUI MCP Server — by zuojianghua config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "ComfyUI_MCP_Server": {
            "disabled": false,
            "timeout": 600,
            "command": "python",
            "args": [
                "D:\\code\\comfyui_mcp_server\\server.py"
            ],
            "env": {
                "COMFY_URL": "http://127.0.0.1:8188/"
            },
            "transportType": "stdio"
        }
    }
}

ComfyUI MCP Server — by zuojianghua tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is ComfyUI MCP Server?

A Model Context Protocol (MCP) server for ComfyUI that provides image generation and prompt optimization services.

How to use ComfyUI MCP Server?

Configure the server in your MCP client using the provided JSON snippet, setting the COMFY_URL environment variable to your running ComfyUI instance (default http://127.0.0.1:8188/). The server runs as a Python script via stdio transport. Ensure Python 3.7+ and the FastMCP library are installed, and that a ComfyUI instance is active.

Key features of ComfyUI MCP Server

  • Image generation from text prompts using ComfyUI workflows
  • Prompt optimization to improve generation results
  • Automatic image dimension adjustment (multiples of 8)
  • Random seed generation for diverse outputs
  • Returns both local file paths and online accessible URLs

Use cases of ComfyUI MCP Server

  • Generate images from textual descriptions via ComfyUI’s text_to_image workflows
  • Enhance prompt quality to achieve better image generation results

Frequently asked questions

1 What are the requirements to run the server?

Python 3.7+, a running ComfyUI instance, and the FastMCP library. The ComfyUI API must be accessible at the URL specified in COMFY_URL.

2 How does the server handle image dimensions?

It automatically adjusts image dimensions to multiples of 8 to ensure compatibility with ComfyUI’s model requirements.

3 What transport does the server use?

The server uses the stdio transport, as shown in the default MCP configuration example.

4 Are results returned as files or URLs?

Both local file paths and publicly accessible URLs are provided for each generated image.

5 How are diverse outputs generated?

A random seed is generated per request, producing varied results from the same prompt.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬