NestDaddy

Comfyui Mcp

io.github.miller-joe/comfyui-mcp ยท v0.2.1

MCP server for ComfyUI: text-to-image, variations, img2img refine, upscale, image proxy.

Connect Runs on your machine

Terminal
claude mcp add comfyui-mcp -e COMFYUI_URL=<COMFYUI_URL> -e COMFYUI_PUBLIC_URL=<COMFYUI_PUBLIC_URL> -e COMFYUI_DEFAULT_CKPT=<COMFYUI_DEFAULT_CKPT> -- npx -y @miller-joe/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "comfyui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@miller-joe/[email protected]"
      ],
      "env": {
        "COMFYUI_URL": "<COMFYUI_URL>",
        "COMFYUI_PUBLIC_URL": "<COMFYUI_PUBLIC_URL>",
        "COMFYUI_DEFAULT_CKPT": "<COMFYUI_DEFAULT_CKPT>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "comfyui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@miller-joe/[email protected]"
      ],
      "env": {
        "COMFYUI_URL": "<COMFYUI_URL>",
        "COMFYUI_PUBLIC_URL": "<COMFYUI_PUBLIC_URL>",
        "COMFYUI_DEFAULT_CKPT": "<COMFYUI_DEFAULT_CKPT>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "comfyui-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@miller-joe/[email protected]"
      ],
      "env": {
        "COMFYUI_URL": "<COMFYUI_URL>",
        "COMFYUI_PUBLIC_URL": "<COMFYUI_PUBLIC_URL>",
        "COMFYUI_DEFAULT_CKPT": "<COMFYUI_DEFAULT_CKPT>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
COMFYUI_URL
Optional
ComfyUI HTTP URL used internally by this server. Default: http://127.0.0.1:8188
COMFYUI_PUBLIC_URL
Optional
Externally-reachable ComfyUI URL used in image URLs returned to clients. Set when the internal URL isn't reachable from MCP clients (common with Docker networks).
COMFYUI_DEFAULT_CKPT
Optional
Default checkpoint filename. Default: sd_xl_base_1.0.safetensors

Details

Package@miller-joe/[email protected] (NPM, streamable-http)
First published20 Apr 2026
Last updated20 Apr 2026
Registry nameio.github.miller-joe/comfyui-mcp

More ai and media servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.