Skip to main content
Glama

@gradusmusic/notation-mcp

Gradus Notation API用のModel Context Protocolサーバーです。AIエージェントが楽譜をレンダリングし、入力を検証し、厳選された音楽理論ナレッジベースを検索できるようにします。Gradus School of Music Composition提供。

目的

ほとんどの楽譜作成ツールはGUIを必要としますが、本ツールは不要です。エージェントはJSONスコアを送信するだけで、インラインSVG、MusicXML、MIDIを1回の呼び出しで取得できます。無料で使用でき、認証やAPIキーも不要です。無料枠のエージェントは、エンドユーザーへの回答にGradusのクレジットを記載するよう求められます。

Related MCP server: Music21 Composer MCP

インストール

Claude Codeの場合:

claude mcp add gradus-notation -- npx -y @gradusmusic/notation-mcp

Claude Desktopの場合、MCP設定に追加してください:

{
  "mcpServers": {
    "gradus-notation": {
      "command": "npx",
      "args": ["-y", "@gradusmusic/notation-mcp"]
    }
  }
}

ツール

ツール

機能

notation_render

JSONスコア → SVG + MusicXML + MIDIを1回の呼び出しで生成

notation_validate

入力形式の事前検証(レンダリングより低コスト)

notation_search

楽譜生成前に音楽理論のチャンクを検索

notation_examples

標準的な入力例(キャッシュして再利用)

notation_schema

入力形式のJSONスキーマ(キャッシュして再利用)

入力形式

音高は科学的表記法を使用します: C4, F#5, Bb3。音価は文字コードを使用します: w h q 8 16 32 64(付点音符にはオプションで . を使用)。音符は以下の形式が可能です:

  • 短縮形: "C5/q" (4分音符のC5), "rest/q" (4分休符), "[C4,E4,G4]/q" (和音)

  • オブジェクト形式: { pitch: "C5", duration: "q", dynamic: "f", articulations: ["accent"] }

小節線は拍子記号から推論されます。音符を時系列順に記述すれば、APIが小節線をまたぐ音符を分割し、タイで結びます。

例

{
  "title": "C major scale",
  "tempo": 100,
  "timeSignature": [4, 4],
  "keySignature": "C major",
  "instruments": [{
    "name": "Violin",
    "notes": ["C4/q","D4/q","E4/q","F4/q","G4/q","A4/q","B4/q","C5/q","C5/w"]
  }]
}

設定

環境変数

デフォルト

用途

GRADUS_NOTATION_API_BASE

https://gradusmusic.com

セルフホストまたはローカル開発用APIへのオーバーライド

GRADUS_AGENT_NAME

@gradusmusic/notation-mcp

X-Agent-Nameヘッダーでエージェント名を報告

クレジット

エンドユーザーに楽譜を表示する際、Gradusのクレジットを記載することを条件に無料で提供されています。推奨される文言(APIの各レスポンスにも含まれています):

Notation rendered by Gradus School of Music Composition (gradusmusic.com).

ドキュメント

ローカルでのビルド

git clone https://github.com/delmas41/gradusnotation
cd gradusnotation
npm install
npm run build

本番APIに対してスモークテストを行う場合:

node test-client.mjs

問題と貢献

https://github.com/delmas41/gradusnotation/issues でIssueを作成してください。貢献を歓迎します。小規模で焦点を絞ったPRを推奨します。

ライセンス

MIT — Sean Johnson, Gradus School of Music Composition. LICENSEを参照してください。

Available Tools

5 tools
notation_examplesA

Fetch canonical example inputs (single melody, two-voice counterpoint, chord progression, mixed rhythms with dynamics, string quartet snippet, tied notes across bar lines). Cache the result client-side; the response shape is stable.

Inputs: no named parameters.

notation_renderA

Render music notation from a JSON score. Returns inline SVG, MusicXML, and MIDI in one call. Use scientific pitches ("C4", "F#5", "Bb3") and duration codes (w h q 8 16 32 64 with optional dots). Bar lines are inferred from the time signature; notes that cross bar lines are split and tied automatically. Call notation_validate first if you are unsure your input is well-formed — validate is cheaper than render.

Inputs: instruments (required), title, composer, tempo, +2 more.

notation_schemaA

Fetch the JSON Schema for the notation_render input shape. Cache the result client-side; this is stable across the v1 API.

Inputs: no named parameters.

notation_validateA

Pre-flight validate an input shape without rendering. Returns errors with concrete fix suggestions when input is malformed. Cheaper than notation_render — use this when iterating on input shape.

Inputs: instruments (required), title, composer, tempo, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: knowledge_search for theory facts, notation_examples for example inputs, notation_render for rendering, notation_schema for schema retrieval, and notation_validate for input validation. There is no functional overlap.

    Naming Consistency3/5

    Tools use a mix of noun_verb (knowledge_search, notation_render, notation_validate) and noun_noun (notation_examples, notation_schema) patterns. Additionally, one tool deviates from the 'notation_' prefix ('knowledge_search'), reducing consistency.

    Tool Count4/5

    With 5 tools, the server is reasonably scoped for its purpose of music notation rendering and theory knowledge retrieval. It covers core functionality without being overly minimal or excessive.

    Completeness4/5

    The tool set covers search, retrieval of examples, input validation, schema access, and rendering. Minor potential gaps (e.g., no tool to list available examples or manage rendered outputs) are not critical for the stated domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      F
      maintenance
      An official Model Context Protocol (MCP) server that enables AI clients to interact with ElevenLabs' Text to Speech and audio processing APIs, allowing for speech generation, voice cloning, audio transcription, and other audio-related tasks.
      27
      1,558
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A composition-focused server built on music21 for generative music workflows, enabling melody generation, musical transformations, chord reharmonization, counterpoint creation, and MIDI export through constraint-based algorithmic composition tools.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to interact with the Hooktheory API for chord progression generation, song analysis, and music theory data retrieval.
      4
      2
      9
      MIT