mcp

v0.0.5
@smallpict/mcp Checked 2 days ago Published 25 days ago

Official 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

ParameterTypeDescription
filePath *stringLocal file path or remote image URL (http/https) to optimize
folderstringOptional 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…
formatstringTarget image format (webp, avif, or auto)
losslessbooleanDeprecated: use mode: 'lossless'. true is treated as mode 'lossless' when mode is not set; it cannot be combined with another mode.
maxDimensionnumberOptional maximum bounding dimension (longest edge) in pixels for image downscaling
maxHeightnumberOptional maximum height in pixels for image resizing
maxWidthnumberOptional maximum width in pixels for image resizing
modestringCompression 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…
outputPathstringOptional local path where the optimized image should be saved
qualitynumberCompression 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

ParameterTypeDescription
folderstringUpload folder to purge, e.g. 'blog/2026'; required for purgeType 'folder', ignored otherwise
purgeTypestringPurge 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.
urlsarrayAsset URLs to invalidate on the CDN (required for purgeType 'url')