Skip to main content
Glama

Enhanced Image Analysis MCP Server

by 2squirrelsai
SETUP_COMPLETE.md•6.12 kB
# šŸŽÆ Enhanced Image Analysis MCP Server - Complete Setup ## āœ… COMPLETED TASKS ### 1. āœ… Enhanced MCP Server Creation - **Location**: `/Users/anthonyturner/MCPs/image-analysis-server/` - **Main Server**: `enhanced_image_analysis_server.py` - **Features Implemented**: - šŸŽØ Advanced color analysis (dominant colors, color families, brightness) - šŸ“ Orientation detection (landscape, portrait, square) - šŸ” EXIF data extraction (camera info, timestamps, software) - šŸ“Š File size and resolution categorization - 🧠 Smart filename pattern recognition - šŸŽŖ 4 naming styles: descriptive, technical, artistic, location ### 2. āœ… Four Powerful MCP Tools 1. **`ai_analyze_directory_images`** - Batch analyze and rename images - Recursive directory scanning - Multiple naming styles - Conflict resolution - Dry-run and actual renaming modes 2. **`ai_analyze_single_image`** - Single image analysis - Detailed analysis mode - Multiple naming styles - Comprehensive visual insights 3. **`extract_comprehensive_metadata`** - Full metadata extraction - EXIF data parsing - Color palette analysis - File system metadata - JSON formatted output 4. **`organize_images_by_content`** - Smart folder organization - Content-based sorting - Date-based organization - Size and format categorization - Preview and execution modes ### 3. āœ… Smart Analysis Features - **Color Intelligence**: RGB analysis, color family classification, brightness calculation - **Content Detection**: Screenshots, photos, edited images, scans, logos, diagrams - **Camera Data**: EXIF parsing for camera make/model, software, timestamps - **Size Classification**: Huge (>8MP), Large (>2MP), Medium (>0.5MP), Small - **Pattern Recognition**: Filename analysis for content hints ### 4. āœ… Claude Desktop Integration - **Configuration Updated**: `/Users/anthonyturner/Library/Application Support/Claude/claude_desktop_config.json` - **Server Added**: Ready to use in Claude Desktop - **Backup Created**: Original config preserved ### 5. āœ… Documentation & Setup - **README.md**: Comprehensive documentation with examples - **setup.sh**: Automated installation script - **requirements.txt**: Python dependencies - **Demo scripts**: `demo.py` and `test_server.py` ## šŸš€ HOW TO USE ### In Claude Desktop (After Restart) You can now use these commands directly in Claude Desktop: ``` Analyze all images in my Pictures folder and suggest better names using descriptive style ``` ``` Organize images in ~/Desktop by content and actually create the folders ``` ``` Extract comprehensive metadata from /path/to/image.jpg including color analysis ``` ``` Analyze ~/Pictures/vacation2024 recursively with prefix "hawaii" and rename files ``` ### Example Workflows #### 1. Clean Up Screenshot Folder ``` I have messy screenshots on my Desktop. Can you organize them and suggest better names? ``` #### 2. Rename Vacation Photos ``` Analyze images in ~/Pictures/Hawaii2024, use artistic naming style with prefix "vacation", and rename the files ``` #### 3. Technical Analysis ``` Extract comprehensive metadata from my camera photos including EXIF data ``` #### 4. Batch Organization ``` Organize all images in Downloads by content type and move them to appropriate folders ``` ## šŸ“Š NAMING EXAMPLES Your images will be renamed using intelligent analysis: ### Before → After (Descriptive Style) - `IMG_1234.jpg` → `green_landscape_photo.jpg` - `Screenshot 2025-01-01.png` → `screenshot.png` - `download (1).jpg` → `blue_portrait_photo.jpg` - `DSC_0001.jpg` → `red_landscape_camera.jpg` ### Naming Styles Available - **Descriptive**: `red_landscape_photo.jpg` - **Technical**: `large_res_landscape_camera.jpg` - **Artistic**: `red_bright_photo.jpg` - **Location**: `dated_landscape.jpg` ## šŸŽØ ANALYSIS CAPABILITIES ### Color Analysis - Dominant color detection - Color family classification (red, blue, green, etc.) - Brightness calculation (0.0-1.0) - Grayscale detection - Top 5 color palette with percentages ### Content Detection - Screenshots and screen captures - Camera photos vs. digital images - Edited/processed images - Scanned documents - Logos and diagrams - Avatar/profile photos ### Technical Metadata - Image dimensions and aspect ratios - File sizes and compression - EXIF data (camera settings, timestamps) - Creation and modification dates - Color modes and formats ## šŸ›”ļø SAFETY FEATURES - **Preview Mode**: Shows suggested names without making changes - **Conflict Resolution**: Handles duplicate filenames automatically - **Error Handling**: Gracefully handles corrupted or unsupported files - **Backup Friendly**: Non-destructive by default - **Format Validation**: Only processes supported image formats ## šŸ“ FILE STRUCTURE ``` /Users/anthonyturner/MCPs/image-analysis-server/ ā”œā”€ā”€ enhanced_image_analysis_server.py # Main MCP server ā”œā”€ā”€ requirements.txt # Dependencies ā”œā”€ā”€ setup.sh # Installation script ā”œā”€ā”€ README.md # Documentation ā”œā”€ā”€ demo.py # Demonstration script ā”œā”€ā”€ test_server.py # Test script └── claude_desktop_config.json # Config template ``` ## šŸ”§ SUPPORTED FORMATS - JPEG (.jpg, .jpeg) - PNG (.png) - GIF (.gif) - BMP (.bmp) - TIFF (.tiff) - WebP (.webp) ## šŸ’” TIPS FOR BEST RESULTS 1. **Use Descriptive Style** for general photo organization 2. **Use Technical Style** for professional/work images 3. **Use Artistic Style** for creative photo collections 4. **Always Preview First** - use default settings to see suggestions 5. **Backup Important Collections** before batch renaming 6. **Use Prefixes** for event-specific organization ## šŸŽ‰ SUCCESS! Your Enhanced Image Analysis MCP Server is now fully operational and integrated with Claude Desktop! **Restart Claude Desktop** to start using the powerful image analysis tools. --- *Server Version: 2.0.0* *Created: $(date)* *Status: āœ… Ready for Production Use*

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/2squirrelsai/local-mcp-image-analysis-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server