Operations integration
ShortPixel MCP
WP MCP adds two ops on the theme dispatcher pair for ShortPixel. get-image-optimizer-status reads ShortPixel's spio_settings option through an allowlist: the compression type (lossless, lossy or glossy), whether new uploads are optimized automatically, whether backups are kept, and whether WebP and AVIF copies are made. It reports whether an API key is set, never the key, and the credit quota ShortPixel last cached locally (monthly and one-time credits, used and remaining, or unlimited), without calling ShortPixel's API. It counts library images and how many ShortPixel has finished, read from its own shortpixel_postmeta table. optimize-attachment hands one image to ShortPixel's own queue, which optimizes it on ShortPixel's servers, so the call answers status queued. The attachment row, its meta and its files are backed up first, and new WebP or AVIF paths are recorded, so rollback-operation restores the original files and deletes those copies. The undo works on this site only and does not contact ShortPixel, and ShortPixel's own table may still mark the image optimized until it is checked again there. The write is off until a site opts in with the wpmcp_enable_image_optimizer_write filter or its settings toggle. Both ops run at manage_options.
What your AI can do
Real ShortPixel operations, every write reversible.
- Read ShortPixel's compression type, auto-optimize and backup settings
- See the locally cached credit quota and what is left
- Check that an API key is set, without seeing it
- Count images ShortPixel has finished and how many are pending
- Queue one image for ShortPixel optimization (opt-in), with the originals backed up for rollback
Example prompts
Example ShortPixel prompts.
How many ShortPixel credits do we have left this month?
Is ShortPixel set to lossy or glossy, and does it make AVIF files?
Send media 873 to ShortPixel for optimizing.
Under the hood
The ShortPixel calls, under the hood.
theme-read({ operation: "get-image-optimizer-status", args: { plugin: "shortpixel" } }), cached quota; no API call; key shown as set or not
theme-write({ operation: "optimize-attachment", args: { media_id: 873, plugin: "shortpixel" } }), opt-in; answers status queued
In the free plugin
The ShortPixel integration is in the free plugin.
The core ShortPixel tools ship in the free, GPL plugin with the full snapshot and undo engine, and no trial clock. Pro adds 133 more tools, including Elementor deep editing, the other page builders, the forms adapter pack and, for some integrations, extra operations. The pricing page lists what each tier includes.
Frequently asked
ShortPixel MCP: questions, answered.
Does reading the status use ShortPixel credits?
No. The quota comes from the copy ShortPixel already caches on the site, and nothing calls ShortPixel's API. If no cached quota exists, the answer is null.
Why does optimize-attachment say queued?
ShortPixel optimizes on its own servers in the background, so WP MCP adds the image to ShortPixel's queue and returns straight away. The result lands when ShortPixel finishes.
What does a rollback undo?
It restores the original files and meta that were backed up before the call and deletes new WebP or AVIF copies. It works on this site only and does not contact ShortPixel, and ShortPixel's own records may still call the image optimized until ShortPixel checks it again.
Is there an AI agent for ShortPixel?
Yes, through WP MCP rather than ShortPixel itself. An agent you choose, such as Claude or Cursor, can read ShortPixel's compression type, auto-optimize and backup settings. WP MCP is a separate plugin, not a built-in AI feature of ShortPixel.
Related integrations
More integrations for the same agent.
MCP for Smush
FreeOperations, 2 tools.
MCP for EWWW Image Optimizer
FreeOperations, 2 tools.
MCP for Imagify
FreeOperations, 2 tools.
MCP for WP Offload Media
ProOperations, 1 tools.
MCP for UpdraftPlus
FreeOperations, 2 tools.
MCP for Duplicator
FreeOperations, 1 tools.
Browse the full Integrations hub, or read more on the WordPress MCP plugin.