MCP ExplorerExplorer

Tinypng Mcp Server

@aiyoggon 9 months ago
4 Apache-2.0
FreeCommunity
AI Systems
#llms#mcp-server#tinypng
The tinypng-mcp-server is a Model Context Protocol server designed for efficient image compression using TinyPNG. It optimizes images while preserving quality, supports bulk uploads, and offers fast processing times, making it ideal for developers looking to integrate image optimization into their applications.

Overview

What is Tinypng Mcp Server

tinypng-mcp-server is a server designed to integrate with TinyPNG, providing an efficient way to compress images using the TinyPNG API.

Use cases

Use cases include optimizing images for websites, reducing image sizes for mobile applications, and automating image compression in content management systems.

How to use

To use tinypng-mcp-server, set up the server environment, configure the necessary API keys, and send image files to the server for compression via the provided endpoints.

Key features

Key features include seamless integration with TinyPNG, support for batch image processing, and the ability to handle various image formats.

Where to use

tinypng-mcp-server can be used in web applications, mobile apps, and any platform that requires image optimization to enhance performance and reduce loading times.

Content

MCP server for TinyPNG

smithery badge MseeP.ai Security Assessment Badge

Usage

Use bun or node to run the server

  1. Install dependencies and build
pnpm i
pnpm build
  1. Edit the mcp.json file

Installing via Smithery

To install TinyPNG MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @aiyogg/tinypng-mcp-server --client claude

Tools

  1. Compress local image
{
  name: 'compress_local_image',
  description: 'Compress a local image file',
  inputSchema: {
    type: 'object',
    properties: {
      imagePath: {
        type: 'string',
        description: 'The ABSOLUTE path to the image file to compress',
        example: '/Users/user/Downloads/image.jpg',
      },
      outputPath: {
        type: 'string',
        description: 'The ABSOLUTE path to save the compressed image file',
        example: '/Users/user/Downloads/image_compressed.jpg',
      },
      outputFormat: {
        type: 'string',
        description: 'The format to save the compressed image file',
        enum: SUPPORTED_IMAGE_TYPES,
        example: 'image/jpeg',
      },
    },
    required: ['imagePath'],
  },
}
  1. Compress remote image
{
  name: 'compress_remote_image',
  description: 'Compress a remote image file by giving the URL of the image',
  inputSchema: {
    type: 'object',
    properties: {
      imageUrl: {
        type: 'string',
        description: 'The URL of the image file to compress',
        example: 'https://example.com/image.jpg',
      },
      outputPath: {
        type: 'string',
        description: 'The ABSOLUTE path to save the compressed image file',
        example: '/Users/user/Downloads/image_compressed.jpg',
      },
      outputFormat: {
        type: 'string',
        description: 'The format to save the compressed image file',
        enum: SUPPORTED_IMAGE_TYPES,
        example: 'image/jpeg',
      },
    },
    required: ['imageUrl'],
  },
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers