mcpField
C
cli-anything-rekordbox

cli-anything-rekordbox

github.com/hkudsCreative & media57.6k294 installsUpdated 5w ago
Repository

About cli-anything-rekordbox

cli-anything-rekordbox is an agent-oriented CLI for Rekordbox 6/7. It supports library and playlist operations alongside live deck control through virtual MIDI, with JSON output for commands.

Key features

  1. 01Search and inspect tracks
  2. 02Export the music library as JSON
  3. 03Create and edit playlists
  4. 04Control decks through MIDI
  5. 05Mix tracks with a composed command

Use cases

  1. 01Find tracks by title or artist
  2. 02Export library data for processing
  3. 03Create playlists and add tracks
  4. 04Trigger deck controls and crossfades

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-rekordbox

After installing, type/cli-anything-rekordboxin Claude Code to confirm it loaded.

Details

From the project README

cli-anything-rekordbox

Agent-native CLI for Pioneer Rekordbox 6/7. Drives the DJ library and live decks programmatically.

Installation

pip install cli-anything-rekordbox

Prerequisites:

  • Python 3.10+
  • Rekordbox 6 or 7 installed (master.db must exist)
  • Virtual MIDI driver for live-deck control:
    • Windows: loopMIDI / LoopBe / teVirtualMIDI
    • macOS: IAC Driver
    • Linux: ALSA virtual MIDI (snd-virmidi)

Usage

# Status check
cli-anything-rekordbox status

# REPL mode
cli-anything-rekordbox

# JSON output for agents
cli-anything-rekordbox --json library search "Daft Punk"

Command Groups

Library
CommandDescription
countTotal track count
search QUERYFind tracks by title/artist substring
info TRACK_IDFull track metadata
dump --out FILE.jsonExport full library as JSON
Playlist
CommandDescription
listAll playlists
create NAME [--force] [--no-backup]New playlist
add NAME --track-title T [--force] [--no-backup]Add track
clear NAME [--force] [--no-backup]Empty a playlist

Playlist writes create a master.db backup before mutation. They refuse to run while Rekordbox is open unless --force is supplied; forced writes still require a backup. --no-backup is only accepted when Rekordbox is closed.

Deck (live MIDI)
CommandDescription
play --deck NPlay/pause
sync --deck NTempo sync
crossfade FROM TO --secs SSmooth crossfade
eq --deck N --hi --mid --loEQ control
hot-cue --deck N --slot 1-8Trigger hot cue
Top-level
CommandDescription
statusRuntime / DB / MIDI state
install-mappingDrop Bunker.midi.csv into rekordbox's MidiMappings folder
mix A B --secs SHigh-level: search + load + sync + crossfade

How it works

+------------------+
|   Your Agent     |
+--------+---------+
         |
         v
+------------------+
| cli-anything-    |
| rekordbox CLI    |
+--------+---------+
   |          |
   v          v
+----------+  +----------+
|pyrekord- |  |  mido +  |
|box DB    |  |  virtual |
|writes    |  |  MIDI    |
+----------+  +----------+
   |               |
   v               v
+----------+  +-----------+
| master.db|  | Rekordbox |
|SQLCipher |  | live decks|
+----------+  +-----------+
  • master.db is encrypted with a static AES-256 key shared by all rekordbox 6/7 installs (auto-extracted by pyrekordbox)
  • Virtual MIDI mapping uses Pioneer's standard .midi.csv format; this CLI ships Bunker.midi.csv and an install-mapping command to drop it into rekordbox's MidiMappings/ folder

JSON output

Every command supports --json:

$ cli-anything-rekordbox --json library count
{"track_count": 30344}

License

MIT

Comments

Markdown supported