ComfyUI MCP Server
Provides tools for rendering SVG images and managing/downloading fonts.
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., "@ComfyUI MCP Server generate an image of a cat astronaut floating in space"
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.
ComfyUI MCP Server
An MCP (Model Context Protocol) server that enables AI assistants like Claude to interact with ComfyUI for generating images, audio, video, and more.
Let Your AI Install This For You
Copy and paste this prompt to your AI assistant (Claude, Cursor, etc.) to have it set everything up:
I want to generate images using ComfyUI. Please help me set up the ComfyUI MCP server.
1. First, add the ComfyUI MCP server to my configuration. The Docker config is:
- Command: docker
- Args: run -i --rm --pull always -e COMFYUI_URL=http://host.docker.internal:8000 ghcr.io/shawnrushefsky/comfyui-mcp:latest
2. Once configured, use get_status to check if ComfyUI is running and connected.
3. If ComfyUI isn't installed, use get_install_guide to help me install it.
4. Use list_models to see what models I have available.
5. Use search_templates to find the right workflow for my model.
6. Use get_prompting_guide to learn the correct prompting style for my model.
7. Use get_template to build a workflow and run_workflow to generate a test image.Tip: If you're using the ComfyUI Desktop app, it runs on port 8000. If you installed ComfyUI manually, change the port to 8188.
Related MCP server: ComfyUI MCP Server
What is This?
This MCP server acts as a bridge between AI assistants and ComfyUI, the powerful node-based interface for Stable Diffusion and other generative AI models. It allows Claude and other MCP-compatible AI assistants to:
Run complex workflows with full control over every node and parameter
Compose custom workflows using node discovery and building tools
Create videos using AnimateDiff, Stable Video Diffusion, and other video models
Generate audio using Stable Audio and other audio models
Manage your queue - view, cancel, and interrupt jobs
Help you set up - download models, install ComfyUI, and configure everything
Key Features
Self-Configuring
The server automatically discovers your ComfyUI installation and detects what models and features are available. No manual configuration of capabilities required.
Works Without ComfyUI Running
Even if ComfyUI isn't installed or running, the server provides tools to:
Guide you through installation
Download models directly
Fetch example workflows from documentation
Workflow-First Architecture
All generation happens through run_workflow, giving you full control over the ComfyUI workflow. The server provides comprehensive tools for:
Templates: Pre-built workflows for common tasks
Node composition: Build custom workflows node by node
Validation: Check workflows before running
70+ Example Workflows
Comprehensive library of example workflows from the official ComfyUI documentation, split into easily discoverable entries:
Flux: Dev, Schnell, Checkpoint variants, Kontext, Fill, Redux, Canny, Depth, ControlNet
SDXL: Base, Refiner, ReVision (image-guided)
SD3.5: Separate encoders, Checkpoint, Medium, Turbo, ControlNet
ControlNet: Scribble, Depth, T2I-Adapter, Pose, Multiple combined
Inpainting/Outpainting: Basic, dedicated models, various techniques
Video: SVD, Mochi, LTX-Video, Hunyuan Video, Cosmos, Wan
And more: Stable Cascade, HiDream, Qwen Image, Audio generation
Template System
Three sources of workflow templates:
Built-in templates: Standard txt2img for SD1.5, SDXL, and Flux
Example workflows: 70+ from official ComfyUI docs
Custom templates: Save and reuse your successful workflows
Workflow Composition Tools
Build custom workflows programmatically:
build_node: Generate valid node JSON with proper defaultsget_node_info: Detailed node inputs/outputs with examplesfind_nodes_by_type: Discover nodes by what they accept/producevalidate_workflow: Check validity before running
Quick Start Guide
Step 1: Install ComfyUI
Option A: Desktop App (Recommended for most users)
Go to comfy.org/download
Download for your platform (macOS, Windows, or Linux)
Install and launch the application
ComfyUI will automatically set up Python and dependencies
Option B: Manual Installation
# Clone the repository
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
# Install dependencies (use a virtual environment recommended)
pip install -r requirements.txt
# Run ComfyUI
python main.pyStep 2: Download a Model
You need at least one checkpoint model. Here are popular options:
SDXL (Recommended - high quality, 1024x1024)
Download
sd_xl_base_1.0.safetensorsfrom HuggingFacePlace in
ComfyUI/models/checkpoints/
Flux (State of the art quality)
Download
flux1-schnell.safetensorsfrom HuggingFacePlace in
ComfyUI/models/unet/Also need CLIP encoders from flux_text_encoders
SD 1.5 (Classic, fast, many LoRAs available)
Download
v1-5-pruned-emaonly.safetensorsfrom HuggingFacePlace in
ComfyUI/models/checkpoints/
Step 3: Configure Your AI Assistant
Add the ComfyUI MCP server to your AI assistant's configuration.
Claude Desktop (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"comfyui": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"-e", "COMFYUI_URL=http://host.docker.internal:8000",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}
}Note: The ComfyUI Desktop app uses port 8000. If you're running ComfyUI manually, change the port to 8188.
Step 4: Start Generating!
Make sure ComfyUI is running (http://localhost:8188 should show the UI)
Restart Claude Desktop
Ask Claude to generate an image:
Generate an image of a sunset over mountains using FluxClaude will automatically:
Connect to your ComfyUI instance
Search for the right template
Build and validate a workflow
Execute and display the result
Installation
Prerequisites
ComfyUI (desktop app recommended) or manual installation
One or more checkpoint/model files
Docker (recommended) or Node.js 18+
Option 1: Docker (Recommended)
Works with any MCP-compatible AI assistant. The Docker image automatically pulls updates.
Claude Desktop
Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"comfyui": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"-e", "COMFYUI_URL=http://host.docker.internal:8000",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}
}Claude Code (CLI)
Add to .mcp.json in your project root:
{
"mcpServers": {
"comfyui": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"-e", "COMFYUI_URL=http://host.docker.internal:8000",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}
}Or add globally via CLI:
claude mcp add comfyui --transport stdio -- docker run -i --rm --pull always -e COMFYUI_URL=http://host.docker.internal:8000 ghcr.io/shawnrushefsky/comfyui-mcp:latestCursor
Add to Cursor's MCP settings (Settings → MCP Servers):
{
"comfyui": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"-e", "COMFYUI_URL=http://host.docker.internal:8000",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"comfyui": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"-e", "COMFYUI_URL=http://host.docker.internal:8000",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}
}Cline (VS Code Extension)
Add to Cline's MCP settings in VS Code:
{
"comfyui": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"-e", "COMFYUI_URL=http://host.docker.internal:8000",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}Linux (Any Client)
On Linux, use --network=host instead of host.docker.internal:
{
"mcpServers": {
"comfyui": {
"command": "docker",
"args": [
"run", "-i", "--rm", "--pull", "always",
"--network=host",
"ghcr.io/shawnrushefsky/comfyui-mcp:latest"
]
}
}
}Port Configuration
ComfyUI Desktop app (macOS/Windows): Uses port
8000by defaultManual ComfyUI installation: Uses port
8188by default
Adjust the COMFYUI_URL environment variable accordingly:
Desktop app:
http://host.docker.internal:8000Manual install:
http://host.docker.internal:8188
Option 2: From Source
git clone https://github.com/shawnrushefsky/comfyui-mcp.git
cd comfyui-mcp
npm install
npm run buildThen configure your MCP client to use the built server:
Claude Desktop:
{
"mcpServers": {
"comfyui": {
"command": "node",
"args": ["/path/to/comfyui-mcp/dist/index.js"]
}
}
}Claude Code (.mcp.json):
{
"mcpServers": {
"comfyui": {
"type": "stdio",
"command": "node",
"args": ["/path/to/comfyui-mcp/dist/index.js"]
}
}
}Tools Reference
Setup & Status Tools
get_status
Get the current status of ComfyUI connection and installation.
What's the status of ComfyUI?get_install_guide
Get platform-specific installation instructions. Recommends the desktop app for most users.
Parameter | Type | Description |
|
| Target platform |
How do I install ComfyUI on my Mac?get_model_guide
Get detailed guidance on downloading and installing models.
Parameter | Type | Description |
|
| Type of model |
How do I set up Flux models?Template & Workflow Tools
search_templates
Search for workflow templates across built-in, example, and custom sources.
Parameter | Type | Description |
|
| Filter by model type |
|
| Filter by task type |
|
| Filter by category |
|
| Free text search |
|
| Include built-in templates (default: true) |
|
| Include example workflows (default: true) |
|
| Include saved custom templates (default: true) |
Find templates for Flux txt2imgget_template
Build a workflow from a template with your parameters.
Parameter | Type | Description |
|
| Template ID from search_templates |
|
| Parameters to apply (prompt, model, etc.) |
Get the flux_schnell_txt2img template with prompt "a sunset over mountains"save_template
Save a workflow as a reusable custom template. Use descriptive names!
Parameter | Type | Description |
|
| Descriptive template name |
|
| What this template does |
|
| The workflow JSON |
|
| Model type (sd15, sdxl, flux, etc.) |
|
| Task type (txt2img, img2img, etc.) |
|
| Category for organization |
|
| Tags for searching |
Save this workflow as "portrait_lighting_studio"delete_template
Delete a custom saved template.
Parameter | Type | Description |
|
| Template ID to delete |
list_examples
List official ComfyUI example workflows. Over 70 workflows organized by model and use case.
Parameter | Type | Description |
|
| Filter by category (basics, sdxl, flux, video, audio, etc.) |
Show me example workflows for Fluxget_example_workflow
Fetch an example workflow from the ComfyUI documentation.
Parameter | Type | Description |
|
| Example name (e.g., "Flux Schnell Checkpoint") |
|
| Variant index if multiple (default: 0) |
Get the Flux Schnell Checkpoint workflowextract_workflow
Extract workflow JSON from a ComfyUI-generated PNG image.
Parameter | Type | Description |
|
| Path to PNG file or URL |
Extract the workflow from this image: /path/to/comfyui_output.pngrecommend_workflow
Get the correct workflow and settings for a model. Call this BEFORE generating images to ensure you're using the right workflow for your model (checkpoint vs UNET).
Parameter | Type | Description |
|
| Model filename (e.g., 'flux1-schnell-fp8.safetensors') |
|
| Task type (default: "txt2img") |
|
| List of available checkpoints |
|
| List of available UNETs |
Returns:
Recommended workflow template
Optimal settings (steps, CFG, resolution)
Prompting guide for the model
What workflow should I use for flux1-schnell-fp8.safetensors?get_download_url
Get download URL for a model by name.
Parameter | Type | Description |
|
| Model name to look up |
Where can I download flux1-schnell?Prompting Guide Tools
get_prompting_guide
Get prompting best practices for different model architectures.
Parameter | Type | Description |
|
| Model type (default: all) |
Returns detailed guidance on:
Prompt structure and style for each model
Recommended keywords and techniques
Negative prompt usage (or lack thereof for Flux)
Common mistakes to avoid
How should I write prompts for Flux?Generation Tools
run_workflow
Run a ComfyUI workflow (API format JSON). This is the primary generation tool. Returns immediately with a task ID by default (async). Use get_task to check progress and get_task_result to retrieve results.
Parameter | Type | Description |
|
| ComfyUI workflow JSON (API format) |
|
| Output mode (default: "auto") |
|
| Descriptive name for later retrieval (e.g., "sunset_portrait_v2") |
|
| Wait for completion (default: false, async) |
|
| Output format (default: "jpeg") |
|
| Quality 1-100 for JPEG/WebP (default: 85) |
Run this workflow: [paste JSON]validate_workflow
Validate a workflow before running. Checks node types, connections, and required inputs.
Parameter | Type | Description |
|
| The workflow to validate |
Returns:
valid: Whether the workflow is validerrors: Critical issues that will cause failureswarnings: Non-critical issues to be aware ofinfo: Helpful information about the workflow
Check if this workflow is valid before I run itget_image
Retrieve a generated image as base64. Use this to fetch images from ComfyUI's output directory.
Parameter | Type | Description |
|
| Image filename (e.g., 'ComfyUI_00001_.png') |
|
| Subfolder within the output directory |
|
| Image location type (default: "output") |
|
| Output format (default: "jpeg") |
|
| Quality 1-100 for JPEG/WebP (default: 85) |
Get the image named ComfyUI_00042_.pngWorkflow Composition Tools
build_node
Generate valid node JSON with proper defaults. Includes tips for certain nodes (e.g., SaveImage filename guidance).
Parameter | Type | Description |
|
| Node class_type (e.g., "KSampler") |
|
| ID for this node in the workflow |
|
| Input values to set |
Returns:
node: The node JSON to add to your workflowoutputs: Output references for connecting to other nodesmissingConnections: Inputs that need to be connectedtips: Best practices for this node type
Build a SaveImage node with ID "9"get_node_info
Get detailed information about a node including inputs, outputs, example JSON, and tips.
Parameter | Type | Description |
|
| Node class_type (e.g., "KSampler", "CheckpointLoaderSimple") |
Returns:
Input specifications with types, defaults, and valid options
Output types and slot indices
Example JSON showing how to use the node
Connection guide for each input type
Tips for certain node types
What are the inputs for KSampler?find_nodes_by_type
Find nodes by their input or output types. Useful for workflow composition.
Parameter | Type | Description |
|
| Find nodes that accept this type (e.g., "MODEL", "LATENT") |
|
| Find nodes that produce this type |
What nodes can output a MODEL?list_nodes
List available ComfyUI nodes.
Parameter | Type | Description |
|
| Filter by category |
|
| Search term |
What ControlNet nodes are available?Discovery Tools
get_capabilities
Get the detected capabilities of the connected ComfyUI instance.
What can this ComfyUI do? What models does it have?list_models
List available models in ComfyUI.
Parameter | Type | Description |
|
| Model type filter |
What checkpoints do I have installed?Task & Queue Management
get_task
Get the status of an async generation task.
Parameter | Type | Description |
|
| The task ID |
get_task_result
Get the result of a completed generation task.
Parameter | Type | Description |
|
| The task ID |
list_tasks
List all generation tasks, optionally filtered by status.
Parameter | Type | Description |
|
| Filter by status |
cancel_task
Cancel an async generation task. For queued tasks, this cancels the ComfyUI job. For running tasks, use interrupt to stop the generation.
Parameter | Type | Description |
|
| The task ID to cancel |
name_generation
Assign a descriptive name to a generation for easy retrieval.
Parameter | Type | Description |
|
| The task ID to name |
|
| Descriptive name (e.g., "landscape_sunset_warm") |
get_generation_by_name
Retrieve a generation by its assigned name.
Parameter | Type | Description |
|
| The name assigned to the generation |
get_queue
Get the current ComfyUI queue status.
What's in the generation queue?cancel_job
Cancel a queued or running job.
Parameter | Type | Description |
|
| Job ID (empty = cancel all) |
Cancel the current jobinterrupt
Interrupt the currently running job.
Stop the current generationget_history
Get generation history.
Parameter | Type | Description |
|
| Specific job ID |
|
| Max entries (default: 10) |
Show recent generationsAgent Memory Tools
These tools help AI agents remember learnings across sessions.
save_note
Save a note about something learned during image generation.
Parameter | Type | Description |
|
| Topic/category (e.g., "flux-models", "prompting-tips") |
|
| The note content |
|
| Optional tags for searching |
Remember that Flux works best with natural language promptsget_notes
Retrieve saved notes, optionally filtered by topic.
Parameter | Type | Description |
|
| Filter by topic |
|
| Max notes to return |
search_notes
Search notes using full-text search.
Parameter | Type | Description |
|
| Search query |
|
| Max notes to return |
delete_note
Delete a note by its ID.
Parameter | Type | Description |
|
| The note ID to delete |
list_topics
List all unique topics that have notes.
What topics have I saved notes about?User Preferences Tools
get_user_preferences
Get user preferences extracted from analyzing their ComfyUI output history. Returns commonly used workflows, frequently used models, and preferred settings.
Parameter | Type | Description |
|
| Include workflow templates (default: true) |
|
| Include model usage stats (default: true) |
|
| Include common settings (default: true) |
|
| Max workflow templates to return (default: 20) |
|
| Max models to return (default: 30) |
What workflows and models do I use most often?SVG & Font Tools
These tools allow creating precise base images for img2img workflows using SVG.
render_svg
Render SVG content to PNG and save to ComfyUI's input folder. Returns filename for use in LoadImage nodes.
Parameter | Type | Description |
|
| SVG content (full markup including |
|
| Output filename without extension |
|
| Output width in pixels (default: 768) |
|
| Output height in pixels (default: 768) |
|
| Background color (hex like '#ffffff' or 'transparent') |
|
| Fonts to embed (each with |
Render this map SVG as a base for img2imgdownload_font
Download a font from Google Fonts or a direct URL for use in SVG rendering.
Parameter | Type | Description |
|
| Font source (see below) |
Google Fonts source:
{ "type": "google", "family": "Cinzel", "weight": 400 }URL source:
{ "type": "url", "url": "https://...", "name": "MyFont" }Popular fantasy/map fonts available on Google Fonts: Cinzel, Pirata One, MedievalSharp, UnifrakturMaguntia, Almendra.
list_fonts
List all downloaded fonts available for use in SVG rendering.
What fonts do I have available for SVG rendering?Configuration
Environment Variables
Variable | Description |
| Override ComfyUI URL (skips auto-discovery) |
Config File
Location:
macOS:
~/Library/Application Support/comfyui-mcp/config.jsonWindows:
%APPDATA%/comfyui-mcp/config.jsonLinux:
~/.config/comfyui-mcp/config.json
{
"comfyui": {
"url": "http://localhost:8188",
"apiKey": null
},
"outputDir": "./outputs",
"workflowsDir": "./workflows",
"outputSizeThreshold": 1048576
}How It Works
Auto-Discovery
The server discovers ComfyUI in this order:
COMFYUI_URLenvironment variableConfig file URL
ComfyUI Desktop app configuration files
Port scanning: localhost:8188, 8189, 8190
Capability Detection
On connection, the server queries ComfyUI's /object_info endpoint to detect:
Model Architectures: SD 1.5, SDXL, SD3, Flux, Cascade (based on available checkpoints/UNETs)
Extensions: LoRA, ControlNet, IP-Adapter, AnimateDiff, etc. (based on available nodes)
Features: Video generation, audio generation, upscaling, inpainting
Samplers & Schedulers: Reads available options from KSampler node
Workflow Execution
When you call run_workflow, the server:
Validates the workflow structure
Queues the workflow via WebSocket for real-time progress
Tracks the task (async by default, or waits if sync=true)
Retrieves and returns the output images
Example Conversations
First-Time Setup
User: I want to use ComfyUI but I don't have it installed
Claude: [Uses get_install_guide] Here's how to install ComfyUI...
Claude: [Uses get_model_guide] Here's how to download and set up models...Generate Images with Templates
User: Generate a pirate husky with Flux
Claude: [Uses list_models] Found flux1-schnell-fp8.safetensors...
Claude: [Uses search_templates] Found "flux_schnell_txt2img" template...
Claude: [Uses get_prompting_guide('flux')] Flux uses natural language prompts...
Claude: [Uses get_template with parameters] Built workflow...
Claude: [Uses validate_workflow] Workflow is valid...
Claude: [Uses run_workflow] Generated image!
[Image displayed]Custom Workflow Composition
User: I want to build a custom workflow with ControlNet
Claude: [Uses list_nodes(category="controlnet")] Here are the ControlNet nodes...
Claude: [Uses get_node_info("ControlNetApply")] Here's how to use it...
Claude: [Uses build_node] Building each node...
Claude: [Uses validate_workflow] Checking the workflow...
Claude: [Uses run_workflow] Running your custom workflow...Development
Building
npm install
npm run buildRunning Locally
npm startDocker Build
docker build -t comfyui-mcp .
docker run -it --network=host comfyui-mcpTesting with MCP Inspector
npm run inspectorTroubleshooting
ComfyUI not detected
Make sure ComfyUI is running
Check if it's accessible at http://localhost:8188
Set
COMFYUI_URLenvironment variable if using non-default port
Models not found
Ensure models are in the correct ComfyUI subdirectory
Restart ComfyUI after adding new models
Use
list_modelsto see what's detected
Generation fails
Use
validate_workflowto check for issuesCheck
get_queuefor error messagesVerify the model exists with
list_modelsTry simpler parameters (smaller size, fewer steps)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
Acknowledgments
ComfyUI by comfyanonymous
Model Context Protocol by Anthropic
Available Tools
41 toolsbuild_nodeARead-onlyIdempotent
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.
Inputs: nodeId (required), nodeType (required), inputs.
cancel_jobADestructiveIdempotent
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.
Inputs: promptId.
cancel_taskADestructiveIdempotent
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.
Inputs: taskId (required).
delete_noteCDestructiveIdempotent
Delete a note by its ID.
Inputs: id (required).
delete_templateADestructiveIdempotent
Delete a custom saved template. Built-in templates cannot be deleted.
Inputs: id (required).
download_fontAIdempotent
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.
Inputs: source (required).
extract_workflowARead-onlyIdempotent
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.
Inputs: source (required).
find_nodes_by_typeARead-onlyIdempotent
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.
Inputs: inputType, outputType.
get_capabilitiesBRead-onlyIdempotent
Get the detected capabilities of the connected ComfyUI instance
Inputs: no named parameters.
get_download_urlARead-onlyIdempotent
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.
Inputs: modelName (required).
get_example_workflowARead-onlyIdempotent
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.
Inputs: name (required), variant.
get_generation_by_nameARead-onlyIdempotent
Retrieve a generation by its user-assigned name. Returns the same format as get_task_result.
Inputs: name (required).
get_historyCRead-onlyIdempotent
Get generation history
Inputs: limit, promptId.
get_imageARead-onlyIdempotent
Retrieve a generated image as base64. Use this to fetch images from ComfyUI's output directory.
Inputs: filename (required), type, subfolder, imageFormat, +1 more.
get_install_guideBRead-onlyIdempotent
Get installation instructions for ComfyUI (recommends desktop app for most users)
Inputs: platform.
get_model_guideARead-onlyIdempotent
Get guidance on downloading and installing models for ComfyUI
Inputs: modelType.
get_node_infoARead-onlyIdempotent
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.
Inputs: node (required).
get_notesBRead-onlyIdempotent
Retrieve saved notes, optionally filtered by topic.
Inputs: limit, topic.
get_prompting_guideARead-onlyIdempotent
Get prompting best practices for AI image generation models (SD1.5, SDXL, SD3, Flux)
Inputs: modelType.
get_queueARead-onlyIdempotent
Get the current ComfyUI queue status
Inputs: no named parameters.
get_statusBRead-onlyIdempotent
Get the current status of ComfyUI connection and installation
Inputs: no named parameters.
get_taskARead-onlyIdempotent
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.
Inputs: taskId (required).
get_task_resultBRead-onlyIdempotent
Get the result of a completed generation task (images)
Inputs: taskId (required).
get_templateARead-onlyIdempotent
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.
Inputs: templateId (required), parameters.
get_user_preferencesARead-onlyIdempotent
Get user preferences extracted from analyzing their ComfyUI output history. Returns commonly used workflows (as reusable templates), frequently used models, and preferred settings.
Inputs: modelLimit, includeModels, workflowLimit, includeSettings, +1 more.
interruptADestructiveIdempotent
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.
Inputs: no named parameters.
list_examplesARead-onlyIdempotent
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.
Inputs: category.
list_fontsARead-onlyIdempotent
List all downloaded fonts available for use in SVG rendering.
Inputs: no named parameters.
list_modelsBRead-onlyIdempotent
List available models (checkpoints, LoRAs, VAEs, etc.) in ComfyUI
Inputs: type.
list_nodesARead-onlyIdempotent
List available ComfyUI nodes, optionally filtered by category or search term
Inputs: search, category.
list_tasksARead-onlyIdempotent
List all generation tasks, optionally filtered by status
Inputs: status.
list_topicsARead-onlyIdempotent
List all unique topics that have notes.
Inputs: no named parameters.
name_generationAIdempotent
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').
Inputs: name (required), taskId (required).
recommend_workflowARead-onlyIdempotent
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.
Inputs: modelName (required), taskType, availableUnets, availableCheckpoints.
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.
Inputs: svg (required), fonts, width, height, +2 more.
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.
Inputs: workflow (required), name, sync, outputMode, +2 more.
save_noteA
Save a note about something learned during image generation. Useful for remembering model behaviors, prompting techniques, workflow patterns, etc.
Inputs: topic (required), content (required), tags.
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.
Inputs: id (required), name (required), workflow (required), description (required), +5 more.
search_notesBRead-onlyIdempotent
Search notes using full-text search.
Inputs: query (required), limit.
search_templatesARead-onlyIdempotent
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.
Inputs: limit, query, category, taskType, +4 more.
validate_workflowARead-onlyIdempotent
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.
Inputs: workflow (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
Generate images, videos and music with model discovery, cost estimates and asynchronous results.
Image and video AI tools and your own pipelines, run from any AI assistant.
Build and run visual creative-production workflows from your AI agent.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive ComfyUI workflow automation including image generation, workflow management, node discovery, and system monitoring through natural language interactions with local or remote ComfyUI servers.3161 PyPI14MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with local ComfyUI installations to list nodes, validate workflows, and execute image generation workflows directly without requiring an HTTP server.1MIT
- FlicenseBqualityDmaintenanceConnects AI assistants to ComfyUI for image, video, and audio generation, providing full control over ComfyUI through 40+ tools including quick generation, cloud API nodes, and custom workflow building.46-
- AlicenseBqualityCmaintenanceEnables discovery of ComfyUI nodes and building/managing workflows with real-time execution via WebSocket. Provides 50+ tools for node discovery, workflow building, template usage, model management, and batch/chain execution.6192 npm5MIT