home / mcp / comfyui mcp server

ComfyUI MCP Server

Provides a local MCP server that generates and refines images, audio, and video by controlling a local ComfyUI instance through an API.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "jaewilson07-comfy_mcp": {
      "url": "http://127.0.0.1:9000/mcp"
    }
  }
}

Available tools

generate_image

Create images from prompts using the MCP workflow with optional overrides for width, height, steps, model, and other generation parameters.

generate_song

Produce audio content based on provided tags and lyrics, integrated into the MCP workflow.

regenerate

Recreate an existing asset using stored workflow data, with optional parameter overrides.

view_image

Display generated images inline for quick inspection.

get_queue_status

Check the current state of the ComfyUI queue to monitor running or pending jobs.

get_job

Poll the status of a specific job by prompt_id to determine completion.

list_assets

Browse recently generated assets to enable memory and iteration across sessions.

get_asset_metadata

Fetch full provenance and parameters for a particular asset, including workflow history.

cancel_job

Cancel a queued or running job to stop generation early.

list_models

List available ComfyUI models to help you choose the right model for your task.

get_defaults

Retrieve current default values used by the MCP server.

set_defaults

Set default values to avoid repeating common parameters, with optional persistence.

list_available_nodes

Enumerate all ComfyUI nodes with categories and metadata to aid workflow construction.

get_node_definition

Provide detailed schema for a specific node, including inputs and outputs.

search_nodes

Search for nodes by name, category, or output type to assemble or extend workflows.

get_node_inputs

Obtain input parameter specifications for a node to troubleshoot configurations.

list_workflows

List all available workflows discovered in the workflows/ directory.

run_workflow

Execute any workflow with custom parameters to perform complex tasks.

get_publish_info

Show publish status and environment readiness for asset distribution.

set_comfyui_output_root

Define the output directory for ComfyUI assets to ensure consistent storage.

publish_asset

Publish a generated asset into the project’s web directory with deterministic naming and optional manifest integration.