OpenDaemon ComfyUI

v0.1.0
io.github.open-daemon/opendaemon-comfyui-mcp Checked 4 days ago Published 16 days ago

Make AI videos with ComfyUI on your own GPU: render, review, edit and export clips.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

comfyui_status

Is ComfyUI running, which graphics card and how much memory it has, free disk space, and what is rendering.

start_comfyui

Starts ComfyUI if it is not running (takes 20-60 s). Does nothing if it already runs.

restart_comfyui

Stops and starts ComfyUI again. Fixes a stuck ComfyUI. Refused while a video renders. Ask the user first, then call with user_confirmed=true.

ParameterTypeDescription
user_confirmedboolean

free_gpu_memory

Unloads models from the graphics card. Use after an out-of-memory error or before another program needs the GPU. Refused while a video renders.

get_logs

The last lines of the ComfyUI log (max 500). contains= keeps only lines with that text, e.g. "error".

ParameterTypeDescription
containsstring
linesinteger

get_defaults

Your saved defaults for render (e.g. model, quality, style). They apply when render leaves a setting out.

set_defaults

Saves render defaults so later renders can leave them out. clear=true forgets all of them.

ParameterTypeDescription
avoidstring
camerastring
clearboolean
modelstring
qualitystring
secondsinteger
stylestring

list_models

What models are installed and what can be downloaded, with size, the card they need, and if we tested them. "best" marks the best one for this PC's graphics card. Use a model's "use_as" value in render(model=...).

download_model

Downloads a model from our list (ids from list_models), with any helper files it needs. Big downloads: tell the user the size and call again with user_confirmed=true.

ParameterTypeDescription
model_id *string
user_confirmedboolean

download_status

Progress of the running model download (one at a time).

cancel_download

Stops the running model download. What was downloaded is kept, so starting it again resumes.

search_models

Searches Hugging Face for video models that fit this PC's graphics card (bigger ones are hidden). These are NOT tested by us; check_model reads a file's header first. Empty query = LTX-Video and Wan VACE models.

ParameterTypeDescription
querystring

check_model

Says if a model file can run here and why not if it can't, without loading it. A file on this PC: file="C:/path/model.gguf" or a file name in ComfyUI's models folder. A file on Hugging Face (from search_models): repo="owner/name" and file="path/in/repo.gguf".

ParameterTypeDescription
filestring
repostring

add_model_file

Adds a model file that is already on this PC, where it is (a link, no copy). It is checked first. After this, render(model=<the file name>) uses it.

ParameterTypeDescription
path *string
namestring

remove_model

Removes a model the user added (from list_models "added_by_user"). Only our link is removed, never the user's file. Ask the user first, then call with user_confirmed=true.

ParameterTypeDescription
file *string
user_confirmedboolean

upload_image

Puts a picture into ComfyUI's input folder. Give ONE of: path (a file on this PC), url (http/https), base64_data (the image bytes; give a name like "cat.png"). Returns the name to use in render(image=...).

ParameterTypeDescription
base64_datastring
namestring
pathstring
urlstring

write_prompt

Turns a short idea ("the cat waves hello") into a full video prompt, looking at the uploaded picture. Uses the AI keys set up in OpenDaemon (Gemini or NVIDIA). You can also write the prompt yourself.

ParameterTypeDescription
idea *string
image *string

write_avoid_list

Writes the avoid list (negative prompt) for a prompt. Only vace and LTX dev models use it.

ParameterTypeDescription
image *string
prompt *string

render_options

The models, styles, qualities, cameras and speeds render() accepts, with what each one does.

render

Makes a video from a prompt, starting from a picture (image = a name from upload_image) or, with no image, from the prompt alone (text to video: describe the whole scene). Everything else is optional: model: small (default, fast) | ltx13 | vace | an added model's file name (list_models) style: e.g. "Balanced", "Soft and calm", "Lively", "Slow motion" (render_options lists all) quality: "Draft" (fastest) | "Normal" (default) | "High" | "Best" (1080p, very slow) | "Manual" (then width, height) seconds: 1-7 (2-3 holds together best). camera: still | zoom | zoomout | panr | pan…

ParameterTypeDescription
prompt *string
avoidstring
camerastring
heightinteger
imagestring
modelstring
movementinteger
prioritystring
qualitystring
secondsinteger
seedinteger
speedstring
stylestring
widthinteger

rerender

Makes a video again with the settings of an earlier one (a name from list_videos). seed: leave out for the same seed (same video, e.g. after a crash), -1 for a new variation, or a number.

ParameterTypeDescription
video *string
promptstring
seedinteger

job_status

Waits until the job is done (up to wait_seconds, max 55) and reports progress, then returns its status. Call again while status is queued or rendering. No id = the last 10 jobs. Also takes a batch id ("batch-...", from render_batch), a fix id ("fix-...", from auto_fix) or an edit id ("edit-...").

ParameterTypeDescription
idstring
wait_secondsinteger

cancel

Stops a queued or rendering job.

ParameterTypeDescription
id *string

diagnose_job

Why a job failed, in plain words, with what to try and the ComfyUI log lines.

ParameterTypeDescription
id *string

list_videos

The finished videos, newest first, with their file path and short settings.

ParameterTypeDescription
limitinteger

video_info

Everything about one video: all its settings, size, length, path and a link to watch it.

ParameterTypeDescription
video *string

delete_video

Moves a video and its settings to the out/trash folder (not deleted for good). Ask the user first, then call with user_confirmed=true.

ParameterTypeDescription
video *string
user_confirmedboolean

estimate

How long a render (same settings as render) or a whole batch (items = a list of render settings) would take on this PC, and how long the queue is, WITHOUT starting anything.

ParameterTypeDescription
camerastring
heightinteger
imagestring
itemsarray
modelstring
movementinteger
promptstring
qualitystring
secondsinteger
speedstring
stylestring
widthinteger

render_batch

Many clips at once. items = a list of render settings, e.g. [{"image": "cat.png", "prompt": "...", "style": "Lively"}, ...] (same keys as render). All items are checked before any starts. Batches wait while the user's own renders go first. Over 30 minutes in total: tell the user the estimate and call again with user_confirmed=true. Returns a batch id; job_status(batch id) reports progress.

ParameterTypeDescription
items *array
labelstring
prioritystring
user_confirmedboolean

render_variations

Several versions of an earlier video to pick from (2-6). vary: "seed" (same settings, different luck: the usual choice) or "movement" (less and more movement around the original, same seed). Returns job ids for job_status.

ParameterTypeDescription
video *string
countinteger
prioritystring
varystring

queue

The render queue. action: list (default) | pause (nothing new starts; the current render finishes) | resume | clear (cancels waiting jobs; priority="batch" clears only batch jobs) | front (move waiting job `id` first) | priority (set job `id` to priority "user" or "batch").

ParameterTypeDescription
actionstring
idstring
prioritystring

review_video

Shows you the clip: frames spread over it (start, middle, end for 3) side by side in ONE picture, after the start picture, so you can SEE if it worked. judge=true also asks a vision model for a score and problems (uses the Gemini/NVIDIA key from OpenDaemon). Look for: the character changing, the action not happening, extra hands, melting, the end falling apart.

ParameterTypeDescription
video *string
framesinteger
judgeboolean

auto_fix

The self-check loop for one video: a vision model judges it, the settings are fixed by the kind of problem (drift = less movement, no action = more movement, end melts = shorter, hands/melting = avoid list) and it renders again, at most `tries` times (1-3). Every try is kept; the answer names the best one. problems: if you already looked (review_video), say what you saw so the first judge call is skipped: drift, wrong_subject, no_action, too_much_motion, hands, melting, end_melts, talking, blurry. Returns a fix id; job_status(fix id) follows it.

ParameterTypeDescription
video *string
prioritystring
problemsarray
triesinteger

suggest_settings

Settings to start with for a goal ("calm portrait", "lively dance", "quick test"), plus the best-scored videos made on this PC so far (scores come from review_video(judge=true) and auto_fix).

ParameterTypeDescription
goalstring
modelstring

build_video

ONE call for a finished video. clips: video names in order, or {"video", "start", "end", "speed"} to cut/speed one. transition: cut | fade | crossfade. shape: "9:16" (Shorts/Reels/TikTok) | "1:1" | "4:5" | "16:9". voice: the words to say (or {"text", "voice": andrew|emma|ava|brian|es|pt..., "engine": edge|local, "sample"} or {"audio": file}). captions: "auto" (timed to the voice) or your own text. music: a music file path (or {"file", "volume"}); it gets quieter under the voice. title: text for a card at the start. end_card: text for the last card (true = "Follow for more").…

ParameterTypeDescription
clips *array
captions
end_card
exportstring
music
shapestring
titlestring
transitionstring
voice

join_clips

Clips into one video, in order. transition: cut | fade (through black) | crossfade; seconds = its length.

ParameterTypeDescription
videos *array
secondsnumber
transitionstring

trim_clip

Keeps only start..end seconds. Good for cutting the end of a clip where it starts to melt.

ParameterTypeDescription
video *string
endnumber
startnumber

extend_clip

GPU. Makes a video longer without it falling apart: the last frame becomes the start of a new clip (same model and settings, your prompt for what happens next), then both are joined. Takes a render's time.

ParameterTypeDescription
prompt *string
video *string
secondsinteger
transitionstring

change_speed

0.5 = half speed (slow motion), 2 = twice as fast. 0.1 to 8.

ParameterTypeDescription
speed *number
video *string

reverse_clip

Plays the clip backwards.

ParameterTypeDescription
video *string

loop_clip

Repeats the clip (2-20 times).

ParameterTypeDescription
video *string
timesinteger

boomerang

Forwards then backwards, like a boomerang. times = how many back-and-forths.

ParameterTypeDescription
video *string
timesinteger

smooth_motion

Smoother motion: makes in-between frames, 24 -> 30/48/50/60 fps (on the processor, about 2 s per second of video).

ParameterTypeDescription
video *string
fpsinteger

upscale_clip

Bigger video. method "simple": resize to `height` with sharpening (seconds, any video). method "ltx": GPU, renders the same clip again with the LTX second pass to 1080p - real detail, but 30-50 min on a 4 GB card.

ParameterTypeDescription
video *string
heightinteger
methodstring

crop_zoom

A slow camera move on a finished clip. direction: in | out | left | right | up | down | none (a still crop). zoom 1.01-4. x, y (0-1) = the point to zoom on (0.5, 0.5 = the middle).

ParameterTypeDescription
video *string
directionstring
xnumber
ynumber
zoomnumber

color_adjust

brightness -1..1 (0 = same), contrast 0.5..2 (1 = same), saturation 0..3 (1 = same), warmth -1 cool .. 1 warm.

ParameterTypeDescription
video *string
brightnessnumber
contrastnumber
saturationnumber
warmthnumber

fade

Fades from black at the start and to black at the end (seconds; 0 = none). Sound fades too.

ParameterTypeDescription
video *string
fade_innumber
fade_outnumber

add_music

Background music (a file path), looped or cut to the video's length, faded in and out. If the video has a voice, the music gets quieter while it speaks (duck).

ParameterTypeDescription
music *string
video *string
duckboolean
volumenumber

make_voice

A voice line from text, as an audio file for add_voice. engine "edge" (default): free online voices, fast, with word timings for auto captions; voice: andrew, emma, ava, brian, es, es-f, pt, pt-f, or any edge voice name. engine "local": Chatterbox on this PC, offline, CLONES the voice in `sample` (a 5-15 s recording); slow.

ParameterTypeDescription
text *string
enginestring
languagestring
samplestring
voicestring

add_voice

Puts a voice line (from make_voice, or any sound file) on a clip, starting at `start` seconds. If it is longer than the clip, the last frame is held until it ends.

ParameterTypeDescription
audio *string
video *string
keep_originalboolean
startnumber
volumenumber

lipsync

Moves a real human face's lips to a voice (LatentSync). Needs a graphics card with 8 GB or more.

ParameterTypeDescription
audio *string
video *string

add_captions

Burned-in captions. text "auto" = timed to the voice line put on with add_voice (edge voices). Or your own text, spread over the clip ("|" forces a break). style: bold | impact | clean | box. position: bottom | lower | center | top. highlight = yellow text.

ParameterTypeDescription
video *string
highlightboolean
positionstring
stylestring
textstring
words_per_captioninteger

add_text

A title or any text on the video, from `start` to `end` seconds (default: the whole clip).

ParameterTypeDescription
text *string
video *string
boxboolean
endnumber
positionstring
startnumber
stylestring

title_card

A card at the START: text and/or a picture on a dark background, faded into the video.

ParameterTypeDescription
video *string
imagestring
secondsnumber
textstring

end_card

A card at the END ("Follow for more", your logo...), faded in after the video.

ParameterTypeDescription
video *string
imagestring
secondsnumber
textstring

reformat

Changes the shape: 9:16 (Shorts, Reels, TikTok) | 1:1 | 4:5 | 16:9. mode: blur (blurred copy behind, nothing is cut off) | crop (fills the frame, cuts the sides) | pad (black bars).

ParameterTypeDescription
video *string
modestring
shapestring

export

Ready to post: the platform's shape, H.264 + AAC, file size under the limit. platform: shorts | reels | tiktok | facebook (10 MB) | youtube | x | square. max_mb overrides the size limit.

ParameterTypeDescription
video *string
max_mbnumber
platformstring

thumbnail

A still picture (JPG) from the video at `at` seconds (default: the middle), for a post's cover.

ParameterTypeDescription
video *string
atnumber

make_gif

An animated GIF of the video.

ParameterTypeDescription
video *string
fpsinteger
widthinteger

extract_audio

Saves the video's sound as an .m4a file.

ParameterTypeDescription
video *string

remove_audio

The same video without sound.

ParameterTypeDescription
video *string

list_workflows

Your own ComfyUI workflows (API-format .json files in the workflows folder) and the inputs each one lets you change (prompt, image, seed, steps... found automatically, or nodes titled "$name" in ComfyUI).

run_workflow

Runs one of your workflows. inputs = {"prompt": "...", "image": "C:/pics/cat.png", "steps": 20} using the names from list_workflows; a file path for image/video/audio is copied into ComfyUI for you. A new random seed each run unless you pass seed or keep_seed=true. Checks the workflow first and refuses if it would fail (force=true runs anyway). Returns a job id: wait with job_status; the saved files come back in "files".

ParameterTypeDescription
name *string
forceboolean
inputsobject
keep_seedboolean
prioritystring

check_workflow

Before a slow run: finds missing node types (and which node pack has them), missing model files and wrong values in a saved workflow (name) or one you give (workflow, API format). Also lists its changeable inputs.

ParameterTypeDescription
namestring
workflowobject

install_custom_node

Installs a ComfyUI node pack: a GitHub link, a pack name, or a node type from check_workflow. Node packs are programs from other people, so ASK THE USER FIRST, then call again with user_confirmed=true. ComfyUI needs a restart after (restart_comfyui).

ParameterTypeDescription
source *string
user_confirmedboolean

save_workflow

Keeps a workflow (ComfyUI API format) under a name, so run_workflow can use it. Returns its inputs.

ParameterTypeDescription
name *string
workflow *object
overwriteboolean