This guide walks you through connecting Aryn to Mastra AI using the Composio tool router. By the end, you'll have a working Aryn agent that can partition and parse documents, create and manage DocSets, fetch documents and metadata, and track async tasks through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Aryn account through Composio's Aryn MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.
For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.


