Bricks MCP
Allows for comprehensive management of Bricks Builder sites, including the ability to read and write pages, templates, elements, global CSS classes, theme styles, and typography scales.
Integrates Unsplash search and media management capabilities directly into the WordPress media library workflow.
Provides specialized tools for managing WooCommerce site components, including page templates, product layouts, cart, checkout, and account pages.
Enables management of core WordPress functionality such as posts, pages, users, plugins, comments, taxonomies, and navigation menus.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bricks MCPcreate a new landing page with a hero section and contact form"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bricks MCP
AI-powered assistant for Bricks Builder. Control your website with natural language through MCP-compatible AI tools like Claude.
Talk to your website. It listens.
What It Does
Bricks MCP is a WordPress plugin that implements an MCP (Model Context Protocol) server, letting AI assistants read and write your Bricks Builder site. Connect Claude Code, Claude Desktop, Cursor, or any compatible MCP client and manage pages, templates, global classes, theme styles, WooCommerce layouts, and more through natural language.
Related MCP server: WP Pinch
Features
11 canonical MCP tools covering the full Bricks Builder data model
Read and write pages, templates, elements, and global settings
WooCommerce support (product pages, cart, checkout, account templates)
Global classes, theme styles, typography scales, color palettes, variables
Media library management with Unsplash integration
WordPress menus, fonts, and custom code management
Built-in connection tester and config snippet generator
Works with Claude Code, Claude Desktop, Cursor, and other compatible MCP clients
Requirements
WordPress 6.4+
PHP 8.2+
Bricks Builder 1.6+
Installation
No Composer required. The plugin ships its own PSR-4 autoloader (includes/Autoloader.php) that maps the BricksMCP\ namespace to the includes/ directory. Simply upload and activate -- no build step needed.
Download the latest release from GitHub Releases
Upload to your WordPress site via Plugins > Add New > Upload Plugin
Activate the plugin
Go to Settings > Bricks MCP to configure
LocalWP / Manual Server Setup
If you run LocalWP or a custom server stack, PHP and Nginx may need configuration changes for stable MCP connections (SSE streaming requires longer timeouts and unbuffered responses). See the LocalWP Setup Guide for step-by-step instructions.
Connecting Your AI Tool
Claude Code
claude mcp add bricks-mcp https://yoursite.com/wp-json/bricks-mcp/v1/mcp --transport httpClaude Desktop / Cursor / Other MCP Clients
Add to your MCP config (.mcp.json or equivalent):
{
"mcpServers": {
"bricks-mcp": {
"type": "http",
"url": "https://yoursite.com/wp-json/bricks-mcp/v1/mcp",
"headers": {
"Authorization": "Basic BASE64_ENCODED_CREDENTIALS"
}
}
}
}Authentication uses WordPress Application Passwords (Users > Profile > Application Passwords).
ChatGPT is not currently supported as an MCP client for this plugin. ChatGPT's MCP flow requires OAuth 2.1 and dynamic client registration, while Bricks MCP uses WordPress Application Passwords for authentication.
Available Tools
Tool | Description |
| Read WordPress site details and run connection diagnostics |
| Read the Bricks builder guide before editing content |
| Manage Bricks builder settings, schema, queries, and references |
| Manage WordPress and Bricks content across posts, pages, and elements |
| Manage Bricks templates, conditions, and template taxonomies |
| Manage Bricks design tokens across classes, styles, palettes, variables, and fonts |
| Upload media, search Unsplash, manage library |
| WordPress menu management |
| Bricks component (reusable element) management |
| WooCommerce page templates and product layouts |
| Page-level CSS and JavaScript |
Try It Out
Once connected, try these prompts with your AI tool. Each one exercises different MCP tools and can be used to verify the integration is working.
Basic checks
What WordPress site am I connected to? What version is it running?List all active plugins on this site.Show me the Bricks Builder guide so I understand how to build pages.Page building
Create a new page called "About Us" with a hero section containing a heading
"About Our Company" and a paragraph of placeholder text below it.Add a two-column container to the About Us page. Put a heading and text in the
left column, and an image placeholder in the right column.List all my pages and show which ones use Bricks Builder.Global styles
Create a global class called "btn-primary" with 12px 24px padding, white text,
#2563eb background, 6px border radius, and 600 font weight.Create a color palette called "Brand Colors" with: Primary #2563eb, Secondary
#7c3aed, Accent #f59e0b, and Neutral #64748b.Create a theme style that sets all H1 headings to 48px bold and H2 to 36px
semibold.Templates
Create a section template called "CTA Banner" with a dark background section
containing a centered heading and a button.List all my templates and their types.Menus
Create a navigation menu called "Main Menu" with links to Home (/), About
(/about/), Services (/services/), and Contact (/contact/).Advanced
Show me the Bricks settings and breakpoints configured on this site.Create a typography scale with steps: xs 12px, sm 14px, base 16px, lg 20px,
xl 24px, 2xl 32px, 3xl 48px. Use the prefix --fs-.Create a set of global CSS variables for spacing: --space-xs 4px, --space-sm
8px, --space-md 16px, --space-lg 32px, --space-xl 64px.Configuration
Go to Settings > Bricks MCP in WordPress admin:
Enable MCP Server — toggle the server on/off
Require Authentication — restrict access to authenticated users
Custom Base URL — for reverse proxies or custom domains
Dangerous Actions — enable write access to global Bricks settings and code execution
Extending
Add custom tools using the bricks_mcp_tools filter:
add_filter( 'bricks_mcp_tools', function( $tools ) {
$tools['my_custom_tool'] = [
'name' => 'my_custom_tool',
'description' => 'My custom tool description',
'inputSchema' => [
'type' => 'object',
'properties' => [],
],
'handler' => function( $args ) {
return ['result' => 'success'];
},
];
return $tools;
});Local Development
Prerequisites: Docker and Node.js 18+.
git clone https://github.com/cristianuibar/bricks-mcp.git
cd bricks-mcp
npm install
npm run startThat's it. The first start takes a few minutes to download WordPress and set up the containers. Composer dependencies are installed automatically inside the containers.
Local site: http://localhost:8888 (admin / password)
Available Commands
npm run start # Start WordPress environment (Docker via wp-env)
npm run stop # Stop the environment
npm run test # Run all PHPUnit tests
npm run test:unit # Run unit tests only
npm run lint # WordPress coding standards check
npm run lint:fix # Auto-fix linting issues
npm run wp <command> # Run WP-CLI commands
npm run logs:watch # Tail the PHP debug logHow It Works
The dev environment uses @wordpress/env (wp-env), which runs WordPress in Docker containers. The plugin directory is mounted directly into the container, so file changes are reflected immediately.
A mu-plugin is included to fix Docker networking quirks (REST API loopback and Application Passwords over HTTP).
License
GPL-2.0-or-later
This server cannot be deployed
Maintenance
Related MCP Connectors
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Secure MCP Server for WordPress connects AI assistants and agents to WordPress with secure, controlled access. It lets AI interact with WordPress through MCP while helping organizations manage access, enforce policies, protect non-human identities (NHI), and require human approval for sensitive actions. Use it to securely connect tools such as ChatGPT, Claude, and Cursor with WordPress. Marketplace Link: https://wordpress.org/plugins/miniorange-secure-mcp-server/ Official website: https://plugins.miniorange.com/mcp-server-ai-policy-enforcement-wordpress
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server for AI-assisted WordPress editing across 12 page builders. 172 tools for content management, page builder editing, WooCommerce, SEO analysis, accessibility scanning, and site intelligence. Edits native builder formats (Elementor, Bricks, Divi, Gutenberg, Beaver Builder, and 7 more) with duplicate-before-edit safety, optimistic locking, and surgical element-level operations7MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage and interact with WordPress sites through MCP, providing tools for content creation, moderation, WooCommerce operations, and governance.47GPL 2.0
- AlicenseBqualityAmaintenanceComprehensive MCP server for Bricks Builder with 100+ tools to manage pages, templates, styles, SEO, and content directly from AI assistants like Claude Code.11586MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Bricks Builder pages, templates, and elements via natural language, with multi-site and CPT support.2929 npm15GPL 2.0