{"id":50039374,"url":"https://github.com/yasirshabbirservices/bricks-builder-mcp","last_synced_at":"2026-05-30T23:00:30.420Z","repository":{"id":359194580,"uuid":"1242947065","full_name":"yasirshabbirservices/Bricks-Builder-MCP","owner":"yasirshabbirservices","description":"Bricks Builder MCP is a powerful WordPress plugin that exposes a Model Context Protocol (MCP) server for Bricks Builder, enabling Claude Code, Cursor, VS Code, Trae, and other MCP-compatible AI clients to build and manage WordPress websites programmatically. Create pages, templates, global styles, navigation menus, reusable components, SEO metadata","archived":false,"fork":false,"pushed_at":"2026-05-30T21:01:22.000Z","size":15516,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T21:05:37.753Z","etag":null,"topics":["ai","ai-agents","automation","bricks-builder","claude-code","cursor-ai","developer-tools","headless-cms","llm","mcp","model-context-protocol","no-code","php","visual-builder","vscode","web-development","website-builder","woocommerce","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yasirshabbirservices.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-18T23:03:04.000Z","updated_at":"2026-05-30T21:01:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yasirshabbirservices/Bricks-Builder-MCP","commit_stats":null,"previous_names":["yasirshabbirservices/bricks-builder-mcp"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/yasirshabbirservices/Bricks-Builder-MCP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasirshabbirservices%2FBricks-Builder-MCP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasirshabbirservices%2FBricks-Builder-MCP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasirshabbirservices%2FBricks-Builder-MCP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasirshabbirservices%2FBricks-Builder-MCP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasirshabbirservices","download_url":"https://codeload.github.com/yasirshabbirservices/Bricks-Builder-MCP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasirshabbirservices%2FBricks-Builder-MCP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33712579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-agents","automation","bricks-builder","claude-code","cursor-ai","developer-tools","headless-cms","llm","mcp","model-context-protocol","no-code","php","visual-builder","vscode","web-development","website-builder","woocommerce","wordpress","wordpress-plugin"],"created_at":"2026-05-21T02:08:14.197Z","updated_at":"2026-05-30T23:00:30.413Z","avatar_url":"https://github.com/yasirshabbirservices.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bricks Builder MCP\n\nA WordPress plugin that exposes a [Model Context Protocol (MCP)](https://modelcontextprotocol.io) HTTP server, letting Claude Code and any MCP-compatible AI client design and build your Bricks Builder website programmatically — no drag-and-drop required.\n\n---\n\n## Features\n\n| Tool Group | What the AI can do |\n|---|---|\n| **Pages** | Create, read, update, delete, and duplicate pages + write Bricks element layouts |\n| **Templates** | Header / footer / section templates with display conditions |\n| **Global Design** | Color palette, global CSS classes, theme styles, CSS variables |\n| **Posts \u0026 CPTs** | Manage any WordPress post type |\n| **Media** | Browse, import, and delete media assets |\n| **Nav Menus** | Create and manage WordPress navigation menus |\n| **Components** | Manage Bricks reusable components |\n| **Search \u0026 Replace** | Find and replace colors, classes, or text across all pages and templates |\n| **SEO** | Read/write meta title, description, OG data (Yoast or Rank Math) |\n| **Cache** | Clear site cache after writes (WP Rocket, LiteSpeed, W3TC, etc.) |\n| **WooCommerce** | Browse products and categories (read-only) |\n| **AI Memory** | Persistent site knowledge injected into every AI session |\n| **History** | Auto-snapshot before every write — restore any previous state |\n| **Business Profile** | Brand colors, typography, design style, contact, social, services — full AI project context |\n| **Design System** | Apply or inspect BricksTemplate design system presets |\n| **Template Library** | Search and retrieve built-in wireframe templates by category |\n| **Session Context** | Single startup call: site info, palette, classes, fonts, framework, business profile, and memories |\n| **Validation** | Validate element arrays before writing — catches corrupt payloads early |\n| **Agent Skills** | On-demand best-practice guides: accessibility, SEO, CSS, performance, typography, layout, dynamic data |\n| **Design Audit** | Scan all pages for design inconsistencies — hardcoded colors, mismatched fonts, spacing drift |\n| **Element Search** | Find elements by type, class, setting key/value, or text content across all pages |\n\n**77 MCP tools** across all groups.\n\n---\n\n## Requirements\n\n- WordPress 6.0+\n- PHP 8.0+\n- [Bricks Builder](https://bricksbuilder.io) theme (any recent version)\n\n---\n\n## Installation\n\n1. Download `bricks-builder-mcp.zip` from the [latest release](https://github.com/yasirshabbirservices/Bricks-Builder-MCP/releases/latest)\n2. In WordPress admin: **Plugins → Add New → Upload Plugin**\n3. Upload the zip and activate\n4. Go to **Settings → Bricks MCP** (or **Bricks → MCP** if Bricks is active) to get your API key and endpoint URL\n\nWordPress will notify you automatically when a new version is available.\n\n---\n\n## Connecting an AI Client\n\nAfter activation, copy the endpoint URL and API key from **Settings → Bricks MCP → Connection**.\n\n### Claude Code\n\nAdd to `~/.claude/settings.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"bricks-builder\": {\n      \"type\": \"http\",\n      \"url\": \"https://yoursite.com/wp-json/bricks-mcp/v1/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer YOUR_API_KEY\" }\n    }\n  }\n}\n```\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json` and restart Claude Desktop.\n\n- **Mac:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n- **Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"bricks-builder\": {\n      \"type\": \"http\",\n      \"url\": \"https://yoursite.com/wp-json/bricks-mcp/v1/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer YOUR_API_KEY\" }\n    }\n  }\n}\n```\n\n### VS Code (Copilot Agent / Continue)\n\nAdd to `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"bricks-builder\": {\n      \"type\": \"http\",\n      \"url\": \"https://yoursite.com/wp-json/bricks-mcp/v1/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer YOUR_API_KEY\" }\n    }\n  }\n}\n```\n\n### Gemini CLI\n\nAdd to `~/.gemini/settings.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"bricks-builder\": {\n      \"httpTransport\": {\n        \"url\": \"https://yoursite.com/wp-json/bricks-mcp/v1/mcp\",\n        \"headers\": { \"Authorization\": \"Bearer YOUR_API_KEY\" }\n      }\n    }\n  }\n}\n```\n\nThe **General** tab in the Connection panel also provides a universal plain-text block you can paste into any AI chat to get started.\n\n---\n\n## First Steps\n\nOnce connected, start with a single call that loads everything in one shot:\n\n```\nbricks_get_session_context\n```\n\nThis returns site info, color palette, global classes, CSS variables, fonts, active design framework, business profile (including brand colors, typography, design style tokens), and high-priority memories — all in one response.\n\nThen run:\n\n1. `bricks_get_system_prompt` — full Bricks element format guide and site rules\n2. `bricks_snapshot_list` — see available restore points before making changes\n\nBefore writing any elements, always validate first:\n\n```\nbricks_validate_payload  (pass your elements array)\n```\n\n---\n\n## Settings\n\n| Tab | Description |\n|---|---|\n| **Connection** | API key, endpoint URL, per-client config snippets |\n| **Instructions** | Site-specific rules appended to the AI's system prompt |\n| **Business Profile** | Brand identity, brand colors (with color pickers), typography, design style, contact, social media links, assets, and services — all returned to the AI in every session |\n| **Capabilities** | Per-tool enable/disable toggles (granular control over all tools) |\n| **Memory** | View, add, and edit persistent AI memories |\n| **History** | Browse and restore auto-snapshots |\n| **Activity** | Last 20 MCP tool calls |\n| **Advanced** | Uninstall data cleanup, activity logging, debug mode |\n\n### Business Profile — What the AI receives\n\nThe `bricks_get_business_profile` tool (also included in every `bricks_get_session_context`) returns structured data the AI uses automatically:\n\n- **Brand** — name, tagline, type, audience, tone, about text\n- **Colors** — 10 hex tokens (primary, secondary, accent, text, heading, background, surface, border, success, error)\n- **Typography** — heading font, body font, base font size\n- **Design Style** — style preset, border radius, spacing scale, button style\n- **Contact** — email, phone, address, plus custom extra entries (repeater)\n- **Social** — any platform/URL pairs (dynamic repeater, not fixed fields)\n- **Navigation** — nav items, CTA text/URL, copyright\n- **Assets** — logo URL, dark logo URL\n- **Services** — one per line\n\n---\n\n## Security\n\n- **Bearer token auth** with constant-time comparison (`hash_equals`) — safe against timing attacks\n- **Rate limiting** — 120 requests per minute per authenticated user\n- **Capability checks** on every write operation (`edit_pages`, `delete_pages`, `edit_posts`, etc.)\n- **Input sanitization** on all admin form fields (`sanitize_text_field`, `sanitize_hex_color`, `sanitize_url`, `sanitize_email`, allowlist checks for select fields)\n- **Prepared statements** for all database queries (`$wpdb-\u003eprepare`)\n- **Output escaping** on all admin-rendered values (`esc_html`, `esc_attr`, `esc_textarea`)\n- **AJAX nonce verification** on all admin AJAX handlers\n\n---\n\n## Auto-Snapshots \u0026 History\n\nEvery write operation automatically saves a snapshot of the affected content area before modifying it. If the AI makes a mistake, you can restore any previous state from the **History** tab — or the AI can do it itself via `bricks_snapshot_restore`. Restoring is also undoable (the current state is snapshotted before the restore).\n\n---\n\n## How Auto-Updates Work\n\nThis repo uses a GitHub Actions workflow (`.github/workflows/release.yml`) that runs on every push to `main`. It reads the version from the plugin header, creates a properly-structured `bricks-builder-mcp.zip`, and publishes (or updates) a GitHub Release.\n\nThe plugin checks for new releases every 15 minutes and shows the standard WordPress \"Update available\" notice when a newer version is found.\n\n**To release a new version:** bump `BMCP_VERSION` in `bricks-builder-mcp.php`, then commit and push to `main`.\n\n---\n\n## Agent Skills\n\nThe plugin ships 8 on-demand best-practice guides for AI agents. When building a page, the AI checks the `available_skills` index in `bricks_get_session_context` and loads the relevant guide with `bricks_get_skill(slug)` before starting work — not all at once, only what the current task requires.\n\n| Skill | When the AI loads it |\n|---|---|\n| `bricks-elements` | Any element array creation or editing |\n| `css-best-practices` | Any styling work — classes, variables, inline settings |\n| `accessibility` | Forms, navs, modals, images, interactive elements |\n| `seo-html` | Any page with headings, metadata, or content structure |\n| `performance` | Image-heavy sections, query loops, above-fold content |\n| `bricks-dynamic-data` | ACF, JetEngine, or any query loop |\n| `typography` | Text styling, font selection, readability |\n| `layout-patterns` | New sections, heroes, grids, responsive layouts |\n\nSkills are markdown files in `assets/skills/` — add your own and they appear automatically in `bricks_list_skills` with no code changes.\n\n---\n\n## Template Library\n\nDrop Bricks Builder template JSON exports into `assets/templates/{category}/` and they become instantly searchable by the AI via `bricks_search_templates` and retrievable via `bricks_get_template_library`. Categories are discovered automatically from folder names — no code changes needed.\n\n**Format:** standard Bricks Builder export (`{\"content\": [...], \"globalClasses\": [...]}`) — export directly from Bricks and save as `template-name.json` in the matching folder.\n\n---\n\n## License\n\nMIT — see [LICENSE](LICENSE)\n\n---\n\nDeveloped by [Yasir Shabbir](https://yasirshabbir.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasirshabbirservices%2Fbricks-builder-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasirshabbirservices%2Fbricks-builder-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasirshabbirservices%2Fbricks-builder-mcp/lists"}