mcp_images
This server provides a suite of image manipulation tools via MCP, with 25+ tools covering core operations, drawing, filtering, transformations, metadata, and advanced analysis. Tools include:
Core Operations: raster_info (metadata), raster_convert (format conversion), raster_resize, raster_crop, raster_rotate, raster_adjust (brightness, contrast, etc.).
Drawing & Graphics: raster_text (overlay text), raster_draw (shapes).
Filtering: raster_filter (blur, sharpen, etc.), raster_enhance (auto-enhance).
Transformations: raster_perspective, raster_morphology, raster_balance, raster_padding, raster_channels.
Metadata & Compression: raster_exif, raster_colorspace, raster_blend, raster_compress.
Advanced Analysis: raster_diff (SSIM), raster_histogram, raster_edge (Canny), raster_qr (decoding), raster_bgremove.
Backend: Pillow (default) or ImageMagick for extended formats and advanced filters.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp_images Resize the image to 800x600"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp_images
MCP server for raster image manipulation — Pillow + OpenCV. 25 tools across draw, filter, transform, metadata, and analysis categories.
Requires pi-mcp-bridge to connect to pi.
Installation
# Base install (Pillow + ImageMagick/Wand)
pip install git+https://github.com/timaliev/mcp_images.git
# Or via uv:
uv tool install git+https://github.com/timaliev/mcp_images.gitOptional dependencies
Extra | Packages | Tools enabled |
| scikit-image, pyzbar, rembg |
|
# With analysis extras:
pip install "git+https://github.com/timaliev/mcp_images.git#egg=mcp-images[analysis]"
# Or via uv:
uv tool install "git+https://github.com/timaliev/mcp_images.git#egg=mcp-images[analysis]"ImageMagick must be installed separately via system package manager:
brew install imagemagick # macOS
apt install imagemagick # Debian/UbuntuRelated MCP server: Image Processor MCP Server
Configuration
With pi-mcp-bridge
First install pi-mcp-bridge:
pi add mcp-bridge
# or manually:
# git clone https://github.com/timaliev/pi-mcp-bridge ~/.pi/agent/extensions/pi-mcp-bridgeThen configure mcp-images in ~/.pi/agent/settings.json:
{
"mcpBridge": {
"servers": [
{
"name": "raster",
"command": "mcp-images",
"args": [],
"setupCommands": [
"uv tool install --force --python 3.11 \"mcp-images[analysis] @ git+https://github.com/timaliev/mcp_images.git\""
]
}
]
}
}Standalone MCP client
In ~/.mcp.json:
{
"mcpServers": {
"raster": {
"command": "mcp-images",
"args": []
}
}
}Backends
Core tools accept an optional backend parameter ("pillow" or "magick").
Backend | Library | Strengths |
| Pillow + OpenCV | Fast, simple, no extra deps |
| Wand / ImageMagick | HEIC/AVIF/GIF, 40+ resize filters, industry-standard unsharp mask |
# Use ImageMagick for HEIC conversion
raster_convert(path, "heic", backend="magick")
# Mitchell filter resize via ImageMagick
raster_resize(path, width=800, backend="magick")
# Back to Pillow for speed
raster_crop(path, 10, 10, 100, 100, backend="pillow")Tools (25 total)
Core
Tool | Description |
| Image metadata: dimensions, format, mode, DPI, file size |
| Convert format (png, jpeg, webp, tiff, bmp). Use |
| Resize by dimensions, scale, or fit mode |
| Crop to rectangle |
| Rotate by degrees |
| Brightness, contrast, saturation, sharpness, gamma |
Draw
Tool | Description |
| Overlay text with font size and color |
| Draw shapes: rect, circle, line, arrow |
Filters
Tool | Description |
| Blur, sharpen, denoise, grayscale, invert, threshold. Use |
| Auto-enhance: contrast, color, sharpness, all |
Transform
Tool | Description |
| 4-point perspective correction |
| Morphological ops: dilate, erode, open, close |
| Auto balance: equalize, autocontrast, auto white |
| Add border/margin with fill color |
| Channel ops: extract, swap, reorder |
| Compress: quality control, metadata stripping |
Metadata
Tool | Description |
| Extract EXIF metadata as dict |
| Convert: RGB, HSV, LAB, grayscale |
| Alpha-blend two images |
| Find contours with OpenCV, draw on output |
Analysis (requires pip install mcp-images[analysis])
Tool | Description |
| SSIM structural similarity between two images |
| Channel histogram (R/G/B/all) |
| Canny edge detection |
| Decode QR codes and barcodes |
| Remove background (returns RGBA) |
Development
git clone https://github.com/timaliev/mcp_images.git
cd mcp_images
uv run pytestAvailable Tools
8 toolsraster_adjustC
Adjust image properties. Values: 1.0 = no change, >1.0 = increase, <1.0 = decrease.
Inputs: path (required), gamma, output, contrast, +3 more.
raster_convertC
Convert image to another format (png, jpeg, webp, tiff, bmp).
Inputs: path (required), format (required), output, quality.
raster_cropA
Crop image to the specified rectangle (inclusive pixel coordinates).
Inputs: top (required), left (required), path (required), right (required), +2 more.
raster_enhanceC
Auto-enhance image. mode: contrast, color, sharpness, or all.
Inputs: path (required), mode, factor, output.
raster_filterB
Apply a named filter. Supported: blur, gaussian_blur, median, sharpen, edge_enhance, denoise, grayscale, invert, threshold.
Inputs: path (required), filter (required), output, radius, +1 more.
raster_infoA
Return image metadata: dimensions, format, mode, DPI, file size.
Inputs: path (required).
raster_resizeB
Resize image. Provide width/height, scale factor, or fit mode (cover/contain/fill).
Inputs: path (required), fit, scale, width, +2 more.
raster_rotateB
Rotate image by degrees. expand=True enlarges canvas to fit.
Inputs: path (required), degrees (required), expand, output.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool handles a distinct operation (metadata, conversion, resizing, cropping, rotation, adjustment, filtering, enhancement) with no functional overlap. Descriptions clearly differentiate the actions.
All tools follow the consistent raster_ prefix followed by a verb (convert, resize, crop, rotate, adjust, filter, enhance) or a noun (info). The pattern is uniform and predictable.
Eight tools cover a comprehensive set of image operations without being excessive. Each tool serves a clear purpose, and the count is well-scoped for an image manipulation server.
The toolset covers the core lifecycle of raster image manipulation: reading metadata, converting formats, geometric transformations, color adjustments, and enhancement. No major gaps are apparent for typical image editing workflows.
Maintenance
Related MCP Connectors
Image processing over MCP: compress and split images, generate images and QR codes.
MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.
Hosted MCP server for AI photo editing: nothing to install, no desktop photo editor needed.
Generate and edit images and generate videos with Nanobananana's remote MCP server.
1
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server providing tools for image processing operations340PythonMIT
- FlicenseNot gradedqualityDmaintenanceA powerful Model Context Protocol (MCP) server for image processing, designed to empower AI models with advanced image manipulation capabilities.1-
- AlicenseAqualityDmaintenanceLocal image processing MCP server providing background removal, stock media search, resize, format conversion, and collage creation.5MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for generating and editing images using gpt-image-2. Enables image creation, editing, listing, and retrieval via natural language tools.-