Skip to main content
Glama

REAPER MCP Server

by shiehn
MIT License
4
  • Apple
  • Linux

REAPER MCP Server

An MCP (Model Context Protocol) server that exposes REAPER DAW functionality through a clean API interface.

REAPER MCP Server

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:

  1. MCP client sends request → Python server
  2. Python server writes JSON file → Bridge directory
  3. Lua bridge reads file → Executes REAPER API
  4. Lua bridge writes response → Bridge directory
  5. Python server reads response → Returns to MCP client

Quick Install (macOS)

./scripts/install.sh

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

# Create and activate virtual environment (Python 3.10+ required) python3.10 -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate # Install the package pip install -e .

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.

This method requires no additional dependencies and is the most reliable:

  1. Copy the bridge script to REAPER:
    cp lua/mcp_bridge_file_v2.lua ~/Library/Application\ Support/REAPER/Scripts/
  2. 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)
  3. Start the MCP server:
    python -m server.app

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

  1. Check REAPER console shows: "MCP Bridge Started"
  2. Check Python server shows: "Server ready. Waiting for connections..."
  3. The bridge uses file-based communication via ~/Library/Application Support/REAPER/Scripts/mcp_bridge_data/

Testing

Make sure you have:

  1. REAPER running with mcp_bridge_file_v2.lua loaded
  2. The MCP server running (python -m server.app)

Then run the tests:

pytest tests/ -v

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:

pytest tests/test_integration.py -v

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

  1. MCP Client → MCP Server (stdio)
  2. MCP Server → REAPER Lua Bridge (via JSON files)
  3. Lua Bridge executes REAPER API call
  4. Lua Bridge → MCP Server (via JSON files)
  5. MCP Server → MCP Client (stdio)

Socket-based:

  1. MCP Client → MCP Server (stdio)
  2. MCP Server → REAPER Lua Bridge (UDP port 9000)
  3. Lua Bridge executes REAPER API call
  4. Lua Bridge → MCP Server (UDP port 9001)
  5. MCP Server → MCP Client (stdio)

Uninstall

./scripts/uninstall.sh

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:

  1. Check the implementation checklist in IMPLEMENTATION_MASTER.md
  2. Follow the existing patterns in the codebase
  3. Include tests for all new methods
  4. Update the implementation master list
-
security - not tested
A
license - permissive license
-
quality - not tested

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.

  1. Platform Support
    1. Requirements
      1. Architecture
        1. Quick Install (macOS)
          1. Manual Setup
            1. 1. Install Python dependencies
            2. 2. Set up the bridge
            3. 3. Verify the setup
          2. Testing
            1. Available Tools
              1. Core DAW Functions
              2. Music Production Tools
              3. Advanced Features
            2. Communication Flow
              1. File-based (Recommended):
              2. Socket-based:
            3. Uninstall
              1. About REAPER
                1. API Reference
                  1. Contributing

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.
                      Last updated -
                      Python
                      MIT License
                      • Linux
                      • Apple
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A 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 -
                      4
                      Python
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A 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 -
                      758
                      TypeScript
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A 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 -
                      10
                      Python
                      • Apple

                    View all related MCP servers

                    MCP directory API

                    We provide all the information about MCP servers via our MCP API.

                    curl -X GET 'https://glama.ai/api/mcp/v1/servers/shiehn/total-reaper-mcp'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server