This guide walks you through connecting Agent mail to Mastra AI using the Composio tool router. By the end, you'll have a working Agent mail agent that can show me unread emails from today, send a status update to my team, find emails with invoice attachments, forward the latest client message to support through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Agent mail account through Composio's Agent mail MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.









