Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMFYUI_URLNoComfyUI base URLhttp://127.0.0.1:8188
COMFYUI_API_KEYNoAPI key sent to ComfyUI
COMFYUI_MCP_HOSTNoHTTP bind host127.0.0.1
COMFYUI_MCP_PORTNoHTTP bind port8000
COMFYUI_API_PREFIXNoPrefix native routes; use /api for compatible cloud endpoints
COMFYUI_VERIFY_SSLNoVerify the ComfyUI HTTPS certificatetrue
COMFYUI_MCP_DATA_DIRNoWorkflow and output storage
COMFYUI_MCP_TRANSPORTNostdio, streamable-http, or ssestdio
COMFYUI_API_KEY_HEADERNoHeader used for the API keyX-API-Key
COMFYUI_ACCOUNT_API_KEYNoKey placed in extra_data for paid Comfy API nodes
COMFYUI_MCP_INPUT_ROOTSNoAllowed upload roots, separated by the OS path separator
COMFYUI_TIMEOUT_SECONDSNoHTTP request timeout30
COMFYUI_MCP_ALLOW_REMOTENoPermit non-loopback MCP HTTP bindingfalse
COMFYUI_MCP_BRIDGE_TOKENNoShared token for the optional canvas bridge

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
comfyui_healthA

Check ComfyUI connectivity and whether the optional canvas bridge is installed.

comfyui_list_node_typesA

Search installed core and custom node types without returning the full large schema.

comfyui_get_node_typeA

Get the authoritative inputs, outputs, options, and metadata for one node class.

comfyui_list_modelsA

List ComfyUI model folders, or models within one folder such as checkpoints or loras.

comfyui_list_templatesA

List workflow templates exposed by installed ComfyUI node packages.

comfyui_list_workflowsA

List workflows managed by this MCP server with revision and node counts.

comfyui_create_workflowC

Create an empty managed API-format workflow.

comfyui_import_workflowB

Import a ComfyUI API-format workflow object into the managed workflow store.

comfyui_get_workflowA

Read a managed workflow. Set include_graph=false for a compact summary.

comfyui_add_nodeC

Add a node to a managed workflow, optionally checking it against the live ComfyUI.

comfyui_remove_nodeA

Remove a node; force=true also disconnects inputs that reference the node.

comfyui_set_inputB

Set a literal node input such as prompt text, seed, dimensions, or model name.

comfyui_connect_nodesB

Connect one node output index to a named input on another node.

comfyui_disconnect_inputB

Remove the node connection currently assigned to an input.

comfyui_validate_workflowB

Validate graph structure and, by default, installed node schemas and required inputs.

comfyui_run_workflowB

Submit a managed workflow to ComfyUI, with optional non-persistent input overrides.

comfyui_get_runB

Get a run's pending, running, completed, failed, or unknown status and outputs.

comfyui_get_queueA

Inspect running and pending jobs; full workflow payloads are hidden by default.

comfyui_interruptA

Interrupt the workflow currently executing in ComfyUI.

comfyui_clear_queueA

Remove pending workflows from the ComfyUI queue.

comfyui_upload_imageB

Upload an allowed local image to ComfyUI for LoadImage-style nodes.

comfyui_download_outputC

Download a generated ComfyUI file into this server's managed output directory.

comfyui_sync_canvasC

Render a managed API workflow on an open ComfyUI canvas via the optional bridge.

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

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