# Traktor MCP

> Traktor MCP is an open-source MCP server for music data. MCP server that inspects and repairs a Traktor DJ collection file from an AI client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/alchimestre/traktor-mcp
- **MCP Registry name:** io.github.alchimestre/traktor-mcp
- **Categories:** [music data](https://ai-powered.com/categories/music-data)
- **Listing updated:** 2026-11-23

## About

Traktor MCP lets an MCP-compatible client read a Traktor collection and plan updates to it. It reports which entries point to replaced audio files, which new files in the configured music folders could be added, and which tracks have gone missing. Writes are split into separate steps, so a user can review a plan before anything changes.

The server relies on the traktor-nml library to edit collection.nml directly, so entries are repointed or added without hand-editing the XML. Untouched entries keep their original markup, and a backup is made before any write. Removing entries whose files are missing is a separate, preview-first operation.

It suits DJs and music librarians who maintain large Traktor libraries on a single machine and want to tidy them up with an assistant. It does not control playback or decks during a set.

## Features

- **Collection status summary:** Reports the state of the Traktor collection and the configured music directories.
- **Preview before writing:** Lists proposed replacements, additions and missing files without touching the collection file.
- **Repoint replaced files:** Updates entries when audio files have been replaced, keeping the rest of the XML intact.
- **Import new tracks:** Adds files from the lossless and lossy music folders to the collection.
- **Guarded purge of missing files:** Previews removal of entries whose files are gone and only deletes them when explicitly asked.
- **Automatic backups:** Backs up the collection file before any write operation.

## Good for

- Repoint Traktor tracks after re-encoding or replacing audio files
- Import newly downloaded music into an existing Traktor collection
- Find and review entries whose audio files are missing before cleaning them up
- Audit a large DJ library from an AI assistant before making changes

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add traktor-mcp -- uvx traktor-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add traktor-mcp -- uvx traktor-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.traktor-mcp]
command = "uvx"
args = ["traktor-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user traktor-mcp uvx -- traktor-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "traktor-mcp": {
      "command": "uvx",
      "args": [
        "traktor-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 4 tools deletes data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `status` (name suggests: reads): Summarise the collection and configured music directories.
- `plan`: List proposed replacements, additions and missing files.
- `apply`: Repoint replaced files and add new files; remove no entries.
- `purge` (name suggests: deletes): Remove entries whose files are missing; preview by default.

## FAQ

### Does Traktor MCP control Traktor during a performance?

No. It is limited to collection maintenance and does not handle playback or live deck control.

### Can Traktor MCP change my collection without asking?

Plan and status only read the collection. Apply and purge write to it, and purge only removes entries when apply is set to true.

### What should I do before running a write?

Close Traktor first, because it rewrites the collection on exit. Both write operations refuse to run while Traktor is open.

### What does Traktor MCP need to run?

Python 3.13 or later and uv, with access to the Traktor collection and music folders on the same machine. It runs locally over stdio.

### Is Traktor MCP free?

Yes. Traktor MCP is open source, so you can use and self-host it for free.

### How do I add Traktor MCP to Claude Code?

Run this command in your terminal: claude mcp add traktor-mcp -- uvx traktor-mcp

### What are the best alternatives to Traktor MCP?

The closest alternatives to Traktor MCP are Serato DJ library, Spotify MCP by UnClick, Spotify Bulk Actions MCP, Tracktag MCP and DropTrack.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Serato DJ library](https://ai-powered.com/mcp/serato-dj-library): Serato DJ library is an open-source MCP server for music data.
- [Spotify MCP by UnClick](https://ai-powered.com/mcp/spotify-mcp-by-unclick): Spotify MCP by UnClick is an open-source MCP server for music data.
- [Spotify Bulk Actions MCP](https://ai-powered.com/mcp/spotify-bulk-actions-mcp): Spotify Bulk Actions MCP is an open-source MCP server for music data.
- [Tracktag MCP](https://ai-powered.com/mcp/tracktag-mcp): Tracktag MCP is a paid MCP server for music data.
- [DropTrack](https://ai-powered.com/mcp/droptrack): DropTrack is a freemium MCP server for marketing and seo.
- [Tidal MCP](https://ai-powered.com/mcp/tidal-mcp): Tidal MCP is an open-source MCP server for music streaming.

---
Source: https://ai-powered.com/mcp/traktor-mcp
