Operations integration
WP Rocket AI agent tool reference
WP MCP detects WP Rocket by its signature (rocket_clean_domain() or the WP_ROCKET_VERSION constant) and never calls into it unless that signature is present, so the tools cannot fatal on a site where the plugin is missing. The free tier is detect and purge: get-cache-status reports the persistent object cache backend, whether OPcache is available and enabled, and which page-cache plugin is active, and clear-cache flushes the object cache, deletes every transient, resets OPcache when enabled, then empties WP Rocket through its own purge API, with a per-layer summary. Pro adds a settings pair on the theme dispatcher: get-wp-rocket-settings reads every allowlisted setting (file optimization, media, preload, CDN and cache rules) with the license and the Cloudflare and Sucuri credentials reported masked, set-wp-rocket-settings writes them through WP Rocket's own save path so its config file, rewrite rules and cache clear run, snapshotted on the wp_rocket_settings option so rollback-operation puts every setting back exactly, and preload-wp-rocket-cache resets WP Rocket's preload queue through its own rocket_reset_preload action. A purge or a preload has no before-image to restore, so neither is snapshotted or undoable; a settings write is.
WP Rocket in plain language: WP Rocket MCP.
What your AI can do
Real WP Rocket operations, every write reversible.
- Confirm WP Rocket is the active page cache, alongside the object cache and OPcache state
- Purge WP Rocket in the same call that flushes the object cache and transients
- Pro: read every allowlisted WP Rocket setting with the license and CDN credentials masked
- Pro: change file optimization, media, preload, CDN and cache rule settings, each write snapshotted
- Pro: reset the preload queue so WP Rocket re-warms the cache
- Restore the exact WP Rocket settings after a change
Example prompts
Example WP Rocket prompts.
Which caching layers are active on this site right now?
Turn on WP Rocket lazy loading for images and defer the JavaScript.
Clear every cache and then start the WP Rocket preload now that the new pricing page is live.
Under the hood
The WP Rocket calls, under the hood.
get-cache-status({}), read-only; lists object cache, OPcache and the detected page-cache plugin
theme-write({ operation: "set-wp-rocket-settings", args: { values: { lazyload: 1 } } }), Pro; opt-in; snapshotted on wp_rocket_settings
In the free plugin
The WP Rocket integration is in the free plugin.
The core WP Rocket 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
WP Rocket MCP: questions, answered.
Can the AI change WP Rocket settings?
Yes, on Pro. set-wp-rocket-settings writes the allowlisted file optimization, media, preload, CDN and cache rule settings through WP Rocket's own save path, snapshotted so the change is one click from restored. Settings writes stay off until a site opts in with the wpmcp_enable_cache_settings_write filter, and the license and the Cloudflare and Sucuri credentials are only ever reported masked and are never written here.
On WP Rocket, is a purge or preload reversible?
No. Caches rebuild themselves on the next request, so there is no before-image worth restoring; clear-cache and preload-wp-rocket-cache are deliberately not snapshotted and the response says so. A settings write, by contrast, is snapshotted and undoable.
What is free and what is Pro?
get-cache-status and clear-cache are free-tier abilities gated at manage_options. The settings read, write and preload ops are part of WP MCP Pro.
Related integrations
More integrations for the same agent.
MCP for LiteSpeed Cache
FreeOperations, 4 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 Perfmatters
ProOperations, 2 tools.
MCP for UpdraftPlus
FreeOperations, 2 tools.
Browse the full Integrations hub, or read more on WP Rocket MCP and the WordPress MCP plugin.