Comfy-Guru
Comfy-Guru is an mcp that connects Claude Desktop to your comfyui logs - to squash those errors (peacefully)
GitHub Stars
4
User Rating
Not Rated
Forks
0
Issues
0
Views
0
Favorites
0

ComfyUI Log Debugger MCP Server (comfy-guru)
A Model Context Protocol (MCP) server that helps you debug ComfyUI by discovering and analyzing log files through Claude Desktop.
๐จ IMPORTANT: Tell Claude Where ComfyUI Is Located!
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
๐ Quick Installation (30 seconds)
For Users:
- Download comfy-guru.dxt (pre-built extension)
- Open Claude Desktop and go to: Settings โ Extensions
- Click "Install Extension..."
- Select the downloaded
comfy-guru.dxtfile - 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.
For Developers:
- To modify and rebuild the extension:
python build_extension.py - This creates a new
comfy-guru.dxtfrom source files
๐ฏ What It Does
- 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

๐ Example Commands in Claude Desktop
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"
๐ ๏ธ Installation Options
Option 1: Easy Install (Recommended)
python easy_install.py
Option 2: Docker Install
# Windows
docker-install.bat
# Linux/Mac/WSL
./docker-install.sh
Option 3: Manual Install
See INSTALL.md for manual configuration of Claude Desktop.
โ๏ธ Configuration
The installer creates a .env file. Edit it to add custom ComfyUI paths:
Adding ComfyUI Paths Manually
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
About Deep Search
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
How to Use Deep Search Temporarily
Enable deep search to find all installations:
COMFYUI_DEEP_SEARCH=trueRun 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_pathTurn deep search OFF again:
COMFYUI_DEEP_SEARCH=false
This way you get the benefit of discovery without the performance penalty!
๐งช Testing
# Test the installation
python test_installation.py
Expected output:
โ
All imports successful
โ
Found X ComfyUI installations
โ
Found Y log files
โ
Error detection working
๐ Project Structure
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
๐ง Troubleshooting
"comfy-guru not found" in Claude Desktop
- Restart Claude Desktop after installation
- Run the installer again (
install.bator./install.sh) - Check the config file manually (see INSTALL.md)
No logs found
- Edit
.envwith your ComfyUI paths - Make sure ComfyUI has been run at least once
- Try with
COMFYUI_DEEP_SEARCH=true
Permission errors
- Windows: Run as Administrator
- Linux/macOS: Check file permissions
- Docker: Ensure volumes are mounted with
:roflag
๐ฆ What Gets Analyzed
comfyui.log- Main log filecomfyui_8188.log- Port-specific logsdebug.log- Debug output*.prev,*.prev2- Rotated logs- Custom node logs
- Console output logs
๐ค Contributing
Pull requests welcome! Areas for improvement:
- More error patterns
- Additional log file locations
- Performance optimizations
- New analysis features
๐ License
MIT - Use freely!
Made with โค๏ธ for the ComfyUI community. If this helps you debug ComfyUI issues faster, give it a โญ!