Back to Home
dseditor icon

Comfy-MCP

Verified Safe

by dseditor

Overview

Automates text-to-image generation using ComfyUI workflows, enabling seamless integration with MCP-compatible AI agents like Claude and Gemini.

Installation

Run Command
python -m comfy_mcp_server

Environment Variables

  • COMFY_URL
  • COMFY_URL_EXTERNAL
  • COMFY_WORKFLOW_JSON_FILE
  • PROMPT_NODE_ID
  • OUTPUT_NODE_ID
  • OUTPUT_MODE
  • COMFY_MAX_POLL_ATTEMPTS
  • COMFY_POLL_INTERVAL
  • OLLAMA_API_BASE
  • PROMPT_LLM
  • COMFY_LOCAL_SAVE_DIR

Security Notes

The server uses `subprocess.run` to install Python packages and to interact with external AI CLI tools (e.g., `claude mcp add-json`). It also directly modifies configuration files for other AI applications (Claude Desktop, Gemini CLI) in user directories. While these actions are intended for integration and setup, they involve broad system interaction and modifying external application settings, which could be a concern if the source is not fully trusted or its implications are not understood. The `shell=True` for Claude CLI commands on Windows adds a minor, but controlled, risk.

Similar Servers

Stats

Interest Score35
Security Score7
Cost ClassLow
Avg Tokens100
Stars1
Forks1
Last Update2025-12-14

Tags

ComfyUIImage GenerationAI AgentMCPWorkflow Automation