ShortPixel MCP server
16 operations0 webhooks
ShortPixel image optimization (Reducer and Post-Reducer APIs), Adaptive Images CDN URLs and CDN domain management.
Try ShortPixel with your agent
Connect ShortPixel, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in ShortPixel on my account, then run one read-only example and show me the result.
ShortPixel tools and triggers
Tools are what your agent can do in ShortPixel through Corsair's MCP server. Triggers are the ShortPixel events a routine can start from.
Images
- AdaptiveRead-only
Fetch an image through the Adaptive Images CDN with the given resize, crop, quality and format settings, and return it base64 with its size and type. Uses the domain's CDN traffic and credits.
images.adaptive
- Adaptive UrlRead-only
Build an Adaptive Images CDN URL that resizes, crops, compresses and converts an image on the fly. Makes no request; the image domain must be associated with the account (domains.add).
images.adaptiveUrl
- Check UploadRead-only
Check uploaded files that were still processing, by the OriginalURL images.upload returned. Only checks the status; pass the same settings as the upload.
images.checkUpload
- CleanupDestructive
Drop optimized results for up to 100 image URLs from ShortPixel, so the next optimize of the same URL starts fresh. The download URLs stop working.
images.cleanup
- OptimizeDestructive
Optimize up to 100 public image or PDF URLs (Reducer API): lossy, glossy or lossless, resize or AI smart crop, AI upscale, AI background removal, WebP/AVIF conversion. Spends one credit per image that shrinks by more than 5%; each extra WebP/AVIF copy (convertto +webp/+avif) and the AI options (upscale, background removal) use more credits. Status.Code 1 means still processing: call again with the same URLs; 2 means done, with download URLs and sizes.
images.optimize
- Optimize SyncDestructive
Optimize one public image URL and return the optimized file itself, base64 (reducer-sync). Same settings and credit cost as images.optimize.
images.optimizeSync
- StatusRead-only
Check whether ShortPixel has a result for an image URL sent to images.optimize (code 0 Not found when it has none).
images.status
- UploadDestructive
Upload up to 10 image files (base64) and optimize them (Post-Reducer API). Same settings and credit cost as images.optimize. A file still processing (code 1) returns a temporary OriginalURL: poll it with images.checkUpload instead of uploading again.
images.upload
Domains
- AddWrite
Add a domain to the ShortPixel CDN and associate it with this key. Safe to repeat; a domain another account owns is refused.
domains.add
- Purge CdnDestructive
Purge every file of a domain owned by this key from the CDN cache and from ShortPixel storage. example.com and www.example.com are purged separately.
domains.purgeCdn
- Purge StorageDestructive
Delete every file ShortPixel stores for a domain owned by this key. example.com and www.example.com are purged separately.
domains.purgeStorage
- ReadRead-only
Read the CDN status of a domain: 2 OK, 1 credits almost used up, -1 used up, -2 used up a while ago, -3 unreachable, plus quota and whether an account owns it. Needs no key.
domains.read
- RevokeDestructive
Remove this key's association with a CDN domain. Only the owner's key can do it.
domains.revoke
- SetWrite
Associate an existing CDN domain that has no owner with this key. Does not create the domain.
domains.set
- UsageRead-only
Read CDN traffic and credits used per day for a domain owned by this key, with the account's quotas.
domains.usage
Account
- StatusRead-only
Read the API key's credits: monthly and one-time quota, calls used, captions quota, plan. Pass siteUrl to also check that ShortPixel can reach that site.
account.status
Connect ShortPixel to Claude, ChatGPT or Cursor
- 1
Connect ShortPixel in Corsair
Add your ShortPixel API key once in Corsair. Corsair stores the credential encrypted and makes the ShortPixel API calls for your agent, so it never goes into a prompt or a config file. Connect ShortPixel
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs ShortPixel. On a ChatGPT personal plan, connect ShortPixel here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, ShortPixel's read and write operations run right away and its 7 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/shortpixel, add the ShortPixel plugin, and connect with an API key. Then call methods like corsair.shortpixel.api.account.status() from your app. Corsair syncs data per tenant.
Yes. ShortPixel requires an API key from your ShortPixel account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit ShortPixel, GitHub, Notion, Stripe, and the rest. Trigger ShortPixel from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for ShortPixel image optimization (Reducer and Post-Reducer APIs), Adaptive Images CDN URLs and CDN domain management. Common builds include sync jobs, admin tooling, and agents that call ShortPixel APIs from your backend. Local DB entities let you query synced ShortPixel records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per ShortPixel API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/shortpixel in the open repo. When ShortPixel ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your ShortPixel data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store ShortPixel data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put ShortPixel on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 7 destructive ShortPixel operations. You can change a link's mode at hub.corsair.dev/me.