comfyui-local-mcp
comfyui-local-mcp
Betreiben Sie Ihre lokale ComfyUI von MCP-Clients aus (Hermes, Claude Code, Cursor, jeder MCP-Agent) — mit fertigen FLUX.2 Klein Text-zu-Bild-Workflows, optimiert für Apple Silicon (MLX + MPS).
Erstellt und getestet auf: Mac mini M4 · 24GB unified memory · macOS 26 · ComfyUI 0.33 · mflux 0.19
Features
🖼️ generate_image — Text-zu-Bild mit automatischer Modellerkennung:
mflux:<name>— FLUX.2 Klein 4B / 9B, 4-bit MLX (schnell, wenig Speicher)bf16— ComfyUI-natives bf16 (MPS, beste Qualität)auto— wählt automatisch das beste Modell aus (9B bevorzugt)
📦 list_models — listet installierte Modelle auf (scannt automatisch
models/mflux/, füge Modelle ohne Codeänderungen hinzu)🗂️ list_outputs — kürzlich generierte Bilder
🩺 system_status — Diagnose mit einem Aufruf (ComfyUI-Dienst, Modelle, Festplatte)
Related MCP server: comfyui-mcp
Quickstart
# 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"Requirements
macOS mit Apple Silicon (MLX / Metal)
ComfyUI lokal ausgeführt (Standard
127.0.0.1:8188)Python-Umgebung mit dem Paket
mcp(der Server selbst benötigt nur stdlib +mcp)Optional: mflux + benutzerdefinierter Knoten
ComfyUI-mflux-AnyModelfür den MLX-PfadOptional: FLUX.2 Klein bf16-Gewichte + Qwen3-4B-Textencoder für den bf16-Pfad
Model setup (Apple Silicon, 24GB friendly)
Model | Path (under | Notes |
FLUX.2 Klein 4B · 4bit MLX |
| ~4.3GB, ~12.7s/Schritt @1024² |
FLUX.2 Klein 9B · 4bit MLX |
| ~9.5GB, höhere Qualität |
FLUX.2 Klein 4B bf16 |
| MPS-Pfad, beste Qualität |
Qwen3-4B text encoder |
| erforderlich für den bf16-Pfad |
FLUX.2 VAE |
|
Laden Sie mflux MLX-Modelle mit HF-Cache herunter und verlinken Sie sie symbolisch in models/mflux/ (siehe HF-Caching / Symlinks) — der Server erkennt sie automatisch.
Apple Silicon notes
fp8-Gewichte funktionieren nicht auf MPS — zuerst in bf16 konvertieren (eine CPU-seitige Dequantisierung).
flux-2-klein-4b-bf16.safetensorsist eine bf16-Konvertierung des offiziellen fp8-Checkpoints.HF-Downloads können in manchen Netzwerken hängen bleiben —
export HF_HUB_DISABLE_XET=1behebt das.Leistung (M4 10-Kern-GPU, 1024×1024): 4B-4bit ~12.7s/Schritt (Spitze ~11GB), bf16 ~12.1s/Schritt (Spitze ~15GB).
HF caching and symlinks
HuggingFace snapshot_download speichert die eigentlichen Daten in ~/.cache/huggingface/hub/models--<org>--<name>/blobs/ und legt Symlinks unter snapshots/<rev>/ an. Dieses Projekt behält Symlinks in models/mflux/<Model-Name>/, die auf diese Snapshots verweisen — keine doppelte Festplattennutzung, und list_models erkennt sie automatisch.
Troubleshooting
./check_system.sh # one-shot diagnosis
tail -50 ~/comfyui_run.logComfyUI antwortet nicht? Stellen Sie sicher, dass es auf
127.0.0.1:8188läuft (töten Sie zuerst veraltete Instanzen).Modell fehlt in
list_models? Verlinken Sie es symbolisch (oder kopieren Sie es) inmodels/mflux/mit einem Unterverzeichnistransformer/.MCP im Agenten nicht sichtbar? Starten Sie die Agentensitzung nach dem Bearbeiten von
config.yamlneu.
License
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