mcp-server-clash-royale
v1.0.0
Published
MCP server for Clash Royale API integration
Downloads
2
Maintainers
Readme
Clash Royale MCP Server
This is a Model Context Protocol (MCP) server for Clash Royale, providing tools and prompts for interacting with Clash Royale data.
Features
- Player Information: Get detailed information about players
- Clan Information: Get information about clans
- Tournament Data: Get current tournaments
- Card Information: Get information about cards in the game
- Deck Analysis: Prompt for analyzing Clash Royale decks
- Counter Strategies: Prompt for developing counter strategies against specific decks
Setup
- Clone this repository
- Install dependencies:
npm install - Build the server:
npm run build - Run the server:
npm start
Configuration
Important: This MCP server requires a valid Clash Royale API key to function. The server makes real API calls to the Clash Royale API.
To set up your API key:
- Register at the Clash Royale Developer Portal
- Create a new API key
- Set the
CLASH_ROYALE_API_KEYenvironment variable with your API key in theclaude_desktop_config.jsonfile
API Key Configuration
When creating your API key on the Clash Royale Developer Portal, make sure to:
- Set the correct IP addresses that will be allowed to use the API key
- Enable the necessary endpoints (player, clan, etc.)
- Copy the full API key (it should look like a long JWT token)
Using with Claude Desktop
To use this MCP server with Claude Desktop:
- Make sure you have Claude Desktop installed
- Install dependencies:
npm install - Update the API key in
claude_desktop_config.json - Run the setup script:
./setup-claude-config.sh - Start or restart Claude Desktop
- Your Clash Royale MCP server will be available in Claude Desktop
The setup uses npx with ts-node to run the TypeScript code directly, without needing to build it first.
For detailed usage instructions, see USAGE.md.
Tools
The server provides the following tools:
Player Tools
get-player: Get information about a player by tag
Clan Tools
get-clan: Get information about a clan by tagsearch-clans: Search for clans based on various criteriaget-clan-members: List members of a specific clanget-clan-warlog: Retrieve clan's war logget-clan-riverracelog: Retrieve clan's river race logget-clan-currentwar: Get information about clan's current warget-clan-currentriverrace: Get information about clan's current river race
Game Tools
get-tournaments: Get current tournamentsget-cards: Get information about cards in the game
Prompts
The server provides the following prompts:
Deck Prompts
analyze-deck: Analyze a Clash Royale deckcounter-strategy: Develop a counter strategy against a specific deck
Clan Prompts
analyze-clan: Analyze a clan with focus on war, members, performance, or general aspects
Development
To modify or extend this server:
- Edit the source code in the
srcdirectory - Rebuild the server:
npm run build - Run the server:
npm start
License
ISC
