MCP ExplorerExplorer

Comfyui Mcp Server

@zuojianghuaon 10 months ago
3 MIT
FreeCommunity
AI Systems
generate_image and other workflows

Overview

What is Comfyui Mcp Server

comfyui_mcp_server is a server designed to generate images and manage various workflows efficiently.

Use cases

Use cases include generating artwork for games, creating illustrations for publications, and automating the production of images for marketing materials.

How to use

To use comfyui_mcp_server, configure the server settings in the JSON format provided, ensuring the correct path to the server script and environment variables are set. Start the server using the command specified in the configuration.

Key features

Key features include image generation capabilities, customizable server configurations, and support for various workflows through a simple command-line interface.

Where to use

comfyui_mcp_server can be used in fields such as digital art creation, automated content generation, and any application requiring image processing workflows.

Content

ComfyUI MCP Server

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

Features

  • Image Generation: Generate images using ComfyUI text_to_image workflows
  • Prompt Optimization: Optimize image generation prompts for better results

Server Architecture

  1. Core Components:

    • FastMCP framework implementation
    • ComfyUI API integration
    • Polling mechanism for result retrieval
  2. Key Functions:

    • generate_image: Creates images from text prompts
    • optimize_image_prompt: Enhances input prompts for better generation results
  3. Technical Specifications:

    • Automatic image dimension adjustment (multiples of 8)
    • Random seed generation for diverse outputs
    • Returns both local file paths and online accessible URLs

Configuration

{
  "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"
    }
  }
}

Requirements

  • Python 3.7+
  • ComfyUI instance running
  • FastMCP library installed

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers