Comfyui MCP Server

2. Configure `mcp.json` (change localhost to your IP or domain if needed):

Local serverstdioPython

What is the Comfyui MCP Server?

Comfyui mcp server connects Comfyui to AI assistants that speak the Model Context Protocol. 2. Configure mcp.json (change localhost to your IP or domain if needed):.

What Comfyui does

  1. Configure mcp.json (change localhost to your IP or domain if needed):

Practical notes

  • Maintained by Overseer66, written in Python.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
text_to_imageReturns only the URL of the generated image.
download_imageDownloads images generated by other tools (like text_to_image) using the image URL.
run_workflow_with_fileRun a workflow by providing the path to a workflow JSON file.
run_workflow_with_jsonRun a workflow by providing the workflow JSON data directly.

How to install the Comfyui MCP Server

{
  "mcpServers": {
    "comfyui": {
      "command": "uv",
      "args": [
        "--directory",
        "PATH/MCP/comfyui",
        "run",
        "--with",
        "mcp",
        "--with",
        "websocket-client",
        "--with",
        "python-dotenv",
        "mcp",
        "run",
        "src/server.py:mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Comfyui to text to image.”
  • “Use Comfyui to download image.”
  • “Use Comfyui to run workflow with file.”

Frequently asked questions

2. Configure `mcp.json` (change localhost to your IP or domain if needed): Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.