Skip to main content
Glama

REAPER MCP (reaper-interface)

A cross-platform Model Context Protocol (MCP) server, CLI, Python API, and lightweight REAPER Lua bridge that lets AI agents (Antigravity, Claude Desktop, Cursor, Claude Code, etc.) control live REAPER projects, create/edit MIDI (both live in REAPER and standalone .mid files), and discover, insert, edit, and automate VST3 / VST2 / CLAP / AU / JSFX instruments & effects.

Works on macOS (Apple Silicon & Intel), Windows, and Linux with zero Python DLL setup inside REAPER and zero port conflicts.


Features (42 MCP Tools)

  • Project & Transport: Inspect project state, set tempo & time signatures, play/stop/pause/record, move cursor, set loop ranges, manage markers & regions, save/open/new projects, undo/redo, run any REAPER/SWS action, atomic batching (single Cmd+Z/Ctrl+Z undo step), and reaper_eval_lua.

  • Tracks & Routing: Create, edit, and delete tracks (volume dB, pan, mute, solo, record arm, monitoring, MIDI input, color, folders) and manage sends/receives.

  • Live MIDI & Standalone .mid Files:

    • Create/read/edit/delete/transform MIDI notes (supports note names like C4, F#3, GM drums like kick/snare/hh, and chords like Cmaj7, Am9, C/E with optional strum).

    • MIDI CC / Pitch Bend / Expression / Sustain / Aftertouch automation (reaper_midi_cc with discrete events, curve shapes, and smooth ramps).

    • Standalone .mid file inspection, creation, and editing (even with REAPER closed), plus non-blocking .mid import/export with REAPER (no modal popups).

  • FX & Instruments:

    • Offline & live search across installed VST3, VST2, CLAP, Audio Units (AU/AUi on macOS), JSFX, and FXChains, plus cached factory/user presets.

    • Add instruments/FX with smart name matching, search/inspect parameters, set parameters by normalized value (0.0–1.0), raw value, or formatted display target ("-12 dB", "800 Hz", "Saw"), switch/scan presets, configure bypass/wet-dry/UI/rename/move/copy/delete, edit NamedConfigParm (e.g., ReaEQ bands, loading WAVs into ReaSamplOmatic5000), and automate any FX parameter via track envelopes (reaper_envelope).


Related MCP server: Ableton MCP Extension

Architecture

MCP Client (Antigravity / Claude Desktop / Cursor / Claude Code)
   │  stdio MCP (42 tools)
   ▼
reaper_interface.mcp_server (Python 3.10+)
   ├── Offline Engine (works even when REAPER is closed)
   │    ├── midi_files.py   — Standard MIDI File (.mid) inspect/create/edit + theory
   │    └── fx_catalog.py   — Fast search over VST3/VST2/CLAP/AU/JSFX/FXChains & presets
   │
   └── Atomic File-Queue IPC (zero ports, zero REAPER Python DLL required)
        ├── macOS:   ~/Library/Application Support/REAPER/ReaperAgentBridgeIPC
        ├── Windows: %LOCALAPPDATA%\ReaperAgentBridge\ipc
        └── Linux:   ~/.config/REAPER/ReaperAgentBridgeIPC
             │
             ▼
        reaper_agent_bridge.lua (runs non-blockingly via reaper.defer() in REAPER)

Installation on macOS (Apple Silicon & Intel)

Prerequisites

  • REAPER 7+ (recommended; REAPER 6.x works for most features except EnumInstalledFX)

  • Python 3.10+ and uv (install uv if needed):

    curl -LsSf https://astral.sh/uv/install.sh | sh

Step 1: Clone & Install Dependencies

git clone https://github.com/OliHarding/reaper-mcp.git
cd reaper-mcp
uv sync

Step 2: Install the REAPER Lua Bridge & Register the MCP Server

Pick the --client flag for your AI app (antigravity, claude-desktop, cursor, auto, or all):

# For Claude Desktop on Mac:
uv run python scripts/install_reaper_bridge.py --client claude-desktop

# For Antigravity on Mac:
uv run python scripts/install_reaper_bridge.py --client antigravity

# For Cursor on Mac:
uv run python scripts/install_reaper_bridge.py --client cursor

# Or auto-detect installed clients:
uv run python scripts/install_reaper_bridge.py --client auto

(For Claude Code, run with --skip-mcp and register via claude mcp add:)

uv run python scripts/install_reaper_bridge.py --skip-mcp
claude mcp add reaper -- "$(pwd)/.venv/bin/python" -m reaper_interface.mcp_server

What the installer does:

  1. Copies json.lua, reaper_agent_bridge.lua, and reaper_agent_bridge_ui.lua to ~/Library/Application Support/REAPER/Scripts/ReaperAgentBridge/.

  2. Appends a managed auto-start block to ~/Library/Application Support/REAPER/Scripts/__startup.lua (preserving any existing startup scripts).

  3. Adds the "reaper" server entry to your chosen MCP client config file (preserving all existing MCP servers).

Step 3: Restart REAPER & Your MCP Client

  1. Restart REAPER (the Lua bridge auto-starts silently in the background via __startup.lua).

    • Without restarting REAPER: Press ? (Actions → Show action list) → New action… → Load ReaScript… → select ~/Library/Application Support/REAPER/Scripts/ReaperAgentBridge/reaper_agent_bridge.lua → Run.

  2. Restart (or reload MCP servers in) Claude Desktop / Antigravity / Cursor.

Step 4: Verify Connection

uv run python scripts/verify_bridge.py
# Optional non-destructive live test (creates a temp track, tests MIDI + FX, then deletes it):
uv run python scripts/verify_bridge.py --live-smoke-test

macOS Notes

  • Custom/Portable REAPER installs: If your REAPER resource folder isn't at ~/Library/Application Support/REAPER, set REAPER_RESOURCE_DIR="/path/to/your/REAPER" in both your shell and the MCP server's env block.

  • Audio Units (AU/AUi): Supported natively alongside VST3, VST2, CLAP, and JSFX.

  • macOS Local Permissions: Because the bridge only uses local files inside ~/Library/Application Support/REAPER, no firewall or network permissions are required.


Installation on Windows

git clone https://github.com/OliHarding/reaper-mcp.git
cd reaper-mcp
uv sync
uv run python scripts/install_reaper_bridge.py --client antigravity   # or claude-desktop / cursor / auto

Then restart REAPER (or run %APPDATA%\REAPER\Scripts\ReaperAgentBridge\reaper_agent_bridge.lua once from REAPER's Actions list) and reload your MCP client.

Verify with:

uv run python scripts/verify_bridge.py

Optional Live Command Log Window (ReaImGui)

If you have ReaImGui installed in REAPER, you can watch incoming AI commands live inside REAPER by running ReaperAgentBridge/reaper_agent_bridge_ui.lua from REAPER's Actions list, or via CLI:

uv run reaper-cli call bridge_ui_toggle

CLI Quick Reference

# Check live connection & project overview
uv run reaper-cli status
uv run reaper-cli project

# Search installed instruments & FX
uv run reaper-cli fx-catalog --kind instrument
uv run reaper-cli fx-catalog --query "ReaEQ"
uv run reaper-cli fx-presets-catalog --query "ChowKick"

# Create a track with an instrument + FX
uv run reaper-cli track-create --name "Lead" --instrument "Surge XT" --fx "ReaEQ"

# Inspect & edit FX parameters (supports value_norm, value_raw, or target_formatted)
uv run reaper-cli fx-params "Lead" "Surge XT" --search "cutoff"
uv run reaper-cli fx-set "Lead" "ReaEQ" --json '[{"param": "Freq-Low Shelf", "target_formatted": "120 Hz"}]'

# Create MIDI clips with chords & notes
uv run reaper-cli midi-create "Lead" --length-beats 8 --notes-json '[{"chord":"Am9","octave":4,"start_beat_rel":0,"duration_beats":4},{"chord":"Fmaj7","octave":4,"start_beat_rel":4,"duration_beats":4}]'

# Standalone .mid files & REAPER import/export
uv run reaper-cli mid-inspect song.mid
uv run reaper-cli mid-import song.mid --import-tempo
uv run reaper-cli mid-export exported.mid

Development & Tests

uv sync --extra dev
uv run pytest -v

License

MIT — see LICENSE.

Available Tools

42 tools
midi_file_createC

Create a multi-track Standard MIDI File (.mid) on disk from note names, chords, drum names, and CCs.

Inputs: tracks (required), output_path (required), bpm, time_sig_num, +2 more. Returns: result

midi_file_editC

Edit a standalone .mid file with composable operations: set_tempo, set_time_sig, rename_track, add_track, remove_track, add_notes, replace_notes, delete_notes, transpose, scale_snap, quantize, humanize, scale_velocity, shift_time, scale_speed, add_cc, add_cc_ramp, delete_cc.

Inputs: input_path (required), operations (required), output_path. Returns: result

midi_file_inspectB

Inspect a standalone Standard MIDI File (.mid) on disk (works even when REAPER is closed).

Inputs: path (required), track_index, include_events, max_events_per_track. Returns: result

music_theory_helperB

Helper to resolve chord symbols ('Cmaj7', 'F#m9', 'G7/B') or scale pitches to MIDI note numbers and note names.

Inputs: chord, octave, inversion, scale_name, +1 more. Returns: result

reaper_actionB

Run any REAPER action by numeric ID (e.g. 40044) or named command ID (e.g. 'SWS...').

Inputs: command_id (required), section. Returns: result

reaper_batchA

Execute multiple bridge commands atomically in one REAPER tick and one Undo step. Each command is {'cmd': '<handler_name>', 'args': {...}}.

Inputs: commands (required), undo_label. Returns: result

reaper_create_midi_itemB

Create a new MIDI item on a track and optionally populate it with notes, chords, and CC events. Each note supports: pitch (int) OR note ('C4', 'F#3', 'kick') OR chord ('Cmaj7', 'Am9', optional octave/inversion/strum_beats), start_beat_rel (beats from item start) or start_beats (project beat), duration_beats, velocity (1-127), channel (0-15).

Inputs: track (required), cc, loop, name, +4 more. Returns: result

reaper_create_trackB

Create a new track in REAPER, optionally adding an instrument plugin (auto-configured for MIDI) and FX chain.

Inputs: fx, pan, name, color, +5 more. Returns: result

reaper_delete_itemC

Delete a media item from a track.

Inputs: track, item_guid, item_index. Returns: result

reaper_delete_trackB

Delete a track by 0-based index, name, or GUID.

Inputs: track (required). Returns: result

reaper_edit_itemC

Edit a media item's position, length, name, mute, loop, volume, playrate, pitch, or color.

Inputs: loop, mute, name, color, +8 more. Returns: result

reaper_edit_trackC

Edit properties of a REAPER track (accepts 0-based index, 'master', track name, or GUID).

Inputs: track (required), pan, mute, name, +7 more. Returns: result

reaper_envelopeA

List, read, write, or clear track or FX parameter automation envelopes. action: 'list' | 'get' | 'set' | 'clear'. For FX parameter automation, pass fx and param (envelope is auto-created on 'set'). Each point in points: {time_beats (or time_sec), value, shape (0=linear..5=bezier), tension}.

Inputs: track (required), action (required), fx, param, +5 more. Returns: result

reaper_eval_luaA

Advanced escape hatch: execute arbitrary ReaScript Lua code inside REAPER's main thread and return its JSON-serializable result.

Inputs: code (required), undo_label. Returns: result

reaper_export_midi_fileB

Export MIDI tracks/items and project tempo/time-sig map from live REAPER to a .mid file on disk.

Inputs: output_path (required), tracks, ticks_per_beat. Returns: result

reaper_fx_addB

Add an FX or instrument plugin (VST3/VST2/CLAP/JSFX/FXChain) to a track with smart name matching. Optionally applies a preset, sets initial parameters, configures MIDI input, and opens the floating UI.

Inputs: track (required), fx_name (required), params, rec_fx, +6 more. Returns: result

reaper_fx_configureC

Configure an FX slot: bypass/enable, offline, wet/dry mix (0.0-1.0), delta solo, open/close UI window, or rename.

Inputs: fx (required), track (required), wet, delta, +6 more. Returns: result

reaper_fx_get_paramsB

List parameters of an FX or instrument with normalized values, raw ranges, and formatted display strings (e.g. '440 Hz', '-6 dB'). Use search to filter large synths (e.g. 'cutoff', 'attack', 'reverb', 'osc').

Inputs: fx (required), track (required), limit, offset, +2 more. Returns: result

reaper_fx_listA

List all FX and instruments currently loaded on a track (or 'master', or Input FX with rec_fx=True).

Inputs: track (required), rec_fx. Returns: result

reaper_fx_manageC

Delete, reorder (move), or copy an FX/instrument between slots or tracks. action: 'delete' | 'move' | 'copy'.

Inputs: fx (required), track (required), action (required), rec_fx, +2 more. Returns: result

reaper_fx_named_configC

Get or set REAPER TrackFX NamedConfigParm values (e.g. ReaSamplOmatic5000 FILE0/DONE to load WAV samples, ReaEQ BANDTYPE0/BANDFREQ0/BANDGAIN0/BANDQ0, or plugin state chunks).

Inputs: fx (required), track (required), parms, value, +3 more. Returns: result

reaper_fx_presetC

Get, set, navigate, or scan presets on a loaded FX/instrument. action: 'get' | 'set' (uses preset_name, preset_index, or navigate +1/-1) | 'scan' (lists factory presets).

Inputs: fx (required), track (required), action, rec_fx, +5 more. Returns: result

reaper_fx_set_paramsC

Edit one or many parameters on an FX or instrument. Each item in params takes:

  • param: int index OR parameter name string (exact or substring match, or ':wet', ':bypass', ':delta')

  • ONE of: value_norm (0.0-1.0), value_raw (plugin native range), OR target_formatted (e.g. '-12 dB', '800 Hz', 'Saw').

Inputs: fx (required), track (required), params (required), rec_fx. Returns: result

reaper_import_midi_fileC

Import a .mid file into live REAPER (zero modal dialogs; optionally expands tracks, sets tempo, and loads an instrument).

Inputs: midi_path (required), instrument, start_beats, import_tempo, +2 more. Returns: result

reaper_list_itemsA

List media items (MIDI and audio) on a specific track or across the whole project.

Inputs: track. Returns: result

reaper_list_tracksB

List all tracks in the active REAPER project (including mixer levels, mute/solo, FX, and sends).

Inputs: include_fx, include_sends, include_master. Returns: result

reaper_markersC

List, add, or delete project markers and regions. action: 'list' | 'add' | 'delete'.

Inputs: name, color, action, end_beats, +3 more. Returns: result

reaper_midi_ccC

Insert, ramp, or delete MIDI CC / Pitch Bend / Program Change events inside a REAPER MIDI take. action: 'insert' (uses events list) | 'ramp' (uses cc, start/end_beat_rel, start/end_value, steps, curve) | 'delete' (uses cc/channel).

Inputs: action (required), cc, curve, steps, +10 more. Returns: result

reaper_midi_delete_notesB

Delete MIDI notes in a REAPER take by explicit indices OR by pitch/time/channel filters.

Inputs: pitch, track, channel, indices, +6 more. Returns: result

reaper_midi_edit_notesB

Edit specific MIDI notes by their index from reaper_midi_read (pitch/note, start/end/duration, velocity, channel, muted).

Inputs: edits (required), track, item_guid, item_index. Returns: result

reaper_midi_insert_notesC

Insert (or replace) MIDI notes/chords in an existing REAPER MIDI take. Supports 'pitch' (0-127), 'note' ('C4', 'Bb3', 'kick'), or 'chord' ('Cmaj7', 'Dm9').

Inputs: notes (required), track, item_guid, item_index, +1 more. Returns: result

reaper_midi_readC

Read all MIDI notes, CCs, pitch bends, program changes, and text events from a REAPER MIDI item.

Inputs: track, item_guid, include_cc, item_index, +2 more. Returns: result

reaper_midi_transformC

Transform MIDI notes in a REAPER take: transpose, quantize, humanize, adjust velocity, shift, or scale speed.

Inputs: track, item_guid, transpose, item_index, +9 more. Returns: result

reaper_project_fileC

Save, open, or create a REAPER project. action: 'save' | 'open' | 'new'.

Inputs: action (required), path, new_tab, no_prompt. Returns: result

reaper_project_infoB

Get active REAPER project state: name, path, BPM, time sig, cursor, loop, play state, and tracks.

Inputs: include_fx, include_sends, include_tracks. Returns: result

reaper_search_cached_presetsB

Search REAPER's cached factory and user preset lists (.ini files in REAPER/presets) without opening plugins.

Inputs: plugin_query, limit_per_plugin. Returns: result

reaper_search_installed_fxB

Search installed VST3, VST2, CLAP, AU (macOS), JSFX plugins, instruments, and FXChains. kind: 'all' | 'instrument' | 'effect' | 'fxchain'. fmt: 'all' | 'vst3' | 'vst2' | 'clap' | 'au' | 'jsfx' | 'fxchain'.

Inputs: fmt, kind, limit, query, +3 more. Returns: result

reaper_set_tempoC

Set project BPM and optional time signature (at project start or at a specific beat position).

Inputs: bpm (required), linear, time_beats, time_sig_num, +1 more. Returns: result

reaper_statusA

Check connection status to REAPER (heartbeat + live ping if connected).

Inputs: no named parameters. Returns: result

reaper_track_sendC

Manage audio/MIDI sends on a track. action: 'list' | 'add' | 'edit' | 'delete'. send_mode: 0=Post-Fader, 1=Pre-FX, 3=Pre-Fader.

Inputs: track (required), action (required), pan, mute, +4 more. Returns: result

reaper_transportC

Control REAPER transport ('play', 'stop', 'pause', 'record', 'play_pause'), edit cursor, and loop range.

Inputs: action, cursor_sec, cursor_beats, loop_end_beats, +2 more. Returns: result

reaper_undo_redoB

Undo or redo the last action in REAPER. action: 'undo' | 'redo'.

Inputs: action. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 42 tools

    Disambiguation4/5

    Tools are mostly separated by clear resource and action (project, track, item, MIDI, FX, envelope). The main ambiguity is among several MIDI note-creation paths and the escape hatches reaper_action, reaper_batch, and reaper_eval_lua, which can all perform arbitrary operations. Context prefixes and descriptions help an agent select correctly.

    Naming Consistency4/5

    Most live-REAPER tools use a predictable reaper_ + verb/noun convention, with tidy reaper_fx_* and reaper_midi_* families. The standalone file tools use midi_file_* and music_theory_helper lacks the reaper_ prefix, but these are consistent within their distinct domain.

    Tool Count2/5

    At 42 tools, the surface is well beyond the 3-15 comfortable range and exceeds the 25+ heavy threshold. The breadth of DAW control (transport, items, MIDI, files, FX, envelopes, automation) justifies many tools, but the set is still large enough to burden tool selection.

    Completeness4/5

    Coverage is extensive: project/transport, tracks, items, MIDI editing, standalone .mid files, FX, envelopes, undo, batch, and Lua escape hatches are present. Notable gaps remain around audio-file import, audio render/bounce/export, and finer item/take operations, though reaper_action or reaper_eval_lua offer workarounds.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to connect to Ableton Live, inspect the arrangement, compose and edit MIDI, manage tracks/scenes/clips, insert and tweak devices, and control the mixer.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Control Logic Pro locally on macOS through MCP: transport, tracks, mixer, plug-in parameters, audio analysis, bounce and delivery, with optional gesture and voice control. Uses OSC, CoreMIDI and macOS Accessibility. Actions report confirmed, uncertain or failed outcomes. Actual control requires a local Mac with Logic Pro. Hosted/Linux builds are schema inspection only; all operations are disabled.
      12
      4
      MIT