The MCP Music Analysis server provides audio analysis capabilities using librosa to process audio files from local paths, URLs, or YouTube links.
Main features:
Load Audio: Load audio files or specific segments with optional offset and duration
Download: Download audio from direct URLs or YouTube links
Analysis Functions:
Get total duration of audio files
Estimate tempo (BPM)
Compute Chroma Constant-Q Transform (CQT) for chromatic content
Compute Mel-Frequency Cepstral Coefficients (MFCC) for spectral content
Compute beat track for rhythmic content analysis
MCP Music Analysis
This repository contains a Model Context Provider (MCP) that uses MCP and librosa for audio analysis on audio in local, youtube link, or audio link.
Usage with Claude Desktop
Related MCP server: ZIP-MCP
Installation
Installing via Smithery
To install Music Analysis for Claude Desktop automatically via Smithery:
Manual Installation
Usage with Claude Desktop
Locate Configuration File
The configuration file location depends on your operating system:
macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the following to your claude_desktop_config.json:
Example Prompts
Here are some sample prompts you might use in a conversational or chat-based context once the server is running. The MCP will understand these requests and execute the relevant tools:
To-Do List
Add URL to audio file download
Add YouTube to audio file transformation
Experiment with multiple Python environments (testing)
Improve installation guide
Integrate Whisper for lyrics
Implement a Docker solution
Author
Hugo How-Choong