A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

MIDI MCP Server
A MIDI MCP server that generates MIDI files from structured JSON composition data, with chord name support, an interactive piano-roll preview UI, and multiple deployment modes.
WHAT IT DOES
- •Generates a MIDI file from structured composition data and returns base64-encoded MIDI while rendering an interactive piano-roll preview with audio playback in supported MCP clients.
- •Parses chord names and returns component MIDI pitches and note names.
- •Accepts MIDI numbers, note-name strings, pitch arrays, or chord names as pitch input.
- •Exposes music theory reference documents as MCP resources.
BEST FOR
- •AI-assisted composition of MIDI music from structured JSON data.
- •Checking chord voicings before composing a piece.
- •Theory-aware composition when clients pass built-in music theory resources to the AI as context.
ABOUT MIDI-MCP-SERVER
MIDI MCP Server is cataloged as an MCP server attributed to tubone24. A MIDI MCP server that generates MIDI files from structured JSON composition data, with chord name support, an interactive piano-roll preview UI, and multiple deployment modes. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for MIDI MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Which MCP tools does the server provide?
It provides create_midi, which has an interactive preview UI, and parse_chord.
What pitch formats can be used in a composition?
MIDI numbers, note-name strings, pitch arrays, and chord names are supported.
What chord qualities are supported?
The chord library includes major, minor, dim, aug, 7th, maj7, m7, sus2, sus4, power, and more.
上游原版 README
README.md · fdde5a98b5ad · 采集于 2026-11-13 07:38:11 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MIDI MCP Server
A Model Context Protocol (MCP) server for AI-driven MIDI composition. Generate MIDI files from structured JSON data, with chord name support, an interactive piano-roll preview UI, and multiple deployment modes.

Looking for the Agent Skills approach? It composes better songs with less context: tubone24/midi-agent-skill
Features
- Two MCP tools:
create_midi(with interactive preview UI) andparse_chord - Rich pitch input: MIDI numbers, note name strings (
"C4"), pitch arrays, or chord names ("Cmaj7") - Chord library: 25+ chord qualities — major, minor, dim, aug, 7th, maj7, m7, sus2, sus4, power, and more
- Flexible durations: numeric beats, standard strings (
'4','8'), dotted ('d4'), triplet ('T8') - Music theory resources: 7 built-in reference documents accessible as MCP resources
- Three transport modes: stdio, HTTP, or Cloudflare Workers (remote)
- MCP App UI: Piano-roll visualization and audio playback rendered directly in the conversation
Deployment Options
Option A — Remote (Cloudflare Workers)
A pre-deployed remote server is available:
https://midi-mcp-server.tubone24.workers.dev/mcp
Add it to any MCP client that supports Streamable HTTP (e.g., Claude.ai):
{
"mcpServers": {
"midi": {
"type": "http",
"url": "https://midi-mcp-server.tubone24.workers.dev/mcp"
}
}
}
Option B — Local stdio (recommended for desktop clients)
Build and configure as a local stdio server:
npm install
npm run build
{
"mcpServers": {
"musicComposer": {
"command": "node",
"args": ["/path/to/midi-mcp-server/build/index.js"]
}
}
}
Option C — Local HTTP
Run as a local Streamable HTTP server:
node build/index.js --http
# or with a custom port:
node build/index.js --http --port=8080
The server exposes:
POST /mcp— MCP Streamable HTTP endpointGET /health— Health check ({"status":"ok","version":"0.2.0"})
Tools
create_midi
Generate a MIDI file from structured composition data. Returns base64-encoded MIDI and renders an interactive piano-roll preview with audio playback in supported MCP clients (MCP App).

Input
| Field | Type | Required | Description |
|---|---|---|---|
title | string | ✓ | Title of the composition |
composition | object | ✓ | Composition data (see schema below) |
Output (structured content)
| Field | Type | Description |
|---|---|---|
midiBase64 | string | Base64-encoded MIDI file data |
title | string | Composition title |
bpm | number | Tempo used |
trackCount | number | Number of tracks generated |
parse_chord
Parse a chord name and return its component MIDI pitches and note names. Useful for understanding voicings before composing.
Input
| Field | Type | Required | Description |
|---|---|---|---|
chord | string | ✓ | Chord name, e.g. "Cmaj7", "F#m7", "G7sus4" |
octave | number | — | Root octave (default: 4) |
Output example
{
"chord": "Cmaj7",
"octave": 4,
"midiNumbers": [60, 64, 67, 71],
"noteNames": ["C4", "E4", "G4", "B4"]
}
Composition Schema
{
"bpm": 120, // tempo (also accepted: "tempo")
"timeSignature": { "numerator": 4, "denominator": 4 }, // optional, default 4/4
"tracks": [
{
"name": "Piano", // optional
"instrument": 0, // GM program number 0–127 (optional)
"notes": [
{
"pitch": 60, // MIDI number, note name "C4", or array [60, 64, 67]
"chord": "Cmaj7", // OR use chord name (overrides pitch)
"beat": 1, // beat position (1-based); OR use startTime
"startTime": 0, // tick offset (alias: "time")
"duration": "4", // see Duration Reference below
"velocity": 100, // 0–127 (optional, default 100)
"channel": 0 // MIDI channel 0–15 (optional)
}
]
}
]
}
Pitch Input Formats
| Format | Example | Description |
|---|---|---|
| MIDI number | 60 | Standard MIDI note number (0–127) |
| Note name | "C4" | Letter + optional accidental + octave |
| Pitch array | [60, 64, 67] | Multiple pitches played simultaneously |
| Chord field | chord: "Cmaj7" | Chord name expanded automatically |
Supported accidentals: # (sharp), b (flat). Examples: "F#5", "Bb3".
Duration Reference
| Value | Description |
|---|---|
'1' | Whole note |
'2' | Half note |
'4' | Quarter note |
'8' | Eighth note |
'16' | Sixteenth note |
'32' | Thirty-second note |
'd1' 'd2' 'd4' 'd8' 'd16' | Dotted variants |
'dd4' | Double-dotted quarter |
'T4' 'T8' … | Triplet variants |
4 (number) | Beat-based: 1=quarter, 2=half, 4=whole, 0.5=eighth |
Supported Chord Qualities
| Quality | Example | Description |
|---|---|---|
(none) / maj | C, Cmaj | Major |
m / min | Dm | Minor |
dim | Bdim | Diminished |
aug | Eaug | Augmented |
7 | G7 | Dominant 7th |
maj7 / M7 | Cmaj7 | Major 7th |
m7 / min7 | Am7 | Minor 7th |
dim7 | Bdim7 | Diminished 7th |
m7b5 | Bm7b5 | Half-diminished |
aug7 | Eaug7 | Augmented 7th |
6 / m6 | C6, Am6 | 6th |
9 / maj9 / m9 | G9 | 9th variants |
add9 | Cadd9 | Add 9th |
11 / 13 | C11 | Extended |
sus2 / sus4 | Gsus4 | Suspended |
7sus4 / 7sus2 | G7sus4 | 7th suspended |
power / 5 | G5 | Power chord |
MCP Resources
The server exposes 7 music theory reference documents as MCP resources:
| URI | Description |
|---|---|
music-theory://harmony | Intervals, chord types, diatonic chords, cadences, voice leading |
music-theory://chord-progressions | Common progressions by mood/genre, substitutions, modulation |
music-theory://counterpoint | Species counterpoint rules, consonance/dissonance, motion types |
music-theory://modes-scales | Diatonic modes, minor scale variants, pentatonic/blues, genre guide |
music-theory://orchestration | Instrument ranges, GM program numbers, texture types |
music-theory://rhythm-patterns | Time signatures, MIDI duration reference, genre grooves |
music-theory://voice-leading | Forbidden parallels, voicing strategies, non-chord tones |
MCP clients that support resource reading can pass these to the AI as context, enabling theory-aware composition.
Example Composition
const composition = {
bpm: 120,
timeSignature: { numerator: 4, denominator: 4 },
tracks: [
{
name: "Piano",
instrument: 0,
notes: [
{ chord: "Cmaj7", beat: 1, duration: "2", velocity: 90 },
{ chord: "Am7", beat: 3, duration: "2", velocity: 90 },
{ chord: "Fmaj7", beat: 5, duration: "2", velocity: 90 },
{ chord: "G7", beat: 7, duration: "2", velocity: 90 }
]
},
{
name: "Melody",
instrument: 0,
notes: [
{ pitch: "E4", beat: 1, duration: "4", velocity: 100 },
{ pitch: "G4", beat: 2, duration: "4", velocity: 100 },
{ pitch: "A4", beat: 3, duration: "2", velocity: 110 }
]
}
]
};
Demo
The prompt below generates an 8-bar melodic minor choral piece:
Create an 8-bar choral piece in a slightly minor, melodic scale.
https://github.com/user-attachments/assets/e20ebef0-fdbf-4e72-910d-41b94183f9d9
Build & Development
npm install
# Full build (UI + server)
npm run build
# Build steps individually
npm run build:ui # Vite — builds the MCP App preview HTML
npm run build:server # tsc — compiles TypeScript server
# Deploy to Cloudflare Workers
npm run deploy
# Run tests
npm test
npm run test:coverage
Dependencies
| Package | Purpose |
|---|---|
@modelcontextprotocol/sdk | MCP server implementation (stdio & HTTP transports) |
@modelcontextprotocol/ext-apps | MCP Apps extension — interactive UI in conversation |
midi-writer-js | MIDI file generation |
@tonejs/midi | MIDI parsing (preview UI) |
soundfont-player | Audio playback in preview UI |
zod | Input schema validation |
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MIDI MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/midi-mcp-server)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

