image-tools

v1.0.0Developer Toolsstable

Image Tools MCP is a Model Context Protocol (MCP) service that retrieves image dimensions and compresses images from URLs and local files using the TinyPNG API. It supports converting images to formats like webp, jpeg/jpg, and png, providing detailed

claude-codeclicross-platformdeveloper-toolsgolang
Share:
8
Stars
0
Downloads
0
Weekly
0/5

What is image-tools?

image-tools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to image tools mcp is a model context protocol (mcp) service that retrieves image dimensions and compresses images from urls and local files using the tinypng api. it supports converting images to format...

Image Tools MCP is a Model Context Protocol (MCP) service that retrieves image dimensions and compresses images from URLs and local files using the TinyPNG API. It supports converting images to formats like webp, jpeg/jpg, and png, providing detailed

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Image Tools MCP is a Model Context Protocol (MCP) service th

Use Cases

Image compression and format conversion
Retrieve image dimensions and metadata
kshern

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMar 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx image-tools

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use image-tools

image-tools-mcp is a Model Context Protocol server that provides image dimension retrieval and compression capabilities for both URLs and local files. It integrates with the TinyPNG API for lossy compression and format conversion (WebP, JPEG, PNG), and also supports fetching and compressing images from Figma via the Figma API. Basic dimension tools work without any API keys.

Prerequisites

  • Node.js 16+ and npx available on your system
  • A TinyPNG API key from https://tinypng.com/developers (required for compression tools)
  • A Figma API token from https://www.figma.com/developers (required for Figma tool only)
  • Claude Desktop or another MCP-compatible client
1

Obtain a TinyPNG API key

Register for a free TinyPNG developer account at https://tinypng.com/developers. The free tier allows 500 compressions per month. Copy your API key from the dashboard.

# Visit: https://tinypng.com/developers
# Sign up and copy your API key from the dashboard
2

Test the server directly with npx

Run the MCP server directly to confirm it starts correctly before integrating it into your client config.

npx image-tools-mcp
3

Add to Claude Desktop configuration

Edit your Claude Desktop config file to register the image-tools-mcp server with your API keys as environment variables.

{
  "mcpServers": {
    "image-tools": {
      "command": "npx",
      "args": ["image-tools-mcp"],
      "env": {
        "TINIFY_API_KEY": "your-tinypng-api-key",
        "FIGMA_API_TOKEN": "your-figma-api-token"
      }
    }
  }
}
4

Restart Claude Desktop

Close and reopen Claude Desktop to load the new MCP server configuration. The image-tools server will appear in the connected tools list.

# macOS: Cmd+Q to quit Claude Desktop, then reopen
# Windows: Right-click system tray icon → Quit, then reopen
# Config file location (macOS):
# ~/Library/Application Support/Claude/claude_desktop_config.json
5

Verify tools are available

In Claude Desktop, start a new conversation and ask Claude to list available image tools. You should see get_image_size, compress_image_from_url, and related tools.

# Ask Claude:
# "What image tools do you have available?"

image-tools Examples

Client configuration

Claude Desktop claude_desktop_config.json entry for image-tools-mcp with both TinyPNG and Figma API keys.

{
  "mcpServers": {
    "image-tools": {
      "command": "npx",
      "args": ["image-tools-mcp"],
      "env": {
        "TINIFY_API_KEY": "your-tinypng-api-key-here",
        "FIGMA_API_TOKEN": "your-figma-api-token-here"
      }
    }
  }
}

Prompts to try

Example prompts to use with Claude after connecting image-tools-mcp.

- "What are the dimensions of the image at https://example.com/photo.jpg?"
- "Compress https://mysite.com/hero.png using TinyPNG and convert it to WebP format"
- "Get the file size and dimensions of /Users/me/Desktop/logo.png"
- "Compress the local image at /tmp/banner.jpg and tell me how much space was saved"
- "Fetch images from my Figma file and compress them all to WebP"

Troubleshooting image-tools

Compression tools fail with 'Unauthorized' error

Verify your TINIFY_API_KEY is correct and has not exceeded the monthly compression limit (500 free/month). Check the TinyPNG dashboard at https://tinypng.com/dashboard for usage. Ensure the key is set in the env section of your MCP config, not as a shell environment variable.

get_image_size returns an error for a URL

Some servers block requests without a proper User-Agent or require authentication. Try with a publicly accessible image URL first to confirm the tool works. For local files, use get_local_image_size and provide an absolute file path.

Figma tool fails to fetch images

Ensure FIGMA_API_TOKEN is set with a valid personal access token from https://www.figma.com/developers. The token needs read access to the target Figma file. Verify the Figma file ID and frame/node IDs are correct.

Frequently Asked Questions about image-tools

What is image-tools?

image-tools is a Model Context Protocol (MCP) server that image tools mcp is a model context protocol (mcp) service that retrieves image dimensions and compresses images from urls and local files using the tinypng api. it supports converting images to formats like webp, jpeg/jpg, and png, providing detailed It connects AI assistants to external tools and data sources through a standardized interface.

How do I install image-tools?

Follow the installation instructions on the image-tools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with image-tools?

image-tools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is image-tools free to use?

Yes, image-tools is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "image-tools": { "command": "npx", "args": ["-y", "image-tools"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use image-tools?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides