Operations integration
LiteSpeed Cache MCP
The free tier is detect and purge-all. WP MCP counts LiteSpeed Cache as present when the litespeed_purge_all function or the LSCWP_V constant exists, and skips it otherwise, so the tools cannot fatal without the plugin. get-cache-status is read-only and names LiteSpeed Cache as the active page cache next to the object cache backend and OPcache state. clear-cache runs the object cache, transients and OPcache layers first, then fires LiteSpeed's own litespeed_purge_all action and reports it as cleared under page_cache. Pro adds ops on the theme dispatcher pair. get-litespeed-settings reads every allowlisted setting from LiteSpeed's own litespeed.conf options, with the QUIC.cloud API key, the Cloudflare key and email and the object cache credentials reported only as set or not. set-litespeed-settings changes the front-end optimization switches (CSS, JS and HTML minify, JS defer or delay, emoji and query string removal, image and iframe lazy load, and the defer and lazy load exclusion lists) through LiteSpeed's own litespeed_save_conf action, snapshotted as one set over every writable option so rollback-operation puts them all back. The page cache, browser cache, CDN, guest mode, object cache and crawler switches touch .htaccess or QUIC.cloud and stay read-only. purge-litespeed-cache purges one post or one URL on this site through LiteSpeed's targeted purge actions. A purge has no before-image, so it is not snapshotted and not undoable; a settings write is, and it stays off until a site opts in.
What your AI can do
Real LiteSpeed Cache operations, every write reversible.
- Check that LiteSpeed Cache is the page cache in use, next to the object cache backend and OPcache state
- Fire LiteSpeed's purge-all after a deploy, in the same call that flushes the object cache, transients and OPcache
- Pro: purge the cache for one post or one URL on this site
- Pro: read every allowlisted LiteSpeed setting with API keys and credentials reported only as set
- Pro: switch minify, JS defer or delay, emoji and query string removal and lazy load, each write snapshotted
- Restore the exact LiteSpeed settings after a change
Example prompts
Example LiteSpeed Cache prompts.
Is LiteSpeed Cache the page cache on this site, and is a persistent object cache running too?
I just updated the pricing page: purge LiteSpeed Cache for that page only.
Turn on CSS and JS minify in LiteSpeed Cache and lazy load the images.
Under the hood
The LiteSpeed Cache calls, under the hood.
clear-cache({}), calls the litespeed_purge_all action when LiteSpeed Cache is present; not snapshotted, not undoable
theme-write({ operation: "purge-litespeed-cache", args: { post_id: 42 } }), Pro; one post or one URL; recoverable:false
theme-write({ operation: "set-litespeed-settings", args: { values: { "optm-css_min": true, "media-lazy": true } } }), Pro; opt-in; snapshotted
In the free plugin
The LiteSpeed Cache integration is in the free plugin.
The core LiteSpeed Cache 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
LiteSpeed Cache MCP: questions, answered.
Can the AI change LiteSpeed Cache settings?
Yes, on Pro, for the front-end optimization switches: minify, JS defer or delay, emoji and query string removal, lazy load and their exclusion lists. Each write goes through LiteSpeed's own save action and is snapshotted, and writes stay off until a site opts in with the wpmcp_enable_cache_settings_write filter. The page cache, CDN, guest mode, object cache and crawler switches are read-only, and API keys and credentials are never returned.
Can I undo a LiteSpeed Cache purge?
No. A purge, whole-site or targeted, removes cached output that LiteSpeed Cache rebuilds on the next request, so nothing is snapshotted and the result lists what was purged instead. A settings change, by contrast, is undoable.
What is free and what is Pro?
get-cache-status and clear-cache are free-tier abilities at manage_options. The settings read and write and the one post or one URL purge are part of WP MCP Pro.
Related integrations
More integrations for the same agent.
MCP for WP Rocket
FreeOperations, 4 tools.
MCP for W3 Total Cache
FreeOperations, 2 tools.
MCP for WP Super Cache
FreeOperations, 2 tools.
MCP for WP Fastest Cache
FreeOperations, 2 tools.
MCP for FlyingPress
ProOperations, 2 tools.
MCP for UpdraftPlus
FreeOperations, 2 tools.
Browse the full Integrations hub, or read more on the WordPress MCP plugin.