drio
Open app

Comfy MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

Comfy MCP Server is a server application that utilizes the FastMCP framework to generate images based on user-defined prompts by interacting with a remote Comfy server.

To use the Comfy MCP Server, set the required environment variables, install the necessary Python packages, and run the server script. The server will listen for requests to generate images based on the provided prompts.

  • Generates images from text prompts using a remote Comfy server. - Supports customizable workflows through environment variables. - Easy setup with Python and required packages.
  1. Creating art based on textual descriptions.
  2. Automating image generation for creative projects.
  3. Integrating with applications that require dynamic image generation.

Add to your AI client

Use these steps to connect Comfy MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "lalanikarim-comfy-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lalanikarim-comfy-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "lalanikarim-comfy-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lalanikarim-comfy-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "lalanikarim-comfy-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lalanikarim-comfy-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "lalanikarim-comfy-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lalanikarim-comfy-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "lalanikarim-comfy-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lalanikarim-comfy-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "lalanikarim-comfy-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lalanikarim-comfy-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

What are the prerequisites to run Comfy MCP Server?

You need Python 3.x and specific packages installed, along with a workflow file exported from Comfy UI.

How do I configure the server?

Set the required environment variables to point to your Comfy server and workflow JSON file.

Can I use my own prompts?

Yes! You can submit any text prompt to generate images.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1337,"uuid":"b0fdb1a3-afc6-44da-abb6-d271cdd592ec","name":"lalanikarim_comfy-mcp-server","title":"Comfy MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-02-20T15:26:41.630Z","updated_at":"2025-02-23T07:12:21.807Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp,image-generation,fastmcp","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/lalanikarim_comfy-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]