drio
Open app

Tinypng Mcp Server

Source

🧙🏻 Integrated TinyPNG MCP server, quickly use TinyPNG through LLMs.

Catalog onlyCatalog onlySTDIO

Overview

Tinypng Mcp Server is a server application designed to facilitate image compression using the TinyPNG API, allowing users to optimize images for web use.

To use the Tinypng Mcp Server, set up the server environment, configure the API keys, and send image files to the server for compression via the provided endpoints.

  • Efficient image compression using TinyPNG API - Supports various image formats - Easy integration with web applications
  1. Optimizing images for faster website loading times.
  2. Reducing bandwidth usage for image-heavy applications.
  3. Enhancing user experience by providing faster image delivery.

Add to your AI client

Use these steps to connect Tinypng Mcp Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "tinypng-mcp-server-aiyogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tinypng-mcp-server-aiyogg"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "tinypng-mcp-server-aiyogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tinypng-mcp-server-aiyogg"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "tinypng-mcp-server-aiyogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tinypng-mcp-server-aiyogg"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "tinypng-mcp-server-aiyogg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tinypng-mcp-server-aiyogg"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "tinypng-mcp-server-aiyogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tinypng-mcp-server-aiyogg"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "tinypng-mcp-server-aiyogg": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-tinypng-mcp-server-aiyogg"
      ]
    }
  }
}

FAQ

What image formats does the server support?

The server supports PNG and JPEG formats for compression.

Is there a limit to the number of images I can compress?

Yes, the limit depends on the API usage plan you choose with TinyPNG.

How do I get my API key?

You can obtain your API key by signing up on the TinyPNG website.