A Model Context Protocol (MCP) server that helps you debug ComfyUI by discovering and analyzing log files through Claude Desktop.
If ComfyUI isn't found automatically, just tell Claude in chat:
"My ComfyUI is at D:\MY PROJECTS\AI\STABLE DIFFUSION UI\ComfyUI"
Or configure it permanently - see Setup Guide
- Download comfy-guru.dxt (pre-built extension)
- Open Claude Desktop and go to: Settings β Extensions
- Click "Install Extension..."
- Select the downloaded
comfy-guru.dxt
file - Done! No git clone, no Python setup needed!
Note: Don't double-click the .dxt file - install it through Claude Desktop's settings.
Important: After installation, fully restart Claude Desktop for the MCP extension to work properly.
- To modify and rebuild the extension:
python build_extension.py
- This creates a new
comfy-guru.dxt
from source files
- Finds all your ComfyUI installations automatically
- Discovers log files (including rotated logs, port-specific logs, debug logs)
- Analyzes errors and categorizes them (CUDA, Node execution, Dependencies, etc.)
- Monitors logs in real-time for new errors
- Works everywhere - Windows, macOS, Linux, Docker
Once installed, just ask Claude:
- π "Find all my ComfyUI log files"
- π "Check my ComfyUI logs for CUDA memory errors"
- π "What errors happened in the last 30 minutes?"
- π "Monitor my ComfyUI log for new errors"
- π§ "Analyze my ComfyUI workflow execution errors"
python easy_install.py
# Windows
docker-install.bat
# Linux/Mac/WSL
./docker-install.sh
See INSTALL.md for manual configuration of Claude Desktop.
The installer creates a .env
file. Edit it to add custom ComfyUI paths:
Edit the .env
file and add paths separated by commas:
# Your ComfyUI installations (comma-separated)
COMFYUI_PATHS=C:\ComfyUI,D:\MY PROJECTS\AI\ComfyUI,E:\Another\ComfyUI
# Search directories (only used if deep search is enabled)
COMFYUI_SEARCH_DIRS=C:\,D:\,E:\
# Deep search is OFF by default for performance
COMFYUI_DEEP_SEARCH=false
Deep search is OFF by default because:
- β Manual paths are found instantly (< 1 second)
- β Deep search can take 30-100+ seconds
- β Can cause permission errors on system folders
-
Enable deep search to find all installations:
COMFYUI_DEEP_SEARCH=true
-
Run the discovery in Claude Desktop:
"Find all my ComfyUI installations"
-
Note the paths it finds
-
Add them to COMFYUI_PATHS manually:
COMFYUI_PATHS=path1,path2,path3,newly_found_path
-
Turn deep search OFF again:
COMFYUI_DEEP_SEARCH=false
This way you get the benefit of discovery without the performance penalty!
# Test the installation
python test_installation.py
Expected output:
β
All imports successful
β
Found X ComfyUI installations
β
Found Y log files
β
Error detection working
comfy-guru/
βββ src/ # Core source files
β βββ standalone_mcp_server.py
β βββ debugger_server.py
β βββ smart_log_discovery.py
β βββ error_patterns.json
βββ docs/ # Documentation
βββ examples/ # Example files
βββ scripts/ # Helper scripts
βββ easy_install.py # Easy installer
βββ install.py # Standard installer
βββ test_installation.py # Test suite
βββ requirements.txt # Dependencies
- Restart Claude Desktop after installation
- Run the installer again (
install.bat
or./install.sh
) - Check the config file manually (see INSTALL.md)
- Edit
.env
with your ComfyUI paths - Make sure ComfyUI has been run at least once
- Try with
COMFYUI_DEEP_SEARCH=true
- Windows: Run as Administrator
- Linux/macOS: Check file permissions
- Docker: Ensure volumes are mounted with
:ro
flag
comfyui.log
- Main log filecomfyui_8188.log
- Port-specific logsdebug.log
- Debug output*.prev
,*.prev2
- Rotated logs- Custom node logs
- Console output logs
Pull requests welcome! Areas for improvement:
- More error patterns
- Additional log file locations
- Performance optimizations
- New analysis features
MIT - Use freely!
Made with β€οΈ for the ComfyUI community. If this helps you debug ComfyUI issues faster, give it a β!