REAPER Music Production
STDIOModel Context Protocol server enabling AI agents to create and master tracks in REAPER.
Model Context Protocol server enabling AI agents to create and master tracks in REAPER.
A comprehensive Model Context Protocol (MCP) server that enables AI agents to create fully mixed and mastered tracks in REAPER with both MIDI and audio capabilities.
# Clone the repository git clone https://github.com/itsuzef/reaper-mcp.git cd reaper-mcp # Create and activate a virtual environment python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate # Install the package pip install -e .
The easiest way to get started is to use the provided startup script:
# Start REAPER first open /Applications/REAPER.app # On macOS # or start REAPER manually on other platforms # Then start the MCP server ./scripts/start_reaper_mcp_server.sh # On Unix/Mac
For Windows users, use one of the provided Windows scripts:
# Using Command Prompt (CMD) scripts\start_reaper_mcp_server.bat # Using PowerShell powershell -ExecutionPolicy Bypass -File scripts\start_reaper_mcp_server.ps1
By default, the server will use OSC mode, which is more reliable and doesn't require the ReaScript API to be working correctly. You can configure the server using command-line arguments:
# Start in OSC mode (default) ./scripts/start_reaper_mcp_server.sh --mode=osc # Unix/Mac scripts\start_reaper_mcp_server.bat --mode=osc # Windows CMD powershell -File scripts\start_reaper_mcp_server.ps1 -mode osc # Windows PowerShell # Start in ReaScript mode ./scripts/start_reaper_mcp_server.sh --mode=reapy # Unix/Mac scripts\start_reaper_mcp_server.bat --mode=reapy # Windows CMD powershell -File scripts\start_reaper_mcp_server.ps1 -mode reapy # Windows PowerShell # Configure OSC settings (Unix/Mac) ./scripts/start_reaper_mcp_server.sh --host=192.168.1.110 --send-port=8000 --receive-port=9000 # Configure OSC settings (Windows CMD) scripts\start_reaper_mcp_server.bat --host=192.168.1.110 --send-port=8000 --receive-port=9000 # Configure OSC settings (Windows PowerShell) powershell -File scripts\start_reaper_mcp_server.ps1 -host "192.168.1.110" -sendPort 8000 -receivePort 9000 # Enable debug logging ./scripts/start_reaper_mcp_server.sh --debug # Unix/Mac scripts\start_reaper_mcp_server.bat --debug # Windows CMD powershell -File scripts\start_reaper_mcp_server.ps1 -debug # Windows PowerShell
/opt/homebrew/Cellar/[email protected]/3.x.x/Frameworks/Python.framework/Versions/3.x/Python
C:\Path\to\Python\python3x.dll
python scripts/setup_reaper_python.py
src/reaper_mcp/
: Main package directory
__main__.py
: Command-line interfaceosc_server.py
: OSC-based server implementationserver.py
: ReaScript-based server implementationexamples/
: Example scripts demonstrating usagescripts/
: Utility scripts for setup and runningThe server provides the following MCP tools:
create_project
: Creates a new REAPER projectcreate_track
: Creates a new track in the current projectlist_tracks
: Lists all tracks in the current projectadd_midi_note
: Adds a MIDI note to a trackget_project_info
: Gets information about the current projectIf you're experiencing issues with the ReaScript API, try using the OSC mode instead:
./scripts/start_reaper_mcp_server.sh --mode=osc
Make sure REAPER is configured correctly for OSC:
If you're having issues running the MCP server on Windows:
Script Execution Issues:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
-ExecutionPolicy Bypass
flag as shown in the examplesPath Issues:
C:\Program Files\REAPER\reaper.exe
, modify if neededVirtual Environment:
venv\Scripts\activate
Firewall Blocking:
Administrator Rights:
MIT