Purpose: serato-dj-mcp connects a Serato DJ library to AI clients such as Claude Desktop, Claude Code, Cursor, and VS Code via the Model Context Protocol (MCP), letting users search and analyze their local library through everyday conversation. The server itself is a small local process running on the user's computer; it reads data from the library to answer queries and does not send data externally on its own.
Main capabilities:
- search_tracks: search tracks by free text, BPM, key (Camelot), genre, rating, date added, crate membership, and tags; results are paginated, defaulting to 25 tracks per page and 9 fields.
- get_tracks: fetch tracks by the ids returned by search_tracks; unknown ids appear in missing rather than being dropped.
- list_crates / get_crate_tracks: list crates in the Serato Library space with their display paths and deduplicated track counts, and read tracks in each crate's own order; smart crates, the space root, and internal spaces such as the Prepare panel are not listed.
- audit_library: diagnose the library, running all checks by default, reporting counts and up to ten example track ids, including tracks with no BPM, no key, a key Serato cannot display, marked as stale, not in any crate, streaming-only, duplicates, broken paths, and more; duplicates are reported as groups; broken_paths reads Serato's own missing markers by default, with an optional check_filesystem: true to check the disk.
- run_sql: registered only under --allow-raw-sql, executes read-only SELECT queries against the snapshot and returns raw rows.
- Write-related (requires --allow-writes): stage_crate stages a new crate, preview_changes previews, apply_changes writes all or nothing, discard_changes discards the staged changes.
Usage:
- As a Claude Desktop extension: download serato-dj-mcp-<version>.mcp from the latest releaseb and open the installation, no Node.js required; in settings you can specify the library folder, enable crate writes, or raw SQL.
- Manual method: requires Node.js 22.16 or newer; in Settings → Developer → Edit Config, add the server to claude_desktop_config.json and restart Claude Desktop; adding --scope user makes it apply to all projects.
- Cursor: add the same mcpServers entry to ~/.cursor/mcp.json, with the command {"command":"npx","args":["-y","serato-dj-mcp"]}.
- VS Code: install per the editor documentation, or install from the terminal.
- Common options: --library <path> specifies the library folder containing master.sqlite (usually auto-discovered on macOS); --allow-writes enables crate writes; --allow-raw-sql adds run_sql; there are also --root, --cache-dir, --state-dir, --help, --version, and the environment variable SERATO_LIBRARY_PATH can replace --library.
- Running from source: after building, point node at dist/index.js.
Use cases: DJs filtering tracks by BPM and harmonic key before a gig, viewing the contents of a crate, troubleshooting duplicates and missing files while organizing a library, and having an AI assistant generate a new crate from search results and preview it before writing.
Limitations and caveats:
- Status is experimental, pre-1.0; minor versions may change behavior or break compatibility.
- macOS only; tested on macOS with Serato DJ Lite 4.0.9, Windows untested.
- Serato DJ 3.x is not supported (it uses binary database V2 rather than SQLite) and will not return data.
- Reads are snapshot-based, so answers may lag by up to about two seconds; pagination may span snapshots while Serato is writing, producing a snapshot_advanced warning.
- Writes only create new crates at the top level of the Serato Library, writing to root.sqlite, without modifying or deleting existing crates, editing tracks, or touching master.sqlite, database V2, or the Subcrates folder; nested crates are not supported. apply_changes is rejected while Serato is running; both databases are backed up before each write, keeping backups of the last ten attempts; there is no undo tool, so manual recovery per the documentation is required.
- Some audit checks rely on unconfirmed column semantics (stale, streaming_only); ratings and streaming flags are passed through as raw values without interpretation.
- Free-text search does not exactly match Serato's own search.
- The project is not affiliated with Serato; it reads a reverse-engineered database layout that may break after Serato updates.
- The server has no telemetry and makes no network requests, only calling ps to check whether Serato is running; tool results are sent to the AI client used and its model provider.