ComfyUI MCP

AIstdio
Repository

A lightweight MCP server for a local ComfyUI instance that lets AI agents generate and iteratively refine images, audio, and video. Agents can submit workflows, override prompts and sampler parameters, poll job status, and retrieve outputs, which makes conversational iteration on a local diffusion pipeline practical.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "comfyui": {
      "command": "npx",
      "args": [],
      "env": {
        "COMFYUI_URL": "<YOUR_COMFYUI_URL>"
      }
    }
  }
}

Tools (2)

generate_image

Run a ComfyUI workflow to generate an image from a prompt.

{
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "description": "Positive prompt text"
    },
    "workflow": {
      "type": "string",
      "description": "Name of the workflow to run"
    },
    "negative_prompt": {
      "type": "string",
      "description": "Negative prompt text"
    }
  }
}

get_job_status

Check the status of a queued ComfyUI job and fetch outputs when ready.

{
  "type": "object",
  "required": [
    "prompt_id"
  ],
  "properties": {
    "prompt_id": {
      "type": "string",
      "description": "Job identifier returned when the workflow was queued"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server information

Author
Joe Norton (@joenorton)
Repository
https://github.com/joenorton/comfyui-mcp-server
License
MIT
Stars
0
Last updated
August 3, 2026