Clash Royale

liveGames

Clash Royale official API — player profiles, clan data, war logs, tournament info, card lists, and leaderboards.

15tools
0msauth
free tier50 calls/day
🔑Authentication

BYO key only. Supercell keys are locked to the IP that generated them — generate yours with “Allow any IP” so it works through the gateway. Pass _apiKey on the gateway URL.

Config with credentials
{
  "mcpServers": {
    "pipeworx-clash-royale": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://gateway.pipeworx.io/clash-royale/mcp?_apiKey=your_clashroyale_key"
      ]
    }
  }
}

Tools

player

Clash Royale official API — full profile for a player tag (#2PP…): trophies, level, arena, clan, card collection, battle stats, and league ranking.

No parameters required.

▶Try it
player_battles

Clash Royale official API — recent battle log for a player tag: outcome, decks used, opponent, arena, and trophy change for each of the last ~25 battles.

No parameters required.

▶Try it
player_upcoming_chests

Clash Royale official API — upcoming chest cycle for a player tag: chest type and position index for the next chests in queue.

No parameters required.

▶Try it
clan

Clash Royale official API — full clan profile for a clan tag: name, description, type, score, member count, trophies required, and war trophies.

No parameters required.

▶Try it
clan_members

Clash Royale official API — paginated member list for a clan tag: each member's name, role, trophies, last active, and donations. Supports limit/after/before cursors.

No parameters required.

▶Try it
clan_war_log

Clash Royale official API — war log for a clan tag: past war seasons with participants, battles played, wins, and final standings. Supports limit/after/before cursors.

No parameters required.

▶Try it
clan_current_war

Clash Royale official API — current war status for a clan tag: war state, collection-day and war-day results, participants, battles remaining, and standings.

No parameters required.

▶Try it
tournament

Clash Royale official API — tournament details for a tournament tag: name, description, max capacity, creator, current members, status, and game mode.

No parameters required.

▶Try it
cards

Clash Royale official API — complete list of all game cards: name, max level, elixir cost, rarity, type, arena, and icon URL.

No parameters required.

▶Try it
locations

Clash Royale official API — full list of supported location IDs (countries + global) used by ranking endpoints such as rankings_clans and rankings_players.

No parameters required.

▶Try it
location

Clash Royale official API — details for a single location by numeric ID: name, country code, and whether it is a country or a global region.

No parameters required.

▶Try it
rankings_clans

Clash Royale official API — top-ranked clans for a location ID (numeric): clan name, tag, score, member count, and rank position. Use global ID for worldwide rankings.

No parameters required.

▶Try it
rankings_players

Clash Royale official API — top-ranked players for a location ID (numeric): player name, tag, trophies, exp level, clan, and rank position. Use global ID for worldwide rankings.

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/clash-royale/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/clash-royale/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"player","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("player", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("clash royale official api — player profiles, clan data, war logs, tournament info, card lists, and leaderboards");