comfyui-mcp
comfyui-mcp
Model Context Protocol (MCP)-Server für ComfyUI. Stellt lokale (oder gehostete Comfy Cloud) Workflows als Werkzeugoberfläche bereit, sodass Chat-Agenten, Tagebücher und Dashboards Bilder, Videos, Audio und 3D generieren können.
Was es tut
Jeden Workflow im API-Format mit Parameterinjektion ausführen
Die Ausgabe als Datei streamen (Bild / Video / Audio)
Warteschlange verwalten, unterbrechen, VRAM freigeben
Installierte benutzerdefinierte Knoten und Modelle auflisten
Bilder für img2img / Inpaint hochladen
Benutzerdefinierte Knoten und Modelle über
comfy-cliinstallieren
Related MCP server: comfy-mcp
Architektur
┌─────────────────────────┐ stdio / Streamable HTTP / REST ┌──────────────────┐
│ Chat agent / dashboard │ ────────────────────────────────▶ │ comfyui-mcp │
│ (Hermes, Claude, etc.) │ ◀──────────────────────────────── │ (Python) │
└─────────────────────────┘ └──────────────────┘
│
▼
┌──────────────────┐
│ ComfyUI server │
│ 127.0.0.1:8188 │
│ (or Cloud) │
└──────────────────┘Drei Transporte werden ausgeliefert:
Transport | URL | Anwendungsfall |
stdio | n/a | Claude Desktop, Hermes, jeder MCP-stdio-Client |
HTTP REST |
| curl, Webhooks, Dashboards |
Streamable HTTP MCP |
| Browser-seitige MCP-Clients |
Datenschutz
Dieses Repository ist vollständig öffentlich. In dieser Codebasis befinden sich keine Geheimnisse. Alle Backend-Anmeldeinformationen werden zur Laufzeit über Umgebungsvariablen konfiguriert (siehe .env.example):
COMFYUI_HOST— Host:Port des lokalen ComfyUI-ServersCOMFY_CLOUD_API_KEY— falls gesetzt, stattdessenplatform.comfy.organsteuernCOMFYUI_AUTH_TOKEN— optionales Bearer-Token für selbst gehostete Server
Der ausgelieferte Code sieht niemals Ihre API-Schlüssel.
Verfügbare Werkzeuge
Tool | Zweck |
| Ping /system_stats |
| Einen Workflow-JSON mit Parametern einreichen |
| Das resultierende Bild/Video anhand der prompt_id abrufen |
| Warteschlange einsehen |
| Laufenden Job abbrechen |
| Modelle entladen |
| Installierte benutzerdefinierte Knoten auflisten |
| Installierte Checkpoints, LoRAs, VAEs, … auflisten |
| Bild für img2img / Inpaint hochladen |
| Einen benutzerdefinierten Knoten installieren |
| Ein Modell herunterladen |
Schnellstart
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 muss auf dem konfigurierten Host:Port laufen (standardmäßig 127.0.0.1:8188).
Starten Sie die HTTP-Bridge für die Verwendung mit curl/Dashboard:
python scripts/comfyui_http_bridge.py
# → http://localhost:9300Starten Sie den Streamable HTTP MCP-Transport:
python scripts/comfyui_streamable_http.py
# → http://localhost:9300/mcpLizenz
MIT — frei forken, mit Namensnennung an Franzferdinan51 / Duckets.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Official hosted MCP server for Wiro AI. Run 1,000+ image, video, audio and LLM models, build and run workflows that chain them, and deploy and talk to AI agents from any MCP client.
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.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that standardizes tool discovery, execution, and context management for AI applications.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that enables AI agents to control a local ComfyUI instance for image generation, allowing workflow understanding, parameter modification, execution, and model discovery.3-
- AlicenseNot gradedqualityDmaintenanceA 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.23 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP 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.-