1. Conduid
  2. Developer Tools
  3. Comfyui MCP Server
MCP server · Developer Tools

Comfyui MCP Server

comfyui-mcp-server

Unclaimed Apache-2.0 last commit 11 months ago devtools
39Low

Scored 8 days ago · breakdown

About Comfyui MCP Server

Comfyui MCP Server is an MCP server published by Overseer66 in the Developer Tools category: comfyui-mcp-server.

The repository has 22 stars and 8 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/Overseer66/comfyui-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Comfyui MCP Server

Powered by Claude · Grounded in docs

I know everything about Comfyui MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.

1 check has not been run yet.

README

ComfyUI MCP Server

1. Overview

  • A server implementation for integrating ComfyUI with MCP.
  • ⚠️ IMPORTANT: This server requires a running ComfyUI server.
    • You must either host your own ComfyUI server,
    • or have access to an existing ComfyUI server address.

2. Debugging

2.1 ComfyUI Debugging

python src/test_comfyui.py

2.2 MCP Debugging

mcp dev src/server.py

3. Installation and Configuration

3.1 ComfyUI Configuration

  • Edit src/.env to set ComfyUI host and port:

    COMFYUI_HOST=localhost
    COMFYUI_PORT=8188
    

3.2 Adding Custom Workflows

  • To add new tools, place your workflow JSON files in the workflows directory and declare them as new tools in the system.

4. Built-in Tools

  • text_to_image

    • Returns only the URL of the generated image.
    • To get the actual image:
      • Use the download_image tool, or
      • Access the URL directly in your browser.
  • download_image

    • Downloads images generated by other tools (like text_to_image) using the image URL.
  • run_workflow_with_file

    • Run a workflow by providing the path to a workflow JSON file.

      # You should ask to agent like this.
      Run comfyui workflow with text_to_image.json
      
    • example image of CursorAI

  • run_workflow_with_json

    • Run a workflow by providing the workflow JSON data directly.

      # You should ask to agent like this.
      Run comfyui workflow with this 
      {
        "3": {
            "inputs": {
                "seed": 156680208700286,
                "steps": 20,
          ... (workflow JSON example)
      }
      

5. How to Run

5.1 Using UV (Recommended)

  • Example mcp.json:

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

5.2 Using Docker

  • Downloading images to a local folder with download_image may be difficult since the Docker container does not share the host filesystem.
  • When using Docker, consider:
    1. Set RETURN_URL=false in .env to receive image data as bytes.
    2. Set COMFYUI_HOST in .env to the appropriate address (e.g., host.docker.internal or your server's IP).
    3. Note: Large image payloads may exceed response limits when using binary data.

5.2.1 Build Docker Image

# First build image
docker image build -t mcp/comfyui .
{
  "mcpServers": {
    "comfyui": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-p",
        "3001:3000",
        "mcp/comfyui"
      ]
    }
  }
}

5.2.2 Using Existing Images

Also you can use prebuilt image.

{
  "mcpServers": {
    "comfyui": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-p",
        "3001:3000",
        "overseer66/mcp-comfyui"
      ]
    }
  }
}

5.2.3 Using SSE Transport

  1. Run the SSE server with Docker:

    docker run -i --rm -p 8001:8000 overseer66/mcp-comfyui-sse
    
  2. Configure mcp.json (change localhost to your IP or domain if needed):

    {
      "mcpServers": {
        "comfyui": {
          "url": "http://localhost:8001/sse" 
        }
      }
    }
    

NOTE: When adding new workflows as tools, you need to rebuild and redeploy the Docker images to make them available.


README fetched from the repository 6 days ago. The original is authoritative.

Questions

About Comfyui MCP Server

How do I install Comfyui MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Comfyui MCP Server safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 5 of the 5 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Comfyui MCP Server still maintained?

The last commit was 11 months ago and 2 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.