Reaper 与 MCP 或 AI 集成 logo

Reaper 与 MCP 或 AI 集成

Community
wegitor

Reaper and MCP or AI integration A Python application for controlling REAPER Digital Audio Workstation (DAW) using the MCP(Model context protocol).

Publisherwegitor
Repositoryreaper-reapy-mcp
LanguagePython
Forks
15
Stars
84
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Reaper 与 MCP 或 AI 集成 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    84 stars and 15 forks from the linked repository.

Reaper and MCP or AI integration

A Python application for controlling REAPER Digital Audio Workstation (DAW) using the MCP(Model context protocol).

REAPER MCP MIDI generation Demo

REAPER MCP project features Demo

Features

  • Track Management: Create, rename, and color tracks
  • FX Management: Add, remove, and control effect parameters
  • Project Control: Set tempo, manage regions and markers
  • Master Track Control: Volume, pan, mute, and solo operations
  • MIDI Operations: Create items, add/get notes, clear items with musical positioning
  • Audio Item Operations: Insert, duplicate, modify with enhanced positioning support
  • Dual Position Format: Support both time (seconds) and measure:beat notation
  • Reliable Duplication: Uses REAPER's built-in commands for accurate item copying
  • MCP Integration: Model Context Protocol server for AI assistant control

Status

  • Checked on Linux: Yes
  • MCP HTTP Mode: Supported for parameters

Requirements

  • Python 3.7+
  • REAPER DAW
  • python-reapy Python module
  • mcp[cli] package for MCP server
  • Internet connection (for downloading sample audio file)

Installation

  1. Install REAPER if you haven't already
  2. Enable reapy server via REAPER scripting add reaper_side_enable_server.py to reaper actions and run it inside reaper studio
  3. Install the package:
    bash
    # From PyPI
    pip install reaper_reapy_mcp
    
    # From GitHub repository
    pip install git+https://github.com/wegitor/reaper-reapy-mcp.git
  4. Enable python in REAPER

The wheel package includes all necessary dependencies and can be used in other Python projects that need REAPER integration. The project uses pyproject.toml for modern Python packaging configuration, which provides better dependency management and build system configuration.

Sample Audio File

The application uses a sample MP3 file for testing audio operations. The file will be automatically downloaded when needed from:

https://www2.cs.uic.edu/~i101/SoundFiles/StarWars3.mp3

This is a short Star Wars theme clip that's commonly used for testing audio applications.

Running the Server

You can run the server using uv directly:

bash
uv --directory <project_path> run -m reaper_reapy_mcp

For the current directory and http MCP mode:

bash
uv --directory . run -m reaper_reapy_mcp --mode http

For example, on Windows:

bash
uv --directory C:\path\to\reaper_reapy_mcp run -m reaper_reapy_mcp

Or using the Python module directly after installation:

bash
python -m reaper_reapy_mcp

HTTP Mode

Run the server in HTTP mode with default settings:

bash
python -m reaper_reapy_mcp --mode http

Run with custom host and port:

bash
python -m reaper_reapy_mcp --mode http --http-host example_host --http-port 3958

Use the MCP inspector to test the tools:

bash
test_mcp.bat

Available MCP tools:

Track Management

  • test_connection: Verify connection to REAPER
  • create_track: Create a new track
  • rename_track: Rename an existing track
  • set_track_color: Set track color
  • get_track_color: Get track color
  • get_track_count: Get number of tracks in project
  • get_track_list: Get list of all tracks with their properties

FX Management

  • add_fx: Add an FX to a track
  • remove_fx: Remove an FX from a track
  • set_fx_param: Set FX parameter value
  • get_fx_param: Get FX parameter value
  • get_fx_param_list: Get list of FX parameters
  • get_fx_list: Get list of FX on a track
  • get_available_fx_list: Get list of available FX plugins
  • toggle_fx: Toggle FX enable/disable state

Project Control

  • set_tempo: Set project tempo
  • get_tempo: Get current tempo
  • get_time_signature: Get current time signature
  • set_project_time_signature: Set project default time signature
  • set_time_signature: Set time signature at position
  • create_region: Create a region
  • delete_region: Delete a region
  • create_marker: Create a marker
  • delete_marker: Delete a marker
  • render_project: Render project to audio file

Master Track

  • get_master_track: Get master track information
  • set_master_volume: Set master track volume
  • set_master_pan: Set master track pan
  • toggle_master_mute: Toggle master track mute
  • toggle_master_solo: Toggle master track solo

MIDI Operations

  • create_midi_item: Create an empty MIDI item on a track
    • Supports both time (seconds) and measure:beat positioning
  • add_midi_note: Add a MIDI note to a MIDI item
  • add_midi_notes: Add multiple MIDI notes at once
  • get_midi_notes: Get all MIDI notes from a MIDI item
  • clear_midi_item: Clear all MIDI notes from a MIDI item

Audio Item Operations

  • insert_audio_item: Insert an audio file as a media item
    • Supports both time (seconds) and measure:beat positioning
  • duplicate_item: Duplicate an existing item (MIDI or audio)
    • Uses REAPER's built-in duplication for reliable copying
    • Supports both time (seconds) and measure:beat positioning
  • get_item_properties: Get properties of a media item
  • set_item_position: Set the position of a media item
    • Supports both time (seconds) and measure:beat positioning
  • set_item_length: Set the length of a media item
  • delete_item: Delete a media item
  • get_items_in_time_range: Get items within a time range
    • Supports both time (seconds) and measure:beat positioning

Item ID System

All item operations use a sequential index system (0..n) for item identification. This makes it easier to work with items in scripts and automation:

  • Item IDs are zero-based indices
  • Each track maintains its own sequence of item indices
  • Indices are stable until items are deleted or reordered
  • All item operations (MIDI, audio, properties) use the same indexing system

Position Format Support

Many MCP tools now support dual position formats for enhanced musical workflow:

Time Format (seconds)

json
{
  "start_time": 15.5,
  "new_time": 30.0
}

Measure:Beat Format

json
{
  "start_measure": "3:2,500",
  "new_measure": "5:1,000"
}

Format: "measure:beat,fraction" where:

  • measure: 1-based measure number
  • beat: 1-based beat number
  • fraction: milliseconds (000-999) representing fraction of a beat
  • Example: "4:2,500" = measure 4, beat 2, half beat (500ms)

Tools Supporting Both Formats:

  • create_midi_item - position via start_time OR start_measure
  • insert_audio_item - position via start_time OR start_measure
  • duplicate_item - position via new_time OR new_measure
  • set_item_position - position via new_time OR new_measure
  • get_items_in_time_range - range via time OR measure parameters

Claude configuration (with uv run):

json
{
    "mcpServers": {
        "reaper-reapy-mcp": {
            "type": "stdio",
            "command": "uv",
            "args": [
                "--directory",
                "<path to folder>",
                "run",
                "-m",
                "reaper_reapy_mcp"
            ]
        }
    }
}

Claude configuration direct:

json
{
    "mcpServers": {
        "reaper-reapy-mcp": {
            "type": "stdio",
            "command": "python",
            "args": [
                "-m",
                "reaper_reapy_mcp"
            ]
        }
    }
}

or

json
{
    "mcpServers": {
        "reaper-reapy-mcp": {
            "type": "stdio",
            "command": "python",
            "args": [
                "<path to folder>\\src\\reaper_reapy_mcp.py"
            ]
        }
    }
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "wegitor-reaper-reapy-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use Reaper 与 MCP 或 AI 集成 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Reaper 与 MCP 或 AI 集成 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Reaper 与 MCP 或 AI 集成 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Reaper 与 MCP 或 AI 集成 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "wegitor-reaper-reapy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "reaper_reapy_mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Reaper 与 MCP 或 AI 集成 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Reaper 与 MCP 或 AI 集成 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Reaper 与 MCP 或 AI 集成 to help me with this task?
Reaper 与 MCP 或 AI 集成
Sure. I read it.
Here is what I found using Reaper 与 MCP 或 AI 集成.

Frequently asked questions

What is the Reaper 与 MCP 或 AI 集成 MCP server used for?

Reaper 与 MCP 或 AI 集成 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Reaper 与 MCP 或 AI 集成 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Reaper 与 MCP 或 AI 集成 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Reaper 与 MCP 或 AI 集成 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Reaper 与 MCP 或 AI 集成 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Reaper 与 MCP 或 AI 集成 MCP to TypingMind?

Reaper 与 MCP 或 AI 集成 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Reaper 与 MCP 或 AI 集成 MCP provide in TypingMind?

Reaper 与 MCP 或 AI 集成 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Reaper 与 MCP 或 AI 集成 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Reaper 与 MCP 或 AI 集成 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇