npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-server-clash-royale

v1.0.0

Published

MCP server for Clash Royale API integration

Downloads

2

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

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Build the server:
    npm run build
  4. 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:

  1. Register at the Clash Royale Developer Portal
  2. Create a new API key
  3. Set the CLASH_ROYALE_API_KEY environment variable with your API key in the claude_desktop_config.json file

API Key Configuration

When creating your API key on the Clash Royale Developer Portal, make sure to:

  1. Set the correct IP addresses that will be allowed to use the API key
  2. Enable the necessary endpoints (player, clan, etc.)
  3. 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:

  1. Make sure you have Claude Desktop installed
  2. Install dependencies: npm install
  3. Update the API key in claude_desktop_config.json
  4. Run the setup script: ./setup-claude-config.sh
  5. Start or restart Claude Desktop
  6. 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 tag
  • search-clans: Search for clans based on various criteria
  • get-clan-members: List members of a specific clan
  • get-clan-warlog: Retrieve clan's war log
  • get-clan-riverracelog: Retrieve clan's river race log
  • get-clan-currentwar: Get information about clan's current war
  • get-clan-currentriverrace: Get information about clan's current river race

Game Tools

  • get-tournaments: Get current tournaments
  • get-cards: Get information about cards in the game

Prompts

The server provides the following prompts:

Deck Prompts

  • analyze-deck: Analyze a Clash Royale deck
  • counter-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:

  1. Edit the source code in the src directory
  2. Rebuild the server:
    npm run build
  3. Run the server:
    npm start

License

ISC