# TinyPNG — MCP server on mcp.ai > Connect your TinyPNG account and use 5 tools for images and design straight from your AI agent. Connect with your own API key. TinyPNG uses smart lossy compression techniques to reduce the file size of your WebP, JPEG, and PNG files. By: mcp.ai · official Page: https://mcp.ai/tinypng ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_tinypng?ms=1787296080000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/tinypng/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/tinypng/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/tinypng/skill.md Postman collection (v2.1): https://mcp.ai/tinypng/postman.json ## Tools - tinypng_get_compression_count() — Tool to retrieve the number of compressions made this month. Use when you need to monitor your TinyPNG API usage. - tinypng_shrink_and_get_image_id(source_url: string) — 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. - tinypng_tinify_compress_and_store_in_azure(source_url: string, azure_blob_url: string) — 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 - tinypng_tinify_output(id: string) — Tool to retrieve a compressed image by its image ID. Use after compressing an image to download the result. - tinypng_transform_image(id: string, store?: object, resize?: object, convert?: object, preserve?: string[], transform?: object) — 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 ## Example prompts - "What can I do in TinyPNG?" - "Show me a summary of my TinyPNG account" ## Links Docs: https://mcp.ai/docs/mcps/tinypng Website: https://mcp.ai/mcps/tinypng