Skip to content
VS Code

comfyui mcp for VS Code

io.github.miller-joe/comfyui-mcp

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

client:VS Code transport:stdio runtime:npm

Install comfyui mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "comfyui-url",
      "description": "COMFYUI_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "comfyui-public-url",
      "description": "COMFYUI_PUBLIC_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "comfyui-default-ckpt",
      "description": "COMFYUI_DEFAULT_CKPT",
      "password": true
    }
  ],
  "servers": {
    "comfyui-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@miller-joe/comfyui-mcp"
      ],
      "env": {
        "COMFYUI_URL": "${input:comfyui-url}",
        "COMFYUI_PUBLIC_URL": "${input:comfyui-public-url}",
        "COMFYUI_DEFAULT_CKPT": "${input:comfyui-default-ckpt}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

comfyui mcp in other clients