This guide walks you through connecting Ip2location io to Mastra AI using the Composio tool router. By the end, you'll have a working Ip2location io agent that can geolocate IP addresses, run bulk IP lookups, look up domain WHOIS records, and find domains hosted on an IP through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Ip2location io account through Composio's Ip2location io 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.



