comfyui-mcp-server
61
The ComfyUI MCP Server is a Python-based server that allows AI agents to programmatically generate images via requests to a local ComfyUI instance using the MCP protocol. It supports flexible workflows and dynamic parameters for image generation.
Overview
This project enables AI agents to send image generation requests to ComfyUI using the MCP protocol over WebSocket. It supports:
- Flexible workflow selection.
- Dynamic parameters: prompt, width, height, and model.
- Returns image URLs served by ComfyUI.
Prerequisites
- Python 3.10+.
- ComfyUI: Installed and running locally.
- Dependencies: requests, websockets, mcp.
Setup
- Clone the Repository.
- Install Dependencies.
- Start ComfyUI.
- Prepare Workflows.
Usage
- Run the MCP Server.
- Test with the Client.
- Custom Requests.