comfyui-local-mcp
comfyui-local-mcp
Controla tu ComfyUI local desde clientes MCP (Hermes, Claude Code, Cursor, cualquier agente MCP) — con flujos de trabajo FLUX.2 Klein de texto a imagen listos para usar, optimizados para Apple Silicon (MLX + MPS).
Construido y probado en: Mac mini M4 · 24 GB de memoria unificada · macOS 26 · ComfyUI 0.33 · mflux 0.19
Características
🖼️ generate_image — texto a imagen con descubrimiento automático de modelos:
mflux:<nombre>— FLUX.2 Klein 4B / 9B, MLX de 4 bits (rápido, bajo consumo de memoria)bf16— bf16 nativo de ComfyUI (MPS, mejor calidad)auto— selecciona automáticamente el mejor modelo (preferencia por 9B)
📦 list_models — lista los modelos instalados (escanea automáticamente
models/mflux/, añade modelos sin cambios de código)🗂️ list_outputs — imágenes generadas recientemente
🩺 system_status — diagnóstico en una sola llamada (servicio ComfyUI, modelos, disco)
Related MCP server: comfyui-mcp
Inicio rápido
# 1. Install the server files into your ComfyUI + register the hermes MCP
./install.sh # optional; also fine to just copy files
# 2. Register the MCP server manually (or via install.sh) — e.g. in ~/.hermes/config.yaml:
# mcp_servers:
# comfyui-local:
# command: /path/to/python-with-mcp
# args: [/path/to/comfyui-local-mcp/mcp_comfyui_server.py]
# enabled: true
# 3. Test the server (stdio MCP handshake)
python mcp_comfyui_server.py
# 4. Ask your agent: "generate an image of ..." or "check my ComfyUI status"Requisitos
macOS con Apple Silicon (MLX / Metal)
ComfyUI ejecutándose localmente (por defecto
127.0.0.1:8188)Entorno Python con el paquete
mcp(el servidor solo necesita la biblioteca estándar +mcp)Opcional: mflux + nodo personalizado
ComfyUI-mflux-AnyModelpara la ruta MLXOpcional: pesos FLUX.2 Klein bf16 + codificador de texto Qwen3-4B para la ruta bf16
Configuración de modelos (Apple Silicon, compatible con 24 GB)
Modelo | Ruta (bajo | Notas |
FLUX.2 Klein 4B · 4 bits MLX |
| ~4,3 GB, ~12,7 s/paso @1024² |
FLUX.2 Klein 9B · 4 bits MLX |
| ~9,5 GB, mayor calidad |
FLUX.2 Klein 4B bf16 |
| Ruta MPS, mejor calidad |
Codificador de texto Qwen3-4B |
| Requerido por la ruta bf16 |
VAE FLUX.2 |
|
Descarga los modelos MLX de mflux usando la caché de HF y crea enlaces simbólicos en models/mflux/
(consulta Caché de HF / enlaces simbólicos) — el servidor los descubre automáticamente.
Notas sobre Apple Silicon
Los pesos fp8 no funcionan en MPS — conviértelos primero a bf16 (una des-cuantización del lado de la CPU).
flux-2-klein-4b-bf16.safetensorses una conversión a bf16 del checkpoint fp8 oficial.Las descargas de HF pueden bloquearse en algunas redes —
export HF_HUB_DISABLE_XET=1lo soluciona.Rendimiento (GPU M4 de 10 núcleos, 1024×1024): 4B-4bit ~12,7 s/paso (pico ~11 GB), bf16 ~12,1 s/paso (pico ~15 GB).
Caché de HF y enlaces simbólicos
snapshot_download de HuggingFace almacena los datos reales en ~/.cache/huggingface/hub/models--<org>--<name>/blobs/
y expone enlaces simbólicos bajo snapshots/<rev>/. Este proyecto mantiene enlaces simbólicos en
models/mflux/<Nombre-del-Modelo>/ que apuntan a esas instantáneas — cero uso duplicado de disco,
y list_models los detecta automáticamente.
Solución de problemas
./check_system.sh # one-shot diagnosis
tail -50 ~/comfyui_run.log¿ComfyUI no responde? Asegúrate de que se ejecute en
127.0.0.1:8188(mata primero las instancias obsoletas).¿Falta un modelo en
list_models? Crea un enlace simbólico (o cópialo) enmodels/mflux/con un subdirectoriotransformer/.¿MCP no visible en el agente? Reinicia la sesión del agente después de editar
config.yaml.
Licencia
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables Claude to generate images through a local ComfyUI instance using Stable Diffusion and SDXL models via natural language. Users can trigger image generation, list available checkpoint models, and monitor the ComfyUI queue status directly from their MCP client.MIT
- AlicenseAqualityCmaintenanceMCP server for ComfyUI — text-to-image, variations, img2img refine, upscale, image proxy, and workflow runner.15731MIT
- Flicense-qualityCmaintenanceProvides multi-model AI image generation via MCP tools, supporting Seedream, SDXL, and FLUX models with GPU acceleration.
- AlicenseAqualityDmaintenanceMCP server for Krea.ai enabling AI image and video generation using models like Flux, Hailuo, Runway, Kling, and others via natural language prompts.9208Apache 2.0
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Producer/Riffusion AI music generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aiden-yanzy/comfyui-local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server