loading…
Search for a command to run...
loading…
A WordPress plugin that enables AI assistants to manage Bricks Builder sites through natural language. It provides over 20 tools for reading and writing pages,
A WordPress plugin that enables AI assistants to manage Bricks Builder sites through natural language. It provides over 20 tools for reading and writing pages, templates, global styles, and WooCommerce layouts directly from MCP-compatible clients.
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.
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.
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.
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.
claude mcp add bricks-mcp https://yoursite.com/wp-json/bricks-mcp/v1/mcp --transport http
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.
| Tool | Description |
|---|---|
get_site_info |
Read WordPress site details and run connection diagnostics |
get_builder_guide |
Read the Bricks builder guide before editing content |
bricks |
Manage Bricks builder settings, schema, queries, and references |
content |
Manage WordPress and Bricks content across posts, pages, and elements |
template |
Manage Bricks templates, conditions, and template taxonomies |
design |
Manage Bricks design tokens across classes, styles, palettes, variables, and fonts |
media |
Upload media, search Unsplash, manage library |
menu |
WordPress menu management |
component |
Bricks component (reusable element) management |
woocommerce |
WooCommerce page templates and product layouts |
code |
Page-level CSS and JavaScript |
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.
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.
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.
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.
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.
Create a navigation menu called "Main Menu" with links to Home (/), About
(/about/), Services (/services/), and Contact (/contact/).
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.
Go to Settings > Bricks MCP in WordPress admin:
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;
});
Prerequisites: Docker and Node.js 18+.
git clone https://github.com/cristianuibar/bricks-mcp.git
cd bricks-mcp
npm install
npm run start
That'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)
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 log
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).
GPL-2.0-or-later
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"bricks-mcp": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also