Ableton MCP

Ableton MCP

Enables natural language control over Ableton Live for generating musical patterns, melodies, and full song arrangements. It also provides tools for sample searching and mixing assistance through an OSC-based connection with Claude Desktop.

Category
访问服务器

README

🌐 English | 日本語

🎹 Ableton MCP

An AI agent that gives you full control over Ableton Live using natural language.

🚀 Two Modes

1️⃣ MCP Mode (Recommended) - No API Key Required!

Use directly from Claude Desktop. Control Ableton just by chatting - no API key needed.

2️⃣ CLI Mode - Standalone

Operate from terminal using your Anthropic API key.

⚠️ Note: CLI mode is experimental and has not been fully tested.


🌟 MCP Mode Setup (No API Key Required)

1. Installation

cd ableton-mcp
pip install -e .

2. Configure Claude Desktop

Edit the Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "ableton-mcp": {
      "command": "python",
      "args": ["-m", "src.mcp_server"],
      "cwd": "/path/to/ableton-mcp"
    }
  }
}

⚠️ Replace cwd with the actual path to your ableton-mcp folder.

📖 Windows users: See INSTALL_WINDOWS.md for detailed instructions.

3. Install AbletonOSC

Option A: Max for Live Device (Simple)

  1. Download AbletonOSC
  2. Drag AbletonOSC.amxd onto a track in Ableton Live

Option B: Remote Script (Recommended)

  1. Download from https://github.com/ideoforms/AbletonOSC
  2. Place in Remote Scripts folder:
    • Windows: C:\Users\<YourName>\Documents\Ableton\User Library\Remote Scripts\AbletonOSC
    • macOS: ~/Music/Ableton/User Library/Remote Scripts/AbletonOSC
  3. Folder structure: AbletonOSC\__init__.py should be directly inside
  4. In Ableton Live → Preferences → Link/Tempo/MIDI → Control Surface → Select AbletonOSC

4. Restart Claude Desktop

After restarting, you can control Ableton directly through chat!

You: Create a 4-minute EDM track

Claude: [using generate_arrangement tool]
Generated arrangement...

You: Add trap-style drums

Claude: [using create_drum_track tool]
Created drum track 'Drums'...

✨ Features

🥁 Drum/Rhythm Generation

  • Basic beats, four-on-floor, trap, breakbeat, D&B
  • Custom pattern creation

🎹 Melody/Synth Generation

  • Melody: Scale-based auto-generation (adjustable density and contour)
  • Basslines: basic, walking, syncopated, octave, arpeggiated
  • Chord progressions: pop, jazz, sad, epic, dark, edm, lofi, cinematic
  • Arpeggios: up, down, updown, random (8th/16th/triplet)

🔍 Sample Search

  • Local library search (Ableton Core Library, Splice, etc.)
  • Freesound API support
  • Natural language queries

🎚️ Mixing Assistance

  • Frequency collision detection (kick vs bass, etc.)
  • Automatic sidechain compression setup
  • EQ suggestions
  • Level/dynamics analysis

📐 Song Structure Generation

  • Genre templates: EDM, House, Techno, D&B, HipHop, Trap, Lo-Fi, Ambient, Pop
  • Complete structure: Intro → Buildup → Drop → Breakdown → Outro
  • Automatic automation generation

💻 CLI Mode Usage

Launch

# Ableton connection mode
python src/cli.py

# Mock mode (test without Ableton)
python src/cli.py --mock

Example Session

╔════════════════════════════════════════════════════════════════╗
║               🎹 Ableton Agent CLI v2.0 🎹                     ║
╚════════════════════════════════════════════════════════════════╝

🎤 You: Create a 4-minute EDM track

🤖 Agent: I'll generate an EDM track arrangement.

🎛️  Executing: generate_arrangement
    Parameters: {"genre": "edm", "duration_minutes": 4.0}
✅ Generated arrangement:

🎵 Untitled Edm
   Tempo: 128 BPM | Key: Am
   Total: 72 bars

📋 Structure:
   [  0] intro        |  8 bars | Energy: ███░░░░░░░
   [  8] buildup      |  8 bars | Energy: █████░░░░░
   [ 16] drop         | 16 bars | Energy: ██████████
   [ 32] breakdown    |  8 bars | Energy: ████░░░░░░
   [ 40] buildup      |  8 bars | Energy: ███████░░░
   [ 48] drop         | 16 bars | Energy: ██████████
   [ 64] outro        |  8 bars | Energy: ███░░░░░░░

🎤 You: Create trap-style drums

🤖 Agent: I'll create a trap-style drum pattern.
🎛️  Executing: create_drum_track
    Parameters: {"pattern_type": "trap", "bars": 2, "name": "Trap Drums"}
✅ Created drum track 'Trap Drums' (pattern: trap, 2 bars)

⌨️ Commands

Special Commands

Command Description
/help Show help
/status Show project status
/genres List available genres
/arrangement Show current arrangement
/mock Toggle mock mode
/clear Clear conversation history
quit Exit

Natural Language Examples

Drums

  • "Create a basic drum pattern"
  • "Make a 4-bar trap beat"
  • "Four on the floor kick"
  • "Create a breakbeat"

Melody/Bass

  • "Create a melody in C minor"
  • "Bright pentatonic melody"
  • "Syncopated bassline"
  • "Add an octave bass"
  • "16th note arpeggio"

Chords

  • "Create a dark chord progression"
  • "Jazzy chords"
  • "Cinematic chord progression"

Samples

  • "Search for ethnic percussion"
  • "Dark synth 140BPM"
  • "Find kick samples"

Mixing

  • "Analyze the mix"
  • "Kick and bass are clashing"
  • "It sounds muddy"
  • "Set up sidechain"
  • "Add reverb"

Song Structure

  • "Create a 4-minute EDM track"
  • "Generate a lo-fi hip hop structure"
  • "Make a techno arrangement"

Mood

  • "Make it darker"
  • "Brighten it up"
  • "Make it more intense"
  • "Chill vibe"

📁 Project Structure

ableton-mcp/
├── .gitignore
├── LICENSE
├── README.md                           # English
├── README.ja.md                        # Japanese
├── INSTALL_WINDOWS.md                  # Windows setup guide
├── pyproject.toml
├── setup.bat                           # Windows setup script
├── claude_desktop_config.example.json  # Example config
└── src/
    ├── __init__.py
    ├── mcp_server.py            # MCP server (for Claude Desktop)
    ├── cli.py                   # CLI interface
    ├── agent.py                 # AI agent (Claude API)
    ├── ableton_osc.py           # Ableton OSC communication
    ├── synth_generator.py       # Melody/bass/chord/arpeggio generation
    ├── sample_search.py         # Sample search engine
    ├── mixing_assistant.py      # Mixing analysis & assistance
    └── arrangement_generator.py # Song structure generation

🔧 Extending

Adding New Tools

  1. Add tool definition to ABLETON_TOOLS in src/agent.py:
{
    "name": "your_tool_name",
    "description": "Tool description",
    "input_schema": {
        "type": "object",
        "properties": {
            "param1": {"type": "string", "description": "Description"}
        },
        "required": ["param1"]
    }
}
  1. Add execution logic to execute_command in src/cli.py:
elif tool == "your_tool_name":
    return self._your_implementation(params)

Adding Genre Templates

Add to GenreTemplates.TEMPLATES in src/arrangement_generator.py:

"your_genre": {
    "sections": [
        ("intro", 8, 0.3, ["pad"]),
        ("verse", 16, 0.6, ["drums", "bass"]),
        # ...
    ],
    "tempo_range": (100, 120),
    "default_key": "Am",
}

🎛️ Architecture

┌─────────────────────────────────────────────────────────────────┐
│                     User Input (Natural Language)                │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                     Claude API (Tool Use)                        │
│  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐           │
│  │  Drums   │ │ Melody   │ │ Samples  │ │ Mixing   │ ...       │
│  └──────────┘ └──────────┘ └──────────┘ └──────────┘           │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                      Command Executor                            │
│  ┌────────────────┐  ┌────────────────┐  ┌────────────────┐    │
│  │ SynthGenerator │  │ SampleSearch   │  │ MixingAssist   │    │
│  └────────────────┘  └────────────────┘  └────────────────┘    │
│  ┌────────────────┐  ┌────────────────┐                        │
│  │ ArrangementGen │  │ DrumPattern    │                        │
│  └────────────────┘  └────────────────┘                        │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                    OSC Communication                             │
│                      (python-osc)                                │
└─────────────────────────────────────────────────────────────────┘
                                │
                                ▼
┌─────────────────────────────────────────────────────────────────┐
│                      Ableton Live                                │
│                     (via AbletonOSC)                             │
└─────────────────────────────────────────────────────────────────┘

❓ Troubleshooting

Startup Order (Important!)

  1. Start Ableton Live first
  2. Confirm AbletonOSC shows "Started AbletonOSC on address ('0.0.0.0', 11000)" in log
  3. Then start Claude Desktop

OSC Connection Error

  • Check that AbletonOSC is loaded
  • Verify port 11000 is available
  • Check firewall settings

Windows - Check ports:

netstat -ano | findstr "11000 11001"

Windows - Check Ableton log:

Get-Content "$env:USERPROFILE\AppData\Roaming\Ableton\Live *\Preferences\Log.txt" -Tail 50 | Select-String "OSC"

Claude Desktop Issues

  • After editing files: Restart Claude Desktop completely (exit from system tray)
  • Connection problems: Restart Claude Desktop

API Error (CLI Mode)

  • Verify ANTHROPIC_API_KEY is correctly set
  • Check API usage limits

Samples Not Found

  • Check sample folder paths
  • Specify custom paths when initializing SampleSearchEngine

📄 License

MIT

🔗 References

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选