joenorton/comfyui-mcp-server
lightweight Python-based MCP (Model Context Protocol) server for local ComfyUI
e0101b2312f3Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 4 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- MEDIUMTool
set_comfyui_output_rootreads or writes any file path by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
set_comfyui_output_rootcan read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
set_comfyui_output_root, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 16 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
_tool_impl, list_workflows, publish_asset, regenerate, run_workflow, set_defaults and 1 more_tool_impl, cancel_job, get_job, get_queue_status, regenerate, run_workflow and 1 more_tool_impl, get_defaults, run_workflowNo tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
self.base_url· _tool_impl, cancel_job, get_job +3
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
7 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files7 tools · _tool_impl, list_workflows, publish_asset +4
- web or API responses7 tools · _tool_impl, cancel_job, get_job +4
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (16: 16 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
set_comfyui_output_roottool Set ComfyUI output root directory in persistent configuration.Reads/writes files
Set ComfyUI output root directory in persistent configuration.
This tool configures the ComfyUI output directory once, and it will be remembered
across server restarts. Use this when auto-detection fails or you want explicit control.
The path is validated to ensure:
- It exists and is a directory
- It appears to be a ComfyUI output directory (contains ComfyUI_*.png files or output/temp subdirs)
Configuration is stored in a platform-specific location:
- Windows: %APPDATA%/comfyui-mcp-server/publish_config.json
- Mac: ~/Library/Application Support/comfyui-mcp-server/publish_config.json
- Linux: ~/.config/comfyui-mcp-server/publish_config.json
Args:
path: Absolute or relative path to ComfyUI output directory
(e.g., "E:/comfyui-desktop/output" or "/opt/ComfyUI/output")
Returns:
Dict with:
- success: True if configured successfully
- path: Resolved absolute path
- config_file: Path to config file where setting was saved
- message: Human-readable status message
- error: Error code if configuration failed_tool_impltool FilesNetworkEnv varsoutside text
No description.
cancel_jobtool Cancel a queued or running job.Networkoutside text
Cancel a queued or running job.
Allows the AI to cancel jobs that are no longer needed, providing
user control and resource management. Can cancel jobs that are
queued or currently running.
Args:
prompt_id: The prompt ID to cancel (from workflow submission)
Returns:
Dict with cancellation statusget_asset_metadatatool Get full metadata and provenance for a generated asset.
Get full metadata and provenance for a generated asset.
Returns comprehensive information about an asset including:
- Asset details (dimensions, size, type)
- Workflow and prompt information
- Full ComfyUI history snapshot (for provenance)
- Original submitted workflow (for regeneration context)
This provides iteration context - the AI can see what parameters
were used and potentially regenerate with modifications.
Args:
asset_id: Asset ID from generation tools or list_assets
Returns:
Dict with complete asset metadata, history, and workflow informationget_defaultstool Get current effective defaults for image, audio, and video generation.Env vars
Get current effective defaults for image, audio, and video generation.
Returns merged defaults from all sources (runtime, config, env, hardcoded).
Shows what values will be used when parameters are not explicitly provided.get_jobtool Get job status and history for a specific prompt ID.Networkoutside text
Get job status and history for a specific prompt ID.
Polls ComfyUI's /history/{prompt_id} endpoint to check if a job
has completed and retrieve its outputs. This is the primary
way to check job completion status.
Args:
prompt_id: The prompt ID returned from workflow submission
Returns:
Dict with:
- status: "completed", "running", "queued", "processing", "error", or "not_found"
- prompt_id: The prompt ID
- outputs: Output data if completed (same format as generation tools)
- error: Error information if the job failed
- history: Full ComfyUI history snapshot for this prompt
- message: Human-readable status messageget_publish_infotool Get publish configuration and status information.
Get publish configuration and status information.
This tool helps debug configuration issues and surfaces wrong assumptions
immediately. Call this first to verify publish setup before attempting to publish.
Returns:
Dict with:
- project_root: Detected project root (path and detection method: "cwd" | "auto-detected")
- publish_root: Publish directory (path, exists, writable)
- comfyui_output_root: ComfyUI output root (path or None, detection method, configured flag)
- comfyui_tried_paths: List of paths checked during detection with validation results
- config_file: Path to persistent config file
- status: "ready" | "needs_comfyui_root" | "error"
- message: Human-readable status/instructions
- warnings: List of warnings (e.g., "Using fallback project root detection")
- error_code: Machine-readable error code (if not ready)get_queue_statustool Get the current ComfyUI queue status.Networkoutside text
Get the current ComfyUI queue status.
Returns information about queued and running jobs, including:
- Currently running prompts
- Queued prompts waiting to execute
- Queue position and estimated wait times
This tool provides async awareness - the AI can check if a job
is still running or queued before polling for completion.
Returns:
Dict with 'queue_running' and 'queue_pending' lists, each containing
prompt IDs and associated metadata.list_assetstool List recently generated assets for AI memory and browsing.
List recently generated assets for AI memory and browsing.
Returns a list of assets that the AI can reference, view, or use
for iteration. This enables the AI to remember what it has generated
and make informed decisions about regeneration or modification.
Args:
limit: Maximum number of assets to return (default: 10)
workflow_id: Filter by workflow type (e.g., "generate_image", "generate_song")
session_id: Filter by conversation session (limits to current conversation)
Returns:
Dict with:
- assets: List of asset records with asset_id, asset_url, metadata
- count: Number of assets returned
- workflow_id_filter: Applied workflow filter (if any)
- session_id_filter: Applied session filter (if any)
Examples:
# Get 5 most recent assets
list_assets(limit=5)
# Get only images
list_assets(workflow_id="generate_image")
# Get assets from current conversation only
list_assets(session_id="current")
# Combine filters
list_assets(limit=3, workflow_id="generate_image", session_id="current")list_modelstool List all available checkpoint models in ComfyUI.
List all available checkpoint models in ComfyUI.
Returns a list of model names that can be used with generation tools.
This helps AI agents choose appropriate models for different use cases.list_workflowstool List all available workflows in the workflow directory.Filesoutside text
List all available workflows in the workflow directory.
Returns a catalog of workflows with their IDs, names, descriptions,
available inputs, and optional metadata.publish_assettool Publish a ComfyUI-generated asset to a web project directory.Filesoutside text
Publish a ComfyUI-generated asset to a web project directory.
Supports two modes:
- **Demo mode**: Provide `target_filename` (e.g., "hero.png") - deterministic filename
- **Library mode**: Omit `target_filename`, provide `manifest_key` - auto-generates filename
**Default behavior (web_optimize=False):**
- Assets are copied as-is, preserving original format (typically PNG from ComfyUI)
- No compression or format conversion
- Original quality preserved
**Web optimization (web_optimize=True):**
- Images are converted to WebP format
- Compression ladder applied to meet size limits
- Useful for web deployment where smaller file sizes are important
**Safety guarantees:**
- Only assets from current session can be published (asset_id must exist in registry)
- Source path must be within ComfyUI output root (validated with real path resolution)
- Target filename validated by strict regex (prevents path traversal)
- All paths are canonicalized to prevent symlink/traversal attacks
**Workflow:**
1. Agent calls `generate_image` → gets `asset_id`
2. Agent calls `list_assets(session_id=...)` to discover assets
3. Agent calls `publish_asset(asset_id, target_filename="hero.png")` (demo mode, no compression)
OR `publish_asset(asset_id, target_filename="hero.webp", web_optimize=True)` (with compression)
OR `publish_asset(asset_id, manifest_key="hero")` (library mode)
4. Server validates, copies (and compresses if web_optimize=True), and updates manifest.json
Args:
asset_id: Asset ID from generation tools (session-scoped, dies on restart)
target_filename: Optional target filename (e.g., "hero.png"). If omitted, auto-generated.
Must match regex: ^[a-z0-9][a-z0-9._-]{0,63}\.(webp|png|jpg|jpeg)$
manifest_key: Optional manifest key (required if target_filename omitted).
Must match regex: ^[a-z0-9][a-z0-9._-]{0,63}$
web_optimize: If True, convert to WebP and apply compression (default: False).
Only used for images. When False, assets are copied as-is preserving original format.
max_bytes: Maximum file size in bytes (default: 600000). Only used when web_optimize=True.
overwrite: Whether to overwrite existing file (default: True)
Returns:
Dict with published file info:
- dest_url: Relative URL (e.g., "/gen/hero.png")
- dest_path: Absolute path to published file
- bytes_size: File size in bytes
- mime_type: MIME type (e.g., "image/png" or "image/webp")
- width: Image width (if available)
- height: Image height (if available)
- compression_info: Compression details (only present if web_optimize=True and compression was applied)
Raises:
Error dict with "error" and "error_code" keys if:
- Asset not found or expired (ASSET_NOT_FOUND_OR_EXPIRED)
- Invalid target_filename format (INVALID_TARGET_FILENAME)
- manifest_key required but missing (MANIFEST_KEY_REQUIRED)
- Source path outside ComfyUI outputs (SOURCE_PATH_OUTSIDE_ROOT)
- Path traversal attempt detected (PATH_TRAVERSAL_DETECTED)
- Copy/compression operation fails (PUBLISH_FAILED)regeneratetool Regenerate an existing asset with optional parameter overrides.FilesNetworkoutside text
Regenerate an existing asset with optional parameter overrides.
Retrieves the original workflow and parameters from the asset's provenance
data, applies any overrides, and re-submits to ComfyUI.
Args:
asset_id: ID of the asset to regenerate
seed: New random seed (None = generate new random seed, -1 = use original seed)
return_inline_preview: If True, include a small thumbnail base64 in response
param_overrides: Dict of workflow parameters to override (e.g., {"steps": 30, "cfg": 8.0, "prompt": "new prompt"})
Returns:
dict: New asset information with same structure as generate_* tools
Examples:
# Regenerate with different seed
regenerate(asset_id="abc123")
# Regenerate with higher quality settings
regenerate(asset_id="abc123", param_overrides={"steps": 30, "cfg": 10.0})
# Modify the prompt
regenerate(asset_id="abc123", param_overrides={"prompt": "a beautiful sunset, oil painting style"})
# Use exact same parameters (deterministic)
regenerate(asset_id="abc123", seed=-1)run_workflowtool Run a saved ComfyUI workflow with constrained parameter overrides.FilesNetworkEnv varsoutside text
Run a saved ComfyUI workflow with constrained parameter overrides.
Args:
workflow_id: The workflow ID (filename stem, e.g., "generate_image")
overrides: Optional dict of parameter overrides (e.g., {"prompt": "a cat", "width": 1024})
options: Optional dict of execution options (reserved for future use)
return_inline_preview: If True, include a small thumbnail base64 in response (256px, ~100KB)
Returns:
Result with asset_url, workflow_id, and execution metadata. If return_inline_preview=True,
also includes inline_preview_base64 for immediate viewing.set_defaultstool Set runtime defaults for image, audio, and/or video generation.Filesoutside text
Set runtime defaults for image, audio, and/or video generation.
Args:
image: Optional dict of default values for image generation (e.g., {"model": "sd_xl_base_1.0.safetensors", "width": 1024})
audio: Optional dict of default values for audio generation (e.g., {"model": "ace_step_v1_3.5b.safetensors", "seconds": 30})
video: Optional dict of default values for video generation (e.g., {"model": "wan2.2_vae.safetensors", "width": 1280, "duration": 5})
persist: If True, write defaults to config file (~/.config/comfy-mcp/config.json). Otherwise, changes are ephemeral.
Returns:
Success status and any validation errors (e.g., invalid model names).view_imagetool View a generated image inline in chat (thumbnail preview only).FilesNetworkoutside text
View a generated image inline in chat (thumbnail preview only).
This tool allows the AI agent to view generated images inline in the chat interface,
enabling closed-loop iteration: generate → view → adjust → regenerate.
Only supports image assets (PNG, JPEG, WebP, GIF). For audio/video assets, use the
asset_url directly or implement separate viewing tools.
Args:
asset_id: Asset ID returned from generation tools (e.g., generate_image)
mode: Display mode - "thumb" (thumbnail preview, default) or "metadata" (info only)
max_dim: Maximum dimension in pixels (default: 512, hard cap)
max_b64_chars: Maximum base64 character count (default: 100000, ~100KB)
Returns:
MCP ImageContent structure for inline display, or metadata dict if mode="metadata"
or if image exceeds budget (refuse-inline branch).Text the model reads (16)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
view_image tool
View a generated image inline in chat (thumbnail preview only).
This tool allows the AI agent to view generated images inline in the chat interface,
enabling closed-loop iteration: generate → view → adjust → regenerate.
Only supports image assets (PNG, JPEG, WebP, GIF). For audio/video assets, use the
asset_url directly or implement separate viewing tools.
Args:
asset_id: Asset ID returned from generation tools (e.g., generate_image)
mode: Display mode - "thumb" (thumbnail preview, default) or "metadata" (info only)
max_dim: Maximum dimension in pixels (default: 512, hard cap)
max_b64_chars: Maximum base64 character count (default: 100000, ~100KB)
Returns:
MCP ImageContent structure for inline display, or metadata dict if mode="metadata"
or if image exceeds budget (refuse-inline branch).list_models tool
List all available checkpoint models in ComfyUI.
Returns a list of model names that can be used with generation tools.
This helps AI agents choose appropriate models for different use cases.get_defaults tool
Get current effective defaults for image, audio, and video generation.
Returns merged defaults from all sources (runtime, config, env, hardcoded).
Shows what values will be used when parameters are not explicitly provided.set_defaults tool
Set runtime defaults for image, audio, and/or video generation.
Args:
image: Optional dict of default values for image generation (e.g., {"model": "sd_xl_base_1.0.safetensors", "width": 1024})
audio: Optional dict of default values for audio generation (e.g., {"model": "ace_step_v1_3.5b.safetensors", "seconds": 30})
video: Optional dict of default values for video generation (e.g., {"model": "wan2.2_vae.safetensors", "width": 1280, "duration": 5})
persist: If True, write defaults to config file (~/.config/comfy-mcp/config.json). Otherwise, changes are ephemeral.
Returns:
Success status and any validation errors (e.g., invalid model names)._tool_impl tool
regenerate tool
Regenerate an existing asset with optional parameter overrides.
Retrieves the original workflow and parameters from the asset's provenance
data, applies any overrides, and re-submits to ComfyUI.
Args:
asset_id: ID of the asset to regenerate
seed: New random seed (None = generate new random seed, -1 = use original seed)
return_inline_preview: If True, include a small thumbnail base64 in response
param_overrides: Dict of workflow parameters to override (e.g., {"steps": 30, "cfg": 8.0, "prompt": "new prompt"})
Returns:
dict: New asset information with same structure as generate_* tools
Examples:
# Regenerate with different seed
regenerate(asset_id="abc123")
# Regenerate with higher quality settings
regenerate(asset_id="abc123", param_overrides={"steps": 30, "cfg": 10.0})
# Modify the prompt
regenerate(asset_id="abc123", param_overrides={"prompt": "a beautiful sunset, oil painting style"})
# Use exact same parameters (deterministic)
regenerate(asset_id="abc123", seed=-1)get_queue_status tool
Get the current ComfyUI queue status.
Returns information about queued and running jobs, including:
- Currently running prompts
- Queued prompts waiting to execute
- Queue position and estimated wait times
This tool provides async awareness - the AI can check if a job
is still running or queued before polling for completion.
Returns:
Dict with 'queue_running' and 'queue_pending' lists, each containing
prompt IDs and associated metadata.get_job tool
Get job status and history for a specific prompt ID.
Polls ComfyUI's /history/{prompt_id} endpoint to check if a job
has completed and retrieve its outputs. This is the primary
way to check job completion status.
Args:
prompt_id: The prompt ID returned from workflow submission
Returns:
Dict with:
- status: "completed", "running", "queued", "processing", "error", or "not_found"
- prompt_id: The prompt ID
- outputs: Output data if completed (same format as generation tools)
- error: Error information if the job failed
- history: Full ComfyUI history snapshot for this prompt
- message: Human-readable status messagelist_assets tool
List recently generated assets for AI memory and browsing.
Returns a list of assets that the AI can reference, view, or use
for iteration. This enables the AI to remember what it has generated
and make informed decisions about regeneration or modification.
Args:
limit: Maximum number of assets to return (default: 10)
workflow_id: Filter by workflow type (e.g., "generate_image", "generate_song")
session_id: Filter by conversation session (limits to current conversation)
Returns:
Dict with:
- assets: List of asset records with asset_id, asset_url, metadata
- count: Number of assets returned
- workflow_id_filter: Applied workflow filter (if any)
- session_id_filter: Applied session filter (if any)
Examples:
# Get 5 most recent assets
list_assets(limit=5)
# Get only images
list_assets(workflow_id="generate_image")
# Get assets from current conversation only
list_assets(session_id="current")
# Combine filters
list_assets(limit=3, workflow_id="generate_image", session_id="current")get_asset_metadata tool
Get full metadata and provenance for a generated asset.
Returns comprehensive information about an asset including:
- Asset details (dimensions, size, type)
- Workflow and prompt information
- Full ComfyUI history snapshot (for provenance)
- Original submitted workflow (for regeneration context)
This provides iteration context - the AI can see what parameters
were used and potentially regenerate with modifications.
Args:
asset_id: Asset ID from generation tools or list_assets
Returns:
Dict with complete asset metadata, history, and workflow informationcancel_job tool
Cancel a queued or running job.
Allows the AI to cancel jobs that are no longer needed, providing
user control and resource management. Can cancel jobs that are
queued or currently running.
Args:
prompt_id: The prompt ID to cancel (from workflow submission)
Returns:
Dict with cancellation statusget_publish_info tool
Get publish configuration and status information.
This tool helps debug configuration issues and surfaces wrong assumptions
immediately. Call this first to verify publish setup before attempting to publish.
Returns:
Dict with:
- project_root: Detected project root (path and detection method: "cwd" | "auto-detected")
- publish_root: Publish directory (path, exists, writable)
- comfyui_output_root: ComfyUI output root (path or None, detection method, configured flag)
- comfyui_tried_paths: List of paths checked during detection with validation results
- config_file: Path to persistent config file
- status: "ready" | "needs_comfyui_root" | "error"
- message: Human-readable status/instructions
- warnings: List of warnings (e.g., "Using fallback project root detection")
- error_code: Machine-readable error code (if not ready)set_comfyui_output_root tool
Set ComfyUI output root directory in persistent configuration.
This tool configures the ComfyUI output directory once, and it will be remembered
across server restarts. Use this when auto-detection fails or you want explicit control.
The path is validated to ensure:
- It exists and is a directory
- It appears to be a ComfyUI output directory (contains ComfyUI_*.png files or output/temp subdirs)
Configuration is stored in a platform-specific location:
- Windows: %APPDATA%/comfyui-mcp-server/publish_config.json
- Mac: ~/Library/Application Support/comfyui-mcp-server/publish_config.json
- Linux: ~/.config/comfyui-mcp-server/publish_config.json
Args:
path: Absolute or relative path to ComfyUI output directory
(e.g., "E:/comfyui-desktop/output" or "/opt/ComfyUI/output")
Returns:
Dict with:
- success: True if configured successfully
- path: Resolved absolute path
- config_file: Path to config file where setting was saved
- message: Human-readable status message
- error: Error code if configuration failedpublish_asset tool
Publish a ComfyUI-generated asset to a web project directory.
Supports two modes:
- **Demo mode**: Provide `target_filename` (e.g., "hero.png") - deterministic filename
- **Library mode**: Omit `target_filename`, provide `manifest_key` - auto-generates filename
**Default behavior (web_optimize=False):**
- Assets are copied as-is, preserving original format (typically PNG from ComfyUI)
- No compression or format conversion
- Original quality preserved
**Web optimization (web_optimize=True):**
- Images are converted to WebP format
- Compression ladder applied to meet size limits
- Useful for web deployment where smaller file sizes are important
**Safety guarantees:**
- Only assets from current session can be published (asset_id must exist in registry)
- Source path must be within ComfyUI output root (validated with real path resolution)
- Target filename validated by strict regex (prevents path traversal)
- All paths are canonicalized to prevent symlink/traversal attacks
**Workflow:**
1. Agent calls `generate_image` → gets `asset_id`
2. Agent calls `list_assets(session_id=...)` to discover assets
3. Agent calls `publish_asset(asset_id, target_filename="hero.png")` (demo mode, no compression)
OR `publish_asset(asset_id, target_filename="hero.webp", web_optimize=True)` (with compression)
OR `publish_asset(asset_id, manifest_key="hero")` (library mode)
4. Server validates, copies (and compresses if web_optimize=True), and updates manifest.json
Args:
asset_id: Asset ID from generation tools (session-scoped, dies on restart)
target_filename: Optional target filename (e.g., "hero.png"). If omitted, auto-generated.
Must match regex: ^[a-z0-9][a-z0-9._-]{0,63}\\.(webp|png|jpg|jpeg)$
manifest_key: Optional manifest key (required if target_filename omitted).
Must match regex: ^[a-z0-9][a-z0-9._-]{0,63}$
web_optimize: If True, convert to WebP and apply compression (default: False).
Only used for images. When False, assets are copied as-is preserving original format.
max_bytes: Maximum file size in bytes (default: 600000). Only used when web_optimize=True.
overwrite: Whether to overwrite existing file (default: True)
Returns:
Dict with published file info:
- dest_url: Relative URL (e.g., "/gen/hero.png")
- dest_path: Absolute path to published file
- bytes_size: File size in bytes
- mime_type: MIME type (e.g., "image/png" or "image/webp")
- width: Image width (if available)
- height: Image height (if available)
- compression_info: Compression details (only present if web_optimize=True and compression was applied)
Raises:
Error dict with "error" and "error_code" keys if:
- Asset not found or expired (ASSET_NOT_FOUND_OR_EXPIRED)
- Invalid target_filename format (INVALID_TARGET_FILENAME)
- manifest_key required but missing (MANIFEST_KEY_REQUIRED)
- Source path outside ComfyUI outputs (SOURCE_PATH_OUTSIDE_ROOT)
- Path traversal attempt detected (PATH_TRAVERSAL_DETECTED)
- Copy/compression operation fails (PUBLISH_FAILED)list_workflows tool
List all available workflows in the workflow directory.
Returns a catalog of workflows with their IDs, names, descriptions,
available inputs, and optional metadata.run_workflow tool
Run a saved ComfyUI workflow with constrained parameter overrides.
Args:
workflow_id: The workflow ID (filename stem, e.g., "generate_image")
overrides: Optional dict of parameter overrides (e.g., {"prompt": "a cat", "width": 1024})
options: Optional dict of execution options (reserved for future use)
return_inline_preview: If True, include a small thumbnail base64 in response (256px, ~100KB)
Returns:
Result with asset_url, workflow_id, and execution metadata. If return_inline_preview=True,
also includes inline_preview_base64 for immediate viewing.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path MEDIUM2 findings in set_comfyui_output_root
- Requests any addressNo tool sends a request to an address the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 16 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 16 capabilities; 14 more call code the scanner could not follow, where it may happen
- Tools that touch files7 of 16 capabilities touch files; 7 more call code the scanner could not follow, where it may happen
- Tools that call the network7 of 16 capabilities call the network; 7 more call code the scanner could not follow, where it may happen
Where the code is: 16 handlers in 6 files at commit e0101b2312f3
tools/asset.pyview_imagetools/configuration.pylist_models, get_defaults, set_defaultstools/generation.py_tool_impl, regeneratetools/job.pyget_queue_status, get_job, list_assets, get_asset_metadata, cancel_jobtools/publish.pyget_publish_info, set_comfyui_output_root, publish_assettools/workflow.pylist_workflows, run_workflow
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: requirements.txt: 4 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=0.9.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 16 capabilities; 14 more call code the scanner could not follow, where it may happen
- Environment variables3 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=0.9.0 |
| Servers in the code | 2 (ComfyUI_MCP_Server, test) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-02-17 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | Apache-2.0 |
| Created | 2025-03-05 |
| Topics | comfyui comfyui-api image-mcp local-data local-mcp mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.