Comfyui MCP Server

Local-first, agent-native control plane for ComfyUI — MCP server + autonomous sidebar agent that drives your live graph in natural language on ANY

Remote serverstreamable-httpPython

What is the Comfyui MCP server?

Connect Comfyui to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Local-first, agent-native control plane for ComfyUI — MCP server + autonomous sidebar agent that drives your live graph in natural language on ANY LLM: Claude/ChatGPT/Gemini on your subscription (no API key), free local models via Ollama. The comfyui mcp server is what makes that connection.

What the server does

 One-click GPU pod — a ready-to-run ComfyUI with this project + Agent Panel + ComfyUI-Manager v2 preinstalled, on your own GPU. No setup.

Installation

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Agents — The Agents tool exposed by this server
  • Hooks — The Hooks tool exposed by this server
  • Defaults — The Defaults tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: CIVITAI_API_TOKEN, COMFYUI_API_KEY, COMFYUI_MCP_HTTP_TOKEN, COMFYUI_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the payments and commerce options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Comfyui's toolset — Agents, Hooks, Defaults — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
AgentsThe Agents tool exposed by this server.
HooksThe Hooks tool exposed by this server.
DefaultsThe Defaults tool exposed by this server.

How to install the Comfyui MCP server

{
  "mcpServers": {
    "comfyui": {
      "command": "npx",
      "args": ["-y", "comfyui-mcp"],
      "env": {
        "CIVITAI_API_TOKEN": ""
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CIVITAI_API_TOKENCredential the server authenticates with.Yes
COMFYUI_API_KEYCredential the server authenticates with.Yes
COMFYUI_MCP_HTTP_TOKENCredential the server authenticates with.Yes
COMFYUI_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Comfyui to Agents.
  • Use Comfyui to Hooks.
  • Use Comfyui to Defaults.

Frequently asked questions

It connects Comfyui to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Agents, Hooks, Defaults) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Comfyui directly.