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.
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
- Node.js 18.0.0 or higher
- A Brawl Stars API token (get one from Brawl Stars Developer Portal)
As an NPM Package (Recommended)
npm install -g brawl-stars-mcp
From Source
-
Clone this repository:
git clone https://github.com/LRxDarkDevil/Brawl-Stars-MCP.git cd Brawl-Stars-MCP -
Install dependencies:
npm install -
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
-
Get your Brawl Stars API token from the Brawl Stars Developer Portal
-
Install the MCP server:
npm install -g brawl-stars-mcp -
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
-
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
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - 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
--tokenargument - 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
- Brawl Stars API for providing the game data
- Model Context Protocol for the MCP standard
- The Brawl Stars community for inspiration
Note: This tool is designed for AI assistants and LLMs.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。