Page Builder Sandwich makes your WordPress site an MCP server: an AI app such as Claude, Cursor or VS Code can read and change Page Builder Sandwich’s content and settings through it, as you.
💡 Only what you may do
Every ability checks the WordPress permission it needs for the exact page or post, so an agent can never do more than the user it signs in as. Visitors and subscribers are always refused. Revoke the application password, or switch Allow AI agents (MCP) off, to stop it at once.
Before you start
- Your site needs WordPress 6.9 or newer.
- In Page Builder Sandwich’s settings, Allow AI agents (MCP) is on by default. Switching it off removes the abilities and the endpoint.
- In WordPress open Users → Profile → Application Passwords, add one named after your AI app and copy it (it is shown once).
- Your connection address is
https://your-site/wp-json/pbs/v1/mcp. The same abilities are also available over the REST API.
Claude Desktop and Cursor
In Claude Desktop open Settings → Developer → Edit Config; in Cursor edit .cursor/mcp.json. Add this, with your own address, username and application password:
{
"mcpServers": {
"page-builder-sandwich": {
"command": "npx",
"args": [
"-y",
"@automattic/mcp-wordpress-remote@latest"
],
"env": {
"WP_API_URL": "https://your-site/wp-json/pbs/v1/mcp",
"WP_API_USERNAME": "your-username",
"WP_API_PASSWORD": "your-application-password"
}
}
}
}VS Code
VS Code reads .vscode/mcp.json, which uses servers instead of mcpServers:
{
"servers": {
"page-builder-sandwich": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@automattic/mcp-wordpress-remote@latest"
],
"env": {
"WP_API_URL": "https://your-site/wp-json/pbs/v1/mcp",
"WP_API_USERNAME": "your-username",
"WP_API_PASSWORD": "your-application-password"
}
}
}
}Claude Code
claude mcp add page-builder-sandwich \
-e WP_API_URL=https://your-site/wp-json/pbs/v1/mcp \
-e WP_API_USERNAME=your-username \
-e WP_API_PASSWORD=your-application-password \
-- npx -y @automattic/mcp-wordpress-remote@latestOther apps, and ChatGPT
Any app that runs MCP servers can use the same command and settings; an app that connects to remote servers with a header can call the connection address directly with your username and application password. On the server itself: wp mcp-adapter serve --server=page-builder-sandwich --user=<login>.
ChatGPT cannot connect yet: it signs in to MCP servers only by OAuth, and a WordPress application password is not OAuth.
What the free plugin lets an agent do (52)
Self-host a font; Add a section to a page; Generate a section with AI; Save an SEO title and description; Suggest an SEO title and description with AI; Undo an AI change; Write image alt text with AI; Write or rewrite text with AI; Import a website kit; Build a landing page; Connect to support; Convert one legacy page; Create a page; Delete an uploaded icon; Move a page to the trash; Disconnect from support; Duplicate a page; Export designs and settings; Describe a builder block; Read the responsive breakpoints; Read the site design; Read the site diagnostics; Read the licence; Read the legacy migration; Read a page; Read the plugin settings; Read the support connection; Import designs and settings; List the builder blocks; List the builder’s add-on extensions; List forms; List website kits; List self-hosted fonts; List pages; List sections; List what can be exported; List uploaded icons; Move a section; Open a support ticket; Consent to support diagnostics; Remove a block from a page; Remove a self-hosted font; Convert legacy content; Start the free Pro trial; Undo one conversion; Undo the legacy migration; Change one block’s settings; Change the responsive breakpoints; Change the site design; Update a page; Change the plugin settings; Upload an icon.
What Pro adds (96)
Turn on an uploaded font; Add a product block or mini cart; Check a page’s accessibility; Create a custom block with AI; Explain, write or fix CSS with AI; Design a page from a screenshot or a link with AI; Edit a page with the AI assistant; Fix a page’s accessibility with AI; Generate an image with AI; Plan a website with AI; Apply the brand kit; Apply a find-and-replace; Build several pages; Check a page’s performance; Connect Adobe Fonts; Connect a mailing-list service; Convert an export from another builder; Convert a page from another builder; Create an A/B test; Create a global class; Create a starter cookie banner; Create a form; Create a popup; Add a query loop; Create a library team (Agency); Create a theme template; Turn off an uploaded font; Delete a global class; Delete a cloud library design; Delete a library team (Agency); Delete a theme template; Duplicate a global class; Find pages built with other builders; Write a page with AI; Read the conversion tracking; Read the cookie consent banner; Read the design system; Read the Figma connection; Read the cloud library account; Get a cloud library design; Read the own-storage settings; Read maintenance mode; List the animation and interaction settings; Read the newsletter connection; Preview a find-and-replace; Read the reviews sources; Read builder permissions; Read a page’s structured data; Read the theme builder’s choices; Read white label (Agency); Import a Figma frame; Invite a site to a team (Agency); Join a team; Leave a team; List the A/B tests and their results; List the dynamic content sources; Read form submissions; List cloud library designs; List Lottie animations; List the mailing-list connections; List the form-builder forms; List a service’s mailing lists; List the popups; List find-and-replace jobs; List team members; List library teams; List the theme templates; Preview a dynamic value; Refresh reviews now; Stop using your own storage; Remove a team member (Agency); Reset an A/B test’s results; Save a design to the cloud library; Animate a block; Use your own storage; Change maintenance mode; Connect Mailchimp; Change the reviews sources; Change builder permissions; Change white label (Agency); Clean up what the site health report found; Run the site health report; Find and replace across the site; Test your own storage; Undo a find-and-replace; Change the brand kit; Change a global class; Change the conversion tracking; Change the cookie consent banner; Change dark mode; Change a form; Change a popup; Change a theme template; Change the design tokens; Change the CSS variables; Upload a Lottie animation. Abilities marked (Agency) need the Agency plan. AI writing abilities use your own AI provider key, set in the plugin.
