ComfyUI-MCP-Server is a server implementation based on the Model Context Protocol (MCP) that transforms user-defined workflows in ComfyUI into parameter-configurable MCP tools for AI agents to use directly.
From the registry: MCP Server that transforms ComfyUI workflows into AI-callable tools for MCP Host

$ git clone https://github.com/MetaBrain-Labs/ComfyUI-MCP-Server-TypeScript.git && cd ComfyUI-MCP-Server-TypeScript && npm installPlease install the `comfyui-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install ComfyUI** — ComfyUI 0.9.1+ must be installed and running. (https://github.com/comfyanonymous/ComfyUI)
- **Clone and install dependencies** — Clone the repo and install dependencies (Node.js 18+). Run: `git clone https://github.com/MetaBrain-Labs/ComfyUI-MCP-Server-TypeScript.git && cd ComfyUI-MCP-Server-TypeScript && npm install`
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["tsx","<path-to-ComfyUI-MCP-Server-TypeScript>"]
- required environment variables:
- `COMFY_UI_SERVER_IP`: ComfyUI server URL. (example: `http://127.0.0.1:8188`)
- optional environment variables:
- `LOCALE`: UI language (en or zh-CN). (example: `en`)
- `MCP_SERVER_URL`: MCP server URL (HTTP transport). (example: `http://127.0.0.1:8189/mcp`)
- `MCP_SERVER_IP`: MCP server bind IP. (example: `127.0.0.1`)
- `MCP_SERVER_PORT`: MCP server port. (example: `8189`)
- `COMFY_UI_SERVER_HOST`: ComfyUI server host. (example: `127.0.0.1`)
- `COMFY_UI_SERVER_PORT`: ComfyUI server port. (example: `8188`)
- `SYNC_MODE`: Workflow sync mode: timed, manual, or push. Use 'manual' for cloud ComfyUI. (example: `timed`)
- `SYNC_POLL_INTERVAL_SECONDS`: Poll interval for timed sync mode. (example: `3`)
- `SYNC_EVENT_FALLBACK_INTERVAL_SECONDS`: Fallback interval for event-based sync. (example: `300`)
- `ONDEMAND_REFRESH_COOLDOWN_SECONDS`: On-demand refresh cooldown seconds. (example: `3`)
- `COMFY_UI_INSTALL_PATH`: Path to ComfyUI installation.
- `WORKFLOW_NAME_REGEX`: Regex for workflow name extraction. (example: `^==(.+?)==$`)
- `WORKFLOW_PARAM_REGEX`: Regex for workflow parameter extraction. (example: `^=>(.+)$`)
- `LOG_LEVEL`: Log level. (example: `INFO`)
Note: Also supports Streamable HTTP transport at http://127.0.0.1:8189/mcp (start with 'npm run dev'). Python version at MetaBrain-Labs/ComfyUI-MCP-Server-Python.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.LOCALErequiredSets the language locale for the server.MCP_SERVER_URLrequiredSpecifies the URL for the MCP server.MCP_SERVER_IPrequiredDefines the IP address for the MCP server.MCP_SERVER_PORTrequiredSets the port for the MCP server.COMFY_UI_SERVER_IPrequiredDefines the IP address for the ComfyUI server.COMFY_UI_SERVER_HOSTrequiredSpecifies the host for the ComfyUI server.COMFY_UI_SERVER_PORTrequiredSets the port for the ComfyUI server.Make 3D games in Unity Engine with AI. MCP Server + Plugin for Unity Editor and Unity games.