comfyui-mcp-server

joenorton
60
ComfyUI MCP Server is a lightweight Python-based service that allows AI agents to generate images via requests to a local ComfyUI instance using the Model Context Protocol over WebSocket. It supports dynamic parameters and flexible workflows, returning image URLs efficiently.

Overview

What is comfyui-mcp-server

ComfyUI MCP Server is a lightweight Python-based server that implements the Model Context Protocol (MCP) to facilitate image generation requests from AI agents to a local ComfyUI instance via WebSocket.

How to Use

To use ComfyUI MCP Server, clone the repository, install the required dependencies, start the ComfyUI on port 8188, and then run the MCP server. You can test the setup using a sample client that sends requests to generate images based on specified parameters.

Key Features

Key features include flexible workflow selection, dynamic parameter configuration (prompt, width, height, model), and the ability to return image URLs served by ComfyUI.

Use Cases

Use cases for ComfyUI MCP Server include automated image generation for applications like game development, content creation, and AI art generation, where AI agents can programmatically request images based on various inputs.

Content