ximagemcp
v1.0.24
Published
MCP server for image processing including resizing, blurHash generation, and mobile icon creation
Readme
xImageMCP
A simple image processing tool for Cursor and other MCP-compatible editors. This tool allows you to resize images and generate various image formats for different platforms.
Quick Start with Cursor
The easiest way to use this tool is with npx in Cursor:
- Open Cursor settings
- Navigate to Developer > Edit Config
- Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"ximagemcp": {
"command": "npx",
"args": ["-y", "ximagemcp"]
}
}
}- Restart Cursor
That's it! No need to clone or install anything. The tool will be downloaded and run automatically when needed.
Features
Basic Resize
- Resize images by scale factor (0.1 to 10x)
- Maintains aspect ratio automatically
- Generates output filename with '_resized' suffix if not specified
- Returns original and new dimensions
Resize to Dimensions
- Resize images to specific width and/or height
- Maintains aspect ratio if only one dimension is provided
- Perfect for responsive design and specific layout requirements
- Returns original and new dimensions
Image Information
- Get detailed information about any image
- View dimensions, format, color space, and file metadata
- Useful for debugging and understanding image properties
Retina Images
- Generate @1x, @2x, and @3x versions of an image
- Perfect for iOS/macOS development
- Maintains aspect ratio
- Creates appropriately named files
Mobile App Icons
- Generate all required icon sizes for iOS and Android
- iOS: 20px to 1024px (13 sizes)
- Android: 48px to 512px (6 sizes)
- Square format for app stores
- Platform-specific naming
BlurHash Generation
- Generate blurHash strings from local images or URLs
- Perfect for progressive image loading and placeholders
- Customizable component count for quality vs size tradeoff
- Works with both local files and remote URLs
Example Usage
Basic Resize
Resize this image to 50% of its original sizeor
Resize this image with a scale of 2Resize to Dimensions
Resize this image to width 800pxor
Resize this image to height 600pxor
Resize this image to 800x600 pixelsGet Image Information
Get information about this imageor
What are the dimensions of this image?Generate Retina Images
Generate retina versions of this imageGenerate Mobile Icons
Generate mobile app icons for iOS and Androidor
Generate only iOS app iconsGenerate BlurHash
Generate a blurHash for this imageor
Generate a blurHash from this URL: https://example.com/image.jpgDevelopment
If you're developing the tool:
# Install dependencies
npm install
# Build
npm run build
# Test with MCP Inspector
npx @modelcontextprotocol/inspector build/index.jsRequirements
- Node.js 16 or higher
- Sharp image processing library
- MCP-compatible editor (like Cursor)
