This MCP server enables audio analysis directly within Claude Desktop. It processes audio files from your local disk, YouTube links, or other web URLs, providing detailed information about musical characteristics using librosa's audio analysis capabilities.
The easiest way to install Music Analysis for Claude Desktop is through Smithery:
npx -y @smithery/cli install @hugohow/mcp-music-analysis --client claude
If you prefer to install manually:
# Clone repository
git clone [email protected]:hugohow/mcp-music-analysis.git
cd mcp-music-analysis
# Create virtual environment and install
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
After installation, you need to configure Claude Desktop to recognize the MCP server.
The configuration file location depends on your operating system:
macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Linux:
~/.config/Claude/claude_desktop_config.json
Add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"music-analysis": {
"command": "uvx",
"args": ["-n", "mcp-music-analysis"]
}
}
}
Once configured, you can use the MCP in Claude Desktop with natural language prompts. The server can analyze audio from:
Here are some example prompts to use with Claude Desktop:
Can you analyze the beat of /Users/username/Desktop/sample-6s.mp3?
Could you give me the duration of https://download.samplelib.com/mp3/sample-15s.mp3?
Please compute the MFCC for this file: /path/to/another_audio.mp3
What are the spectral centroid values for /path/to/music.wav?
I'd like to know the onset times for https://www.youtube.com/watch?v=8HFiFd9vx1c
The MCP can perform various types of audio analysis, including:
Simply ask Claude to perform the specific analysis you want on your audio file, and the MCP will handle the technical implementation.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.