Comfy MCP
MCP server by Comfy-Org Verified · gh:comfy-org
Comfy MCP lets AI agents run workflows on a ComfyUI install on your own machine. It is for users who want their AI assistant to generate images and media locally through the comfy-cli engine.
Install Comfy MCP
Built from the published package, never by AI.
claude mcp add comfy-mcp -- uvx comfy-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"comfy-mcp": {
"args": [
"comfy-mcp"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"comfy-mcp": {
"args": [
"comfy-mcp"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"comfy-mcp": {
"args": [
"comfy-mcp"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add comfy-mcp -- uvx comfy-mcp{
"mcpServers": {
"comfy-mcp": {
"args": [
"comfy-mcp"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add comfy-mcp uvx comfy-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 comfy-mcp block.
About
Comfy MCP is a local MCP server for ComfyUI, built on comfy-cli. It runs as a stdio subprocess that your AI client launches on your own machine, and it drives the ComfyUI install there, or one on another machine you control. Each tool shells out to the comfy command with local and JSON options, then returns the parsed output.
The server can run workflow JSON files in API or UI export format, or go from a text prompt to an image in one call. It can search the nodes, models and templates your live install has, validate graphs, and fetch finished outputs. It can also preview video and audio as images. The source describes it as beta. It is aimed at people who run ComfyUI locally and want an agent to drive it. Comfy Cloud MCP is a separate remote server for cloud execution.
Written from the project's README and checked against it.
Tools it gives your assistant
run_workflowRuns a workflow JSON file, in API format or as a UI export.fetch_outputsCollects the output files of a finished job and can copy them to a chosen folder.server_infoChecks that the local ComfyUI server is running.search_templatesSearches available workflow templates.fetch_templateWrites a runnable workflow JSON from a template.preview_mediaRenders a video as a contact sheet or audio as a waveform image the agent can inspect.partner_generateRuns hosted partner models such as Flux, Ideogram or Kling on partner infrastructure.auth_loginSigns in to Comfy through comfy-cli for partner models.
What you need
- ComfyUI installed locally, or a workspace created with comfy install
- comfy-cli 1.14.0 or later
- A running local ComfyUI server
- Comfy API key, only for partner-API nodes and partner models
Try asking
- Confirm my local ComfyUI is running, then run ~/workflows/txt2img.json and show me the image.
- Search my ComfyUI templates for an upscaling workflow and write a runnable JSON.
- Generate a short video preview contact sheet from the file I downloaded.
Good to know
- Beta status, with 41 tools listed in the source.
- Every tool targets the local ComfyUI, not Comfy Cloud execution or cloud queues.
- comfy-cli is not installed as a dependency and must be on PATH or set through COMFY_BIN.
- On macOS, ComfyUI in Documents, Desktop or Downloads can fail without Full Disk Access.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Comfy MCP
All alternatives →HyperFrames is HeyGen's open-source AI video editor for people and agents. It turns HTML, CSS, JavaScript and seekable animations into MP4 videos, and can be used from a desktop app, coding agents or chat.
Remocn is a hosted MCP server that helps AI assistants make Remotion videos from 935 MIT-licensed components. It searches components, reads their docs, plans a storyboard and previews results. It is for developers building videos with Remotion.
Agent-Native Assets is the Assets agent from the Agent-Native framework, which creates and organizes on-brand media. It is for developers building agents that pair autonomous work with a purpose-built UI.
Runs an open source engine for a news site that finds hot AI events and writes daily, weekly and monthly briefs. Built for people who want an industry hot-news site in their own field, with MCP access for AI agents.
Turns long videos into captioned 9:16 shorts and can publish them to TikTok, Instagram, YouTube and other networks. It suits creators, marketing agencies and developers who want a self-hosted or hosted option.
Remove AI Watermarks removes AI provenance marks from images, video, audio, and text that you generated yourself. It is aimed at developers and researchers working on AI provenance signals.
Compare with HyperFrames by HeyGen, Remocn: Remotion MCP server or Agent-Native Assets
Comfy MCP: common questions
How is Comfy MCP different from Comfy Cloud MCP?
Comfy MCP is a stdio server that runs on your machine and drives your local ComfyUI. Comfy Cloud MCP is a remote HTTP server that executes workflows on Comfy Cloud GPUs.
Where are generated images saved?
ComfyUI writes them to the output directory of your workspace. fetch_outputs can also copy a finished job's files to any folder you name.
Can it run workflows on a ComfyUI on another machine?
Yes. The source says the COMFYUI_URL setting points the run and job tools at a ComfyUI on another machine you control.
How do I install Comfy MCP?
In Claude Code run claude mcp add comfy-mcp -- uvx comfy-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Comfy MCP the official server?
Comfy MCP is published by gh:comfy-org from its verified domain in the official MCP Registry.
Is Comfy MCP free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Comfy MCP safe to use?
It scores 77 of 100. Grades: maintenance A, licence F, quality B. 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 Comfy MCP?
Similar MCP servers: HyperFrames by HeyGen, Remocn: Remotion MCP server, Agent-Native Assets, AIHOT.
Does Comfy 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.
