03 — AI integration · Public product
BrandHub: brand knowledge base and MCP server
BrandHub is a multi-tenant Next.js and Supabase app where marketing teams store brand guidelines, layout rules and product cutouts, and each brand gets its own MCP server URL that AI clients connect to.
The problem
AI assistants produce off-brand work when guidelines live in PDFs and chat history, and a shared tool with a brand_name argument is easy to get wrong.
What I built
- Isolated brand workspaces for guidelines, campaigns, layout rules and product images
- A dedicated MCP route per brand (/api/mcp/<slug>), so the URL itself scopes every tool call
- Bearer-token protected endpoint for AI clients
- PDF and DOCX guideline ingestion with text extraction
Outcome
Assistants read the raw guidelines and assets through tools and reason from them, and there is no brand parameter to get wrong.
Stack
Next.js 16TypeScriptTailwindSupabaseMCPmcp-handler