How to Use the Epic Online Services & Social Analytics MCP in Mastra AI
Build resilient player moderation workflows and conditional analytics pipelines with Mastra AI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Epic Online Services & Social Analytics MCP to Mastra AI
Create your Vinkius account to connect Epic Online Services & Social Analytics to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Conditional player tracking with Mastra AI
`search_account_by_display_name` starts the workflow by isolating the target Epic account ID. If the Epic API rate limits the request, Mastra's built-in exponential backoff catches the failure and retries automatically. You never write custom retry logic. Once the ID resolves, the workflow branches. The agent calls `get_player_presence` to check online status. If the player is in-game, the system pauses execution; if offline, it proceeds to fetch historical data.
Multi-step progression analysis
`get_achievement_definitions` maps out the total possible trophy space for a specific game. The agent then pulls `get_player_achievements` to compare actual progress against the baseline. You can deploy this entire analysis pipeline to any cloud provider with one command. The MCP Server handles the data extraction, while your Mastra agent formats the output into a structured JSON report for your database.
Human-in-the-loop moderation
`get_blocked_users` and `get_account_details` provide the necessary context for reviewing a reported player. The agent compiles the block list and profile history into a single dossier. Before taking action, you can use Mastra's `requireToolApproval` flag. The workflow halts and waits for a human administrator to review the agent's findings. Once approved, the pipeline resumes.
Set up Epic Online Services & Social Analytics MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All Epic Online Services & Social Analytics tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "epic-online-services-social-analytics-mcp-client",
servers: {
"epic-online-services-social-analytics-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Epic Online Services & Social Analytics Agent",
model: openai("gpt-4o"),
instructions: "You have access to Epic Online Services & Social Analytics tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Epic Online Services & Social Analytics transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Epic Online Services. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Epic Online Services & Social Analytics MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Epic Online Services & Social Analytics MCP today
We host it, we monitor it, we maintain it. You just paste one token.