This guide walks you through connecting Composio search to Mastra AI using the Composio tool router. By the end, you'll have a working Composio search agent that can search the web and news, find flights and hotels, search shopping results, look up SEC filings, and fetch URL content through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Composio search account through Composio's Composio search MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.




