The rekordbox-mcp server provides comprehensive access and management capabilities for a rekordbox music library through direct connection to the encrypted SQLite database.
Track Search & Discovery: Advanced multi-field searches by artist, title, genre, key, BPM, rating, and filename. Find tracks by musical key, BPM ranges, and identify most played, top-rated, and unplayed tracks.
Track Management & Analysis: Get detailed track information, file paths, validate track IDs, and analyze library statistics with grouping by genre, key, year, artist, or rating.
Playlist Operations: List all playlists (including smart playlists), retrieve playlist tracks, create new playlists, add/remove single or multiple tracks efficiently, and delete playlists with safety confirmation.
DJ History & Performance Analytics: Access complete DJ session history, retrieve session tracklists, browse recent sessions, and get comprehensive performance statistics and insights.
Library Analytics: Comprehensive library statistics including genre distribution, average BPM, total playtime, and library composition analysis.
Safety & Reliability: Automatic backups for mutation operations, input validation, detailed error handling, and batch processing capabilities for efficient multi-track operations.
Provides comprehensive access to rekordbox database for DJ library management, including track search and filtering, playlist analysis, DJ session history access, and library statistics with real-time database queries.
Rekordbox MCP Server
A comprehensive Model Context Protocol (MCP) server for rekordbox database management with real-time database access.
Built using pyrekordbox - This project is not affiliated with the pyrekordbox project or its maintainers.
Features
🗄️ Database Access
- Direct SQLite Database Connection: Access the encrypted rekordbox database directly using pyrekordbox
- Real-time Queries: Search and filter tracks with comprehensive criteria
- Safe Mutation Operations: Playlist management with automatic backups and safety annotations
🔍 Search & Discovery
- Advanced Search: Multi-field search across artist, title, genre, key, BPM, and more
- Musical Key Filtering: Find tracks in compatible keys for harmonic mixing
- BPM Range Queries: Search by tempo ranges for beatmatching
- Rating and Play Count Filters: Discover your most loved and most played tracks
📊 Analytics & Insights
- Library Statistics: Comprehensive stats including genre distribution, average BPM, total playtime
- Play Count Analytics: Track listening patterns and habits
- Collection Insights: Understand your music library composition
- DJ History Access: Full access to your DJ session history and performance data
⚙️ Database Operations
- Playlist Management: Create, modify, and delete playlists with safety protections
- Batch Operations: Add multiple tracks to playlists efficiently
- History Analysis: Access complete DJ session history and performance data
- Library Statistics: Comprehensive analytics and insights
Architecture
- FastMCP Framework: Modern Python MCP server using FastMCP 2.0
- pyrekordbox Integration: Mature library for encrypted database access
- Real-time Database Queries: Direct SQLite operations with SQLCipher support
- Production Ready: Built-in logging, error handling, and safety features
⚠️ Important Safety Notice
BACKUP YOUR REKORDBOX LIBRARY BEFORE USE
This software directly accesses your rekordbox database for analysis and querying. While currently read-only, always create a backup of your entire rekordbox library before using this tool as a precautionary measure.
Backup Requirements
You should create a complete backup of your rekordbox library before using this software. Consult rekordbox documentation or support resources for proper backup procedures for your specific setup and rekordbox version.
Risk Acknowledgment
- ⚠️ This project accesses your rekordbox database directly
- ⚠️ Use at your own risk - no warranty provided
- ⚠️ Test thoroughly with backups before using on your main library
- ⚠️ The developers are not responsible for any data loss or damage
If you are not comfortable with these risks, use the read-only XML export functionality instead.
Quick Start
Prerequisites
- Python 3.12+
- rekordbox 6 or 7 installed with an existing library
- COMPLETE BACKUP of your rekordbox library (see safety notice above)
- rekordbox must be completely closed when using this tool
- Access to your rekordbox database (automatic detection supported)
Installation
Configuration
The server supports both automatic database detection and manual configuration:
MCP Client Setup
Add to your Claude Desktop configuration:
Available Tools
Search & Discovery
search_tracks
- Advanced multi-field track search with filtering (genre, key, BPM, artist, title, rating, etc.)get_library_stats
- Comprehensive library statistics and analytics
Playlist Operations
get_playlists
- List all playlists including smart playlistsget_playlist_tracks
- Get all tracks in a specific playlistcreate_playlist
- Create new playlists ⚠️ (Mutation)add_track_to_playlist
- Add single track to playlist ⚠️ (Mutation)add_tracks_to_playlist
- Add multiple tracks to playlist in one operation ⚠️ (Mutation)remove_track_from_playlist
- Remove track from playlist ⚠️ (Mutation)delete_playlist
- Delete playlist permanently ⚠️ (Destructive)
DJ History & Analytics
get_recent_sessions
- Access recent DJ session history and performance dataget_session_tracks
- Get all tracks played in a specific sessionget_history_stats
- Comprehensive DJ performance statistics and insights
Resources
database-status
- Current connection status and basic stats
⚠️ Mutation operations modify your rekordbox database and create automatic backups
⚠️ Destructive operations permanently delete data and require extra confirmation
Examples
Search for tracks by key and BPM
Access DJ History
Get library insights
Playlist Management
Safety Features
- Automatic Backups: All mutation operations create automatic database backups before changes
- FastMCP Safety Annotations: Proper safety hints for mutation and destructive operations
- Smart Playlist Protection: Prevents deletion of intelligent playlists
- Connection Validation: Validates database connections and access
- Error Handling: Comprehensive error handling with detailed logging and rollback
- Input Validation: Input validation for all database operations
- Batch Operation Safety: Detailed reporting on success/failure of batch operations
⚠️ Important: These safety features are supplementary protections. Always maintain your own backups and use this software at your own risk.
Development
Project Structure
Running Tests
Code Quality
License
MIT License
Disclaimer
⚠️ USE AT YOUR OWN RISK ⚠️
- This project is not affiliated with AlphaTheta (Pioneer DJ) or the pyrekordbox project
- This software directly accesses your rekordbox database
- No warranty or guarantee is provided
- The developers are not responsible for any damage to your rekordbox library
- You assume all risk when using this software
ALWAYS backup your rekordbox library before use. Test thoroughly with backup copies before using on your main library.
By using this software, you acknowledge that you understand these risks and agree to use it at your own responsibility.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
MCP server for rekordbox DJ database access. Provides read-only querying of tracks, playlists, and DJ session history from encrypted rekordbox SQLite databases using pyrekordbox.
Related MCP Servers
- AsecurityAlicenseAqualityA comprehensive MCP server that provides sophisticated tools for interacting with PocketBase databases. This server enables advanced database operations, schema management, and data manipulation through the Model Context Protocol (MCP).Last updated -143148JavaScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that provides read-only access to MySQL databases.Last updated -483441JavaScriptMIT License
- AsecurityAlicenseAqualityMCP to analyse local audio file.Last updated -816PythonMIT License
- AsecurityAlicenseAqualityConnects Ableton Live to Claude AI through the Model Context Protocol, enabling AI-assisted music production by allowing Claude to directly interact with and control Ableton Live sessions.Last updated -161,853PythonMIT License