comfyui-model-mcp
Allows downloading model weight files from Hugging Face repositories (owner/repository ID plus filename) directly into an allowlisted ComfyUI models folder, including support for gated models via Hugging Face authentication.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@comfyui-model-mcpDownload flux1-dev.safetensors from black-forest-labs/FLUX.1-dev into checkpoints"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ComfyUI Model Drop + MCP
A small download page, HTTP API, and MCP server for putting Hugging Face or Civitai model weights into ComfyUI. Downloads are explicit one-file requests; source identifiers and destination folders are validated, and existing files are not overwritten.
Run with Docker Compose
Copy .env.example to .env, set COMFYUI_MODELS_HOST to the existing ComfyUI models folder, and add a Civitai API token if you plan to download Civitai files. Civitai's download endpoint requires an account token; it is read only by the server and never sent to the browser.
cp .env.example .env
# Edit .env with your ComfyUI models path and CIVITAI_TOKEN
docker compose up -d --buildOpen the ComfyUI instance in this stack at http://<host-tailscale-ip>:8189, the model UI at http://<host-tailscale-ip>:8765, and the MCP endpoint at http://<host-tailscale-ip>:8000/mcp. Port 8188 was already occupied by another ComfyUI container on this host, so this stack publishes its GPU-enabled ComfyUI on 8189. The API docs are at port 8765 /docs; agent usage instructions are in AGENT_API.md. All three ports listen on all interfaces. Restrict ports 8189, 8765, and 8000 in the host firewall to Tailscale so they cannot be reached from the public or local network. The services have no app login; anyone who can reach them can use ComfyUI, start downloads, or call the MCP tools. Only download models whose license permits your intended use.
The ComfyUI service uses the CUDA 13 Blackwell-compatible image and reserves the NVIDIA GPU through Docker Compose. Your host's NVIDIA Container Toolkit must be working for GPU passthrough. ComfyUI models are shared with the downloader at COMFYUI_MODELS_HOST; workflows, inputs, outputs, custom nodes, and cache persist under COMFYUI_DATA_HOST.
For Hugging Face gated models, run hf auth login on the host, or configure Hugging Face credentials inside the containers if required. Public Hugging Face repositories need no login.
Related MCP server: mcp-curl-downloader
Run as an MCP server without Compose
Use Python 3.11 or newer. Install dependencies, set COMFYUI_MODELS and optionally CIVITAI_TOKEN, then run python server.py mcp-http for remote MCP or python server.py for local stdio.
The MCP tools are download_comfyui_model for Hugging Face and download_civitai_comfyui_model for Civitai. Both services in Compose mount the same ComfyUI models directory.
Friend's video generation session
The MCP server handles downloads; it does not share GPU execution. Run ComfyUI on your GPU machine, then let your friend connect to ComfyUI using Tailscale. Bind ComfyUI to 0.0.0.0 only if needed for remote access, and restrict its port in the host firewall to Tailscale as well. Avoid exposing ComfyUI or the downloader port directly to the public internet. Your friend needs a compatible video workflow and any required custom nodes; after downloading models, refresh the model list or restart ComfyUI.
Limits
Hugging Face downloads use an
owner/repositoryID and a single relative weight filename. Civitai downloads use a numeric model version ID and its primary file.Supported extensions are
.safetensors,.ckpt,.pt,.pth,.bin, and.gguf.Routes files to an allowlisted ComfyUI category and saves by basename; it will not overwrite an existing file.
Large video models may need substantial disk space and download time.
The UI and MCP HTTP endpoint have no separate authentication; their access control is the host firewall and tailnet membership.
License
Project code and documentation are licensed under the MIT License. Downloaded model files remain subject to their respective creators' licenses and terms; this project license does not grant rights to those models. Dependencies retain their own licenses.
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Find open-weight AI models that fit your hardware, with weight sizes, memory and sources.
1New AI models on HuggingFace: releases, weights. Register in-session — free testnet funds.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables users to download HuggingFace models through natural language requests with support for file filtering, size limits, and custom download directories. Supports various AI development environments including Claude Desktop, VS Code, and Cursor.431 npm3MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to download files from HTTP/HTTPS URLs to local directories or file paths with options like custom filename, headers, and overwrite control.114 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching, cataloging, and downloading Civitai models (checkpoints, LoRAs) into a ComfyUI-compatible models depot, with human-approved download outbox and a web dashboard.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to save public articles, papers, images, videos, podcasts, and subtitles as local files, with support for multiple sources and output formats.MIT