comfyui-mcp
MCP server by artokun Community
Drives a local ComfyUI install from an AI assistant. It generates images, video and audio, builds and runs workflows, and manages models and custom nodes. Aimed at ComfyUI users who want an agent to operate their setup.
Install comfyui-mcp
Built from the published package, never by AI.
claude mcp add comfyui-mcp -- npx -y comfyui-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"comfyui-mcp": {
"args": [
"-y",
"comfyui-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"comfyui-mcp": {
"args": [
"-y",
"comfyui-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"comfyui-mcp": {
"args": [
"-y",
"comfyui-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add comfyui-mcp -- npx -y comfyui-mcp{
"mcpServers": {
"comfyui-mcp": {
"args": [
"-y",
"comfyui-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add comfyui-mcp npx -y comfyui-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the comfyui-mcp block.
About
comfyui-mcp is an MCP server and Claude Code plugin for ComfyUI. It lets an AI assistant read what is installed locally, build and edit workflow graphs node by node, free VRAM, and run renders. It also ships a live sidebar agent panel that edits the ComfyUI graph from natural language.
The project ships 38 MCP tools, 42 skills with model-specific guides and curated download URLs, slash commands, agents and hooks. It supports Claude, ChatGPT, Gemini, Ollama and any OpenAI-compatible endpoint. It targets local installs, LAN, VPS, RunPod and Comfy Cloud from one config. It suits people who run their own ComfyUI and want an assistant to manage it.
Written from the project's README and checked against it.
Tools it gives your assistant
enqueue_workflowQueues a workflow for execution. A PreToolUse hook checks free GPU memory first.apply_manifestApplies an installer pack manifest with custom nodes, model URLs and a workflow.queueChecks queue status with action set to status. Polling can be replaced by the progress monitor script.restart_comfyuiStops or restarts ComfyUI. A hook prompts the user to save unsaved workflow changes first.
What you need
- A ComfyUI install, running locally or reachable remotely
- Node.js to run the server with npx
- Optional CIVITAI_API_TOKEN for Civitai features
- Optional Claude, ChatGPT or Gemini subscription, or an API key for hosted models
- Optional Ollama for a free local model with no network needed
Try asking
- Generate an image of a sunset over mountains
- Check the progress of my queued ComfyUI workflow
- Apply the WAN video installer pack to my ComfyUI setup
Good to know
- OAuth sign-in for the remote connector is a planned follow-up and not yet available.
- Without a token set and without --tunnel, the server stays open and local.
- Comfy Cloud support is a community mode that needs COMFYUI_API_KEY.
- Comfy-Org ships its own agent tools, which the source says may suit users without a GPU better.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to comfyui-mcp
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
comfyui-mcp: common questions
Does comfyui-mcp work with Comfy Cloud?
The source says it includes a community cloud mode, enabled by setting COMFYUI_API_KEY. The source also notes that Comfy-Org ships its own Comfy Cloud agent tooling.
Can I use it fully offline with a free model?
Yes, according to the source. A local model through Ollama runs with no account and no network access.
How is the remote HTTP server secured?
Running with --tunnel generates an auth token. Requests can authenticate with Authorization Bearer or an X-API-Key header.
How do I install comfyui-mcp?
In Claude Code run claude mcp add comfyui-mcp -- npx -y comfyui-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is comfyui-mcp the official server?
comfyui-mcp is a community project by artokun, not verified by a company domain.
Is comfyui-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is comfyui-mcp safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to comfyui-mcp?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does comfyui-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
