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 "Install 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.
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cristianuibar/bricks-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server