Blue Archive MCP Server
Provides comprehensive access to Blue Archive game data including students, equipment, stages, and multimedia content via the SchaleDB API. It enables AI assistants to perform advanced searches and retrieve detailed game information in English, Japanese, and Chinese.
README
Blue Archive MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to Blue Archive game data, including student information, equipment, stages, items, and more.
Table of Contents
- Overview
- Features
- Installation
- Configuration
- Available Tools
- Usage Examples
- Development
- Troubleshooting
- Contributing
- License
Overview
The Blue Archive MCP Server integrates with the SchaleDB API to provide AI assistants with real-time access to Blue Archive game data. This server implements the Model Context Protocol, enabling seamless integration with MCP-compatible clients like Claude Desktop.
Key Capabilities
- Student Database: Access detailed information about all Blue Archive students
- Equipment & Items: Browse weapons, equipment, and consumable items
- Stage Information: Get details about campaign stages and raids
- Multimedia Content: Retrieve student avatars and voice clips
- Advanced Search: Filter and search across all data types
- Multi-language Support: Available in Chinese, Japanese, and English
Features
- ✅ 8 Comprehensive Tools for accessing game data
- 🌐 Multi-language Support (CN/JP/EN)
- 🔍 Advanced Filtering and search capabilities
- 🖼️ Rich Media Integration (avatars, voice clips)
- ⚡ Performance Optimized with caching
- 🛡️ Error Handling and retry mechanisms
- 📱 Responsive Data Formatting (text/markdown)
Installation
Prerequisites
- Node.js 18+
- npm or yarn package manager
- MCP-compatible client (e.g., Claude Desktop)
Method 1: NPM Installation (Recommended)
Install directly from NPM:
npm install -g blue-archive-mcp
Or install locally in your project:
npm install blue-archive-mcp
Method 2: From Source
-
Clone the repository
git clone <repository-url> cd blue_archive_mcp -
Install dependencies
npm install -
Build the project
npm run build -
Test the server
npm start
Configuration
Claude Desktop Integration
Add the following configuration to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
For NPM Installation:
{
"mcpServers": {
"blue-archive": {
"command": "npx",
"args": ["blue-archive-mcp"]
}
}
}
For Source Installation:
{
"mcpServers": {
"blue-archive": {
"command": "node",
"args": ["path/to/blue_archive_mcp/dist/index.js"]
}
}
}
Environment Variables
| Variable | Description | Default |
|---|---|---|
LOG_LEVEL |
Logging level | info |
CACHE_TIMEOUT |
Cache timeout (ms) | 300000 |
Available Tools
1. get_students
Retrieve student information with filtering options.
Parameters:
language(string, optional): Language preference (cn/jp/en) - Default: "cn"search(string, optional): Search by student namelimit(number, optional): Maximum results - Default: 20detailed(boolean, optional): Include detailed stats - Default: falseschool(string, optional): Filter by schoolstarGrade(number, optional): Filter by star grade (1-3)role(string, optional): Filter by tactical role
2. get_student_info
Get detailed information for a specific student.
Parameters:
studentId(number, required): Student's unique IDlanguage(string, optional): Language preference - Default: "cn"
3. get_student_by_name
Find student by name (supports multiple languages).
Parameters:
name(string, required): Student name in any supported languagelanguage(string, optional): Response language - Default: "cn"detailed(boolean, optional): Include detailed information - Default: false
4. get_raids
Retrieve raid information and boss data.
Parameters:
language(string, optional): Language preference - Default: "cn"search(string, optional): Search by raid namedetailed(boolean, optional): Include detailed stats - Default: false
5. get_equipment
Browse equipment and weapon data.
Parameters:
language(string, optional): Language preference - Default: "cn"category(string, optional): Equipment category filtertier(number, optional): Equipment tier (1-7)limit(number, optional): Maximum results - Default: 20detailed(boolean, optional): Include detailed stats - Default: false
6. get_stages
Access campaign and stage information.
Parameters:
language(string, optional): Language preference - Default: "cn"search(string, optional): Search by stage namearea(string, optional): Filter by areachapter(string, optional): Filter by chapterdifficulty(string, optional): Filter by difficultylimit(number, optional): Maximum results - Default: 20detailed(boolean, optional): Include detailed information - Default: false
7. get_items
Retrieve consumable items and materials.
Parameters:
language(string, optional): Language preference - Default: "cn"search(string, optional): Search by item namecategory(string, optional): Item category filterrarity(number, optional): Item rarity (1-5)tags(string, optional): Filter by tagslimit(number, optional): Maximum results - Default: 20detailed(boolean, optional): Include detailed information - Default: false
8. get_student_avatar
Get student avatar images in various formats.
Parameters:
studentId(number, optional): Student's unique IDname(string, optional): Student name (alternative to ID)language(string, optional): Language preference - Default: "cn"avatarType(string, optional): Avatar type (portrait/collection/icon/lobby) - Default: "portrait"format(string, optional): Output format (markdown/md) - Default: "markdown"
Usage Examples
Basic Student Search
Find all students from Gehenna Academy
Detailed Student Information
Get detailed information about Shiroko including stats and skills
Equipment Browsing
Show me all tier 6 weapons with detailed stats
Stage Information
Find all hard difficulty stages in chapter 3
Avatar Display
Show me Hina's collection avatar in markdown format
Development
Project Structure
blue_archive_mcp/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript output
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Building from Source
# Install dependencies
npm install
# Build TypeScript
npm run build
# Start development server
npm start
Code Architecture
The server is built with:
- TypeScript for type safety and modern JavaScript features
- @modelcontextprotocol/sdk for MCP protocol implementation
- Zod for runtime type validation and schema generation
- SchaleDB API as the primary data source
Key Components
- BlueArchiveMCPServer: Main server class handling MCP protocol
- SchaleDBClient: API client for data fetching
- ErrorHandler: Centralized error handling and logging
- ParameterHandler: Input validation and normalization
- Logger: Structured logging system
Troubleshooting
Common Issues
Connection Problems
- Symptom: Server fails to start or connect
- Solution: Check Node.js version (18+ required) and verify configuration paths
Data Loading Failures
- Symptom: API requests return empty results
- Solution: Verify internet connection and SchaleDB API availability
Tools Not Appearing
- Symptom: Tools don't show up in Claude Desktop
- Solution: Restart Claude Desktop after configuration changes
Debug Mode
Enable debug logging by setting the environment variable:
LOG_LEVEL=debug npm start
Performance Optimization
- Data is cached for 5 minutes by default
- Use
detailed=falsefor faster responses when full data isn't needed - Limit result sets with the
limitparameter
Contributing
We welcome contributions! Please follow these guidelines:
- 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
Development Guidelines
- Follow TypeScript best practices
- Add appropriate error handling
- Include JSDoc comments for new functions
- Test changes thoroughly before submitting
License
This project is licensed under the MIT License - see the LICENSE file for details.
Data Source
This server uses data from SchaleDB, an open-source Blue Archive database. All game assets and data are property of their respective owners.
Note: This is an unofficial tool created by fans for the Blue Archive community. It is not affiliated with or endorsed by the game's official developers.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。