Logo Bricks MCP Open

Bricks MCP Open

Cộng đồng
developer2013

The most comprehensive open-source MCP server for Bricks Builder — 105 tools for pages, templates, styles, SEO, content, and more.

Nhà phát hànhdeveloper2013
Kho mãbricks-mcp-open
Ngôn ngữPHP
Bản fork
10
Sao
90
Công cụ có sẵn
0
Phương thức truyền tảistdio
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Bricks MCP Open cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    90 sao và 10 bản fork từ kho mã được liên kết.

bricks-mcp

text
▟███████████████████████████████████████████▙
█  ____  ____  ___ ____ _  ______           █
█ | __ )|  _ \|_ _/ ___| |/ / ___|   BRICKS █
█ |  _ \| |_) || | |   | ' /\___ \          █
█ | |_) |  _ < | | |___| . \ ___) |  MCP    █
█ |____/|_| \_\___\____|_|\_\____/          █
▜▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▛
  105 tools · 17 modules · MIT licensed

Printed on startup. In a real terminal the box animates in brick-by-brick (set BRICKS_BANNER=anim|static|off).

The most comprehensive open-source MCP server for Bricks Builder.

100+ tools to manage pages, templates, styles, SEO, content, and more — directly from Claude Code, Cursor, Windsurf, or any MCP-compatible AI assistant.

Tools License Bricks MCP Runtime


Architecture

Claude Code / Cursor / AI Assistant
        ↕ MCP Protocol (stdio)
   bricks-mcp (Node.js)
        ↕ REST API (Basic Auth)
   bricks-api-bridge (WordPress Plugin)
        ↕ PHP
   WordPress + Bricks Builder

The MCP server communicates with your WordPress site through the included REST API plugin. Your AI assistant gets full control over Bricks Builder — reading pages, updating elements, managing styles, and building sections.


Quick Start (5 Minutes)

1. Install the WordPress Plugin

The plugin/ folder in this repo contains the Bricks API Bridge WordPress plugin. Choose one of these install methods:

Option A: ZIP Upload (easiest)

  1. Download bricks-api-bridge.zip from the latest release
  2. Go to WordPress Admin → Plugins → Add New → Upload Plugin
  3. Upload the ZIP and click "Install Now"
  4. Click "Activate"

Option B: Manual Upload via FTP/SSH

  1. Clone this repo or download it
  2. Copy the plugin/ folder to your WordPress installation:
    bash
    cp -r plugin/ /path/to/wordpress/wp-content/plugins/bricks-api-bridge/
  3. Go to WordPress Admin → Plugins → Activate "Bricks API Bridge"

Option C: WP-CLI

bash
# From the repo root. Builds from git, not from your working copy,
# so uncommitted files can't end up in the archive.
./scripts/build-plugin-zip.sh
wp plugin install bricks-api-bridge.zip --activate

After activation, the plugin registers REST API endpoints under /wp-json/bricks-bridge/v1/. No configuration needed — it works out of the box with WordPress Application Passwords.

2. Create an Application Password

In WordPress Admin → Users → Your Profile → Application Passwords:

  • Enter a name (e.g., "MCP Server")
  • Click "Add New Application Password"
  • Copy the generated password

3. Install the MCP Server

bash
git clone https://github.com/developer2013/bricks-mcp-open.git
cd bricks-mcp-open
npm install   # or: bun install

4. Configure Credentials

Copy .env.example to .env and fill in your details:

bash
cp .env.example .env
env
WORDPRESS_URL=https://your-site.com
WORDPRESS_USER=your-username
WORDPRESS_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx

5. Add to Your AI Assistant

Claude Code — add to ~/.claude/.mcp.json:

json
{
  "mcpServers": {
    "bricks": {
      "command": "node",
      "args": ["/path/to/bricks-mcp-open/index.js"]
    }
  }
}

Or with Bun (faster startup):

json
{
  "mcpServers": {
    "bricks": {
      "command": "bun",
      "args": ["/path/to/bricks-mcp-open/index.js"]
    }
  }
}

Claude Code iOS / Android App — open Settings → MCP Servers → Add Server:

  1. Name: bricks
  2. Command: node (or bun)
  3. Arguments: /path/to/bricks-mcp-open/index.js
  4. Environment Variables:
    • WORDPRESS_URL = https://your-site.com
    • WORDPRESS_USER = your-username
    • WORDPRESS_APP_PASSWORD = xxxx xxxx xxxx xxxx xxxx xxxx

Cursor / Windsurf — add the same config to .cursor/mcp.json in your project.

Hermes Agent (Nous Research) — add to config.yaml:

yaml
mcp_servers:
  bricks:
    command: node
    args: ["/path/to/bricks-mcp-open/index.js"]
    env:
      WORDPRESS_URL: https://your-site.com
      WORDPRESS_USER: your-username
      WORDPRESS_APP_PASSWORD: "xxxx xxxx xxxx xxxx xxxx xxxx"

Hermes has native MCP client support since v0.2.0 — all 105 tools appear in its tool list automatically. Works with any model (Hermes 3, Llama, OpenRouter, etc.).

Windows: TLS / "fetch failed" errors On Windows, Node.js ships its own bundled CA list and ignores the Windows certificate store. If your WordPress host sits behind a corporate proxy, TLS inspection, or a CA that's only trusted by Windows, every request fails with a certificate / fetch failed error. Tell Node to use the OS trust store by adding --use-system-ca before the script path in args (requires Node.js ≥ 22.15):

json
{
  "mcpServers": {
    "bricks": {
      "command": "node",
      "args": ["--use-system-ca", "C:\\path\\to\\bricks-mcp-open\\index.js"]
    }
  }
}

Alternatively set it via the environment instead of args: "env": { "NODE_OPTIONS": "--use-system-ca" }. On older Node versions, upgrade to ≥ 22.15 (or use NODE_EXTRA_CA_CERTS pointing to your CA bundle as a fallback).


Manage Your WordPress Site from Your Phone

Deploy the MCP server as a self-hosted MCP environment on Railway (or any Docker host), then connect it to the Claude Code mobile app. No Mac running in the background needed — the server runs 24/7 in the cloud.

How it works:

iPhone / Android (Claude Code App)
      ↕ Claude Self-Hosted MCP
Railway / Docker (MCP Server — always on)
      ↕ REST API
WordPress + Bricks Builder

Setup:

  1. Deploy the MCP server to Railway using the included agent-service/Dockerfile
  2. In Claude Console → MCP → Create Self-Hosted Environment
  3. Generate an environment key and add it to your Railway deployment
  4. The Claude Code mobile app automatically connects to your self-hosted environment

What you can do from your phone — no laptop needed:

You:  "List all my pages and their SEO scores"
You:  "Create a new landing page for my dental practice"
You:  "Update the hero headline on page 42 to 'Welcome to Our Practice'"
You:  "Run an SEO audit and fix all missing meta descriptions"
You:  "Add a testimonials section using the testimonials-slider preset"
You:  "Create a snapshot called 'before-redesign', then change the palette"
ActionExample Prompt
Build pages"Create a hero section with dark gradient background"
Edit content"Change the button text on page 42 to 'Book Now'"
SEO management"Set meta description and OG image for all pages"
Style updates"Update the primary color to #2563EB across the palette"
Backup & restore"Create a snapshot called 'before-redesign'"
QA checks"Check all links on page 42 for broken URLs"
Template management"Clone the header template and modify the navigation"

The server runs 24/7 on Railway — your phone is just the control surface. All 105 tools are available anywhere, anytime.

6. Test the Connection

Ask your AI assistant:

"Use the bricks_connection_test tool to verify my WordPress connection."


Tool Categories (100+ Tools)

CategoryToolsDescription
Pages9List, get, update, patch, append, build, clone, search pages
Scripts & Assets5Per-page CSS/JS management, GSAP flag control
SEO (Page)6Page-level SEO meta, schema markup, audit
Templates8Full template CRUD, clone, import, search
Backup & Snapshots7Named snapshots, multi-slot backups, restore
Global Classes7CSS class CRUD, bulk create, usage analysis
BEM Components3Generate, apply, and validate BEM class sets
Style System10Color palette, fonts, CSS variables, breakpoints
Theme Styles2Global theme style read/write
Presets4Section presets: list, instantiate, save, delete
SEO (Advanced)13Auto-fix, bulk update, sitemap, redirects, link check
WordPress Content8Posts, categories, tags CRUD
Menus5Navigation menu management
Site Management9Settings, page creation, validation, cache, stats
Media3Upload, list, edit media files
Multi-Site3Switch between WordPress sites at runtime
Utilities4Connection test, HTML→Bricks converter, Elementor→Bricks migration, batch ops

Migrating from Elementor?

Switching from Elementor (Pro) to Bricks? bricks_elementor_to_bricks gives you a head start:

  1. In WordPress, open the Elementor editor → ⌄ (menu) → Export Template (or Templates → Saved Templates → Export). You get a .json file.
  2. Run the tool with that file:
    bricks_elementor_to_bricks  file_path="/path/to/elementor-export.json"
  3. You get a ready-to-review Bricks element array plus a coverage report.
  4. Review it, then push with bricks_update_page (take a snapshot first) or bricks_import_page.

How it works: a purely structural translation — no headless browser, no rendering, no write to your site. Common widgets (heading, text, button, image, icon, divider, spacer) and the section/column/container structure map straight to native, editable Bricks elements. Widgets without a native equivalent (e.g. Pro sliders, forms, loops) become clearly-labelled placeholder blocks carrying a preview of their original content — so nothing is lost silently and you always see where and what to rebuild by hand. line-height is converted to a correct unitless ratio so you never inherit Elementor's px values as Bricks multipliers.


Keeping your CSS editable in Bricks

The whole point of Bricks is a visual builder — so CSS the assistant writes should stay editable in Bricks, not vanish into a place you can't reach. This plugin can inject per-page CSS into a private bundle (_bab_page_assets, output at wp_head priority 9997 — before element CSS) via bricks_update_page_assets. That bundle is not shown anywhere in the Bricks builder and silently overrides what the builder displays — great for infrastructure CSS (@font-face, :root{--vars}, @keyframes, critical above-the-fold), but the wrong home for the layout/responsive/visual CSS you'll want to tweak by hand later. (This is exactly the r/BricksBuilder feedback: "plugin-managed page CSS that a human can't edit defeats the purpose of using Bricks.")

Where editable CSS belongs (priority order):

  1. Native element settings — padding, typography, colors, etc. (fully visual controls)
  2. Element _cssCustom — per-element custom CSS, editable on the element's CSS tab
  3. Page customCss — bricks_update_page_settings → Bricks Page Settings → Custom CSS
  4. Global classes — editable in the Class Manager (build them with native settings, not _cssCustom, which is not compiled into page CSS via the API path)

The editability guard

To stop editable CSS from leaking into the invisible bundle, the guard classifies the css field of bricks_update_page_assets and acts in three modes:

ModeBehaviour
off (default)No-op — fully backwards-compatible
warnWrite proceeds, the REST response carries a warnings[] field naming the editable rules
blockEditable CSS is rejected (HTTP 422) and nothing is written

Enable it by adding one line to your wp-config.php (above /* That's all, stop editing! */):

php
// Bricks API Bridge — warn (or 'block') when editable CSS is sent to the private page-assets bundle
define( 'BAB_GUARD_EDITABLE_CSS', 'warn' );

(Or, without editing files: wp option update bab_guard_editable_css warn.) On the MCP side, the bricks_update_page_assets tool warns by default; set the env var BRICKS_MCP_BLOCK_EDITABLE_CSS=1 to hard-block there too. Infrastructure CSS always passes — use the css_critical / css_deferred fields for it.


Multi-Site Support

Manage multiple WordPress sites from a single MCP server. Copy sites.json.example to sites.json:

json
{
  "default": "production",
  "sites": {
    "production": {
      "label": "Live Site",
      "url": "https://your-site.com",
      "username": "admin",
      "password": "xxxx xxxx xxxx xxxx xxxx xxxx"
    },
    "staging": {
      "label": "Staging",
      "url": "https://staging.your-site.com",
      "username": "admin",
      "password": "xxxx xxxx xxxx xxxx xxxx xxxx"
    }
  }
}

Switch sites at runtime:

"Switch to the staging site."

Custom sites.json location. If you collect your MCP servers in one folder and keep site configs elsewhere, set BRICKS_SITES_PATH to point at the file — absolute, relative (to the working directory), or ~-prefixed all work:

BRICKS_SITES_PATH=~/mcp-config/bricks-sites.json

When set, a missing file fails loudly at startup (instead of silently falling back to the WORDPRESS_* env vars), so a typo in the path can't connect you to the wrong site. No need to symlink sites.json into the server folder.


Usage Examples

Build a page section

"Create a hero section on page 42 with a full-width background, centered heading 'Welcome', a subtitle, and a CTA button."

Manage styles

"Update the color palette — set the primary color to #2563EB and secondary to #7C3AED."

SEO optimization

"Run an SEO audit on all published pages and auto-fix missing meta descriptions."

Backup before changes

"Create a snapshot of page 42 named 'before-redesign', then update the hero section."


Plugin Features

The included WordPress plugin (bricks-api-bridge) provides:

  • REST API endpoints for all Bricks Builder data
  • Security hardening — rate limiting, user enumeration protection, security headers
  • Responsive inference — automatic mobile/tablet breakpoint generation
  • Element validation — catches invalid IDs, broken parent-child links
  • Auto-fix — corrects common CSS issues (overflow, grid, container width)
  • Backup system — multi-slot backups + named snapshots
  • Design token import/export — JSON, ACSS, Tailwind formats

Feature Comparison

Featurebricks-mcpNovamiracristianuibar/bricks-mcpsabiertas/bricks-mcp-server
FocusBricks BuilderGeneric WordPressBricks BuilderBricks Builder
Tools10522 (12 core + 10 Gutenberg)1110
ApproachREST API (structured endpoints)PHP execution + filesystemREST APIREST API
Agent ServiceAutonomous 5-phase pipeline---
Mobile ControlTelegram bot (iPhone/Android)---
Multi-SiteRuntime switching--Environment vars
BEM SupportGenerate + Apply + Validate---
SEO Tools19 (meta + audit + redirects)---
Backup SystemSnapshots + Multi-slot---
Section Presets25 ready-to-use---
Security HardeningRate limit + Headers---
Responsive InferenceAuto breakpoints---
WordPress ContentPosts + Categories + Tags + MenusVia PHP execution--
Batch OperationsUp to 20 per request---
Design TokensImport/Export (JSON, ACSS)---
Auto-FixOverflow, grid, container---
Gutenberg Support-Block Editor Queue--
PHP Execution-Direct PHP eval--
LicenseMITAGPL-3.0GPL-2.0MIT

Requirements

  • Node.js >= 18 or Bun >= 1.0 (Windows behind a proxy/custom CA: use Node ≥ 22.15 with --use-system-ca — see Windows TLS note)
  • WordPress >= 6.0
  • Bricks Builder >= 2.0
  • PHP >= 8.0

Agent Service (Autonomous Page Builder)

The agent-service/ directory contains an autonomous agent that builds entire WordPress pages from industry briefs — using Claude + the MCP server in a 5-phase pipeline:

Industry Brief → Historian → Design → Code → Update → QA → Fix Loop
  • Build from your iPhone or Android — Use the Telegram bot or the Claude Code mobile app as your control center: trigger builds, QA, fixes, and screenshots from anywhere
  • CLI Mode — Single builds or overnight batch processing
  • Budget Control — Per-phase cost caps, total cost tracking
  • Docker Ready — Deploys to Railway, Fly.io, or any container host

See agent-service/README.md for setup instructions.


Premium

Looking for more? The premium edition includes 260+ tools with:

  • AI Build Pipeline — Build entire pages from a URL in one command
  • Learning System — Remembers CSS fixes and improves over time
  • Math Library — 33 modules for design tokens, color harmony, spring physics
  • Visual QA — Puppeteer screenshots, pixel comparison, accessibility audits
  • Design Intelligence — Brand archetypes, competitive benchmarking, typography suggestions
  • WooCommerce, ACF, Gravity Forms integrations
  • Bio-inspired animations — Levy stagger, density-intensity, quorum sensing

Reach out for premium access


Contributing

See CONTRIBUTING.md for guidelines.

License

MIT License. See LICENSE.

Dùng MCP Bricks MCP Open với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Bricks MCP Open, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Bricks MCP Open làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Bricks MCP Open.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "bricks-mcp-open": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Bricks MCP Open, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Bricks MCP Open.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Bricks MCP Open giúp tôi làm việc này không?
Bricks MCP Open
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Bricks MCP Open.

Câu hỏi thường gặp

Máy chủ MCP Bricks MCP Open dùng để làm gì?

Bricks MCP Open là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Bricks MCP Open với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Bricks MCP Open với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Bricks MCP Open với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Bricks MCP Open, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Bricks MCP Open với TypingMind?

Bricks MCP Open hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Bricks MCP Open cung cấp những công cụ nào trong TypingMind?

Bricks MCP Open cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Bricks MCP Open không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Bricks MCP Open yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇