maimai-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@maimai-mcpshow me my b50 for username testplayer"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
maimai DX MCP Server
A high-performance, lightweight, modular maimai DX Model Context Protocol (MCP) server built with Rust.
Drawing & business reference: Yuri-YuzuChaN/maimaiDX
Python version archive:
legacybranch
🌟 Core Features
⚡ Extreme Performance & Lightweight: Pure Rust implementation, millisecond-level cold start, idle memory usage below 15MB, no heavy external C library dependencies.
🎨 Pixel-Perfect Pure Rust Drawing Engine:
The drawing layout, art asset catalog format, and coordinate rendering logic of this project are a pure Rust migration and optimization of the absolute coordinate system from the open-source project Yuri-YuzuChaN/maimaiDX.
Built on
image+ab_glyphand arayonmulti-threaded pipeline, rendering B50, single-song result cards, plate progress tables, and fortune images with strict 1:1 high-fidelity absolute coordinates.
🤖 Friendly to Weak & Small-Parameter Models:
Lenient parameter normalization: Automatically handles Chinese difficulty names ("紫/白/黄/红/绿"), float constant conversion, and fuzzy matching of song title aliases.
Crash-proof Chinese fallback: Returns structured, human-readable guidance when data is not found or the account is unbound, avoiding hallucinations or repeated call-stack echoes from small models.
🚀 Out-of-the-Box:
Dual-track image & text output: By default returns both standard MCP Image Content (Base64) and a local file persistence path, seamlessly integrating with various Bot message senders.
Zero-friction score lookup: After configuring global developer credentials, a one-click score image can be produced using only the QQ number from context.
Related MCP server: Claud-Ear
🛠️ MCP Tool Registry
All tools support optional parameters: qq (user QQ number), username (username), source ("divingfish" or "lxns"), output_format ("image", "text", "both").
Tool Name | Description | Main Return Content |
| Query player's best 50 scores (B35 + B15) | B50 preview image, Rating, and per-song details |
| Query player's single-song/alias score result card | Result image, achievement rate, DX score, rating grade |
| Query chart details, constants, and note counts | Chart preview image, per-difficulty constants and designers |
| Calculate score-up suggestions and target Rating gap | Recommended songs to grind and target achievement rates |
| Fuzzy search songs, artists, and version info | Matching song list with difficulty constants |
| Query all known community aliases and tags for a song | Alias list and voting info |
| Randomly pick a song by difficulty/constant range | Picked song card and parameters |
| Random featured song recommendation, like "what to eat today" | Recommended song and featured blurb |
| Query completion summary for a given level (e.g., 13+) | Clear/FC/AP level-tier summary image |
| Query progress for each generation of plates (霸者/舞/将/极/神) | Plate completion progress table and uncleared list |
| Bind QQ to a DivingFish/LXNS account, or switch default source | Binding confirmation status and info |
| View and modify personal score-lookup preferences | Current binding config, default source, and display preferences |
| Draw today's maimai fortune and recommendations | Fortune image, fortune value, and recommended songs |
| Aggregate comprehensive Rating ranking of bound members in a group | Group leaderboard chart and ranks |
⚙️ Environment Configuration
The server supports configuration via environment variables or a .env file:
# 水鱼查分网开发者 Token(配置后仅凭 QQ 号即可直接查分)
DIVINGFISH_DEVELOPER_TOKEN=your_divingfish_developer_token
# 落雪查分网开发者 Token(可选)
LXNS_DEVELOPER_TOKEN=your_lxns_token
# 静态资源根目录(默认 ./static 或 ../maimaiDX/static)
MAIMAI_STATIC_DIR=./static
# 本地数据与用户配置存储目录(默认 ./data)
MAIMAI_DATA_DIR=./data
# 生成图片临时保存目录(默认 ./output)
MAIMAI_OUTPUT_DIR=./output📁 Static Asset Preparation & Directory Structure
1. Directory Structure
Place the static asset folder in the project root (or specify an absolute path via MAIMAI_STATIC_DIR):
static/
├── font/ # 字体文件 (ResourceHanRoundedCN-Bold.ttf 等)
├── data/ # 歌曲/别名/牌子数据缓存 (music_data.json 等)
└── mai/
├── pic/ # UI 边框、评级底图、段位图标
├── cover/ # 曲目封面 (以 song_id 命名)
├── plate/ # 姓名框与牌子背景
├── shougou/ # 称号底图
└── plate_version/ # 各版本牌子标识2. Static Assets
Download and extract the asset package:
Note the absolute path of the static directory (i.e., MAIMAI_STATIC_DIR in the config).
Please comply with the upstream art and font-related notices.
🚀 Installation & Running
1. Method A: Download Prebuilt Binary Directly (Recommended)
Download the archive (Windows / Linux) matching your system architecture from GitHub Releases, extract it, and use it directly.
2. Method B: Build from Source
cargo build --release3. Local Testing of the MCP Server
It can be run via standard stdio:
./target/release/maimai-mcp3. Integration with AstrBot / Claude Desktop
Add to the mcpServers configuration:
{
"mcpServers": {
"maimai": {
"command": "/path/to/maimai-mcp",
"env": {
"MAIMAI_STATIC_DIR": "/path/to/static",
"DIVINGFISH_CLIENT_ID": "your_divingfish_client_id",
"DIVINGFISH_CLIENT_SECRET": "your_divingfish_client_secret"
}
}
}
}🙏 Credits & Attribution
This project has deeply referenced and reused the design and resource specifications of the following excellent open-source projects during development:
Yuri-YuzuChaN/maimaiDX (MIT License):
The drawing rendering logic, UI element layout, absolute pixel coordinate system, and static asset directory structure of this project all originate from the exquisite design of that project.
Special thanks to all contributors of the maimaiDX project!
Score lookup & data source ecosystem:
Thanks to DivingFish for providing the open score-lookup API and OAuth platform.
Thanks to LXNS for providing the open data interface and OAuth platform.
Thanks to Yuzuchan for providing the song alias database.
📜 License & Resource Rights Notice
This code repository is open-sourced under the BSD 2-Clause License;
The upstream reference project license is at LICENSE-UPSTREAM;
Resource copyright notice:
staticand other art/font resources are not distributed with this code repository; their copyrights are governed by the asset package and official notices, and they are not covered by this open-source license. Users are responsible for ensuring the legality and compliance of their use of the assets, and for complying with the original authors' notices for each font and asset.
📄 Architecture & Design Decisions
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for Producer/Riffusion AI music generation
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
Related MCP Servers
- FlicenseBqualityDmaintenanceProduction-ready MCP server that integrates OpenAI API with extensible tool support, enabling dynamic plugin loading and knowledge search capabilities through multiple interfaces including CLI and browser UI.2-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents the ability to listen to and understand music/audio files, enabling semantic analysis, stem separation, lyrics transcription, and signal processing via tool calls.1MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that automates WebGAL game development tasks such as resource management, script editing, documentation lookup, and AI-powered voice generation using LLMs.361-
- AlicenseNot gradedqualityAmaintenanceMCP server that enables LLMs to search, play, and manage music from multiple platforms (NetEase, QQ, Kugou) and local files, with lyrics retrieval and playback control.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/antinomie1/maimai-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server