Case study

Cerebro: a CRM that Claude can operate

I designed and built Cerebro from scratch as the CRM and operations platform for sales, accounts and ops. It has about 520 REST endpoints, 51 data models and 27 modules in daily use, an omnichannel inbox, and an MCP server with OAuth 2.0 that gives Claude about 105 tools with per-user permissions.

Apr 2026 to presentDesigned and built solo

The problem

Customer conversations, leads, accounts and operations were spread across WhatsApp, email, Telegram, team chat and separate tools. The team needed one system of record, one shared inbox, and a safe way to let an AI assistant read and act on business data without bypassing user permissions.

What I built

  • Lead and client management, sales pipelines, accounts and vouchers, documents, team and project modules, 27 modules in total.
  • A unified inbox for WhatsApp through a self-hosted Evolution API, plus email, Telegram and team chat.
  • Role-based access control on every endpoint.
  • An MCP server exposing about 105 tools to Claude, authorised through OAuth 2.0 so each user's assistant only sees and does what that user is allowed to.

Architecture

Cerebro architectureThe React web app calls a FastAPI REST API backed by PostgreSQL. Channel connectors feed the inbox service. Claude reaches the same service layer through an MCP server secured with OAuth 2.0. Everything runs in Docker on AWS, deployed by GitHub Actions.React + TypeScriptweb appFastAPI REST APIabout 520 endpointsRBAC on every endpointPostgreSQL51 data modelsChannel connectorsEvolution API (WhatsApp)EmailTelegramTeam chatInbox serviceFastAPIMCP serverOAuth 2.0per-user scopesClaudeMCP clientsame service layerDocker containers on AWS, deployed by GitHub Actions

Tech stack

FastAPIReactTypeScriptPostgreSQLDockerAWSGitHub ActionsOAuth 2.0MCPEvolution API

Results

520REST endpoints built solo
51data models
27modules used daily
105MCP tools available to Claude
4channels in one inbox

What I learned

  1. Put permissions in the service layer, not the UI, so the REST API and the MCP server enforce the same rules.
  2. Give MCP tools narrow, well-described purposes. Clear names and descriptions matter more to the model than the number of tools.
  3. Separate read tools from write tools and require explicit confirmation for destructive actions.
  4. Self-hosting the WhatsApp gateway gave full control over message data and costs.

Visit cerebro.diorbit.com ↗

Demo credentials available on request. Email me for access