{
  "info": {
    "name": "TinyPNG — mcp.ai",
    "description": "REST API for the TinyPNG MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/tinypng",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "tinypng_get_compression_count",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/compression/count",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "compression",
            "count"
          ]
        },
        "description": "Tool to retrieve the number of compressions made this month. Use when you need to monitor your TinyPNG API usage.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tinypng_shrink_and_get_image_id",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/shrink/and/get/image/id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "shrink",
            "and",
            "get",
            "image",
            "id"
          ]
        },
        "description": "Tool to shrink an image and return its TinyPNG image ID. Use when you need only the compressed image identifier from the API response Location header.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"source_url\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tinypng_tinify_compress_and_store_in_azure",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/tinify/compress/and/store/in/azure",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "tinify",
            "compress",
            "and",
            "store",
            "in",
            "azure"
          ]
        },
        "description": "Compress an image using the Tinify API and upload the optimized result directly to Azure Blob Storage in a single operation. The image is first compressed by Tinify, then uploaded to the specified Azu",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"source_url\": \"\",\n  \"azure_blob_url\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tinypng_tinify_output",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/tinify/output",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "tinify",
            "output"
          ]
        },
        "description": "Tool to retrieve a compressed image by its image ID. Use after compressing an image to download the result.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "tinypng_transform_image",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/transform/image",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "transform",
            "image"
          ]
        },
        "description": "Tool to transform a compressed image by resizing, converting format, preserving metadata, or storing to cloud storage. Use when you have an image ID from a previous compression and need to apply trans",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"store\": {},\n  \"resize\": {},\n  \"convert\": {},\n  \"preserve\": \"\",\n  \"transform\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}