If you have connected an AI assistant to WordPress, you have probably noticed that some setups burn through tokens far faster than others. We hit this ourselves while rebuilding this site. Our first approach, a JSON-based connector that gave the AI dozens of WordPress tools, got expensive quickly. Switching to the Bricks AI abilities over MCP did the same work with far less back-and-forth.
This post explains why. The short version: cost is driven by how much text has to pass through the model on every step, and the two approaches move very different amounts of text.
How each setup works
A JSON-based connector is usually a plugin that exposes a long list of tools (create page, update meta, set Bricks data, upload media and so on) and passes raw JSON back and forth. The AI reads data as JSON, edits it, and sends JSON back.
Bricks AI abilities over MCP work differently. Bricks 2.4 registers its actions with the WordPress Abilities API, and the WordPress MCP Adapter exposes them to an AI client. Bricks decides which tools appear up front, what each response contains, and how much work happens on the server.
Where the tokens go
1. Tool descriptions are sent with every message
An AI client includes the description and input format of every available tool in each request, whether or not the tool is used. A connector with around 60 tools can add thousands of tokens of overhead to every single turn before any real work starts.
The Bricks MCP server shows a short list of common tools directly, plus three general ones: discover abilities, get ability details and execute an ability. The other abilities, well over a hundred of them, are looked up only when a task needs them.
2. Whole pages travel back and forth
Bricks stores a page as a flat JSON list of every element with all of its settings. With a raw JSON connector, a small change often means reading the entire page, editing it, and sending the entire page back. A one-word heading fix can cost as much as rebuilding the page.
It gets worse with Code elements. Large HTML blocks stored inside JSON have to be escaped, so every quote and line break becomes extra characters, and those characters are tokens too.
3. Retries and long histories
When a write fails or a bad tool call breaks the conversation, the assistant tries again, and every retry re-sends the conversation so far. In-dashboard chat plugins that keep a long history make this worse, because the history grows with every tool result.
What Bricks does differently
- Compact reads. Abilities such as
bricks/get-page-structurereturn a lightweight tree instead of every setting, and many responses default to a short summary. - Targeted edits.
bricks/update-element,bricks/add-elementandbricks/remove-elementchange one element without resending the page. - Conversion on the server. The assistant can send short semantic HTML and CSS, and
bricks/commit-html-css-page-importturns it into native Bricks elements, global classes and variables on the server. The bulky Bricks JSON is never written by the model. - Safety checks built in. Writes check versions and digests, create revisions where supported, and replay safely with an idempotency key, so mistakes are caught on the server instead of through repeated attempts.
- A design system you edit once. Global classes, variables and components mean one change restyles every page. When we moved this site to serif headlines, we updated a handful of classes instead of editing each page.
Tips to keep AI costs down on any WordPress site
- Ask for targeted changes. “Change this heading” or “remove these links” is far cheaper than “rebuild the page”.
- Keep design in shared classes and components. Style once, reuse everywhere.
- Build new pages from HTML/CSS import or components, not hand-written builder JSON.
- Keep large files out of the chat. Upload images and big payloads directly rather than pasting them into the conversation.
- Start a fresh conversation for each big task. Long chats re-send a lot of history on every turn.
Setting up Bricks AI abilities
- Update to Bricks 2.4 or later on WordPress 6.9 or later.
- Go to Bricks > AI > Configuration, turn on Enable Bricks abilities and save.
- Install and activate the WordPress MCP Adapter from the same screen.
- Create an application password for the user the AI should act as.
- Copy the client config Bricks generates. For Claude Code it looks like this:
claude mcp add your-site \
--env WP_API_URL='https://example.com/wp-json/mcp/mcp-adapter-default-server' \
--env WP_API_USERNAME='ai-user' \
--env WP_API_PASSWORD='xxxx xxxx xxxx xxxx' \
-- npx -y @automattic/mcp-wordpress-remote@latest
Start a new chat and ask the assistant to call bricks-start-here to confirm the connection.
A few cautions
- Bricks labels AI abilities as experimental. Test on staging first and keep backups.
- Use a dedicated WordPress user with only the builder permissions it needs, and revoke old application passwords.
- Never paste passwords or API keys into a chat. Keep them in the MCP client config.
- Leave PHP abilities switched off unless you are on a trusted development site.
- Security plugins and host firewalls can block bursts of API requests. If logins start failing at random, check for a lockout and allow application-password requests from your AI tool.
The takeaway
Token cost is not really about which AI model you use. It is about how much text each step forces through it. A connector that exposes every tool on every turn and shuffles whole pages of JSON will always cost more than one that keeps tool lists short, edits precisely and does the heavy conversion on the server. If you build with Bricks, the AI abilities are worth switching to for that reason alone.


