Skip to main content
Glama

@gradusmusic/notation-mcp

Gradus Notation API 的模型上下文协议 (MCP) 服务器。允许 AI 代理渲染乐谱、验证输入并搜索精选的乐理知识库 — 由 Gradus 音乐作曲学校赞助。

为什么选择它

大多数乐谱工具都需要图形用户界面 (GUI)。而这个工具不需要。代理可以提交 JSON 乐谱,并在单次调用中返回内联 SVG、MusicXML 和 MIDI。免费使用,无需认证,无需 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(单次调用)

notation_validate

预检输入格式(比渲染更节省资源)

knowledge_search

在生成乐谱前查找乐理片段

notation_examples

规范的输入示例(缓存并复用)

notation_schema

输入格式的 JSON Schema(缓存并复用)

输入格式

音高使用科学记谱法:C4F#5Bb3。时值使用字母代码:w h q 8 16 32 64,可选 . 表示附点音符。音符可以是:

  • 简写形式:"C5/q"(四分音符 C5)、"rest/q"(四分休止符)、"[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 的每次响应中也会返回此内容):

乐谱由 Gradus 音乐作曲学校 (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 提交问题。欢迎贡献 — 优先处理小型、专注的 PR。

许可证

MIT — Sean Johnson, Gradus 音乐作曲学校。请参阅 LICENSE

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    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,530
    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.
    2
    6
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/delmas41/gradusnotation'

If you have feedback or need assistance with the MCP directory API, please join our Discord server