Skip to main content
Glama

ComfyUI MCP

Minimal MCP server that wraps ComfyUI HTTP routes so an LLM client can:

  • inspect server status, models, features, node metadata

  • submit workflows via /prompt

  • inspect or manage queue/history

  • interrupt runs

  • upload input images

Python requirement: 3.10+ (the official mcp SDK requires it).

This server targets ComfyUI local server routes documented in:

1) Install

cd /Users/apple/projects/comfyui-mcp
python3.10 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .

Related MCP server: ComfyUI MCP

2) Configure

export COMFYUI_BASE_URL="http://127.0.0.1:8188"
export COMFYUI_ROUTE_PREFIX=""
export COMFYUI_TIMEOUT_SECONDS="60"
# optional: for reverse proxies or cloud-style gateways
export COMFYUI_BEARER_TOKEN=""

Notes:

  • COMFYUI_ROUTE_PREFIX can be set to /api if your endpoint is exposed only under /api/*.

  • ComfyUI native server supports both prefixed and non-prefixed routes.

  • For paid API nodes in workflow payloads, pass api_key_comfy_org in comfyui_submit_prompt.

3) Run (stdio transport)

cd /Users/apple/projects/comfyui-mcp
source .venv/bin/activate
comfyui-mcp

4) Example MCP client config

{
  "mcpServers": {
    "comfyui": {
      "command": "/Users/apple/projects/comfyui-mcp/.venv/bin/comfyui-mcp",
      "env": {
        "COMFYUI_BASE_URL": "http://127.0.0.1:8188",
        "COMFYUI_ROUTE_PREFIX": ""
      }
    }
  }
}

Exposed tools

  • comfyui_get_system_stats

  • comfyui_get_features

  • comfyui_list_models

  • comfyui_get_object_info

  • comfyui_get_queue

  • comfyui_manage_queue

  • comfyui_get_history

  • comfyui_manage_history

  • comfyui_submit_prompt

  • comfyui_interrupt

  • comfyui_upload_image

Install Server
F
license - not found
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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

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