2,500+ MCP servers ready to use
Vinkius

Apex & Division Stats by TRN MCP Server for Mastra AI 9 tools — connect in under 2 minutes

Built by Vinkius GDPR 9 Tools SDK

Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Apex & Division Stats by TRN through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.

Vinkius supports streamable HTTP and SSE.

typescript
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";

async function main() {
  // Your Vinkius token. get it at cloud.vinkius.com
  const mcpClient = await createMCPClient({
    servers: {
      "apex-division-stats-by-trn": {
        url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
      },
    },
  });

  const tools = await mcpClient.getTools();
  const agent = new Agent({
    name: "Apex & Division Stats by TRN Agent",
    instructions:
      "You help users interact with Apex & Division Stats by TRN " +
      "using 9 tools.",
    model: openai("gpt-4o"),
    tools,
  });

  const result = await agent.generate(
    "What can I do with Apex & Division Stats by TRN?"
  );
  console.log(result.text);
}

main();
Apex & Division Stats by TRN
Fully ManagedVinkius Servers
60%Token savings
High SecurityEnterprise-grade
IAMAccess control
EU AI ActCompliant
DLPData protection
V8 IsolateSandboxed
Ed25519Audit chain
<40msKill switch
Stream every event to Splunk, Datadog, or your own webhook in real-time

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure

About Apex & Division Stats by TRN MCP Server

Transform your AI agent into a professional esports analyst with Apex & Division Stats by TRN, powered by the official Tracker Network API. This server gives your agent real-time access to the TRN database — the same data powering tracker.gg, trusted by millions of competitive gamers worldwide.

Mastra's agent abstraction provides a clean separation between LLM logic and Apex & Division Stats by TRN tool infrastructure. Connect 9 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.

What you can do

  • Player Profiling — Retrieve lifetime stats (K/D, kills, wins, damage, headshots, rank tier) for any Apex Legends or Division 2 player across Origin, PSN, and Xbox
  • Legend Breakdown — Analyze per-legend performance to identify a player's main, playstyle, and strongest picks
  • Match History — Review recent play sessions with aggregated stats to track performance trends over time
  • Global Leaderboards — Access world rankings by stat category (Kills, RankScore, Damage, Level) to benchmark players against the global elite
  • PvP Intelligence — Deep-dive into Division 2 Dark Zone and Conflict stats including rogue kills, extractions, and DZ rank
  • Cross-Game Search — Find any player across the entire TRN ecosystem by username

The Apex & Division Stats by TRN MCP Server exposes 9 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.

How to Connect Apex & Division Stats by TRN to Mastra AI via MCP

Follow these steps to integrate the Apex & Division Stats by TRN MCP Server with Mastra AI.

01

Install dependencies

Run npm install @mastra/core @mastra/mcp @ai-sdk/openai

02

Replace the token

Replace [YOUR_TOKEN_HERE] with your Vinkius token

03

Run the agent

Save to agent.ts and run with npx tsx agent.ts

04

Explore tools

Mastra discovers 9 tools from Apex & Division Stats by TRN via MCP

Why Use Mastra AI with the Apex & Division Stats by TRN MCP Server

Mastra AI provides unique advantages when paired with Apex & Division Stats by TRN through the Model Context Protocol.

01

Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Apex & Division Stats by TRN without touching business code

02

Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation

03

TypeScript-native: full type inference for every Apex & Division Stats by TRN tool response with IDE autocomplete and compile-time checks

04

One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure

Apex & Division Stats by TRN + Mastra AI Use Cases

Practical scenarios where Mastra AI combined with the Apex & Division Stats by TRN MCP Server delivers measurable value.

01

Automated workflows: build multi-step agents that query Apex & Division Stats by TRN, process results, and trigger downstream actions in a typed pipeline

02

SaaS integrations: embed Apex & Division Stats by TRN as a first-class tool in your product's AI features with Mastra's clean agent API

03

Background jobs: schedule Mastra agents to query Apex & Division Stats by TRN on a cron and store results in your database automatically

04

Multi-agent systems: create specialist agents that collaborate using Apex & Division Stats by TRN tools alongside other MCP servers

Apex & Division Stats by TRN MCP Tools for Mastra AI (9)

These 9 tools become available when you connect Apex & Division Stats by TRN to Mastra AI via MCP:

01

get_apex_game_metadata

Useful as reference data. Get current Apex Legends game metadata

02

get_apex_leaderboard

) on the specified platform. Get global Apex Legends rankings by stat category

03

get_apex_legend_breakdown

) — kills, damage, wins per legend. Essential for identifying main legend and playstyle. Get per-legend performance breakdown for an Apex player

04

get_apex_match_history

Useful for tracking recent performance trends. Get recent match sessions for an Apex player

05

get_apex_player_profile

Get comprehensive Apex Legends stats for a player

06

get_division2_match_history

Get recent play sessions for a Division 2 agent

07

get_division2_player_profile

Get comprehensive stats for a Division 2 agent

08

get_division2_pvp_stats

Get PvP-specific stats for a Division 2 agent

09

search_player

Returns matching accounts with platform links and game associations. Search for a player across the Tracker Network ecosystem

Example Prompts for Apex & Division Stats by TRN in Mastra AI

Ready-to-use prompts you can give your Mastra AI agent to start working with Apex & Division Stats by TRN immediately.

01

"Show me the full Apex Legends stats for 'ImperialHal' on Origin."

02

"Compare the legend stats of two players: 'Player1' and 'Player2' on PSN."

03

"Who are the top 5 Apex players worldwide by RankScore on PC?"

Troubleshooting Apex & Division Stats by TRN MCP Server with Mastra AI

Common issues when connecting Apex & Division Stats by TRN to Mastra AI through the Vinkius, and how to resolve them.

01

createMCPClient not exported

Install: npm install @mastra/mcp

Apex & Division Stats by TRN + Mastra AI FAQ

Common questions about integrating Apex & Division Stats by TRN MCP Server with Mastra AI.

01

How does Mastra AI connect to MCP servers?

Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
02

Can Mastra agents use tools from multiple servers?

Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
03

Does Mastra support workflow orchestration?

Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.

Connect Apex & Division Stats by TRN to Mastra AI

Get your token, paste the configuration, and start using 9 tools in under 2 minutes. No API key management needed.