Clash Royale
liveGamesClash Royale official API — player profiles, clan data, war logs, tournament info, card lists, and leaderboards.
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.
{
"mcpServers": {
"pipeworx-clash-royale": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://gateway.pipeworx.io/clash-royale/mcp?_apiKey=your_clashroyale_key"
]
}
}
}Tools
playerClash 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_battlesClash 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_chestsClash 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
clanClash 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_membersClash 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_logClash 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_warClash 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
clan_searchClash Royale official API — search clans by name, locationId, min/max members, or min score. Returns matching clans with trophy counts and member totals.
No parameters required.
Try it
tournamentClash 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
tournament_searchClash Royale official API — search open tournaments by name. Returns matching tournaments with capacity, current members, and start time.
No parameters required.
Try it
cardsClash 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
locationsClash 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
locationClash 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_clansClash 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_playersClash 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.
curl -X POST https://gateway.pipeworx.io/clash-royale/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'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.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("player", {});// 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");