Mastra Connect: company brain setup and Claude Code compared

Learn to deploy a company brain, connect workspace apps, and scope tools by role. The workshop explains why Connect requires Mastra's hosted platform.

Player not loading? Watch on YouTube

Alex Booker and Charles Green explain how to build a company brain with Mastra Connect: an AI agent that can work across company services. The first demo deploys the Company Brain template on Mastra Platform, connects Linear, Notion and Fireflies, and adds Slack access. Queries in Mastra Studio retrieve assigned issues and meeting information.

The code walkthrough covers installing Connect in an existing Mastra project, adding connections through the CLI, and combining Connect tools with custom tools. Role mappings and request context restrict which tools each user receives. A second demo adds Google Calendar to a workshop agent without redeploying it. Green explains that the platform stores credentials, refreshes OAuth tokens and proxies provider API requests, with request logs available for auditing.

The hosting distinction matters: the speakers say Connect requires Mastra Platform, although agents consume its tools through the open source Mastra framework. This is not presented as an offline setup. They compare the shared company brain with Claude Code's personal, local MCP workflow, where users configure connections on their own machines. At the time of the workshop, Connect targets trusted internal teams; Green describes end-user multi-tenancy as work in progress. The closing discussion covers separate departmental agents and Connect's use in Mastra Factory.