comfy
This MCP server lets an AI agent discover and run local ComfyUI workflows for images, video, and 3D, with job management and file upload/download.
List available workflow templates with categories and descriptions.
Inspect a workflow's parameter schema, defaults, and options.
Execute workflows synchronously or asynchronously with custom parameters, seed, timeout, and output filename prefix.
Monitor the ComfyUI queue and running/pending jobs.
Retrieve results by prompt ID, optionally waiting for completion.
Cancel queued or running jobs.
Discover available LoRA models by category (
qwen,xfs,other).Upload local images for image-to-image or ControlNet workflows.
Resolve native ComfyUI output file paths after async jobs.
Access is limited by the
COMFY_MCP_ALLOWallowlist (defaults to text-to-image and upscale;*enables all categories including video and 3D).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@comfy Make a picture of a sunflower hedgehog."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local AI Studio
Describe what you want in plain language, and your own machine makes it.

This repo is an MCP server that gives an AI agent access to local ComfyUI workflows for images, video with native audio, and 3D. The tools stay on your machine. The brain driving them is swappable: Claude Code with a cloud model, or OpenCode with a local model in Ollama.
It's provided as is, under the MIT license. There's no support team. Questions are welcome and may get answered when time allows.
flowchart LR
A[Claude Code<br/>cloud model] --> M[MCP server<br/>this repo]
B[OpenCode + Ollama<br/>local model] --> M
M --> C[ComfyUI]
C --> D[Images]
C --> E[Video + audio]
C --> F[3D]Examples
Larry, the test subject, made with these workflows.
Text to image | Instruction edit |
|
|
|
|
Video with native audio | Printable 3D |
|
|
|
|
Related MCP server: ComfyUI MCP Server
What's here
Path | What it is |
| The MCP server |
| ComfyUI API workflows |
| What each workflow does and which parameters it takes |
| Rules for the local agent |
| OpenCode setup with the local agent |
| Claude Code setup |
| Turns a 3D result into a watertight STL |
| Model files each workflow family needs |
Voice and music aren't in this repo. The video uses Qwen3-TTS, VoxCPM2 and ACE-Step through their own MCP servers, and any MCP server can sit beside this one.
Tested on
Linux, NVIDIA card with 32 GB of VRAM, about 54 GB of RAM plus swap
Node 22, Ollama 0.40.13, OpenCode 1.17.8
Older Ollama versions may refuse the local model: 0.30.8 did
Every workflow here has been run once through this server on that machine. hunyuan3d-image2mesh-hq is memory hungry, leaving about 8 GB of RAM plus swap free on this box.
Other platforms and smaller cards are untested. Images and the local model used 29 GB of VRAM together here, and smaller setups may need smaller models. MiniMax H3 peaks around 44 GB of system RAM, so its workflows refuse to run on Linux without 18 GB of swap.
Setup
Install ComfyUI and start it on port 8188.
Install the model files you need from
MODELS.md. The Hunyuan3D workflows also need the ComfyUI-RMBG custom node.Build the server:
npm ci
npm run buildTell the server where ComfyUI lives:
export COMFYUI_PATH=/path/to/ComfyUIRun with Claude Code
Start claude in this folder and approve the comfy server. Then ask:
Make a picture of a sunflower hedgehog.
To let Claude reach every workflow, including video and 3D, start it with:
COMFY_MCP_ALLOW='*' claudeRun with a local brain
ollama pull bonsai-2:27b
opencode run "Make a picture of a sunflower hedgehog." < /dev/nullUse OpenCode's terminal interface by running opencode with no arguments. The < /dev/null is only needed for headless runs, which otherwise hang waiting on input.
The allowlist
COMFY_MCP_ALLOW decides what the server exposes and runs. A blocked workflow can't be seen or started.
Value | Result |
Unset |
|
| Everything |
| Those categories |
| A workflow id plus a category |
Empty | Nothing |
Categories are text-to-image, image-to-image, upscale, video, video-post and 3d.
Prompt rules are advice, and this list is the limit. It protects this server only: an agent with shell access could call ComfyUI directly, so the local agent has no shell.
What can go wrong
The local model talks nonsense. Ollama silently truncates a prompt that overruns the model's context. Claude Code's default prompt is about 35,000 tokens, which is why the local setup uses a small agent with only the tools it needs.
Renders suddenly take minutes. The language model and the image model share the graphics card. A smaller language model speeds up the whole stack.
The whole desktop dies during a video upscale.
wan-video-upscaleholds every upscaled frame in system RAM. A 5-second 1344x768 clip passed 48 GB here and the Linux OOM killer took out ComfyUI and other apps. Keep its input small and short.ECONNREFUSED. ComfyUI isn't running.A 3D result won't print. Hunyuan3D writes GLB files, often in thousands of open pieces. Run
tools/mesh_to_solid.py, which needsnumpy,scipy,scikit-imageandtrimesh. The STL has not been slice-tested or printed yet.
Licenses
The code here is MIT. Models have their own terms, and those terms can change, so check each one before commercial use.
Model | Notes |
Qwen-Image | Check the model card |
FLUX 3 Klein | Commercial use only under $5M gross revenue |
MiniMax H3 | Revenue-capped license, $20M at the time of testing |
Hunyuan3D v2 | Has its own community license, check territory and use limits |
WAN 2.2 | Check the model card |
Bonsai 2 | Apache 2.0 |
Available Tools
9 toolscancel_jobB
Cancel a queued or running job.
Inputs: prompt_id (required).
download_job_resultsA
Resolve the native ComfyUI output file paths for a completed async job. Use after run_workflow with wait_for_completion=false. Returns absolute paths to the files ComfyUI already wrote in its own output directory — it does not copy anything.
Inputs: prompt_id (required).
get_job_resultA
Get the result of a completed or running job by its prompt ID. Pass wait_seconds to block until it finishes (repeat the call while status is "running").
Inputs: prompt_id (required), wait_seconds.
get_queue_statusB
Get the current ComfyUI queue status (running and pending jobs).
Inputs: no named parameters.
get_workflow_paramsA
Get the parameter schema for a specific workflow, including required/optional parameters, types, defaults, and available options.
Inputs: workflow_id (required).
list_lorasB
Discover available LoRA models categorized by type (qwen, xfs, other).
Inputs: category.
list_workflowsA
List all available ComfyUI workflow templates with their categories and descriptions.
Inputs: no named parameters.
run_workflowB
Execute a ComfyUI workflow with the specified parameters. Returns generated images.
Inputs: parameters (required), workflow_id (required), seed, timeout, +2 more.
upload_imageB
Upload an image to ComfyUI for use in image-to-image or controlnet workflows.
Inputs: image_path (required), subfolder.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clearly distinct purposes (list, run, cancel, queue status, upload). The main overlap is between get_job_result and download_job_results, both dealing with job results; descriptions clarify (one returns result data, the other resolves native output paths for async jobs), but an agent could still hesitate over which to call.
All nine tools follow a consistent verb_noun snake_case pattern: get_workflow_params, run_workflow, list_workflows, cancel_job, upload_image, etc. No mixing of conventions or vague verbs.
Nine tools is well-scoped for a ComfyUI workflow server, covering discovery, execution, monitoring, cancellation, and asset handling without bloat. Each tool earns its place.
The core lifecycle—list workflows, inspect params, run, monitor queue, fetch results, cancel, upload images, locate outputs—is covered. Minor gaps exist: no listing of non-LoRA models (checkpoints/VAEs), no queue-clearing or job-history listing, but these are workaroundable.
Maintenance
Related MCP Connectors
Build and run visual creative-production workflows from your AI agent.
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Image and video AI tools and your own pipelines, run from any AI assistant.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude Desktop to interact with local ComfyUI installations for AI-powered image generation, including workflow management, model selection, real-time monitoring, and custom workflow execution through natural language.1418MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to generate and iteratively refine images, audio, and video by interacting with a local ComfyUI instance through natural conversation. It provides comprehensive tools for workflow management, node introspection, and publishing generated assets.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to generate and iteratively refine images, audio, and video through natural conversation using a local ComfyUI instance.AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to generate and iteratively refine images, audio, and video through natural conversation using a local ComfyUI instance.Apache 2.0



