mcp-audio-analysis

by hugohow
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

MCP音乐分析

该存储库包含一个模型上下文提供程序 (MCP) ,它使用 MCP 和librosa对本地、youtube 链接或音频链接中的音频进行音频分析。

与 Claude Desktop 一起使用

安装

# Clone repository git clone git@github.com: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 .

与 Claude Desktop 一起使用

找到配置文件

配置文件位置取决于您的操作系统:

  • macOS 系统
    ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • 窗户
    %APPDATA%\Claude\claude_desktop_config.json
  • Linux
    ~/.config/Claude/claude_desktop_config.json

将以下内容添加到您的claude_desktop_config.json中:

{ "mcpServers": { "music-analysis": { "command": "uvx", "args": ["-n", "mcp-music-analysis"] } } }

示例提示

以下是一些示例提示,您可以在服务器运行后在对话或聊天环境中使用。MCP 将理解这些请求并执行相关工具:

Can you analyze the beat of /Users/hugohow-choong/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

待办事项清单

  • [x] 添加音频文件下载 URL
  • [x] 添加 YouTube 到音频文件转换
  • [ ] 尝试多种 Python 环境(测试)
  • [ ] 改进安装指南
  • [ ] 整合 Whisper 歌词功能
  • [ ] 实施 Docker 解决方案

作者

雨果·豪钟

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 分析本地音频文件。

  1. Usage with Claude Desktop
    1. Installation
      1. Usage with Claude Desktop
    2. Example Prompts
      1. To-Do List
        1. Author
          ID: 4kntblkkwt