ComfyUI MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| COMFYUI_URL | No | Override ComfyUI URL (skips auto-discovery). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| logging | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_statusB | Get the current status of ComfyUI connection and installation |
| get_install_guideB | Get installation instructions for ComfyUI (recommends desktop app for most users) |
| get_model_guideA | Get guidance on downloading and installing models for ComfyUI |
| list_examplesA | List official ComfyUI example workflows from the documentation. RECOMMENDED: Always check examples first before building custom workflows - they provide tested, working templates for common use cases like txt2img, img2img, ControlNet, LoRA, regional prompting, and more. |
| get_example_workflowA | Fetch an example workflow (extracts embedded JSON from documentation images). Returns ready-to-use workflow JSON that can be passed directly to run_workflow. Use this as a starting point and modify prompts, models, or parameters as needed. |
| extract_workflowA | Extract the workflow JSON from a ComfyUI-generated PNG image. Works with local file paths or URLs. Returns the workflow in API format that can be passed directly to run_workflow. |
| recommend_workflowA | IMPORTANT: Call this BEFORE generating images to get the correct workflow and settings for a model. Given a model filename, returns the recommended workflow, optimal settings (steps, CFG, resolution), and prompting guide. Essential for matching checkpoint vs UNET models to the right workflow. |
| get_prompting_guideA | Get prompting best practices for AI image generation models (SD1.5, SDXL, SD3, Flux) |
| get_capabilitiesB | Get the detected capabilities of the connected ComfyUI instance |
| run_workflowA | Run a custom ComfyUI workflow (API format JSON). Returns immediately with a task ID (async by default). Use get_task to check progress, get_task_result to retrieve results when complete. Set sync:true to wait for completion (blocking). IMPORTANT: Use the 'name' parameter with descriptive names like 'sunset_portrait_v2' or 'logo_design_red' to make generations easy to find later. BEST PRACTICE: Always start from example workflows (list_examples/get_example_workflow) or templates (search_templates/get_template) rather than building workflows from scratch. |
| get_imageA | Retrieve a generated image as base64. Use this to fetch images from ComfyUI's output directory. |
| list_modelsB | List available models (checkpoints, LoRAs, VAEs, etc.) in ComfyUI |
| list_nodesA | List available ComfyUI nodes, optionally filtered by category or search term |
| get_node_infoA | Get detailed information about a specific ComfyUI node, including its inputs (with types, defaults, and valid options) and outputs. Essential for understanding how to wire nodes together in workflows. |
| find_nodes_by_typeA | Find ComfyUI nodes by their input or output types. Use this to discover which nodes can produce a specific type (e.g., MODEL, LATENT, IMAGE) or which nodes can consume a type. Essential for workflow composition. |
| build_nodeA | Generate valid node JSON with proper inputs/outputs that can be assembled into a workflow. Provide inputs to override defaults, or leave empty to get a node with default values and placeholders for connections. |
| validate_workflowA | Validate a workflow before running it. Checks that all node types exist, connections are valid, required inputs are provided, and types match. Returns errors and warnings. |
| search_templatesA | Search for workflow templates by model type, task type, category, or text. Returns templates from built-in workflows, ComfyUI examples, and custom saved templates. Use get_template to generate workflow JSON from a template. |
| get_templateA | Generate workflow JSON from a template with provided parameters. Returns a complete workflow that can be passed to run_workflow. Works with built-in and custom saved templates. |
| save_templateA | Save a workflow as a reusable template. Use descriptive names that indicate the purpose (e.g., 'portrait_lighting_studio', 'product_photo_white_bg'). Templates are stored persistently and can be searched and retrieved later. |
| delete_templateA | Delete a custom saved template. Built-in templates cannot be deleted. |
| get_download_urlA | Get the download URL for a model by name. Searches common model names and returns download URLs, destinations, and wget commands. Useful for helping users download missing models. |
| get_queueA | Get the current ComfyUI queue status |
| cancel_jobA | Cancel a queued job by prompt ID. NOTE: This only works for jobs that are queued (pending), NOT for jobs that are already running. To stop a running job, use the 'interrupt' tool instead. |
| interruptA | Interrupt the currently running job. Use this to stop a job that is actively generating. For queued jobs that haven't started yet, use 'cancel_job' instead. |
| get_historyC | Get generation history |
| get_taskA | Get the current status of an async generation task. Returns progress info including current step, total steps, average step time, estimated remaining time, and a suggested poll interval based on generation speed. |
| get_task_resultB | Get the result of a completed generation task (images) |
| list_tasksA | List all generation tasks, optionally filtered by status |
| cancel_taskA | Cancel an async generation task. For queued tasks, this cancels the ComfyUI job. For tasks that are already running, this only removes the task from tracking - use 'interrupt' to actually stop the running generation. |
| get_generation_by_nameA | Retrieve a generation by its user-assigned name. Returns the same format as get_task_result. |
| name_generationA | Assign a descriptive name to an existing generation for easy retrieval. Use clear, searchable names that describe the content (e.g., 'landscape_sunset_warm', 'logo_draft_2', 'character_portrait_final'). |
| save_noteA | Save a note about something learned during image generation. Useful for remembering model behaviors, prompting techniques, workflow patterns, etc. |
| get_notesB | Retrieve saved notes, optionally filtered by topic. |
| search_notesB | Search notes using full-text search. |
| delete_noteC | Delete a note by its ID. |
| list_topicsA | List all unique topics that have notes. |
| get_user_preferencesA | Get user preferences extracted from analyzing their ComfyUI output history. Returns commonly used workflows (as reusable templates), frequently used models, and preferred settings. |
| render_svgA | Render SVG content to PNG and save to ComfyUI's input folder. Returns filename for use in LoadImage nodes. Useful for creating precise base images for img2img workflows. |
| download_fontA | Download a font from Google Fonts or a direct URL for use in SVG rendering. Fonts are cached locally and can be embedded in SVGs via render_svg. Popular fantasy/map fonts: Cinzel, Pirata One, MedievalSharp, UnifrakturMaguntia, Almendra. |
| list_fontsA | List all downloaded fonts available for use in SVG rendering. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| generate-image | Generate an image with ComfyUI using appropriate settings for your model type |
| setup-comfyui | Get step-by-step instructions for setting up ComfyUI with models |
| run-example | Get an example workflow ready to run with guidance on required models |
| learn-prompting | Get comprehensive prompting guidance for your model type |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| prompting-guide-all | Comprehensive prompting guide for all AI image models (SD1.5, SDXL, SD3, Flux) |
| prompting-guide-sd15 | The original Stable Diffusion model. Works best with keyword-style prompts separated by commas. |
| prompting-guide-sdxl | Enhanced model with better prompt understanding. Supports both keyword and natural language styles. |
| prompting-guide-sd3 | Latest generation with excellent prompt adherence and text rendering. Uses natural language prompting. |
| prompting-guide-flux | State-of-the-art model with best-in-class prompt adherence and text rendering. Uses pure natural language. |
| prompting-guide-qwen | Alibaba's 20B MMDiT model with excellent text rendering and image editing. Uses an LLM as CLIP encoder, making it highly flexible with natural language. |
| prompting-guide-hunyuan | Tencent's powerful diffusion transformer with fine-grained understanding of both English and Chinese. Excels at cinematic, detailed imagery. |
| prompting-guide-auraflow | The largest (6.8B) open-source text-to-image model with Apache 2.0 license. Exceptional prompt following and flexibility. |
| prompting-guide-kolors | Kwai's bilingual (Chinese/English) text-to-image model trained on billions of pairs. Excels at photorealistic images. |
| prompting-guide-pixart | Efficient DiT model (0.6B params) capable of generating up to 4K images. Good prompt adherence with detailed descriptions. |
| prompting-guide-playground | State-of-the-art open-source model for aesthetic quality. Outperforms SDXL and competes with DALL-E 3 and Midjourney in user studies. |
| prompting-guide-cascade | Three-stage model with 42x compression factor. Fast inference, good prompt adherence, and text rendering capabilities. |
| example-basic-txt2img | Simple text-to-image generation with a checkpoint model (Category: basics) |
| example-hires-fix-latent-upscale | Create an image at lower resolution, upscale it using latent space, then run through img2img for higher quality details (Category: basics) |
| example-image-to-image-img2img | Transform an existing image using a prompt. Denoise parameter controls modification intensity (lower = preserve more of original) (Category: basics) |
| example-inpainting-basic | Basic inpainting workflow using SetLatentNoiseMask. Works with any model by applying noise mask to latent. (Category: inpainting) |
| example-inpainting-yosemite-example | Inpainting landscape example using the basic noise mask approach. Demonstrates replacing regions in nature photos. (Category: inpainting) |
| example-inpainting-dedicated-model | Inpainting using dedicated SD 2.0 inpainting model. Better quality than basic approach for complex edits. (Category: inpainting) |
| example-inpainting-regular-model | Inpainting using a regular (non-inpainting) model like AnythingV3. Shows that any model can be used for inpainting. (Category: inpainting) |
| example-outpainting | Extend images beyond their original borders. Uses 'Pad Image for Outpainting' node to expand canvas. (Category: inpainting) |
| example-lora | Apply LoRA (Low-Rank Adaptation) patches to modify style or concepts. Supports all LoRA variants: Lycoris, loha, lokr, locon. (Category: lora) |
| example-hypernetworks | Apply hypernetwork patches on top of the main model (Category: hypernetworks) |
| example-textual-inversion-/-embeddings | Use trained embeddings as custom words in prompts. Placement in prompt matters for effect. (Category: embeddings) |
| example-upscaling-with-esrgan | Increase image resolution using upscale models like ESRGAN, RealESRGAN, etc. (Category: upscale) |
| example-area-composition | Generate different content in specific image regions using ConditioningSetArea node. Great for wide aspect ratios. (Category: advanced) |
| example-noisy-latent-composition | Composite multiple latents together while still noisy, before full denoising. Enables precise subject positioning. (Category: advanced) |
| example-model-merging | Merge multiple checkpoints, integrate LoRAs into weights, create inpainting models, convert between architectures (Category: advanced) |
| example-lcm-latent-consistency-models | Accelerated image generation in very few steps. Use lcm sampler with low CFG and sgm_uniform/simple scheduler. (Category: lcm) |
| example-controlnet-scribble/lineart | Generate images guided by scribbles or line drawings. Great for sketches or doodles as input. (Category: controlnet) |
| example-controlnet-depth | Generate images guided by depth maps. Maintains 3D spatial structure of the input image. (Category: controlnet) |
| example-t2i-adapter-depth | Depth-guided generation using T2I-Adapter. More efficient than ControlNet with minimal quality loss. (Category: controlnet) |
| example-controlnet-pose/openpose | Generate images guided by pose skeletons. Control body positioning and gestures of characters. (Category: controlnet) |
| example-controlnet-multiple/combined | Combine multiple ControlNets for complex guidance. E.g., pose + scribble for character with specific appearance. (Category: controlnet) |
| example-gligen-text-box-positioning | Spatial control for image generation - specify location and size of multiple objects using text boxes (Category: controlnet) |
| example-unclip-single-image | Use a single image as a prompt by encoding through CLIPVision. Generate variations of the input image. (Category: unclip) |
| example-unclip-multiple-images | Blend concepts from multiple reference images. Combine styles, subjects, or themes from different sources. (Category: unclip) |
| example-unclip-two-pass | Two-stage unCLIP generation. First pass creates initial image, second pass refines with higher detail. (Category: unclip) |
| example-sdxl | Basic SDXL text-to-image generation. Standard workflow using base checkpoint at 1024x1024 resolution. (Category: sdxl) |
| example-sdxl-with-refiner | Two-stage SDXL with base model and refiner. Refiner adds detail and improves quality in second pass. (Category: sdxl) |
| example-sdxl-revision-image-guided | Use images to guide SDXL generation. Zero positive prompt or combine with text for style transfer. (Category: sdxl) |
| example-sdxl-turbo | Generate consistent images in a single step. Use SDTurboScheduler for best results. (Category: turbo) |
| example-z-image-turbo | Fast distilled diffusion model using Qwen 3 4B text encoder (Category: turbo) |
| example-sd3.5-separate-encoders | SD3.5 with separately loaded text encoders (CLIP L, CLIP G, T5). More control over precision and VRAM usage. (Category: sd3) |
| example-sd3.5-checkpoint | SD3.5 using all-in-one checkpoint. Simplest setup - just load checkpoint like SD1.5/SDXL models. (Category: sd3) |
| example-sd3.5-medium | Smaller SD3.5 variant for faster generation or lower VRAM. Good balance of speed and quality. (Category: sd3) |
| example-sd3.5-large-turbo | Fast distilled SD3.5 requiring fewer steps. Use 4-8 steps with low CFG for quick generation. (Category: sd3) |
| example-sd3.5-controlnet-canny | SD3.5 with official canny ControlNet for edge-guided generation. Structural control for precise compositions. (Category: sd3) |
| example-stable-cascade | Basic text-to-image with Stable Cascade. Two-stage architecture: Stage C generates, Stage B decodes. (Category: stable_cascade) |
| example-stable-cascade-image-to-image | Transform existing images with Stable Cascade. Modify style while preserving structure. (Category: stable_cascade) |
| example-stable-cascade-image-remix | Create variations using reference images as inspiration. Uses CLIP Vision for style/concept transfer. (Category: stable_cascade) |
| example-stable-cascade-controlnet-canny | Edge-guided generation with Stable Cascade. Use canny edges to control structure. (Category: stable_cascade) |
| example-stable-cascade-inpainting | Inpaint regions of images with Stable Cascade. Uses dedicated inpainting ControlNet. (Category: stable_cascade) |
| example-flux-dev | High-quality Flux Dev generation using separate UNET, CLIP, and VAE files. Requires UNETLoader and DualCLIPLoader nodes. (Category: flux) |
| example-flux-schnell | Fast 4-step Flux Schnell generation using separate UNET, CLIP, and VAE files. Only needs 4 steps for good results. (Category: flux) |
| example-flux-dev-checkpoint | Flux Dev using all-in-one FP8 checkpoint file. Uses CheckpointLoaderSimple instead of separate loaders. Easier setup. (Category: flux) |
| example-flux-schnell-checkpoint | Fast 4-step Flux Schnell using all-in-one FP8 checkpoint. Uses CheckpointLoaderSimple. Only needs 4 steps. (Category: flux) |
| example-flux-kontext | Edit existing images with Flux Kontext. Describe changes in natural language to modify images while preserving identity. (Category: flux) |
| example-flux-fill-inpaint/outpaint | Inpainting and outpainting with Flux Fill. Mask regions to regenerate or extend images beyond their borders. (Category: flux) |
| example-flux-redux | Image-guided generation with Flux Redux. Use reference images to guide style and composition of new generations. (Category: flux) |
| example-flux-canny | Edge-guided generation with Flux Canny. Use canny edge detection to control structure of generated images. (Category: flux) |
| example-flux-depth | Depth-guided generation with Flux Depth LoRA. Use depth maps to control spatial structure of generated images. (Category: flux) |
| example-flux-controlnet-community | Community ControlNet support for Flux. Apply structural guidance using various control types. (Category: flux) |
| example-flux-2 | State of the art image diffusion with Mistral 3 text encoder. Supports multiple reference images as optional inputs. (Category: flux) |
| example-auraflow | True open source model with FOSS license for both code and weights (Category: aura_flow) |
| example-chroma | Modified Flux model with architectural changes (Category: chroma) |
| example-lumina-image-2.0 | Diffusion model using Gemma 2 2B for text encoding (Category: lumina) |
| example-hidream-dev | HiDream I1 Dev variant. Fast development model for quick iterations. Good balance of speed and quality. (Category: hidream) |
| example-hidream-full | HiDream I1 Full variant. Highest quality generation with full model weights. Use for final production images. (Category: hidream) |
| example-hidream-edit-e1.1 | HiDream image editing model. Modify existing images with text instructions. Latest E1.1 version. (Category: hidream) |
| example-hidream-edit-e1 | HiDream image editing model. Original E1 version. Use E1.1 for better results. (Category: hidream) |
| example-qwen-image | Qwen 20B diffusion model for text-to-image generation. High quality with excellent prompt following. (Category: qwen) |
| example-qwen-image-edit-v2509 | Qwen image editing with v2509 model. Supports up to 3 reference images for complex multi-image editing. (Category: qwen) |
| example-qwen-image-edit-original | Original Qwen image editing model. Use v2509 for better multi-image support. (Category: qwen) |
| example-sdxl-edit-cosxl-edit | Image editing using text prompts, InstructPix2Pix-style (Category: edit) |
| example-omnigen-2 | Edit images with text prompts, accepts character reference images. Chain ReferenceLatent nodes for multiple references. (Category: omnigen) |
| example-hunyuan-dit-1.2 | Diffusion model capable of processing both English and Chinese text prompts (Category: hunyuan) |
| example-hunyuan-image-2.1 | Powerful diffusion model for image generation with optional refiner (Category: hunyuan) |
| example-nvidia-cosmos-predict2 | Text-to-image and image-to-video using Cosmos Predict2 models (2B and 14B variants) (Category: video) |
| example-stable-zero123-3d | Generate images of objects from different camera angles. Input image should have simple background. (Category: 3d) |
TDQS
Scored across 41 tools
Most tools target clearly distinct resources (tasks, templates, notes, nodes, queue), and descriptions go out of their way to explain the differences between look-alikes such as cancel_task vs cancel_job vs interrupt, and get_example_workflow vs search_templates/get_template. The remaining overlap (list_tasks vs get_queue vs get_history, get_task vs get_task_result vs get_generation_by_name) is real but navigable thanks to explicit cross-references.
Almost all names follow a snake_case verb_noun pattern (get_status, list_models, run_workflow, validate_workflow, save_template, delete_note). Minor deviations exist, e.g. the bare verb 'interrupt' and noun-ish retrieval names like get_history and get_user_preferences, but the style never fractures into mixed camelCase or arbitrary verbs.
41 tools far exceeds the comfortable 3-15 band and is heavy even for a broad domain; the surface spans generation, node graph authoring, templates, model downloads, notes, fonts, and queue control. Several tools plausibly could be consolidated (e.g. the notes group, the template group, and the cancel/interrupt trio), so the count is well past what the core purpose requires.
Coverage is genuinely broad: generation lifecycle (run/get_task/get_task_result/naming/history), workflow authoring (nodes, build, validate), templates, model discovery and download URLs, queue control, and even peripheral helpers like notes and SVG/font rendering. Gaps are minor, such as no tool to delete or prune generations/history or clean up output images.