UE

unimelbmdap/encoding-music-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

5 stars 3 forks 质量 68 趋势 33

MCP (Model Context Protocol) provides a powerful way of interacting with specialized tools and libraries.

概览

MCP server for analyzing MEI (Music Encoding Initiative) files. Provides tools to extract metadata, analyze musical structure, and understand encoded scores. - : Bach Inventions, Bartók Mikrokosmos, Morley Canzonets - ready to analyze - : Extract title, composer, editors, analysts, publication dates, and copyright information - : Detect musical keys with confidence scores using music21 - : Extract notes, melodic intervals, harmonic intervals, and melodic n-grams using CRIM Intervals - : Render sheet music as SVG with interactive pagination using Verovio (requires MCP Apps extension) - : Tools read directly from disk - no token waste - Detailed tool reference - Quick start guides - MEI file collection details - Development guides - API reference : This project requires uv to be installed. No cloning required! Add this to your MCP client configuration: Clone the repository and install dependencies: 1.

README

以下为原文 README 节选,完整内容请查看原文。

encoding-music-mcp

MCP server for analyzing MEI (Music Encoding Initiative) files. Provides tools to extract metadata, analyze musical structure, and understand encoded scores.

Features

  • 46 Built-in MEI Files: Bach Inventions, Bartók Mikrokosmos, Morley Canzonets - ready to analyze
  • MEI Metadata Extraction: Extract title, composer, editors, analysts, publication dates, and copyright information
  • Key Analysis: Detect musical keys with confidence scores using music21
  • Interval Analysis: Extract notes, melodic intervals, harmonic intervals, and melodic n-grams using CRIM Intervals
  • Notation Display: Render sheet music as SVG with interactive pagination using Verovio (requires MCP Apps extension)
  • Simple & Efficient: Tools read directly from disk - no token waste

Documentation

📚 Read the full documentation for:

  • Detailed tool reference
  • Quick start guides
  • MEI file collection details
  • Development guides
  • API reference

Installation

Prerequisites: This project requires uv to be installed.

Option 1: Quick Start (using uvx)

No cloning required! Add this to your MCP client configuration:

{
  "mcpServers": {
    "encoding-music-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/unimelbmdap/encoding-music-mcp.git",
        "encoding-music-mcp"
      ]
    }
  }
}

Option 2: Local Development

Clone the repository and install dependencies:

git clone https://github.com/unimelbmdap/encoding-music-mcp.git
cd encoding-music-mcp
uv sync

Usage

With Claude Desktop

  1. Open your Claude Desktop configuration file:

    • In Claude Desktop, open Settings > Developer
    • Under Local MCP servers, click Edit Config
  2. Add configuration (choose one method):

Method A: Using uvx (no clone needed)

{
  "mcpServers": {
    "encoding-music-mcp": {
      "command": "uvx",
      "args": [
        "--from",
在 GitHub 查看完整 README

安装

uvx --from git+https://github.com/unimelbmdap/encoding-music-mcp.git encoding-music-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "encoding-music-mcp": { "command": "uvx", "args": [ "--from", "git+https://github.com/unimelbmdap/encoding-music-mcp.git", "encoding-music-mcp" ] } } }