Labsco
kshern logo

Image Tools MCP

β˜… 10

from kshern

Retrieve image dimensions and compress images from URLs or local files using Tinify and Figma APIs.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredNeeds API keys

Image Tools MCP

smithery badge

A Model Context Protocol (MCP) service for retrieving image dimensions and compressing images, supporting both URL and local file sources.

δΈ­ζ–‡ζ–‡ζ‘£

Features

  • Retrieve image dimensions from URLs
  • Get image dimensions from local files
  • Compress images from URLs using TinyPNG API
  • Compress local images using TinyPNG API
  • Convert images to different formats (webp, jpeg/jpg, png)
  • Returns width, height, type, MIME type, and compression information

Example Results

Example Result 1 Example Result 2

Example Result 1 Example Result 2

download from figma url and compress Example Result 3

Changelog

  • 2025-05-12: Updated Figma API to support additional parameters, including 2x image scaling.

Technical Implementation

This project is built on the following libraries:

Environment Variables

  • TINIFY_API_KEY - Required for image compression functionality. Get your API key from TinyPNG
    • When not provided, the compression tools (compress_image_from_url and compress_local_image) will not be registered
  • FIGMA_API_TOKEN - Required for fetching image links from Figma API. Get your API token from Figma
    • When not provided, the Figma tool (figma) will not be registered

Note: The basic image dimension tools (get_image_size and get_local_image_size) are always available regardless of API keys.