Supported platform for running the REAPER MCP Server with minimal adaptation required due to REAPER's cross-platform consistency
Utilizes Lua scripting to bridge between the MCP server and REAPER DAW, handling API calls using REAPER's built-in Lua interpreter
Primary development platform for the MCP server with specific installation procedures and file paths optimized for macOS environments
Offers comprehensive MIDI operations and editing capabilities within REAPER, including manipulation of MIDI data, events, and notes
Provides testing framework for verifying the MCP server functionality and integration with REAPER
Provides the MCP interface that communicates with REAPER via file-based IPC, processing requests from MCP clients and forwarding them to the Lua bridge
Optional communication method for the bridge component, requiring the LuaSocket library for UDP-based client-server interaction
REAPER MCP Server
An MCP (Model Context Protocol) server that exposes REAPER DAW functionality through a clean API interface.
Platform Support
This project is developed and tested on macOS but should work on Windows and Linux with minimal adaptation, as REAPER provides consistent cross-platform support.
Requirements
- REAPER 6.83+ (includes embedded Lua 5.4 and full ReaScript API)
- Python 3.10+ (required for MCP 1.1.2+)
- LuaSocket library (optional - only needed for socket-based communication)
Architecture
This project uses a hybrid Lua-Python approach:
- Lua Bridge: Runs inside REAPER, handles API calls using REAPER's built-in Lua interpreter
- Python MCP Server: Provides the MCP interface, communicates with REAPER via file-based IPC
The communication flow:
- MCP client sends request → Python server
- Python server writes JSON file → Bridge directory
- Lua bridge reads file → Executes REAPER API
- Lua bridge writes response → Bridge directory
- Python server reads response → Returns to MCP client
Quick Install (macOS)
This will:
- Install the Lua bridge to REAPER's Scripts folder
- Configure REAPER to load the bridge on startup
- Set up Python virtual environment
- Create launch scripts
- Optionally set up auto-start on login
Note: The quick install script may reference outdated configurations. For the most reliable setup, follow the manual instructions below.
Manual Setup
1. Install Python dependencies
2. Set up the bridge
Currently, only the file-based bridge is fully implemented and tested. The socket-based bridge exists but lacks a corresponding server implementation.
File-based Bridge (Recommended)
This method requires no additional dependencies and is the most reliable:
- Copy the bridge script to REAPER:
- Load the bridge in REAPER:
- Open REAPER
- Go to Actions → Show action list
- Click "Load..." and select
mcp_bridge_file_v2.lua
- Run the action (check the REAPER console for startup message)
- Start the MCP server:
Note: The server logs will mention mcp_bridge_file_v2.lua
- make sure this is the version loaded in REAPER.
Socket-based Bridge (Not Currently Implemented)
While the Lua script lua/mcp_bridge.lua
exists for socket-based communication, there is no corresponding Python server implementation. The socket bridge requires LuaSocket and would need a server that listens on UDP port 9000.
3. Verify the setup
- Check REAPER console shows: "MCP Bridge Started"
- Check Python server shows: "Server ready. Waiting for connections..."
- The bridge uses file-based communication via
~/Library/Application Support/REAPER/Scripts/mcp_bridge_data/
Testing
Make sure you have:
- REAPER running with
mcp_bridge_file_v2.lua
loaded - The MCP server running (
python -m server.app
)
Then run the tests:
Note: Some tests may fail due to timing issues or minor output format differences. The core functionality has been verified to work correctly.
For integration tests specifically:
Available Tools
The REAPER MCP Server implements 756 tools across 40+ categories including:
Core DAW Functions
- Track Management & Controls
- Media Items & Takes
- MIDI Operations
- Effects/FX Management
- Automation & Envelopes
- Project Management
- Transport & Playback
Music Production Tools
- Loop & Time Selection Management - Loop points, time selection, grid quantization
- Bounce & Render Operations - Track bouncing, freezing, stem export
- Groove & Quantization - Humanization, swing, polyrhythms, tempo detection
- Bus Routing & Mixing - Submixes, parallel compression, sidechain routing
Advanced Features
- Audio Analysis & Peak Detection
- Video & Visual Media Support
- Color Management
- Layout & Screenset Management
- Script Extension Support
- And much more
For the complete list of all implemented methods, see IMPLEMENTATION_MASTER.md.
Communication Flow
File-based (Recommended):
- MCP Client → MCP Server (stdio)
- MCP Server → REAPER Lua Bridge (via JSON files)
- Lua Bridge executes REAPER API call
- Lua Bridge → MCP Server (via JSON files)
- MCP Server → MCP Client (stdio)
Socket-based:
- MCP Client → MCP Server (stdio)
- MCP Server → REAPER Lua Bridge (UDP port 9000)
- Lua Bridge executes REAPER API call
- Lua Bridge → MCP Server (UDP port 9001)
- MCP Server → MCP Client (stdio)
Uninstall
About REAPER
REAPER is a complete digital audio production application for computers, offering a full multitrack audio and MIDI recording, editing, processing, mixing and mastering toolset. REAPER supports Windows, macOS, and Linux, providing consistent functionality across all platforms.
API Reference
This project implements a subset of the REAPER ReaScript API. The ReaScript API provides comprehensive control over REAPER's functionality including:
- Track management and routing
- Media items and takes
- MIDI editing
- Envelopes and automation
- Effects and plugins
- Project management
- Transport control
- And much more
See IMPLEMENTATION_MASTER.md for details on which methods are currently implemented.
Contributing
When adding new ReaScript methods:
- Check the implementation checklist in IMPLEMENTATION_MASTER.md
- Follow the existing patterns in the codebase
- Include tests for all new methods
- Update the implementation master list
This server cannot be installed
A Model Context Protocol server that exposes REAPER digital audio workstation functionality through a clean API interface, enabling programmatic control of 169+ REAPER operations across track management, MIDI editing, effects, automation and more.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.Last updated -PythonMIT License
Crawlab MCP Serverofficial
-securityFlicense-qualityA Model Context Protocol server that allows AI applications to interact with Crawlab's functionality through natural language, enabling spider management, task execution, and file operations.Last updated -4Python- -securityFlicense-qualityA Model Context Protocol server that provides AI-powered features for the Transcripter project, including tools for searching and summarizing transcriptions and resources for accessing transcription and analysis data.Last updated -758TypeScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI agents to create fully mixed and mastered tracks in REAPER DAW, supporting project management, MIDI composition, audio recording, and mixing automation.Last updated -10Python