4,500+ servers built on MCP Fusion
Vinkius
Clash of Clans Strategy & War Analytics logo
Vinkius
Mastra AI logo

How to Use the Clash of Clans Strategy & War Analytics MCP in Mastra AI

Build reliable Clash of Clans automation workflows with Mastra AI to track war logs and alert your clan on Discord.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Clash of Clans Strategy & War Analytics MCP on Cursor AI Code Editor MCP Client Clash of Clans Strategy & War Analytics MCP on Claude Desktop App MCP Integration Clash of Clans Strategy & War Analytics MCP on OpenAI Agents SDK MCP Compatible Clash of Clans Strategy & War Analytics MCP on Visual Studio Code MCP Extension Client Clash of Clans Strategy & War Analytics MCP on GitHub Copilot AI Agent MCP Integration Clash of Clans Strategy & War Analytics MCP on Google Gemini AI MCP Integration Clash of Clans Strategy & War Analytics MCP on Lovable AI Development MCP Client Clash of Clans Strategy & War Analytics MCP on Mistral AI Agents MCP Compatible Clash of Clans Strategy & War Analytics MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Mastra AI

Connect Clash of Clans Strategy & War Analytics MCP to Mastra AI

Create your Vinkius account to connect Clash of Clans Strategy & War 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.

GDPR Free for Subscribers

Build automated war alerts using Mastra AI

Create a workflow that monitors your active war status by calling `get_current_war` on a cron schedule. If the tool detects a new attack, your Mastra agent processes the damage percentage and logs the result automatically. You can set up conditional branching to trigger alerts if a war is close. Mastra's built-in retry logic ensures that even if the Clash API rate limits you, the agent backs off and retries without dropping the war update.

Automate clan roster audits

Run automated checks on your clan's activity levels by coupling `get_clan_members` with `get_player_profile`. The agent loops through each member's tag to check their current trophy count, donation ratios, and gold pass status via `get_gold_pass_season`. If a player falls below your clan's minimum requirements, the Mastra workflow handles the escalation. It can flag the inactive player to your clan leaders, letting you manage clan health without manual spreadsheet tracking.

Analyze CWL groups with this MCP Server

Evaluate your Clan War League competition automatically using `get_cwl_group` to fetch your current group's roster. Your agent parses the enemy clans and runs `get_clan_details` on each opponent to assess their average war stars and town hall levels. This automated research gives your clan a competitive edge before the first round even begins. The workflow outputs a structured strategic summary directly to your team's communication channels.

Setup guide

Set up Clash of Clans Strategy & War Analytics MCP in Mastra AI

Prerequisites

  • Node.js 18+ and a TypeScript project
  • @mastra/mcp + @mastra/core packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run npm install @mastra/mcp @mastra/core plus your preferred model provider (e.g. @ai-sdk/openai).

  2. 2

    Configure the MCPClient

    Create an MCPClient with your Vinkius endpoint as a URL object. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Discover and inject tools

    Call mcpClient.listTools() and spread the result into your agent's tools object. All Clash of Clans Strategy & War Analytics tools become native Mastra tools.

  4. 4

    Run with any model

    Swap openai("gpt-4o") for any AI SDK-compatible provider. Call agent.generate() and the agent routes tool calls through MCP automatically.

agent.ts
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";

const mcpClient = new MCPClient({
  id: "clash-of-clans-strategy-war-analytics-mcp-client",
  servers: {
    "clash-of-clans-strategy-war-analytics-mcp": {
      url: new URL(
        "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
      ),
    },
  },
});

const agent = new Agent({
  name: "Clash of Clans Strategy & War Analytics Agent",
  model: openai("gpt-4o"),
  instructions: "You have access to Clash of Clans Strategy & War Analytics tools.",
  tools: {
    ...(await mcpClient.listTools()),
  },
});

const result = await agent.generate(
  "List recent Clash of Clans Strategy & War 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 Clash of Clans. 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 Clash of Clans Strategy & War Analytics MCP in Mastra AI

You install `@mastra/mcp` and instantiate a new client with the Vinkius server URL. After that, you spread the tools from `listTools()` directly into your Mastra agent's tool configuration to grant it access to the Clash API.
Yes, you can use the `requireToolApproval` option in Mastra to pause the workflow before it acts on data from `get_clan_war_log`. This lets you review the war analysis before your agent shares it with the entire clan.
Mastra uses exponential backoff retries when executing tools like `get_capital_raid_seasons`. If the Clash API temporarily throttles your requests, the workflow engine automatically retries the call until the data is successfully retrieved.
You can use `search_clans` to find clans based on specific filters and labels. Your agent can then run `get_clan_details` on the search results to find potential alliance partners or merge candidates that fit your criteria.
All player tags, clan tags, and war logs retrieved via this MCP Server are processed inside this MCP Server's sandbox. No raw credentials or sensitive clan metadata are cached or exposed to external LLM providers during workflow execution.

Start using the Clash of Clans Strategy & War Analytics MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 14 tools

We've already built the connector for Clash of Clans Strategy & War Analytics. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 14 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.