Brawl Stars MCP

Brawl Stars MCP

Provides AI assistants with access to real-time Brawl Stars game data including player statistics, club information, brawler details, battle logs, and current events through the Brawl Stars API.

Category
Visit Server

README

Brawl Stars MCP

A Model Context Protocol (MCP) server that wraps the Brawl Stars API, providing easy access to game data, player statistics, and club information for AI assistants and LLMs.

šŸŽ® What is this?

This is a Model Context Protocol (MCP) server that allows AI assistants and Large Language Models (LLMs) to access real-time Brawl Stars game data. It's designed to be integrated with AI tools like Claude, GPT-4, or any MCP-compatible AI assistant.

✨ Features

  • Player Data: Get player profiles, statistics, and battle logs
  • Brawler Information: Access brawler details, stats, star powers, and gadgets
  • Club Data: Retrieve club information and member lists
  • Battle Logs: Get recent battle history and results
  • Game Modes: Access information about different game modes
  • Maps: Get map data and rotation information
  • Events: Current and upcoming events
  • Automatic Tag Cleaning: Handles Brawl Stars player/club tags with proper URL encoding

šŸš€ Installation

Prerequisites

As an NPM Package (Recommended)

npm install -g brawl-stars-mcp

From Source

  1. Clone this repository:

    git clone https://github.com/LRxDarkDevil/Brawl-Stars-MCP.git
    cd Brawl-Stars-MCP
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

šŸ¤– AI Integration

What is MCP?

Model Context Protocol (MCP) is a standard that allows AI assistants to securely connect to external data sources and tools. This server enables AI assistants to access real-time Brawl Stars data.

Supported AI Platforms

This MCP server works with any AI assistant that supports the Model Context Protocol, including:

  • Claude Desktop (Anthropic)
  • GPT-4 with MCP plugins
  • Custom AI assistants using MCP SDK
  • Cursor AI (with MCP support)

Integration Instructions

For Claude Desktop

  1. Get your Brawl Stars API token from the Brawl Stars Developer Portal

  2. Install the MCP server:

    npm install -g brawl-stars-mcp
    
  3. Configure Claude Desktop:

    • Open Claude Desktop
    • Go to Settings → Model Context Protocol
    • Add a new server with these settings:
      Name: Brawl Stars
      Command: npx
      Arguments: brawl-stars-mcp --token YOUR_API_TOKEN_HERE
      
  4. Restart Claude Desktop and start asking about Brawl Stars!

For Other AI Assistants

Add this configuration to your MCP config file:

{
  "mcpServers": {
    "brawlstars": {
      "command": "npx",
      "args": ["brawl-stars-mcp", "--token", "YOUR_API_TOKEN_HERE"]
    }
  }
}

Example AI Conversations

Once integrated, you can ask your AI assistant questions like:

  • "Get player information for #98VC8YUR"
  • "Show me the battle log for player #2Y0J0Q0"
  • "What are the stats for Shelly brawler?"
  • "Get information about club #CCY9CGPQ"
  • "Show me all available brawlers"
  • "What events are currently running?"

šŸ“š API Reference

The MCP provides the following functions:

Function Description Parameters
get_player Get player information by tag tag (string)
get_player_battlelog Get player's recent battles tag (string)
get_brawler Get brawler information by ID id (number)
get_brawlers Get all available brawlers None
get_club Get club information by tag tag (string)
get_club_members Get club member list tag (string)
get_events Get current and upcoming events None
get_maps Get available maps None
get_game_modes Get game modes information None

šŸ”§ Development

Building from Source

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Test the build
npm start -- --token YOUR_API_TOKEN_HERE

Project Structure

src/
ā”œā”€ā”€ api/
│   └── brawlstars-api.ts    # Main API wrapper
ā”œā”€ā”€ types/
│   ā”œā”€ā”€ index.ts             # Type definitions
│   └── schemas.ts           # Zod schemas for validation
ā”œā”€ā”€ utils/
│   └── helpers.ts           # Utility functions
└── index.ts                 # MCP server entry point

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

šŸ› ļø Troubleshooting

Common Issues

"Resource not found" error:

  • Make sure the player/club tag is correct
  • Verify your API token is valid
  • Check if the player/club still exists

"API token is required" error:

  • Ensure you're passing the --token argument
  • Verify your API token from the Brawl Stars Developer Portal

MCP connection issues:

  • Restart your AI assistant after adding the MCP server
  • Check that the command and arguments are correct
  • Ensure Node.js is installed and accessible

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ™ Acknowledgments

Note: This tool is designed for AI assistants and LLMs.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured