# Bricks MCP: layouts, classes and templates from your AI agent

On a Bricks page, a text, image or button edit applies at once in Direct mode when the option for plain builder edits is on, and a new draft applies at once as well. An edit that touches code, attributes, dynamic data, conditions or loops waits for an administrator allowed to add code. With Review first switched on, every Bricks change waits for approval in wp-admin.

## Does Widejoin work with Bricks Builder?

Widejoin gives your AI agent Bricks tools tested on Bricks 2.4.1: the free plugin reads element trees, classes and templates, [the Pro add-on from $99 a year](/pricing/) writes them, and each write is recorded. The free plugin alone cannot change a Bricks page, and with Pro a change to a layout that already exists can wait for an administrator.

## What did we test on Bricks Builder?

Bricks 2.4.1 on WordPress 7.1.2, on our lab on 26 September 2026. The agent built and edited the element tree, and the Bricks builder reopened with the new content. Three restores, of a header template, a layout after publication and a global class, each brought back the original.

## Which Bricks tools does Widejoin have?

12 tools: 5 that read and 7 that write. The read tools are in the free plugin and the write tools in the Pro add-on. The draft tools create an unpublished page at once. The rest make a recorded change. In Direct mode it applies in the same call when the agent may add code, or when it is a plain edit and the option for plain builder edits is on, and otherwise waits for an administrator. In Review first it waits for a person.

- Read, free: `bricks-element-schema`, `list-bricks-templates`, `read-bricks`, `read-bricks-globals`, `read-bricks-layout`.
- Write, Pro add-on: `create-bricks-draft`, `create-bricks-template`, `prepare-bricks`, `prepare-bricks-globals`, `prepare-bricks-layout`, `prepare-bricks-page-settings`, `prepare-bricks-template-settings`.

## What can the agent change in Bricks?

With the Pro add-on: the element tree (add, update, label, move, duplicate, remove, insert a template), global classes, color palettes, variables and theme styles, templates with their conditions, and page and template settings. It reads all 119 registered elements and their controls first. The free plugin reads all of these and changes none of them.

## How do I set up a Bricks MCP server?

Install the free Widejoin plugin on your Bricks site, connect it in the Widejoin console, add the Pro add-on, add `https://widejoin.com/mcp` to Claude Code with a token, then let the agent's role into the Bricks builder. Your AI agent can then read Bricks element trees on the free plugin and, with Pro, edit them, each change recorded, with an undo where one is possible.

1. **Check the site.** WordPress 6.9 or later, PHP 8.2 to 8.4, HTTPS, the [MCP Adapter plugin 0.7.x](/docs/install/) and a backup from the last 24 hours, with the Bricks theme active. We tested on Bricks 2.4.1.
2. **Install the plugin.** Download the Widejoin ZIP from the [download page](/download/), upload it under Plugins > Add New > Upload Plugin and activate it.
3. **Connect the site in the console.** On the Widejoin screen in wp-admin, which opens once after activation, click "Connect with a Widejoin account". It opens the sign-up with your site's address and creates nothing on the site. Then add the site under Sites in the console. You know it worked when the console shows the site as Connected, with the WordPress user it connects as.
4. **Add the Pro add-on.** The Pro add-on is a second ZIP from the Licence page of the Widejoin account you just created, uploaded the same way. Enter the licence key from that page on the Pro tab under Widejoin in wp-admin. Without Pro the agent reads your Bricks pages and does not write them. Plugins should then list Widejoin MCP and Widejoin Pro, both active.
5. **Create a token.** On Settings > Tokens in the console, create a token for Claude Code. It is shown once, and a site token reaches one site.

   ![Widejoin console token panel: the new token hidden behind dots, a Copy button and the AI clients to set up](/lab/docs-connect-console-token-480.webp "Illustration from our lab capture: a new token, shown once. The token is hidden and the panel's lower rows are faded out.")
6. **Add the server to Claude Code.** Run the two commands below and paste the token when the first one waits. Then run `claude mcp list` and look for the `widejoin` entry.

```
read -rs WIDEJOIN_TOKEN
claude mcp add --scope user \
  --transport http widejoin \
  https://widejoin.com/mcp \
  --header \
  "Authorization: Bearer $WIDEJOIN_TOKEN"
```

7. **Let the agent's role into Bricks.** This step is Bricks' own, and our own lab run on 4 November 2026 missed it. The agent's user starts as an Editor, and a fresh Bricks lets only administrators into its builder, so an Editor agent is refused every Bricks page. In Bricks > Settings > Builder access give the Editor role Full access, then tick Pages in Bricks > Settings > General > Post types and save. Full access lets every Editor on the site build with Bricks. If the agent only edits pages that already exist, Edit content or a custom Bricks capability for the role is enough, and Full access is needed only to create Bricks pages. You know it worked when the agent reads a Bricks page with `widejoin-read-bricks` instead of being refused.

   ![Bricks Settings, Builder access: Administrator and Editor set to Full access, Author, Contributor and Subscriber set to No access](/lab/docs-bricks-builder-access-344.webp "Builder access in Bricks 2.4.1 on our lab, with the Editor role set to Full access.")
8. **Ask for one small edit first.** One heading on one page, with "Change nothing else." at the end of the prompt. Then reopen that page in the Bricks builder and check the heading and the element tree in the Structure panel.

A prompt like this one fits step 8:

```prompt
On the Bricks page "Home", change the heading "Fresh bread every morning" to "Fresh bread from 7 am". Change nothing else.
```

The [install guide](/docs/install/) covers the Widejoin screen and the MCP Adapter. Other AI clients connect with the same address and token, and the [Claude Code setup page](/clients/claude-code/) and [Connect your AI client](/docs/connect/) say how each one was tested.

### What does a Bricks AI agent cost with Widejoin?

The plugin is free and reads Bricks. Every Bricks write is in Pro, $99 a year for 3 sites. The Pro trial runs 14 days on up to 10 sites with no card. When it ends, Pro tools go back to their free state, so the agent reads your Bricks pages again and stops writing them. The free plugin keeps working on every site and the hosted server keeps your first 2 sites. Your AI client is billed separately by its own provider. [Widejoin pricing](/pricing/) compares the plans.

If your agent can already read a Bricks page but every edit stops at "Pro", the [14 day Pro trial](/sign-up?trial=pro&src=int-bricks-howto) turns the Bricks write tools on for this site.

### What does Claude do when you ask for a Bricks edit?

It reads before it writes. For a heading, text, button or image alt change it calls `widejoin-read-bricks`, which lists those elements by ID with a fingerprint of the layout. It then sends `widejoin-prepare-bricks` with that fingerprint. If someone saved the page in between, the edit is refused with "The target changed. Read it again before preparing an edit.", and nothing is written.

For a new section, a moved element or a new element it calls `widejoin-read-bricks-layout` and then `widejoin-prepare-bricks-layout`, which skips that check.

In Direct mode a plain text, image or button edit applies at once when "Let simple page builder edits go live at once" is ticked. It is ticked for a new connection. A change that adds code waits for an administrator allowed to add code. If someone has the page open in the Bricks builder, the change is not written over their work. [How a change applies and what waits](/how-it-works/) has the full list.

### What did our own Bricks run show?

On 4 November 2026 we connected an Editor agent to a lab site running Bricks 2.4.1 and a Widejoin 0.7.4 build, through the MCP address, with Bricks left as it ships. The first call, `read-bricks` on a page with one heading, came back refused. Before that week the refusal was a bare "Permission denied", which told the agent nothing it could pass on.

The reply now names the cause: "Bricks decides who may use its builder and does not let your role edit Pages with it yet", followed by the two settings in step 7. We gave the Editor role Full access, ticked Pages and ran the same calls again. `read-bricks` returned the page, a single h3 heading, with its fingerprint, and the site-info answer no longer carried a Bricks note. That is why step 7 is there.

## How are Bricks settings checked?

Against each element's own Bricks controls, including breakpoint and state suffixes. Colors must be hex, rgb(a), hsl(a) or var(). Links must be http(s), mailto, tel, relative, anchors or dynamic data. Media must come from the Media Library.

## What does it refuse in Bricks?

`{echo:...}` and `{do_action:...}` tags, the code element's executeCode, and the query editor. Attribute names that are event handlers, href, src or style are refused too.

## What if someone has the page open in Bricks?

The change waits. While another user has the page open in the Bricks builder or the editor, Widejoin does not write to it, because the change would overwrite their unsaved work or be lost at their next save. In Direct mode it stays pending at its review link, and a person can approve it once they close the page.

## How does restore work?

In Direct mode the agent undoes a change with one `restore-change` call, and a person can restore it from the change's page in wp-admin. On the lab, three restores (a header template, a layout after publication, and a global class) each returned the original fingerprint.

Bricks bumps two counters on its own whenever media or classes are used. If Widejoin recorded them, every restore would look like a conflict. They are left out of the record, and the class timestamp is bumped again after an apply or restore so Bricks rebuilds its CSS.

## How do I connect Claude Code or Cursor to a Bricks site?

Follow the setup steps above. Cursor and other AI clients use the same `https://widejoin.com/mcp` address and token, and [Connect your AI client](/docs/connect/) has the setup for each one.

Related: the [Elementor integration](/integrations/elementor/), the [Gutenberg integration](/integrations/gutenberg/), [how a change works](/how-it-works/) and the [install docs](/docs/).

## Questions

### Which Bricks version did you test?

Bricks 2.4.1, on WordPress 7.1.2.

### Is there a free Bricks MCP server?

Open source Bricks MCP servers exist; we have not tested them. Widejoin's free plugin reads Bricks pages, classes and templates, and all 7 Bricks write tools are in the Pro add-on.

### Is there a Bricks MCP server on GitHub?

Other developers publish Bricks MCP servers there, and Google's AI Overview for "bricks mcp" cited one on 30 October 2026. We have not run them, so this page does not link them. The Widejoin Bricks tools come with the plugin, not as a separate server.

### How does Widejoin compare with Novamira or Respira for Bricks?

Novamira's free plugin is open source and offers PHP, file and database abilities, and its Pro plan is EUR 69 a year for 3 sites. Respira has a Bricks page and starts at EUR 9 a month for 1 site, with a 7 day trial. We read both on 26 and 27 October 2026 and have not run either on Bricks. Widejoin has 12 Bricks tools with a record for each write, and gives no arbitrary file access. The [comparison](/compare/) has the full table.

### Does it work with Claude Code?

Yes. Claude Code connects with the two commands in step 6 above, and the [Claude Code page](/clients/claude-code/) has the rest of its setup.

### Can the agent edit Bricks global classes?

Yes, with the Administrator role. In Direct mode the change applies at once when the agent's user may add code, and otherwise waits for an administrator who may. It waits for a person in Review first. Editors are refused.

### Can it add code elements that run PHP?

No. executeCode, echo tags and the query editor are refused.

### Can it publish a Bricks header?

It creates the template hidden. The template shows on the site once a change sets its conditions, which waits for a person in both modes by default, because where a theme template shows is on the site's ask-before list. Both steps need the Administrator role.

### Why does my agent get "Permission denied" on a Bricks page?

Bricks decides who may use its builder, and a fresh Bricks lets only administrators in. Older Widejoin builds passed on Bricks' bare "Permission denied". The current one names the two settings to change: builder access for the role in Bricks > Settings > Builder access (Edit content is enough for pages that already exist, and Full access lets it create them), and the post type ticked in Bricks > Settings > General > Post types.

### Can an Editor agent change Bricks global classes or templates?

Not the site-wide parts. Global classes, color palettes, variables, theme styles, new templates and template settings need the Administrator role, whatever Bricks' builder access says. An Editor agent with Bricks access edits pages, creates drafts and can propose a change to the layout of a template it may edit, recorded with an undo like any other change.

### Is this Bricks AI?

No. Bricks 2.4 has its own AI Abilities, which connect a client such as Claude Code from Bricks > AI. Bricks marks them experimental and says to keep them off on production (bricksbuilder.io/ai, checked 10 November 2026). Widejoin is a separate plugin that records each Bricks write, with an undo where one is possible. We have not tested the two together.
