QF

quinnjr/fruityloops-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6 stars 3 forks 质量 68 趋势 14MIT

An MCP server exposing the Fruity Loops Python API

概览

A Model Context Protocol (MCP) server for FL Studio (Fruity Loops), enabling AI assistants like Claude to compose music and control FL Studio through natural language. - : Control transport, mixer, channels, patterns, and more - : Send MIDI notes and messages to FL Studio via loopMIDI - : Standard interface for AI assistants (Claude, etc.) - : Uses both Flapi (for API calls) and MIDI (for notes/CC) - : Full type hints and validation - : Forwards FL Studio API calls (transport, mixer, channels) via MIDI to FL Studio's internal Python - : Sends MIDI notes, CC, program changes directly to FL Studio 1. 2. (version 20.7+ for MIDI scripting support) 3. (Windows) - Download 1. Install loopMIDI 2. Create these virtual MIDI ports: - FLStudio_MIDI - For sending MIDI notes/CC to FL Studio - Flapi Request - For Flapi API requests - Flapi Response - For Flapi API responses 1. Open FL Studio → Options → MIDI Settings 2. Enable the FLStudio_MIDI port as an input 3.

README

以下为原文 README 节选,完整内容请查看原文。

🎹 FL Studio MCP Server

A Model Context Protocol (MCP) server for FL Studio (Fruity Loops), enabling AI assistants like Claude to compose music and control FL Studio through natural language.

✨ Features

  • FL Studio API Integration via Flapi: Control transport, mixer, channels, patterns, and more
  • MIDI Interface: Send MIDI notes and messages to FL Studio via loopMIDI
  • MCP Protocol: Standard interface for AI assistants (Claude, etc.)
  • Dual Communication: Uses both Flapi (for API calls) and MIDI (for notes/CC)
  • Type Safe: Full type hints and validation

🏗️ Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  Claude Desktop │────▶│   MCP Server    │────▶│    FL Studio    │
│  (AI Assistant) │     │   (External)    │     │   (Internal)    │
└─────────────────┘     └─────────────────┘     └─────────────────┘
                               │                        ▲
                               │                        │
                        ┌──────┴──────┐                 │
                        │             │                 │
                        ▼             ▼                 │
                  ┌──────────┐ ┌────────────┐          │
                  │  Flapi   │ │    MIDI    │          │
                  │  Bridge  │ │  Interface │          │
                  └────┬─────┘ └─────┬──────┘          │
                       │             │                  │
                       │    MIDI     │                  │
                       └─────────────┴──────────────────┘
  • Flapi Bridge: Forwards FL Studio API calls (transport, mixer, channels) via MIDI to FL Studio’s internal Python
  • MIDI Interface: Sends MIDI notes, CC, program changes directly to FL Studio

📦 Installation

Prerequisites

  1. Python 3.10+
  2. FL Studio (version 20.7+ for MIDI scripting support)
  3. loopMIDI (Windows) - Download

Quick Start

# Install the MCP server
pip install fruityloops-mcp

# Install Flapi for FL Studio API access
pip install flapi
flapi install

Virtual MIDI Port Setup (Windows)

  1. Install loopMIDI
  2. Create these virtual MIDI ports:
    • FLStudio_MIDI - For sending MIDI notes/CC to FL Studio
    • Flapi Request - For Flapi API requests
    • Flapi Response - For Flapi API responses

FL Studio Configuration

在 GitHub 查看完整 README

安装

uvx fruityloops-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "fruityloops": { "command": "uvx", "args": ["fruityloops-mcp"] } } }