COMFYUI_URL
optional
Full ComfyUI URL for a local or remote instance; overrides auto-detection.
COMFYUI_HOST
optional
ComfyUI server address, defaults to 127.0.0.1.
COMFYUI_PORT
optional
ComfyUI server port; auto-detects 8188 then 8000 by default.
COMFYUI_PATH
optional
Path to the ComfyUI data directory, set if auto-detection fails.
COMFY_CLI_PATH
optional
Path to the official comfy executable (requires comfy-cli >=1.11.1).
COMFYUI_PYTHON
optional
Python interpreter for legacy dependency-install fallbacks, defaults to python.
COMFYUI_MCP_BRIDGE_HOST
optional
Panel-orchestrator bridge bind host; non-loopback requires a token.
COMFYUI_MCP_DATA_DIR
optional
Per-instance data dir (incl. generations.db), defaults to ~/.comfyui-mcp.
COMFYUI_CLOUD_URL
optional
Overrides the Comfy Cloud endpoint, default https://cloud.comfy.org.
COMFYUI_AUTH_HEADER
optional
Header name for the auth token, default Authorization (e.g. X-API-Key).
COMFYUI_AUTH_SCHEME
optional
Scheme prefix on the token value (e.g. Bearer, Token).
COMFYUI_DOWNLOAD_CACHE_DIR
optional
Content-addressed model download cache dir, default ~/.comfyui-mcp/cache.
COMFYUI_LRU_CACHE_SIZE_GB
optional
LRU cap on the download cache in GB; 0 disables eviction.
COMFYUI_STARTUP_CHECK_INTERVAL_S
optional
Readiness-probe interval in seconds when starting local ComfyUI, default 1.
COMFYUI_ALWAYS_RESTART
optional
Auto-restart a crashed local ComfyUI, default false.
COMFYUI_MCP_STALL_S
optional
Render-wedge watchdog seconds, default 180 (clamped 15-3600).
COMFYUI_MCP_INTERRUPT_S
optional
Seconds cancel_job waits for an interrupt before escalating, default 30.
COMFYUI_MCP_FORCE_REMOTE
optional
Set 1/true to force remote mode for loopback URLs (e.g. port-forwarded RunPod).
COMFYUI_MCP_TOOL_MODE
optional
Set to compact to register 3 meta-tools instead of the full schema surface.
MCP_TRANSPORT
optional
Set to http to serve streamable-HTTP at /mcp instead of stdio.
MCP_HOST
optional
HTTP bind host, default 127.0.0.1.
MCP_PORT
optional
HTTP port, default 9100.
LOG_LEVEL
optional
Logging verbosity: debug/info/warn/error, default info.