dj-music-metadata-mcp

dj-music-metadata-mcp

MCP server for DJs to scan music folders, validate and suggest metadata via MusicBrainz/iTunes/Spotify, and batch write metadata to audio files with confidence scoring.

Category
Visit Server

README

DJ Music Metadata MCP (Python)

MCP server for DJs to organize metadata with API-based validation and batch writing.

What this server does

  • Scans a music folder and finds missing fields.
  • Queries external APIs (MusicBrainz and iTunes) to suggest metadata with evidence.
  • Computes a confidence score per track and blocks low-confidence writes in strict mode.
  • Supports multiple genres per track.
  • Writes metadata to MP3, FLAC, and M4A/MP4.

Exposed MCP tools

  1. scan_tracks
  2. suggest_verified_metadata
  3. apply_verified_metadata

Requirements

  • Python 3.10+

Optional API credentials

  • Spotify (recommended):
    • SPOTIFY_CLIENT_ID
    • SPOTIFY_CLIENT_SECRET
  • SoundCloud (optional):
    • SOUNDCLOUD_CLIENT_ID

If these variables are not configured, the server still works with MusicBrainz and iTunes.

Install

pip install -r requirements.txt

Run

python server.py

Launcher desktop (React + Tailwind + Python)

O projeto agora inclui um launcher desktop para:

  • Iniciar/parar o servidor MCP
  • Selecionar modo streamable-http ou stdio
  • Configurar conexao automatica para VS Code, Cursor e Claude Code

Stack da interface:

  • Shell desktop: pywebview (Python)
  • Frontend: React + Tailwind CSS (Vite)

Rodar launcher em desenvolvimento:

cd ui
npm install
npm run build
cd ..
python launcher.py

Observacao:

  • Se o launcher for executavel (.exe), ele tambem funciona como processo do servidor via --server.

Gerar executavel (Windows)

Use o script (compila frontend e empacota exe):

build_exe.bat

Resultado esperado:

dist/DJMetadataLauncher.exe

Example (Windows PowerShell):

$env:SPOTIFY_CLIENT_ID="your_client_id"
$env:SPOTIFY_CLIENT_SECRET="your_client_secret"
$env:SOUNDCLOUD_CLIENT_ID="your_client_id"
python server.py

MCP setup (VS Code)

Example file: mcp.server.json

Opcao recomendada: use o launcher e clique em Conectar automaticamente com Agente = VS Code.

Connect (local and remote)

1. Local (recommended for personal use)

Run:

python server.py

Then configure your MCP client with stdio command.

2. Remote/public (HTTP + API key)

Create an .env file from .env.example and set MCP_API_KEY.

Run:

MCP_TRANSPORT=streamable-http MCP_HOST=0.0.0.0 MCP_PORT=8000 python server.py

Your endpoint will be:

https://your-domain.com/mcp

Cursor (remote)

mcp.json:

{
  "mcpServers": {
    "dj-metadata": {
      "url": "https://your-domain.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}

Opcao recomendada: use o launcher e clique em Conectar automaticamente com Agente = Cursor.

Claude Code (remote)

claude mcp add --transport http dj-metadata https://your-domain.com/mcp --header "Authorization: Bearer <your-api-key>"

Opcao recomendada: use o launcher e clique em Conectar automaticamente com Agente = Claude Code.

Notes

  • This server modifies local files; if you host it remotely, ensure each user is isolated to their own folder.
  • Keep dryRun=true as the default workflow before writing metadata.

Recommended workflow

  1. Run scan_tracks to map missing fields.
  2. Run suggest_verified_metadata with minConfidence between 0.78 and 0.90.
  3. Review per-track evidence.
  4. Run apply_verified_metadata with dryRun true.
  5. If results look correct, run again with dryRun false.

Example 1: scan

Tool: scan_tracks

{
  "folderPath": "D:/DJ/Setlist",
  "recursive": true
}

Example 2: API-based verified suggestion

Tool: suggest_verified_metadata

{
  "folderPath": "D:/DJ/Setlist",
  "recursive": true,
  "minConfidence": 0.82,
  "onlyMissing": true
}

Example 3: apply in strict mode

Tool: apply_verified_metadata

{
  "dryRun": true,
  "strict": true,
  "minConfidence": 0.82,
  "updates": [
    {
      "filePath": "D:/DJ/Setlist/Artist - Track.mp3",
      "confidence": 0.91,
      "evidence": [
        { "source": "musicbrainz", "recordingId": "..." }
      ],
      "metadata": {
        "title": "Track",
        "artist": "Artist",
        "genre": ["Tech House", "House"],
        "comment": ["Validated by API"]
      }
    }
  ]
}

Set dryRun to false to write changes.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured