compress_image_from_url
Compress a single image from URL using TinyPNG API (only supports image files, not folders)
Read the size of an image on disk or behind a URL, run it through TinyPNG compression, and pull images out of a Figma file — without leaving the editor.
LABSCO SUMMARY
Both compression tools state their own boundary: a single image file per call, with no folder mode, so a batch is the caller's loop rather than the server's. The size tools split by location rather than by format, one for a URL and one for a path. Figma is the odd one out: it has its own token and returns images out of a design file, where the rest work on an image you can already point at.
A small image-handling server covering size lookups, TinyPNG compression and image retrieval from the Figma API.
TINIFY_API_KEY and FIGMA_API_TOKEN in the environment. The compression tools call the TinyPNG API; get_figma_images calls the Figma API.
One command plus a key — npx image-tools-mcp, then supply credentials
USE CASES
Read the local file's size, then run it through TinyPNG compression one file at a time.
Read the size of the image behind the URL, and compress it from that URL if it is worth keeping.
Pull the images from the Figma API in the same session that writes the markup they belong to.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
compress_image_from_urlCompress a single image from URL using TinyPNG API (only supports image files, not folders)
compress_local_imageCompress a single local image file using TinyPNG API (only supports image files, not folders)
get_figma_imagesGet images from Figma API
get_image_sizeGet the size of an image from URL
get_local_image_sizeGet the size of a local image
BEFORE YOU INSTALL
5 tools when we connected. With no keys set, only get_image_size and get_local_image_size appear; TINIFY_API_KEY adds the two compress tools and FIGMA_API_TOKEN adds get_figma_images, which the documentation calls figma.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 5 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx image-tools-mcp{
"mcpServers": {
"image-tools": {
"command": "npx",
"args": [
"image-tools-mcp"
],
"env": {
"TINIFY_API_KEY": "<YOUR_TINIFY_API_KEY>",
"FIGMA_API_TOKEN": "<YOUR_FIGMA_API_TOKEN>"
}
}
}
}