This guide walks you through connecting Securitytrails to Mastra AI using the Composio tool router. By the end, you'll have a working Securitytrails agent that can show all ips linked to acme.com, fetch ssl certificate history for example.com, run sql query for hosts in 192.168.0.0/16, get current dns records for mydomain.org through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Securitytrails account through Composio's Securitytrails MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.








