mcp
v0.0.5Official Model Context Protocol (MCP) server for SmallPict Image Optimization
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
smallpict_optimize_image
Compress and convert local or remote images (JPEG, PNG, GIF) into modern WebP/AVIF using SmallPict API with up to 85% bandwidth reduction
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Local file path or remote image URL (http/https) to optimize |
folder | string | Optional upload folder for the optimized file, e.g. 'blog/2026': 1-3 segments of a-z, 0-9, '-' or '_' separated by '/'. The server lower-cases it; a folder can later be purged with smallpict_purge_cdn… |
format | string | Target image format (webp, avif, or auto) |
lossless | boolean | Deprecated: use mode: 'lossless'. true is treated as mode 'lossless' when mode is not set; it cannot be combined with another mode. |
maxDimension | number | Optional maximum bounding dimension (longest edge) in pixels for image downscaling |
maxHeight | number | Optional maximum height in pixels for image resizing |
maxWidth | number | Optional maximum width in pixels for image resizing |
mode | string | Compression mode: 'lossy' (default), 'extreme' (smallest files), 'lossless' (pixel-perfect) or 'auto' (the server picks the quality per image from a visual score; ignores quality). The server checks t… |
outputPath | string | Optional local path where the optimized image should be saved |
quality | number | Compression quality (1-100). Leave it out and the server picks the default for the mode (lossy 80, extreme a default per output format). The server applies the minimum quality of each mode, so the qua… |
smallpict_get_quota
Inspect the SmallPict plan, monthly usage, and read-only capacity: storage, CDN, booster balances, unpaid-account state and the dashboard link where capacity is bought
smallpict_purge_cdn_cache
Invalidate cached image URLs across Cloudflare Edge CDN PoPs
| Parameter | Type | Description |
|---|---|---|
folder | string | Upload folder to purge, e.g. 'blog/2026'; required for purgeType 'folder', ignored otherwise |
purgeType | string | Purge scope: 'url' (the listed URLs, default), 'folder' (one upload folder and its sub-folders) or 'all' (every file of the account). 'folder' and 'all' are limited per hour by the server. |
urls | array | Asset URLs to invalidate on the CDN (required for purgeType 'url') |