Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HF_TOKENNoOptional Hugging Face token for model downloads
COMFYUI_HOSTYesThe URL of the ComfyUI host, e.g. http://<gpu-host>:8188
LLAMASWAP_HOSTNoOptional URL for the llama-swap router, e.g. http://<gpu-host>:8089, used for GPU-yield handshake
SPARK_SSH_ALIASYesSSH alias from ~/.ssh/config for the GPU host
CIVITAI_API_TOKENNoOptional Civitai API token for gated downloads
SPARK_COMFYUI_ROOTYesPath to the ComfyUI installation on the GPU host
SPARK_COMFYUI_PYTHONYesPath 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

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 with Workflow(wait=True): block ending in SaveImage(...)/SaveVideo(...); the imports + load() are auto-prepended. Every server node (incl. custom: HunyuanImage3Generate, LTXV*, RES4LYF samplers) is available as a function. Returns the new output filenames (view with view_image) plus an output tail. Heavy models (HunyuanImage-3.0 ~13min) need a high timeout_sec.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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