mpc-mcp
Provides live MIDI integration for Akai MPC hardware and software, including listing MIDI ports, sending notes, control changes, program changes, transport commands, MIDI clock, recording pad input, and playback control.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mpc-mcp
An unofficial MCP server for Akai MPC hardware and software. It lets an AI assistant like Claude play parts into your MPC over MIDI, record what you play on the pads, write MIDI files the MPC can import, and look inside MPC project and program files.
Not affiliated with or endorsed by Akai Professional. "MPC" and "Akai" are their trademarks.
What it does
Live MIDI
midi_ports: list MIDI portsplay_notes: play note events (in beats, at a tempo) in the background, looped, optionally sending MIDI clocksend_note,send_control,send_program_change,transportstop_playback,midi_panicstart_recording/stop_recording: capture what you play and return it as note events
Files
write_midi_file: one track per part. Import the .mid on the MPC.read_midi_file: read MIDI exported from the MPCread_mpc_sequence: the notes in an MPC sequence (.sxq), per track, in beatsscan_mpc_folder: list projects, programs and sequences on an SD card or USB stickinspect_project: read-only exploration of.xpj,.xpmand other MPC files (outline, path, find)summarize_program: name, type and samples of an.xpmprogramread_drum_pads: which sample sits on which note in a drum program, such as an expansion kitbuild_drum_program: a new drum program from any WAV files, one per note, with mute groups and tuning. Samples are copied in next to it. Mix sounds from several kits withread_drum_pads.read_keygroup_zones: sample, root note, key range, tuning and loop for each keygroup of a keygroup programbuild_keygroup_program: a new keygroup program from WAV files, one keygroup per sample with its root note. Key ranges can be left out and split between neighbouring roots. Pad bank A starts on the first C the keygroups cover.mpc_mcp.song.write_project(Python, not yet an MCP tool): a whole new project from a template project: any number of drum and keygroup tracks with their programs and notes, tempo and length. Seeexamples/.check_project_for_standalone: before moving a desktop project onto the hardware, checks the saving version against the hardware OS, files missing or outside the project folder, samples that programs need, plugins the hardware may lack, muted or soloed programs and tracks, and sample memory against the hardware's RAM
Related MCP server: MIDI MCP Server
What it doesn't do (yet)
Write
.xpjproject files. The format is undocumented and has changed between MPC OS versions. MPC OS 2.10 writes XML (confirmed). Community reports say MPC 3 uses gzip-compressed JSON; others describe it as binary or encrypted. This server reads them defensively and never writes them.Control the MPC's screen or menus. There's no remote API for that. Everything goes through MIDI and files.
Velocity layers or effects in new programs. Built programs have one sample per pad or keygroup and no insert effects.
Connecting the MPC
Check midi_ports after connecting. What we've confirmed on an MPC Live II running MPC OS 2.15.1:
Standalone mode: the MPC does not appear on USB at all. Use a USB MIDI interface to its 5-pin MIDI in/out. Move files by SD card or USB stick.
Controller Mode: the MPC appears as four MIDI ports plus its internal drive and SD card as volumes. Sound then comes from the MPC desktop software, which you can reach through a virtual port (macOS IAC Driver).
On the MPC, set the receiving track's MIDI input to the port and channel you send on. To capture pads, enable MIDI out on the track. To follow send_clock, set the MPC to sync to incoming MIDI clock.
Install
Python 3.11+.
git clone <repo-url> && cd mpc-mcp
python3 -m venv .venv && .venv/bin/pip install -e .Claude Code:
claude mcp add mpc -- /path/to/mpc-mcp/.venv/bin/mpc-mcpClaude Desktop (claude_desktop_config.json):
{ "mcpServers": { "mpc": { "command": "/path/to/mpc-mcp/.venv/bin/mpc-mcp" } } }File formats we've confirmed
From projects saved by MPC OS 2.10 on an MPC Live II:
.xpj: XML. Tempo, key, mixer, Q-Link assignments and the project's file list..xpm: XML programs (drum, keygroup, plugin, audio). A plugin program describes its plugin withName,ManufacturerName,FormatNameandFileOrID; built-in instruments haveFormatNameMPC(for exampleMPC:TubeSynthby AIR Music Technology)..sxq: a standard type 1 MIDI file (960 PPQ), but notes are stored as Akai sequencer-specific meta events, not note-on/off:47 61 11 <flags> <note> <velocity> 00 00 00 40 <length in 7-bit chunks, low first> 00 00 00 00 00 00 <value>. OS 2.15.1 saves flags02and a value that is usually 100 (seen from 21 to 100, possibly probability). Older files have00and00. Pad pressure is polyphonic aftertouch. A regular MIDI reader sees no notes..sxqtracks: each starts with a47 61 10header. Byte 4 is the track index and byte 5 the track type (00drum,01keygroup,03plugin). It ends with the program name, length-prefixed. The bytes in between vary by OS version. The byte before00 64 00 00 00 00 00holds track state, and bit 0 is the track mute (OS 2.15.1:07plays muted,06doesn't). First Project's third track is saved muted. A47 61 15event repeats the track index in byte 3. Plugin tracks, and only those, carry apytT 03event before the track name. Confirmed against projects saved by MPC 2.0 and 2.8 as well as OS 2.10.Programs carry their own
MuteandSolo. A soloed program silences every other track, pads included. First Project, the OS 2.10 factory project, ships with its audio program muted and soloed, so anything built from it is silent.check_project_for_standaloneflags this.Drum programs (OS 2.15.1): instrument N is pad N, and
PadNoteMapgives each pad's note. The default map (A01 = 37, A02 = 36, A03 = 42 ...) covers all 128 notes; expansion kits often use their own. Loading a sample sets the layer'sSampleNameto the file's stem andSliceEndto its frame count minus 1.build_drum_programstarts from a blank program saved by OS 2.15.1 and changes only those fields, plus mute group, tuning and filter type.Keygroup programs: one
Instrumentper keygroup withLowNoteandHighNote, andKeygroupNumKeygroupsgives the count. A layer'sRootNoteis the sample's MIDI note plus 1.RootNote0 means the WAV'ssmplunity note is used instead. OS 2.11 expansions use the +1 form; OS 2.7 ones use 0.KeyTrackmust be True for the pitch to follow the keys. Keygroup pads followPadNoteMaptoo (OS 2.15.1); the blank's identity map puts bank A on notes 0-15.In Controller Mode (OS 2.15.1), the Live II shows up on a Mac as a USB hub with an audio interface, four MIDI ports ("MPC Public", "MPC Private", "MIDI Port A", "MIDI Port B"), and its internal drive and SD card as volumes.
Reports from other models and OS versions are welcome.
Conventions
Times are in beats (quarter notes). Notes are MIDI numbers or names, with middle C = C4 = 60. Channels are 1-16.
Development
.venv/bin/pip install -e '.[dev]' && .venv/bin/pytestThe tests include a loopback through a virtual MIDI port, so playback timing is checked against real CoreMIDI (macOS) or ALSA (Linux) without hardware.
Sample files from real MPCs are the most useful contribution. If you can share an .xpj or .xpm from your MPC OS version (no copyrighted samples needed), open an issue.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read and edit DAW projects as an agent, save native Logic projects, convert projects between DAWs
Compose, mix, master and export in Logic Pro, REAPER or Ableton Live by talking to an AI engineer.
Make AI Tracks, loops and sound effects, split stems, build drum kits and master songs.
Synth, sampler and music tracker for AI assistants: sound effects, UI sounds and songs as audio.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control FL Studio through MIDI communication, providing transport control, mixer adjustments, channel rack manipulation, plugin parameter automation, and piano roll note editing capabilities.289MIT
- AlicenseAqualityDmaintenanceEnables AI-driven MIDI composition with chord name support, interactive piano-roll preview, and multiple deployment modes.261MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to programmatically edit, analyze, and export audio projects through MCP tools, including multi-track editing, effects, transcription, and semantic search.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to create, parse, edit, and render MIDI files through standard MCP tools, returning absolute file paths to support iterative music generation and revision.-