Image Tools MCP logo

Image Tools MCP

by kshern

Image Tools MCP is a Model Context Protocol (MCP) service designed for retrieving image dimensions and compressing images. It supports both URL and local file sources.

View on GitHub

Last updated: N/A

What is Image Tools MCP?

This is an MCP service that provides tools for retrieving image dimensions from URLs and local files, compressing images using the TinyPNG API, and fetching/compressing images from Figma API. It allows users to easily integrate image processing functionalities into their applications.

How to use Image Tools MCP?

To use this service, you need an MCP client like Claude Desktop or an MCP Client Library. Configure the client to connect to the Image Tools MCP server. You will also need a TinyPNG API key for compression and a Figma API token for Figma integration. Then, you can call the tool functions like get_image_size, compress_image_from_url, or figma with the appropriate options.

Key features of Image Tools MCP

  • 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)

  • Fetch image links from Figma API and compress them using TinyPNG API

  • Returns width, height, type, MIME type, and compression information

Use cases of Image Tools MCP

  • Integrating image dimension retrieval into a content management system

  • Automatically compressing images before uploading them to a server

  • Optimizing images for web use to improve page load times

  • Fetching and compressing images directly from Figma designs

  • Automating image processing tasks within a larger workflow

FAQ from Image Tools MCP

What is the Model Context Protocol (MCP)?

MCP is a protocol for connecting different services and applications, allowing them to communicate and share data.

Do I need a TinyPNG API key to use this service?

Yes, a TinyPNG API key is required for image compression functionality. However, the basic image dimension tools (get_image_size and get_local_image_size) are always available without an API key.

Do I need a Figma API token to use this service?

Yes, a Figma API token is required for fetching image links from Figma API. If not provided, the Figma tool (figma) will not be registered.

What image formats are supported for compression?

The service supports converting images to webp, jpeg/jpg, and png formats during compression.

How do I configure Claude Desktop to use this MCP server?

You need to edit the Claude Desktop configuration file to include the Image Tools MCP server details, including the command, arguments, and environment variables (TINIFY_API_KEY and FIGMA_API_TOKEN).