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.
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
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
- Put permissions in the service layer, not the UI, so the REST API and the MCP server enforce the same rules.
- Give MCP tools narrow, well-described purposes. Clear names and descriptions matter more to the model than the number of tools.
- Separate read tools from write tools and require explicit confirmation for destructive actions.
- Self-hosting the WhatsApp gateway gave full control over message data and costs.
Links
Demo credentials available on request. Email me for access