Skip to content
← All MCP servers

Is the ComfyUI MCP server safe? What it can reach

What the ComfyUI MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Comfy-Org publishes comfy-mcp, a local stdio server built on comfy-cli that runs workflows, installs nodes and manages your ComfyUI install. ComfyUI has no authentication of its own. Installing custom nodes and paid partner models need your approval at a confirmation gate, which is the control that matters most.

Who maintains it

ImplementationKindStatus
Comfy-Org/comfy-mcp (comfy-mcp on PyPI)Officialactive
artokun/comfyui-mcp (community, npm comfyui-mcp)Communityactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://cloud.comfy.org/mcp.

How it signs in

The local server does not sign in to ComfyUI, which has no authentication. Paid partner nodes use a Comfy Cloud OAuth session, COMFY_API_KEY or a stored key. The cloud server uses OAuth or an X-API-Key header.

What its tools can do

KindTools
Readserver_info, auth_status, billing_status, which, get_logs, discover, system_stats, validate_workflow, list_workflow_slots, list_workflow_notes, search_templates, check_template, get_template, search_models, list_partner_models, partner_model_schema, workflow_deps, node_dependencies, nodes, preview_media
Writerun_workflow, run_template, generate_image, emit_partner_workflow, fetch_template, set_workflow_slot, vary_workflow, fetch_outputs, upload_file, job, download, download_model, free_memory, launch_comfyui, stop_comfyui, restart_comfyui, auth_login
Can’t be undonepartner_generate, install_node, update_comfyui, switch_comfyui_version

The README says there are 42 tools and the list read here is not complete, so names such as project and some run or job tools may be missing or unsorted. partner_generate runs paid hosted models. install_node and update_comfyui with the all target run third-party code. job can cancel jobs, and download can cancel and remove a partial file.

Built-in limits

OptionWhat it does
Confirmation gatesinstall_node, update_comfyui target all, switch_comfyui_version, network-exposing launch flags and killing an untracked process need explicit approval. A client’s always-allow setting does not bypass them, and they fail closed.
confirm_spendPaid templates and nodes fail unless confirm_spend is passed, which should happen only with your agreement.
COMFY_MCP_ASSUME_CONSENTPre-authorizes named gates such as install_node or all. Leave it unset. It cannot pre-authorize spending.
Local-only lifecycle toolsLaunch, stop and logs stay local. download_model refuses a remote target unless COMFY_MCP_REMOTE_SHARED_MODELS=1.

The risks

  • A workflow file from a third party can contain paid nodes or custom nodes, and run_workflow will execute it, so an injected workflow can spend credits on services the gate cannot see.
  • install_node and update_comfyui with the all target pull and run third-party code on your machine, so a malicious node pack becomes code running as you.
  • system_stats passes ComfyUI’s full launch command line into the model’s context, which can include paths and flags you did not mean to share.
  • Pointing COMFYUI_URL at a remote instance sends workflows to a ComfyUI with no authentication, so the private network is the only boundary.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env COMFY_API_KEY=... comfyui -- comfy-mcp

Claude Code names MCP tools mcp__comfyui__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__comfyui__install_node",
      "mcp__comfyui__update_comfyui",
      "mcp__comfyui__switch_comfyui_version"
    ],
    "ask": [
      "mcp__comfyui__partner_generate",
      "mcp__comfyui__run_workflow",
      "mcp__comfyui__run_template",
      "mcp__comfyui__generate_image",
      "mcp__comfyui__download_model",
      "mcp__comfyui__launch_comfyui",
      "mcp__comfyui__stop_comfyui",
      "mcp__comfyui__restart_comfyui",
      "mcp__comfyui__upload_file"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.comfyui]
command = "comfy-mcp"
env_vars = ["COMFY_API_KEY"]
disabled_tools = ["install_node", "update_comfyui", "switch_comfyui_version"]

Checklist

  • Install it with pip and start ComfyUI first with comfy launch.
  • Do not set COMFY_MCP_ASSUME_CONSENT.
  • Open any workflow you did not build and check its nodes before you run it.
  • Keep ComfyUI on localhost, and do not pass --listen.
  • Keep API keys in the client env block, not in committed files.

Checked against the vendor documentation on November 25, 2026. Comfy-Org/comfy-mcp README · artokun/comfyui-mcp README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing