picture-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory allowed for reading and writing files. Can be specified multiple times to allow additional folders. Recommended to sandbox file access; without it the server can read and write any path. | |
| max-pixels | No | Maximum allowed megapixels (frames included) before refusing to decode an image. Default is 100. Individual tool calls can override this with allow_huge=true. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Everyday image jobs by intent, with Pillow only (no system tools). Start with image_info to see what a file is (size, format, animation, whether it carries a GPS location). Then resize, convert, compress (to a target size like '200KB'), strip_metadata (remove GPS/EXIF before sharing), rotate_flip, crop, make_icons (favicon set / .ico), palette (dominant colors), contact_sheet (many images -> one labelled picture to review at a glance) and batch (any of those over a folder or glob; it dry-runs by default). Outputs are written next to the input as photo.resized.jpg and never overwrite anything unless overwrite=true. EXIF orientation is always applied first, so sizes and crops refer to what a viewer shows. Pass preview=true to get a small thumbnail of the result back so you can look at it.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| image_infoA | Describe an image file: format, pixel size, mode, transparency, DPI, file size, animation (frame count and duration), EXIF summary (camera, date, software), whether it contains a GPS location (and where), EXIF orientation, and whether the file is corrupt or truncated. Reads headers and verifies the file decodes, so it is the right first call for any image. preview=true also returns a small thumbnail. |
| resizeA | Resize an image. Give width and/or height (pixels) or percent. One side only: the other follows the aspect ratio. Both sides, by mode: fit (default) = largest size inside the box, keeps aspect ratio; fill = cover the box and center-crop the overflow (thumbnails, avatars); exact = stretch to exactly width x height. Never enlarges unless allow_upscale=true (a too-large request keeps the original size and says so). Output goes to photo.resized.jpg next to the input unless output= is given (its extension picks the format, so output='x.webp' resizes and converts). Animated GIF/WebP keep every frame. quality (1-100) applies to JPEG/WebP/AVIF output. keep_metadata=false drops EXIF (including GPS). Existing files are never replaced unless overwrite=true. allow_huge=true lifts the decompression-bomb limit (default 100 MP). |
| convertA | Convert an image to another format: png, jpg, webp, gif, bmp, tiff, ico, and avif / heic when this install supports them (an error says so if not). Transparency going to jpg or bmp is flattened onto |
| compressA | Make an image file smaller. target_size='200KB' (or '1.5MB', or bytes): finds the highest quality that still fits, by searching (jpg/webp/avif) and tells you the result. If even min_quality cannot fit, it fails and says what is achievable, unless allow_downscale=true, which then shrinks the pixel dimensions step by step (reported). PNG is lossless: it is re-optimised, and lossy_png=true allows palette reduction (256 -> 16 colors) to reach a target. Without a target: quality=1-100, or preset high (88) / balanced (78) / small (60). format='webp' (or jpg/png) converts while compressing, e.g. a photo PNG to WebP. Output goes to photo.compressed.jpg unless output= is given; never overwrites unless overwrite=true. Warns if the result is not smaller than the input. |
| strip_metadataA | Remove private metadata (GPS location, camera make/model/serial, dates, software, XMP, IPTC, comments, trailing embedded data) so a photo can be shared safely. Reports exactly what was found and removed, then re-reads the output to verify it is clean. JPEGs are stripped losslessly (pixel data copied byte for byte). With
keep_orientation=true (default) a bare Orientation tag is kept so the photo still shows
upright; keep_orientation=false bakes the rotation into the pixels (re-encodes at
|
| rotate_flipA | Rotate clockwise by EXIF orientation is always applied first, so degrees=0 with no flip simply fixes a photo that shows sideways in some viewers (auto-orient) and removes the stale tag. Output: photo.rotated.jpg unless output= is given; never overwrites unless overwrite=true. |
| cropA | Crop an image. Pick exactly one mode: box=[left, top, right, bottom] in pixels of the upright image; aspect='16:9' (or '1:1', '4:5') for the largest region with that ratio; width= and height= for a window of exactly that size. For aspect and width/height, gravity picks where the region sits: center (default), top, bottom, left, right, top-left, top-right, bottom-left, bottom-right. Out-of-range boxes are an error, not silently clipped. Output: photo.cropped.jpg unless output= is given; never overwrites unless overwrite=true. |
| contact_sheetA | Combine many images into ONE labelled grid so you can review them at a glance. paths takes files, folders (their images, not recursive) and globs like 'D:/shots/**/*.png'. Each thumbnail is labelled with its file name; unreadable files get a red UNREADABLE tile and are listed. Output defaults to contact-sheet.jpg in the first image's folder (never overwrites unless overwrite=true). preview defaults to true here: the sheet itself is returned as an image. |
| make_iconsA | Make icons from a logo/image. kind='favicon_set' (default) writes favicon.ico
(16/32/48), favicon-16x16.png, favicon-32x32.png, apple-touch-icon.png (180, flattened
onto |
| paletteB | Dominant colors of an image as hex codes with their share of the picture (most common first). Transparent pixels are ignored. count is 1-16. preview=true returns a swatch strip. |
| batchA | Apply one operation to many files and get a per-file result table. operation: resize | convert | compress | strip_metadata | rotate_flip | crop. pattern: a file, or a glob such as 'D:/photos/.jpg' or 'D:/photos/**/.png'. params: that operation's own options, e.g. {'width': 1600}, {'format': 'webp'}, {'target_size': '300KB'}. dry_run defaults to TRUE: it lists what would be written (and what would fail, e.g. existing outputs) without touching anything; call again with dry_run=false to apply. Outputs land next to each input as name.resized.jpg, or in output_dir keeping the file names. Files that look like earlier outputs of the same operation are skipped. One bad file does not stop the run: failures are listed in the table (the call only errors if every file failed). Never overwrites unless overwrite=true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool targets a distinct operation (info, resize, convert, compress, strip_metadata, rotate_flip, crop, contact_sheet, make_icons, palette), and descriptions explicitly cross-reference when outputs differ. The only fuzzy boundaries are the meta-tool `batch` (which re-exposes resize/convert/compress/strip_metadata/rotate_flip/crop for many files) and some overlap between `convert` and `compress` with its `format=` parameter, but both are clearly documented as single-file vs many-file and quality-targeted behaviors.
All names are lowercase snake_case, which is consistent, and each is descriptive of its action or resource. Minor deviation: the set mixes bare verb/noun names (resize, convert, palette, batch) with compound verb_noun names (strip_metadata, rotate_flip, make_icons, contact_sheet) rather than a single predictable pattern.
Eleven tools is well within the ideal 3-15 range for an image utility server, and every tool earns its place: one per core operation plus two workflow helpers (batch, contact_sheet) and two generation tools (make_icons, palette). Nothing feels redundant or padded.
The surface covers the full practical lifecycle: inspect, resize/convert/compress, crop/rotate, sanitize metadata, batch-process, and generate derived assets (icons, contact sheets, palettes). Gaps are minor and mostly in creative editing: no drawing/text overlay, watermarking, or tone/color adjustments (brightness, contrast, saturation), which agents would have to work around.