comfyui-mcp
comfyui-mcp
Servidor del Model Context Protocol (MCP) para ComfyUI. Expone flujos de trabajo locales (o alojados en Comfy Cloud) como una superficie de herramientas para que agentes de chat, diarios y paneles puedan generar imágenes, vídeo, audio y 3D.
Qué hace
Ejecutar cualquier flujo de trabajo en formato API con inyección de parámetros
Transmitir la salida como un archivo (imagen / vídeo / audio)
Gestionar la cola, interrumpir, liberar VRAM
Listar nodos personalizados y modelos instalados
Subir imágenes para img2img / inpaint
Instalar nodos personalizados y modelos mediante
comfy-cli
Related MCP server: comfy-mcp
Arquitectura
┌─────────────────────────┐ stdio / Streamable HTTP / REST ┌──────────────────┐
│ Chat agent / dashboard │ ────────────────────────────────▶ │ comfyui-mcp │
│ (Hermes, Claude, etc.) │ ◀──────────────────────────────── │ (Python) │
└─────────────────────────┘ └──────────────────┘
│
▼
┌──────────────────┐
│ ComfyUI server │
│ 127.0.0.1:8188 │
│ (or Cloud) │
└──────────────────┘Se incluyen tres transportes:
Transporte | URL | Caso de uso |
stdio | n/a | Claude Desktop, Hermes, cualquier cliente MCP-stdio |
HTTP REST |
| curl, webhooks, paneles |
Streamable HTTP MCP |
| Clientes MCP del lado del navegador |
Privacidad
Este repositorio es completamente público. No hay secretos en este código. Todas las credenciales
del backend se configuran en tiempo de ejecución mediante variables de entorno
(consulte .env.example):
COMFYUI_HOST— host:puerto del servidor local de ComfyUICOMFY_CLOUD_API_KEY— si se establece, apuntar aplatform.comfy.orgen su lugarCOMFYUI_AUTH_TOKEN— token bearer opcional para servidores autoalojados
El código incluido nunca ve tus claves API.
Herramientas expuestas
Herramienta | Propósito |
| Ping a /system_stats |
| Enviar un JSON de flujo de trabajo con parámetros |
| Obtener la imagen/vídeo resultante por prompt_id |
| Ver la cola |
| Cancelar trabajo en ejecución |
| Descargar modelos |
| Listar nodos personalizados instalados |
| Listar checkpoints, loras, vae, etc. instalados |
| Subir imagen para img2img / inpaint |
| Instalar un nodo personalizado |
| Descargar un modelo |
Inicio rápido
git clone https://github.com/Franzferdinan51/comfyui-mcp
cd comfyui-mcp
cp .env.example .env
# edit .env to point at your ComfyUI server
pip install -r requirements.txt
./scripts/comfyui-mcp.bat # or python scripts/comfyui_mcp_server.pyComfyUI debe estar ejecutándose en el host:puerto configurado (127.0.0.1:8188 por defecto).
Inicie el puente HTTP para uso con curl/panel:
python scripts/comfyui_http_bridge.py
# → http://localhost:9300Inicie el transporte Streamable HTTP MCP:
python scripts/comfyui_streamable_http.py
# → http://localhost:9300/mcpLicencia
MIT — bifurque libremente, atribuya a Franzferdinan51 / Duckets.
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that standardizes tool discovery, execution, and context management for AI applications.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to control a local ComfyUI instance for image generation, allowing workflow understanding, parameter modification, execution, and model discovery.11 npm3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceA lightweight MCP server that bridges AI agents with a local ComfyUI instance, enabling them to generate and iteratively refine images, audio, and video through conversational tool calls.10 npm1MIT
- FlicenseNot gradedqualityBmaintenanceMCP server that exposes ComfyUI image and 3D generation as a single tool with smart prompt classification. It enables AI assistants to generate assets directly by selecting and running the appropriate ComfyUI workflow.-