TinyPNG
TinyPNG uses smart lossy compression techniques to reduce the file size of your WebP, JPEG, and PNG files.
Verdict
Common use cases
- Optimize hero images before deploying to CDN
- Batch compress screenshots for documentation
- Convert product photos to WebP for faster load
- Preserve EXIF data in compressed event photos
- Monitor API quota during high-volume sprints
Integration
- Vendor
- TinyPNG
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 6
- Composio slug
tinypng
Tools
- Compress and Convert Image
Tool to compress and convert an image. use when you need to optimize an image and change its format (avif, webp, jpeg, png).
- Compress and preserve metadata
Tool to compress an image while preserving specified metadata fields. use when critical metadata (e.g., copyright, creation date, or gps location) must be retained in the output.
- Compress and Store Image in Azure
Tool to compress an image using tinify and upload it directly to azure blob storage. use when you want to optimize images and store them to azure in one step.
- Download Compressed Image
Tool to retrieve a compressed image by its image id. use after compressing an image to download the result.
- Get TinyPNG Compression Count
Tool to retrieve the number of compressions made this month. use when you need to monitor your tinypng api usage.
- Shrink and get image ID
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.
Setup
Setup guide
- 11. Open your Switchy workspace and navigate to Settings > Integrations > MCP Servers. 2. Click 'Add MCP Server' and select TinyPNG from the list. 3. Visit tinypng.com/developers, sign up for a free account, and copy your API key from the dashboard. 4. Paste the API key into Switchy's TinyPNG configuration field and click 'Connect'. 5. Open any Space and type '@TinyPNG check my compression count' to confirm the connection works — you should see your current monthly usage. 6. To compress an image, upload it to the Space chat, then @mention TinyPNG with a prompt like 'compress this to WebP' — the MCP returns a download link or stores it to Azure if you specify a container.
What teammates see: by default, memories from TinyPNG are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Compress to WebP
@TinyPNG compress this image and convert it to WebP formatOpen in a Space →
Preserve Copyright Metadata
@TinyPNG compress this file but preserve copyright and creation metadata fieldsOpen in a Space →
Upload to Azure Storage
@TinyPNG compress this image and store it in Azure container 'prod-assets' with filename 'hero-optimized.webp'Open in a Space →
Check Monthly Usage
@TinyPNG how many compressions have I used this monthOpen in a Space →
Get Compressed Image ID
@TinyPNG shrink this image and give me the TinyPNG image IDOpen in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@TinyPNG compress this screenshot and convert it to WebP format for our landing page
Compressed your image from 2.4 MB to 487 KB (80% reduction) and converted to WebP format. The optimized file is ready for download. Original dimensions preserved at 1920×1080. This example shows typical compression ratios for PNG screenshots — actual savings vary by image complexity and color depth.
This example uses the compress-and-convert tool, which requires a valid API key and counts against your monthly compression quota (typically 500 free compressions). The MCP handles the upload, optimization, and format conversion in one step, returning the compressed file for immediate use.
@TinyPNG check how many compressions we've used this month and let me know if we're approaching our limit
You've used 347 of 500 compressions this month (69% of quota). At your current pace, you'll likely hit the limit around the 23rd. Consider upgrading to a paid plan if you need more capacity, or batch-process remaining images strategically. This example reflects a typical free-tier account — paid plans have higher or unlimited quotas.
This read-only query uses the compression-count tool to monitor API usage. Helpful for teams managing image optimization at scale. The MCP returns real-time quota data, but note that TinyPNG's API updates counts with a slight delay (usually under 1 minute), so rapid successive calls may show stale numbers.
@TinyPNG compress these three product photos, preserve copyright metadata, and upload them directly to our Azure storage container
Compressed 3 images (total reduction: 6.1 MB → 1.8 MB) while preserving copyright and creation date fields. All files uploaded to your Azure Blob Storage container 'product-images' with original filenames. This example demonstrates the preserve-metadata and Azure-storage tools working together — useful for workflows where legal attribution or EXIF data must survive optimization.
This example chains two capabilities: metadata preservation (requires specifying which EXIF fields to keep) and Azure upload (needs Azure connection string configured). Each compression still counts toward your TinyPNG quota. The Azure integration eliminates manual download/upload steps, but requires proper Azure credentials in your MCP configuration.
Use-case deep-dives
When batch image optimization belongs in your build step
A 3-person marketing team ships 40-60 new blog images per week. They drop PNGs into a Dropbox folder, and a junior dev manually runs them through TinyPNG before pushing to the CDN. This MCP wins if you move that compression into a Claude chat that watches the folder and calls Compress and Convert Image in a loop. The API key auth is trivial to set up, and the Get TinyPNG Compression Count tool keeps you under the 500-image free tier. The threshold: if you're already using a CI/CD pipeline with image optimization hooks, adding this MCP is redundant. But if compression is a manual chore that blocks deploys, this MCP turns a 20-minute task into a one-prompt batch job.
Why this MCP beats manual compression for SKU launches
A 6-person e-commerce team uploads 200 product photos per quarter, each needing AVIF and WebP variants for their Shopify storefront. The designer exports high-res PNGs, then manually converts and compresses them in Photoshop. This MCP is the right call: Compress and Convert Image handles format conversion and compression in one API hit, and the team can run it from a shared Switchy workspace during launch sprints. The Compress and preserve metadata tool keeps copyright and color profile data intact, which matters for print catalogs. The limit: TinyPNG charges $0.009 per image after 500 compressions per month, so a team doing 800+ images monthly should compare pricing to self-hosted tools like Sharp. Below that threshold, this MCP eliminates a 2-hour bottleneck every launch cycle.
When this MCP isn't worth the setup cost
A 10-person support team receives 300 customer screenshots per week, mostly uploaded to Zendesk tickets. The screenshots average 2MB, and the team wants to compress them before archiving to S3. This MCP is borderline. The Compress and Store Image in Azure tool only supports Azure Blob Storage, not S3, so you'd need to chain Download Compressed Image with a separate S3 upload step. That's doable in a Claude chat, but it's clunky. The real issue: support screenshots are one-off attachments, not assets in a content pipeline, so the time saved per image is under 10 seconds. Unless your team is already using Switchy for ticket triage and the compression step is blocking a workflow, the setup overhead outweighs the benefit. Skip this MCP and compress screenshots at the Zendesk webhook level instead.
Frequently asked
What does the TinyPNG MCP do in Switchy?
It compresses images directly in your Switchy workflows without leaving the platform. You can shrink PNGs, JPEGs, and WebP files, convert between formats like AVIF or WebP, and optionally preserve metadata like copyright or GPS data. The MCP also uploads optimized images straight to Azure Blob Storage if your team uses that for asset hosting.
Do I need a paid TinyPNG account to use this MCP?
You need a TinyPNG API key, which requires a paid plan after the free 500 compressions per month. Paste your API key into Switchy's connection settings. The MCP tracks your monthly compression count so you know when you're approaching your limit. Free-tier keys work fine for testing or low-volume teams.
Can it compress images larger than 5MB?
TinyPNG's API enforces a 5MB file size limit per image, so the MCP inherits that constraint. If you routinely handle larger files, you'll need to pre-process them outside Switchy or switch to a different compression service. For most web assets and marketing images, 5MB is plenty.
Why use this instead of TinyPNG's website or API directly?
The MCP saves you from writing compression scripts or manually uploading files to TinyPNG's site. Your team can compress images inside Switchy chats, chain compression with other tools like screenshot capture or design review, and route optimized files to Azure in one step. It's faster when image optimization is part of a larger workflow.
Who on the team should connect the TinyPNG MCP?
Whoever owns your TinyPNG account and API key should connect it. Since compressions count against a shared monthly quota, you probably want one workspace-wide connection rather than each person using their own key. Designers, developers, and content editors can all trigger compressions once it's connected.