comfyui-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HF_TOKEN | No | Optional Hugging Face token for model downloads | |
| COMFYUI_HOST | Yes | The URL of the ComfyUI host, e.g. http://<gpu-host>:8188 | |
| LLAMASWAP_HOST | No | Optional URL for the llama-swap router, e.g. http://<gpu-host>:8089, used for GPU-yield handshake | |
| SPARK_SSH_ALIAS | Yes | SSH alias from ~/.ssh/config for the GPU host | |
| CIVITAI_API_TOKEN | No | Optional Civitai API token for gated downloads | |
| SPARK_COMFYUI_ROOT | Yes | Path to the ComfyUI installation on the GPU host | |
| SPARK_COMFYUI_PYTHON | Yes | Path to the Python executable in the ComfyUI virtual environment |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| system_statsA | Get spark RAM/VRAM/GPU usage, ComfyUI version, and current queue size. |
| list_outputsA | List recent ComfyUI output images on spark, newest first. |
| view_imageA | Fetch a ComfyUI output image and return it as an image block visible in the conversation. |
| view_latestA | Fetch the last N ComfyUI output images and return them as image blocks. |
| list_workflowsA | List ComfyUI workflow JSON files on spark, newest first. |
| read_workflowA | Read a workflow JSON file from spark as raw text. |
| write_workflowA | Write a workflow JSON file to spark. Validates that content parses as JSON with nodes+links arrays. |
| queue_workflowA | Queue a ComfyUI workflow with optional overrides (prompt, seed, steps, guidance, sampler, dims, loras). Returns prompt_id; call wait_for_image to retrieve the result. |
| get_progressC | Get current ComfyUI queue state. |
| cancel_queueA | Interrupt the currently running ComfyUI job. |
| wait_for_imageA | Poll ComfyUI until the given prompt_id finishes, then return the generated image. |
| list_modelsA | List installed model files in a ComfyUI models subdir on spark. |
| download_modelA | Download a model file (Civitai / HuggingFace / direct URL) onto spark via aria2c into the chosen models dir. |
| pick_topA | Curate selected ComfyUI output images into a named folder on spark and (by default) sync to ~/Pictures// on the Mac. Optionally writes a NOTES.md alongside. |
| queue_batchA | Queue a workflow with N override variants (different seeds, prompts, LoRAs, etc.), wait for all to complete in parallel, and return all images in a single response. Max 8 variants per call. |
| run_comfyscriptA | Author and run a ComfyUI workflow as Python via ComfyScript — runs on spark in the comfyui venv against the live server. Use this for COMPLEX/multi-stage graphs (LTX-2.3 audio, two-stage pipelines) that are awkward to express as JSON or drive via the GUI. Provide a snippet with a |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/bernardogv/comfyui-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server