Rekordbox Smart MCP
MCP server for DJs using Pioneer Rekordbox, offering 33 tools for library management, smart playlists, DJ analytics, and safe mutations with complete undo support.
README
Rekordbox Smart MCP
MCP server for DJs using Pioneer Rekordbox — 33 tools for library management, smart playlists, DJ analytics, and safe mutations with full undo capability.
This server implements the UDMS (Unified DJ Metadata Schema) principles described in the DJ Metadata Quality paper: BPM cache layers, Camelot key normalization, and cross-platform field mapping.
See also: Bonk! — Electron+React DJ metadata editor (desktop companion app using aubio/keyfinder-cli for audio analysis).
Key advantages:
- ✅ No Python required – works with XML exports; optional DB integration
- ✅ Complete undo system – all mutations create timestamped backups
- ✅ Smart setlist tools – harmonic analysis, transition suggestions, energy curves
- ✅ Privacy-focused – no external APIs, no telemetry
- ✅ 33 tools – comprehensive error handling, audit logging
Prerequisites
- Node.js 18+
- Rekordbox 6 or 7 (for DJ analytics and DB import)
- Rekordbox XML export (File → Export → Export as XML)
- Optional: Python 3 + pyrekordbox for direct database import
Safety First
⚠️ All mutation operations create automatic XML backups before making changes. Backups are timestamped and can be used to restore your library via mutation_rollback.
We recommend testing with a copy of your XML export before using on your main library.
Quickstart
1. Install
npm install
npm run build
2. Configure
Add to your MCP client configuration:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"rekordbox-smart-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"rekordbox-smart-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}
3. Load Your Library
{
"name": "library_load",
"arguments": {
"xmlPath": "/path/to/your/rekordbox_export.xml"
}
}
Or set a default path in rekordbox-smart-mcp.toml and call without arguments.
4. Try It
{ "name": "library_stats", "arguments": {} }
{ "name": "library_search", "arguments": { "query": "house", "limit": 5 } }
Features
Library Management
- Full-text search with filters (genre, BPM, key, artist, album, year, rating)
- Statistics, duplicate detection, missing file finder
- Fuzzy search, harmonic key search
- JSON export
Track Operations
- Get detailed metadata
- Single or batch updates (with automatic backups)
- Playlist membership queries
Playlist Management
- Create, rename, delete playlists
- Add/remove tracks (add or replace modes)
Smart Setlist Tools
playlist_buildSmart– build playlists using energy curves, BPM ranges, key progression smoothing, artist diversitysetlist_analyze– comprehensive analysis (harmonic compatibility, BPM gaps, genre/artist diversity, recommendations)setlist_suggestTransitions– AI-driven transition suggestions with mix tips and compatibility scoring
Rekordbox Integration
- Import/export via XML
- Direct database sync (requires
pyrekordbox)
DJ Analytics
- Recent sessions, session tracks
- History stats, play count rankings
- Listening patterns (BPM, genres, keys)
Safety & Undo
mutation_history– query audit log with filtersmutation_rollback– restore from any backup (creates pre-rollback backup)- All mutations logged to
audit/bonk-mutations.jsonl
Configuration
Create rekordbox-smart-mcp.toml in your working directory, ~/.config/, or ~:
[library]
xml_path = "~/rekordbox/export.xml"
[rekordbox]
db_path = "~/Library/Pioneer/rekordbox/master.db"
auto_detect = true
[cache]
db_path = "~/.bonk/media-cache.db"
If rekordbox.db_path is not set, the server auto-detects the platform-specific location (macOS, Windows, Linux).
Safety and Undo
All mutations create automatic XML backups in the working directory. Backup pattern: bonk-backup-YYYY-MM-DDTHH-MM-SS-ffffff.xml.
Undo workflow:
- List recent mutations:
{ "name": "mutation_history", "arguments": { "limit": 10 } }
- Preview rollback (dry run):
{
"name": "mutation_rollback",
"arguments": { "mutationId": "2026-04-07T09-03-07-724Z", "dryRun": true }
}
- Execute rollback:
{
"name": "mutation_rollback",
"arguments": { "mutationId": "2026-04-07T09-03-07-724Z", "dryRun": false }
}
Rollback creates a pre-rollback backup and logs itself as a new mutation, providing an undo chain.
Tool Reference
Library (9 tools)
library_search, library_stats, library_listPlaylists, library_load,
library_findMissing, library_findDuplicates, library_fuzzySearch,
search_keyCompatible, library_exportJSON
Track (4 tools)
track_get, track_update, track_playlists, track_updateBatch
Playlist (5 tools)
playlist_create, playlist_addTracks, playlist_removeTracks,
playlist_delete, playlist_rename
Smart Setlist (3 tools)
playlist_buildSmart, setlist_analyze, setlist_suggestTransitions
Rekordbox (3 tools)
rekordbox_sync, rekordbox_importXml, rekordbox_exportXml
DJ Analytics (5 tools)
dj_getRecentSessions, dj_getSessionTracks, dj_getHistoryStats,
dj_getPlayCountAnalytics, dj_getListeningPatterns
Audio (2 tools)
audio_bpmGetCached, audio_bpmCacheSet
Safety (2 tools)
mutation_history, mutation_rollback
Total: 33 canonical tools
Requirements
- Node.js 18+
better-sqlite3(native module – rebuilt automatically on install)- Optional: Python 3 +
pyrekordboxfor Rekordbox DB import
Limitations
- Library is in-memory; must load XML or import DB on each server start
- Cache persists via
~/.bonk/library-state.json - DJ analytics require Rekordbox database access
- Rollback only works if backup file still exists
- Setlist tools operate on in-memory state (export to persist)
Disclaimer
rekordbox-smart-mcp is not affiliated with, endorsed by, or connected to Pioneer DJ, AlphaTheta Corporation, or Rekordbox in any way. This is an independent, unofficial tool that works with Rekordbox XML exports and database files. Use at your own risk. Always keep backups of your original library data.
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。