Shortpixel
ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.
Verdict
Common use cases
- Check optimization credits before bulk image jobs
- Purge cached files after site redesign
- Monitor API usage during sprint planning
- Clear storage for staging domains between deploys
Integration
- Vendor
- Shortpixel
- Category
- developer-tools
- Auth
- API_KEY
- Tools
- 2
- Composio slug
shortpixel
Tools
- Bulk Purge ShortPixel Storagedestructive
Tool to purge all files stored on shortpixel storage servers for a domain. use when you need to remove all stored files for a site in bulk.
- Get API Status
Tool to retrieve the current status of your api key, including available credits. use when you need to monitor your account usage before making additional api calls.
Setup
Setup guide
- 11. In Switchy, open your workspace settings and navigate to the Integrations tab. 2. Search for ShortPixel and click Connect. 3. You'll be prompted to paste your ShortPixel API key—find it by logging into your ShortPixel dashboard and copying the key from the API section under Account Settings. 4. Paste the key into Switchy and click Authorize. 5. Switchy confirms the connection and displays the two available tools. 6. Open any Space, type '@ShortPixel get my API status' and send—if you see your current credit balance in the reply, the integration is live. 7. To test the purge tool, use '@ShortPixel bulk purge storage for example.com' (replace with a domain you actually manage). 8. The MCP responds with confirmation or an error if the domain isn't recognized.
What teammates see: by default, memories from Shortpixel 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
Check Credit Balance
@ShortPixel get my current API status and tell me how many credits I have left.Open in a Space →
Purge Domain Storage
@ShortPixel bulk purge all files stored on your servers for mywebsite.com.Open in a Space →
Pre-Flight Credit Check
@ShortPixel I'm about to optimize 500 images—check my API status and confirm I have enough credits.Open in a Space →
Clear Staging Cache
@ShortPixel purge all cached files for staging.mysite.com so we start clean.Open in a Space →
Monthly Usage Snapshot
@ShortPixel retrieve my API status and summarize how many credits I've used this month.Open in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@shortpixel check my API status and tell me how many credits I have left before I optimize 200 product images
Your ShortPixel API key currently has 3,847 credits remaining. Each image optimization typically consumes 1 credit, so you have sufficient credits to process your 200 product images with a comfortable buffer. Your account status is active with no rate-limit warnings. You can proceed with the batch optimization.
This example demonstrates credit monitoring before bulk operations. Always check your API status first when planning large image optimization jobs — running out of credits mid-batch will leave some images unprocessed. The credit count shown is illustrative and reflects your actual account balance at query time.
@shortpixel purge all cached files from storage for staging.mystore.com since we're migrating to a new CDN
Bulk purge initiated for staging.mystore.com. All files stored on ShortPixel's servers for this domain are being removed. This action clears optimized image caches and cannot be undone. If you re-optimize images for this domain later, they will consume fresh API credits. The purge typically completes within 2-5 minutes depending on storage volume.
This is a destructive operation with no rollback — purged files are permanently deleted from ShortPixel's storage. Use this when migrating infrastructure or decommissioning a domain. If you're just testing, consider purging a subdomain first. The MCP requires your API key to have storage access permissions.
@shortpixel I'm about to run a site-wide image audit. Check my credit balance and estimate if I can optimize 500 images, then explain what happens if I run out mid-job
Your current balance is 3,847 credits. Optimizing 500 images will consume approximately 500 credits (1 per image), leaving you with 3,347 credits afterward — well within safe limits. If you were to run out mid-job, ShortPixel's API would return credit-exhausted errors for remaining images. Those images would stay unoptimized until you add credits. The MCP doesn't queue failed requests, so you'd need to manually retry or track which images weren't processed.
This example combines API status checking with reasoning about workflow risk. The AI interprets your credit balance against your stated workload and explains failure modes. Useful for capacity planning before large optimization jobs. The credit math assumes standard compression; lossy or WebP conversions may vary slightly.
Use-case deep-dives
When ShortPixel MCP makes sense for dev shops handing off sites
A 6-person agency ships 3-4 WordPress sites per month and uses ShortPixel for image optimization. The MCP is worth it if your team regularly needs to audit credit usage mid-project or bulk-purge test images before client handoff. The Get API Status tool prevents surprise overages when multiple devs are optimizing assets in parallel. The Bulk Purge tool cleans up staging files without logging into the ShortPixel dashboard. If your workflow is one-person-owns-the-account and you rarely hit credit limits, the dashboard is faster. But if you're juggling 10+ active projects and need to check quotas from Slack or purge storage from a deployment script, the MCP saves 4-5 dashboard logins per week. Best fit: agencies running ShortPixel across multiple client domains with shared team access.
ShortPixel MCP for coordinating image-heavy product drops
A 3-person e-commerce team is launching 200 SKUs and needs to optimize 800+ product images before go-live. The MCP lets the designer check remaining API credits from their workspace without context-switching to the billing dashboard, and the dev can script a bulk purge of the staging CDN once QA signs off. This matters when you're racing a launch deadline and can't afford to discover you're out of credits at 11pm. The two-tool setup is narrow but solves the coordination tax: everyone sees the same credit count, and the purge happens in one command instead of manual bucket cleanup. If you're launching once a quarter and have time to check the dashboard, skip it. If you're doing weekly drops or running flash sales with tight image pipelines, the MCP keeps the team in sync without Slack interruptions.
When ShortPixel MCP helps support teams manage uploaded images
A 5-person SaaS company lets users upload profile photos and needs to optimize them via ShortPixel, then occasionally purge abusive content from storage. The MCP's Bulk Purge tool is useful if your support team needs to remove flagged images across a domain without dev intervention. The API Status check helps the on-call engineer confirm you have enough credits before a batch job runs overnight. The limitation: only 2 tools means no per-file operations, so if you need granular purge-by-filename, you're back in the API docs. This MCP works if your purge cadence is domain-wide (monthly cleanup, post-incident wipe) and your credit monitoring happens during standups or deploy checks. If you need real-time per-image control or complex storage queries, the MCP is too thin and you'll want direct API access instead.
Frequently asked
What does the ShortPixel MCP do in Switchy?
It connects your ShortPixel image optimization account to Switchy so AI agents can check your API credit balance and bulk-purge cached files from ShortPixel's CDN storage. Useful when you're managing image optimization workflows across multiple sites and need to automate cleanup or monitor usage without logging into the ShortPixel dashboard.
Do I need admin access to connect ShortPixel?
You need an API key from your ShortPixel account settings. Any account holder can generate one — no special admin role required. The key grants read access to your credit balance and write access to purge storage, so treat it like a password and don't share it outside your team's Switchy workspace.
Can the ShortPixel MCP optimize images directly?
No. It only checks your API status and purges stored files. To actually compress or optimize images, you still use ShortPixel's web interface, WordPress plugin, or direct API calls. This MCP is for housekeeping — clearing CDN caches and monitoring credits before you hit limits mid-workflow.
Why use this instead of the ShortPixel dashboard?
The MCP lets AI agents check your credit balance and trigger bulk purges as part of larger automation sequences — like clearing all cached images after a site redesign. If you only optimize images occasionally, the dashboard is simpler. If you're scripting multi-step workflows, the MCP saves manual context-switching.
Who on the team should connect ShortPixel?
Whoever manages your ShortPixel account and has the API key. Typically a developer or ops lead. Once connected in Switchy, any workspace member can invoke the tools in prompts, but only the connector can rotate the key or disconnect. API calls count against your ShortPixel plan, not Switchy's.