Music Collection MCP Server

Music Collection MCP Server

Provides intelligent access to local music collections through advanced metadata management, album classification across 8 types, collection analytics, and smart search capabilities for AI-powered music library organization.

Category
Visit Server

README

Music Collection MCP Server

A powerful Model Context Protocol (MCP) server that provides intelligent access to your local music collection through advanced metadata management, album type classification, and comprehensive analytics.

โœจ Key Features

  • ๐ŸŽต Smart Music Discovery: Intelligent scanning with 8-type album classification (Album, EP, Live, Demo, Compilation, Single, Instrumental, Split)
  • ๐Ÿ“Š Advanced Analytics: Collection maturity assessment, health scoring, and personalized recommendations
  • ๐Ÿ—๏ธ Flexible Organization: Support for multiple folder structures with automated migration and compliance scoring
  • โšก High Performance: Optimized scanning (20-30% faster), batch operations, and intelligent caching
  • ๐Ÿค– AI Integration: Works seamlessly with Claude Desktop and other MCP clients
  • ๐Ÿ”„ Automated Setup: One-command installation with configuration generation

๐Ÿš€ Quick Start

Option 1: Automated Setup (Recommended)

python scripts/setup.py

This guided setup will:

  • Check system requirements
  • Install dependencies
  • Configure your music collection path
  • Generate Claude Desktop configuration
  • Validate your setup

Option 2: Manual Installation

Using Python

# Install dependencies
pip install -r requirements.txt

# Set your music path
export MUSIC_ROOT_PATH="/path/to/your/music"

# Run the server
python main.py

Using Docker

# Build and run
docker build -t music-mcp .
docker run -v "/path/to/your/music:/music" -e MUSIC_ROOT_PATH=/music music-mcp

๐Ÿค– MCP Client Setup

Configuration File Locations for Claude desktop

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Python Installation

{
  "mcpServers": {
    "music-collection": {
      "command": "python",
      "args": ["/path/to/music-mcp-server/main.py"],
      "env": {
        "MUSIC_ROOT_PATH": "/path/to/your/music",
        "CACHE_DURATION_DAYS": "30",
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

Docker Installation

{
  "mcpServers": {
    "music-collection": {
      "command": "docker",
      "args": [
        "run", "--rm", "--interactive",
        "-v", "/path/to/your/music:/music",
        "-e", "MUSIC_ROOT_PATH=/music",
        "-e", "CACHE_DURATION_DAYS=30",
        "music-mcp"
      ]
    }
  }
}

๐Ÿ“ Music Organization

The server supports multiple organization patterns:

Enhanced Structure (Recommended)

Band Name/
โ”œโ”€โ”€ Album/
โ”‚   โ”œโ”€โ”€ 1973 - Dark Side of the Moon/
โ”‚   โ””โ”€โ”€ 1979 - The Wall (Deluxe)/
โ”œโ”€โ”€ Live/
โ”‚   โ””โ”€โ”€ 1988 - Delicate Sound of Thunder/
โ”œโ”€โ”€ Compilation/
โ”‚   โ””โ”€โ”€ 2001 - Echoes - Best Of/
โ””โ”€โ”€ .band_metadata.json (auto-generated)

Simple Structure (Also Supported)

Band Name/
โ”œโ”€โ”€ 1973 - Dark Side of the Moon/
โ”œโ”€โ”€ 1988 - Delicate Sound of Thunder (Live)/
โ””โ”€โ”€ 2001 - Echoes - Best Of (Compilation)/

๐Ÿ› ๏ธ MCP Capabilities

Tools (10 total)

  • Music Discovery: scan_music_folders - Smart scanning with type detection
  • Collection Management: get_band_list - Advanced filtering and search
  • Metadata Storage: save_band_metadata, save_band_analyze, save_collection_insight
  • Validation: validate_band_metadata - Dry-run validation
  • Advanced Search: advanced_search_albums - 13-parameter filtering system
  • Analytics: analyze_collection_insights - Comprehensive collection analysis
  • Structure Migration: migrate_band_structure - Safe folder organization migration

Resources (3 total)

  • Band Info: band://info/{band_name} - Detailed band information
  • Collection Summary: collection://summary - Overview and statistics
  • Advanced Analytics: collection://analytics - Deep collection analysis

Prompts (4 total)

  • Information Gathering: fetch_band_info, analyze_band
  • Analysis: compare_bands, collection_insights

โš™๏ธ Configuration

Configure via environment variables or the automated setup:

MUSIC_ROOT_PATH="/path/to/your/music"     # Required: Your music directory
CACHE_DURATION_DAYS=30                    # Optional: Cache expiration (default: 30)
LOG_LEVEL=INFO                           # Optional: Logging level (default: INFO)

๐Ÿ“š Documentation

Get Started Quickly

Learn More

Get Help

๐Ÿ”ง Maintenance & Scripts

The scripts/ directory provides powerful maintenance tools:

  • Setup: setup.py - Automated installation and configuration
  • Docker: start-docker.sh - Container management with options
  • Validation: validate-music-structure.py - Collection health checking
  • Backup: backup-recovery.py - Complete backup and recovery system
  • Monitoring: health-check.py - Comprehensive health monitoring

๐Ÿงช Testing

# Using Docker (recommended)
docker build -f Dockerfile.test -t music-mcp-tests .
docker run --rm music-mcp-tests python -m pytest . -v

# Using Python
python -m pytest tests/ -v

๐Ÿ“Š What's New

Recent Improvements

  • Migration Tools: Safe folder structure migration with backup and rollback
  • Advanced Analytics: Collection maturity assessment and health scoring
  • Performance: 20-30% faster scanning with optimized file operations
  • Separated Schema: Local vs missing albums for better management
  • Automated Setup: One-command installation and configuration
  • Album Types: Intelligent 8-type classification system
  • Flexible Structure: Support for multiple organization patterns

๐Ÿ†˜ Need Help?

  1. Check the FAQ for common questions
  2. Run health check: python scripts/health-check.py /path/to/music
  3. Validate structure: python scripts/validate-music-structure.py /path/to/music
  4. Review Troubleshooting guide

๐Ÿ”— Links

  • Setup Scripts: Complete automation in scripts/ directory
  • Claude Desktop Configs: Ready-to-use examples in scripts/claude-desktop-configs/
  • Developer Docs: Architecture and API reference in docs/developer/

Transform your music collection into an intelligent, searchable library with AI-powered insights! ๐ŸŽถ

Requirements

  • Python 3.8+
  • Docker (for containerized deployment)

License

MIT License

Copyright (c) 2025 Music Collection MCP Server

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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
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
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
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