MIDI MCP Server

MIDI MCP Server is a Model Context Protocol (MCP) server that enables AI models to generate MIDI files from text-based music data. This tool allows

Local serverstdioTypeScript

What is the MIDI MCP server?

MIDI MCP server exists for a simple reason — assistants are far more useful when they can act on MIDI directly instead of describing what you should do. MIDI MCP Server is a Model Context Protocol (MCP) server that enables AI models to generate MIDI files from text-based music data. This tool allows for programmatic creation of musical compositions through a standardized interface.

What you get

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.

  • Two MCP tools — create_midi (with interactive preview UI) and parse_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)

What the assistant can call

Once MIDI is connected, these are the calls the assistant has available:

  • create_midi — Generate a MIDI file from structured composition data. Returns base64-encoded MIDI and renders an interactive piano-roll preview with audio playback
  • parse_chord — Parse a chord name and return its component MIDI pitches and note names. Useful for understanding voicings before composing

Setting it up

Installation goes through your MCP client rather than a global install: point it at npm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the planning and project tracking options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MIDI's toolset — create_midi, parse_chord — is a fair guide to whether it matches your workflow. It is maintained by tubone24; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the midi mcp server does with a few real requests.

Available tools

ToolWhat it does
create_midiGenerate 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).
parse_chordParse a chord name and return its component MIDI pitches and note names. Useful for understanding voicings before composing.

How to install the MIDI MCP server

{
  "mcpServers": {
    "midi": {
      "type": "http",
      "url": "https://midi-mcp-server.tubone24.workers.dev/mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use MIDI to create midi.
  • Use MIDI to parse chord.

Frequently asked questions

The server can run as a local stdio process, a local HTTP server, or a remote Cloudflare Workers endpoint. The remote server is pre‑deployed at `https://midi-mcp-server.tubone24.workers.dev/mcp`.