wp_replace_shortcode
Find and replace a specific shortcode in a page
How to use it
Project documentation lists wp_replace_shortcode for the MCP Wordpress MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install MCP Wordpress
npx -y @leonardobora/mcp-wordpressOther tools in MCP Wordpress (6)
Flush WordPress + Elementor + plugin caches
Insert content before/after a shortcode
Parse and list all shortcodes in a page
Optional-companion control for a page-specific right, left, or absent Blocksy sidebar
Replace entire page content
Replace entire post content