Image Processor MCP Server
This MCP server provides tools for image processing and uploading to Vercel Blob storage. It allows you to:
Optimize and resize images (from local files or URLs)
Convert images to WebP format
Upload both versions to Vercel Blob storage
Features
Image Optimization: Resize and optimize images for better performance
WebP Conversion: Convert images to the WebP format for smaller file sizes
Vercel Blob Integration: Automatically upload processed images to Vercel Blob storage
Customizable Dimensions: Specify custom dimensions for image resizing
URL Support: Process images from external URLs
Related MCP server: Cloudinary MCP Server
Installation
The server is already installed and configured in the MCP settings file. It uses the Vercel Blob token from your environment variables.
Usage
You can use the MCP server in Claude by using the use_mcp_tool function:
For Local Images
For Images from URLs
Parameters for Local Images
imagePath(required): Path to the image file to processnewName(required): New name for the processed image (without extension)width(optional): Width to resize the image to (default: 550)height(optional): Height to resize the image to (default: 300)
Parameters for URL Images
imageUrl(required): URL of the image to processnewName(required): New name for the processed image (without extension)width(optional): Width to resize the image to (default: 550)height(optional): Height to resize the image to (default: 300)
Response
The server will return a JSON response with the following structure:
Implementation Details
The server uses:
Sharp: For image processing and optimization
@vercel/blob: For uploading to Vercel Blob storage
fs-extra: For file system operations
Examples
Example 1: Processing a Local Image
Example 2: Processing an Image from URL
Both examples will:
Take the image (from local path or URL)
Optimize and resize it to 550x300 pixels
Create a PNG version with "_small" suffix
Create a WebP version
Upload both to Vercel Blob
Return the URLs of the uploaded images