A Model Context Protocol (MCP) server that provides comprehensive visual design analysis and critique capabilities. This server enables AI assistants to analyze design images for composition, color harmony, typography, and accessibility compliance.
- Comprehensive Design Critique: Analyzes overall design quality with actionable recommendations
- Color Analysis: Extracts color palettes, analyzes harmony, and checks contrast ratios
- Composition Analysis: Evaluates visual balance, grid alignment, and layout structure
- Typography Analysis: Assesses font hierarchy, readability, and consistency
- Accessibility Compliance: WCAG 2.1 compliance checking with color blindness simulation
- Multi-Format Support: Works with web, mobile, print, and general design formats
- Real-time Analysis: Fast image processing with optimized algorithms
- Node.js 18 or later
- npm or yarn package manager
- Canvas dependencies (automatically installed)
Note: After installation, update the file path to your actual installation directory.
- Clone the repository:
git clone https://github.com/haasonsaas/design-critique-mcp.git
cd design-critique-mcp- Install dependencies:
npm install- Build the project:
npm run buildAdd to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"design-critique": {
"command": "node",
"args": ["/path/to/design-critique-mcp/dist/index.js"]
}
}
}Provides comprehensive design critique with visual analysis including composition, color harmony, typography, and accessibility.
Parameters:
image_data(required): Base64 encoded image datadesign_type: Type of design -"web","mobile","print", or"general"(default:"web")target_audience: Target audience description (optional)brand_guidelines: Brand guidelines object (optional)colors: Array of brand colors in hex formatfonts: Array of brand font names
Returns: Comprehensive analysis including:
- Overall score (0-100)
- Composition analysis with balance and grid alignment
- Color analysis with harmony score and palette
- Typography assessment with hierarchy and readability scores
- Accessibility report with WCAG compliance
- Actionable recommendations
Analyzes color palette and harmony in a design.
Parameters:
image_data(required): Base64 encoded image data
Returns:
- Dominant colors with hex codes
- Color harmony analysis
- Contrast issues
- Color relationships (complementary, analogous, etc.)
Analyzes visual composition and layout structure.
Parameters:
image_data(required): Base64 encoded image datadesign_type: Type of design -"web","mobile","print", or"general"(default:"web")
Returns:
- Layout score (0-100)
- Balance assessment (symmetrical/asymmetrical)
- Grid alignment detection
- Visual hierarchy analysis
- White space evaluation
Analyzes typography hierarchy, readability, and font usage.
Parameters:
image_data(required): Base64 encoded image data
Returns:
- Font count and families detected
- Hierarchy score (0-100)
- Readability score (0-100)
- Typography issues and recommendations
Analyzes design accessibility including contrast, color blindness, and WCAG compliance.
Parameters:
image_data(required): Base64 encoded image data
Returns:
- Accessibility score (0-100)
- Contrast ratio checks
- Color blindness simulation results
- WCAG compliance issues
- Accessibility recommendations
Checks contrast ratio between two specific colors.
Parameters:
foreground(required): Foreground color in hex format (e.g., "#000000")background(required): Background color in hex format (e.g., "#ffffff")
Returns:
- Contrast ratio
- WCAG AA compliance (pass/fail)
- WCAG AAA compliance (pass/fail)
- Recommended use cases
// In Claude Desktop
const result = await critique_design({
image_data: "base64_encoded_image_data_here",
design_type: "web",
target_audience: "Young professionals aged 25-35"
});const contrast = await check_color_contrast({
foreground: "#333333",
background: "#f0f0f0"
});
// Returns: { ratio: 11.2, passes_aa: true, passes_aaa: true }const analysis = await critique_design({
image_data: "base64_encoded_image_data",
design_type: "mobile",
brand_guidelines: {
colors: ["#FF5722", "#00BCD4", "#FFC107"],
fonts: ["Roboto", "Open Sans"]
}
});- Automated design quality assessment
- Consistency checking across design systems
- Pre-launch design validation
- WCAG compliance verification
- Color contrast validation
- Color blindness impact assessment
- Learning design principles through AI feedback
- Understanding composition and color theory
- Improving typography choices
- Checking designs against brand guidelines
- Ensuring consistent visual language
- Validating color palette usage
# Run in development mode
npm run dev
# Run tests
npm test
# Lint code
npm run lint
# Type check
npm run typecheckThe server uses a modular architecture with specialized analyzers:
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ MCP Client │────▶│ Design Analysis │────▶│ Analyzers │
│ (Claude) │ │ Server │ │ - Color │
│ │◀────│ │ │ - Composition │
└─────────────────┘ └──────────────────┘ │ - Typography │
│ - Accessibility│
└─────────────────┘
- Supports common image formats (PNG, JPEG, WebP)
- Automatic image optimization for faster processing
- Maximum image size: 10MB
- Recommended resolution: 1920x1080 for web designs
- Average analysis time: 2-5 seconds per image
- Concurrent request handling
- Memory-efficient image processing
- Caching for repeated analyses
- Ensure the image is properly base64 encoded
- Check that the image format is supported
- Verify the image size is under 10MB
- Run
npm install canvasto install native dependencies - On macOS: May need to install Cairo graphics library
- On Linux: Install required system dependencies
- Large images may take longer to process
- Consider resizing images before analysis
- Check system resources (CPU/memory)
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
Jonathan Haas - GitHub Profile
- Built for integration with Anthropic's Claude via MCP
- Uses sharp for image processing
- Powered by chroma-js for color analysis
- Typography detection with Tesseract.js
- Accessibility standards from WCAG 2.1
If you encounter any issues or have questions:
- Open an issue on GitHub Issues
- Review the troubleshooting section above
- Check the MCP documentation