traktor-mcp
Use an MCP client to inspect and reconcile a Traktor collection against configured music directories, with preview-first, backup-protected writes.
status: read-only summary of the collection, configured lossless/lossy lanes, and pending run scope.plan: read-only preview of entries to repoint, files to add, and missing files, including duplicates or unreplaced files.apply: write proposed replacements and additions tocollection.nml; backs up first, preserves untouched entries, and refuses while Traktor is running.purge: preview or, withapply: true, remove entries whose files are missing; backs up first, reassigns or drops playlist references, reports lost history/cues/play counts, and refuses while Traktor is running.It performs collection maintenance only, not playback or live deck control; files outside the configured lanes are reported rather than moved.
Click on "Deploy 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., "@traktor-mcp plan what would change in my Traktor collection"
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.
traktor-mcp
Inspect and reconcile your Traktor collection from an MCP client.
Uses traktor-nml to update collection.nml when audio files are replaced or added, without editing XML by hand.
Requirement or limit | Detail |
Runtime | Python 3.13+, uv |
Client | Local MCP server support over stdio |
Files | Access to the Traktor collection and music directories on the same machine |
Scope | Collection maintenance, not playback or live deck control |
Status | Early version: 0.1.0 |
Licence |
Setup
Install from PyPI:
uv tool install traktor-mcpCheck that the executable is on your PATH:
traktor-mcp --helpIf the command is not found, add the directory printed by
uv tool dir --binto your PATH.Create
traktor.toml. The default collection is inDocuments/Native Instruments/Traktor <version>/collection.nml; replace the paths below with your actual locations:[paths] collection = "/path/to/Traktor/collection.nml" lossless = "/path/to/music/lossless" lossy = "/path/to/music/lossy"losslessandlossyare the music directories to import from. Relative paths resolve against the configuration file's directory. Addstateonly if a local pipeline tracks file replacements there: its<run>/tracks.jsonlrecords withreplacesandlocal_pathidentify replacement files. Without that data, replacement matching uses filenames. Check the reported collection path before approving a write.Add the server to your MCP client's configuration. For clients using
mcpServers, merge this entry into the existing object:{ "mcpServers": { "traktor": { "command": "traktor-mcp", "args": ["--config", "/path/to/traktor.toml"] } } }Replace the config path with an absolute path. If the client cannot find
traktor-mcp, use the executable's absolute path from step 2. Other clients may use a different configuration wrapper; the command and arguments stay the same.Restart or reload the client, then ask: “Call Traktor's
statusandplan. Show the proposed changes without writing anything.”planreports entries to repoint, files to add, and missing files. Check the reported collection path before approving a write.
Related MCP server: Spotify Playlist MCP
Tools
Tool | Writes to collection | Effect |
| No | Summarise the collection and configured music directories |
| No | List proposed replacements, additions and missing files |
| Yes | Repoint replaced files and add new files; remove no entries |
| Only with | Remove entries whose files are missing; preview by default |
Files in lossless and lossy are candidates for import. Files elsewhere are reported rather than moved.
For shell use without an MCP client, use traktor-nml directly.
Before writing
Close Traktor. It rewrites the collection on exit and can overwrite external changes. Both write operations refuse while Traktor is running.
Call
planand inspect its output.applywrites immediately when called; it has no separate confirmation argument.Call
applyonly after reviewing replacements and additions. It backs up the collection beside the original before writing; untouched entries retain their original XML.Preview
purgeseparately before calling it withapply: true. Removed entries lose their history, cues and play counts. Playlist references are reassigned to a retained entry or dropped. A backup is taken before writing.Open Traktor and run Check Consistency → Analyze for replaced tracks. Their old fingerprint, tempo, loudness, key and beatgrid measurements must be regenerated.
Development
Install the project and development dependencies:
uv syncRun the tests:
uv run pytest
To work on the library alongside the server, override it with a sibling checkout:
uv pip install -e ../traktor-nmlPublishing
Configure a PyPI Trusted Publisher for this GitHub repository, workflow
publish.yml, environmentpypi.Dispatch the workflow from
mainwith the release tag or commit SHA asref:gh workflow run publish.yml --repo alchimestre/traktor-mcp --ref main -f ref=v0.1.0Check the workflow result before announcing the release. Published PyPI versions cannot be overwritten.
Available Tools
4 toolsapplyA
Write the plan into the collection: one backup beside it, then one edit that leaves every entry nobody is repointing byte for byte as Traktor wrote it. Refuses while Traktor is running. Returns what was written and what to do in the app afterwards.
Inputs: no named parameters. Returns: result
planA
What a run would change, writing nothing: every entry to repoint onto the file that replaced it, every lane file to add, and every entry whose file is gone — either a duplicate the collection holds elsewhere, or a file that is not there and was not replaced.
Inputs: no named parameters. Returns: result
purgeA
Take out every entry in the collection whose file is gone — residue, since a collection is an index of files that exist. A playlist reference to a removed entry is moved to the entry that keeps the track, or dropped when nothing does; history, cues and play counts go with the entry and are reported. Dry run unless apply is true. Refuses while Traktor is running, and takes one backup beside the collection before it writes.
Inputs: apply. Returns: result
statusA
Where the Traktor collection and the two lanes stand: how many entries, how many files are in the lanes, and how many of each thing a run would do. Reads the whole collection and both lanes, writes nothing.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
status and plan are distinct read-only views, but purge and apply both mutate the collection with backups and Traktor-running guards, and plan already reports removals that purge handles. The boundaries are understandable from descriptions but not fully crisp.
All names are single lowercase words, but the set mixes noun-like status/plan with verb-like purge/apply, so there is no predictable action pattern. It is readable but not systematic.
Four tools map cleanly to inspect, preview, clean, and commit operations for a narrow collection-maintenance utility. No tool feels extraneous for the stated scope.
The surface covers the main lifecycle: status, plan, purge, and apply with backups. Minor gaps include no explicit post-apply verification or backup/restore management, but core workflows are covered.
Maintenance
Related MCP Connectors
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
Query SEC EDGAR filings, XBRL financials, and company data via MCP. STDIO or Streamable HTTP.
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceSearch and read locally-recorded meeting transcripts over stdio. Read-only, no network. Exposes list_sessions, get_session, and search_transcripts to any MCP client.90 PyPI7MIT
- AlicenseNot gradedqualityDmaintenanceLocal STDIO MCP server for safely curating Spotify playlists with a plan/apply workflow, allowlist-based write protection, and authentication status checks.MIT

Daykeeper MCPofficial
AlicenseAqualityBmaintenanceA local stdio MCP adapter for the Daykeeper management API. It uses separately issued scoped credentials and exposes read-only tools by default; planning and mutations require explicit opt-in.819 npmApache 2.0- AlicenseAqualityCmaintenanceConnects MCP clients to a self-hosted photo library through its REST API, exposing assets, albums, people, search, and optional administrative toolsets with read-only defaults and confirm-gated writes. It supports stdio and localhost Streamable HTTP transports.5MIT