Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoBind host for the MCP server0.0.0.0
MCP_PORTNoBind port for the MCP server9100
COMFYUI_URLNoComfyUI HTTP URL (used internally by this server to call ComfyUI)http://127.0.0.1:8188
COMFYUI_PUBLIC_URLNoExternally-reachable URL used in image URLs returned to MCP clients. Set this when the internal URL is not reachable from clients (common with Docker networks). If not set, defaults to COMFYUI_URL.
COMFYUI_DEFAULT_CKPTNoDefault checkpoint filename, must match a file installed in your ComfyUI models/checkpoints/ directorysd_xl_base_1.0.safetensors

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
generate_imageB

Generate an image from a text prompt using ComfyUI's default txt2img workflow. Returns one or more image URLs served directly by the ComfyUI instance.

generate_variationsB

Generate multiple variations of the same prompt by varying the seed. Useful for picking the best result or exploring a concept.

generate_with_workflowA

Submit an arbitrary ComfyUI workflow (full node graph) and return the resulting image URLs. Use this when you need a custom workflow like ControlNet, upscaling, or a node graph exported from ComfyUI's 'Save (API Format)'.

refine_imageA

Refine an existing image using img2img: fetch the source image, upload it to ComfyUI, and run a denoising pass guided by the prompt. Lower denoise preserves more of the original; higher denoise gives more freedom to the prompt.

upscale_imageA

Upscale an image using a loaded upscaler model (ESRGAN, SwinIR, etc.). Fetches the source image, uploads to ComfyUI, runs the upscale node, and returns the output URL. Requires at least one upscaler model in ComfyUI's models/upscale_models/ directory.

list_modelsA

List available models or samplers on the ComfyUI instance. Use this to discover valid values for the 'checkpoint' parameter of other tools, or to see what LoRAs and samplers are installed.

list_workflowsA

List built-in workflow templates shipped with this MCP server. These are the named workflows that can be used as a baseline; for arbitrary workflows use generate_with_workflow.

upload_imageA

Upload a reference image to ComfyUI for use in img2img, ControlNet, or IP-Adapter workflows. Accepts either a source URL (will be fetched) or base64-encoded image data. Returns the stored filename for use as 'image' in workflow nodes like LoadImage.

generate_with_controlnetA

Generate an image conditioned by a ControlNet preprocessed image (pose, depth, canny, etc.) plus a prompt. Requires a ControlNet model installed in ComfyUI's models/controlnet/ directory. The control_image_url must already be the preprocessed conditioning image — this tool does not run preprocessors itself.

generate_with_ip_adapterB

Generate an image using a reference image as an IP-Adapter visual/style/subject guide. Requires the ComfyUI-IPAdapter-plus custom node pack and the preset's matching models (IPAdapter weights + CLIP vision). Weight tunes how strongly the reference guides generation.

save_workflow_templateA

Save a ComfyUI workflow JSON to the server's template registry under a named slot. Overwrites are disabled by default.

list_workflow_templatesA

List all saved workflow templates in the registry.

get_workflow_templateB

Fetch a saved workflow template's JSON and metadata.

delete_workflow_templateB

Delete a saved workflow template.

run_workflow_templateB

Run a saved workflow template against ComfyUI and return the resulting image URLs.

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/miller-joe/comfyui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server