comfyui-mcp-server
Verified Safeby joenorton
Overview
The server enables AI agents to generate and iteratively refine images, audio, and video using a local ComfyUI instance through the Model Context Protocol (MCP).
Installation
python server.pyEnvironment Variables
- COMFYUI_URL
- COMFY_MCP_WORKFLOW_DIR
- COMFY_MCP_ASSET_TTL_HOURS
- COMFY_MCP_DEFAULT_IMAGE_MODEL
- COMFY_MCP_DEFAULT_AUDIO_MODEL
- COMFY_MCP_DEFAULT_VIDEO_MODEL
- COMFY_MCP_DEFAULT_IMAGE_WIDTH
- COMFY_MCP_DEFAULT_IMAGE_HEIGHT
- COMFY_MCP_DEFAULT_IMAGE_STEPS
- COMFY_MCP_DEFAULT_IMAGE_CFG
- COMFY_MCP_DEFAULT_AUDIO_SECONDS
- COMFY_MCP_DEFAULT_AUDIO_STEPS
Security Notes
The server binds to localhost by default and explicitly warns against public exposure without authentication or a reverse proxy. Path traversal attempts for workflow IDs are sanitized and validated. No direct 'eval' or 'exec' found. Asset access is controlled via a registry. The system's security relies on ComfyUI's internal security for asset processing and generation.
Similar Servers
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
imgenx
AI image and video generation and processing, functioning as a command-line tool or MCP server.
mcp-ai-agent-guidelines
A comprehensive AI agent development framework focused on structured design, prompt engineering, code analysis, and agent-to-agent orchestration for developers.
MCP-Council
Automates the conversion of REST APIs into AI-powered MCP (Model Context Protocol) servers, enabling seamless integration of APIs with AI assistants.