Logic Pro MCP Server
Organize and control Logic Pro from AI assistants. One call renames, colors and stacks every track in a session. The server drives Logic through 5 native macOS control channels (CoreMIDI, Accessibility, CGEvent, AppleScript, OSC) with routing and fallback between them.
9 tools, 7 resources, ~3k context tokens. Not 100+ individual tools.
Built for anyone who opens a session full of Audio_14.wav tracks: mix engineers getting files from artists, producers cleaning up before a bounce, writers tidying a demo. Ask Claude to "clean up this session" and it renames, color-codes and groups the tracks into track stacks in one step.
Organize a session in one call
logic_organize({}) # rename + color + stack everything
logic_organize({params: {dry_run: true}}) # show the plan, change nothing
logic_organize reads the track list and sorts each track into a group by its name: drums, bass, vocals, guitars, keys, orchestral, synths, fx, or other. Then it:
- Renames. Strips
.wav/.aifextensions, underscores and Logic'scopysuffixes ("Lead_Vox_01.wav" becomes "Lead Vox 01"). - Colors. Gives each group its own Logic palette color.
- Stacks. Puts every group (except other) with 2 or more loose tracks into a named track stack ("Drums", "Vocals"...). Folder stacks by default, summing stacks with
stack_kind: "summing".
params: names: {"3": "Kick In"}, categories: {"7": "fx"}, colors: {"drums": 2}, or switch a step off with rename: false, color: false or stack: false. If a step fails, it stops and reports what it already did.
What's supported
| Feature | Command |
|---------|---------|
| Rename + color + stack a whole session | logic_organize |
| Set track color (one track or many) | logic_tracks("set_color", {indices: [0, 1], color: 3}) |
| Read track colors | logic://tracks (each track has color) |
| Create a folder or summing stack | logic_tracks("create_stack", {indices: [2, 3, 4], kind: "folder", name: "Drums"}) |
| Ungroup a stack | logic_tracks("flatten_stack", {index: 2}) |
| Add tracks to / remove tracks from a folder stack | logic_tracks("stack_add", {stack: 2, indices: [7]}) |
| Read stack membership | logic://tracks (each track has isStack and Logic's track number; a closed stack's tracks are the numbers it skips) |
| Rename a track | logic_tracks("rename", {index: 0, name: "Kick"}) |
Notes on how these work:
- Colors are numbered 1 to 96. Logic's color palette has 4 rows of 24 swatches. Number 1 is the top-left swatch, and the count goes left to right, top row first. The top row has the brightest colors.
- Color readback is limited. Logic does not report a track's color to Accessibility.
logic://tracksshows the colors this server set; colors set by hand in Logic show asnull. - Adding to or removing from a stack works by ungrouping the folder stack and stacking the new set of tracks again, because Logic has no "move into stack" command.
- Summing stacks are protected.
flatten_stack,stack_addandstack_removerefuse them, because ungrouping a summing stack deletes its channel strip and plugins. - One command at a time. Track and organize calls queue behind each other, so two calls sent at once can't act on each other's selection.
- Stack membership comes from Logic's track numbers. A closed stack hides its tracks, so they show up as the numbers it skips.
stack_add,stack_removeandlogic_organizeclose open stacks first. - Tested in Logic Pro 13. Every command here was run against a real Logic 13 project. Other versions may name their menus or dialogs differently. If something doesn't match, the command stops and says what it couldn't find, without changing anything else.
- Show the Mixer. Logic 13 only accepts track selection from the Mixer, so keep the Mixer open in the main window (press X in Logic). If selection still fails, select the tracks yourself and pass
use_selection: true. - Logic comes to the front. Logic greys out its color and stack commands while it's in the background, so these commands bring it forward. Picking a color and opening or closing a stack use a real mouse click, because Logic ignores Accessibility presses on those controls. The pointer goes back where it was.
- Close Logic's dialogs first. Starting the server adds MIDI ports, and Logic answers with a "Number of MIDI ports changed" alert that blocks every command until you close it.
Compared with other ways to organize Logic
| Tool | Renames | Colors | Creates stacks | Claude can run it | |------|---------|--------|----------------|-------------------| | This server | Yes | Yes, by category | Folder and summing | Yes | | EasyColor | No | Yes, by name or stack | No | No | | Logic 13 Assistant | Yes | Yes | Yes | No (Apple Creator Studio only) | | MongLong0214/logic-pro-mcp | Yes | No | No | Yes | | rosasynthesiz/logic-pro-mcp | Yes | Yes | No | Yes |
Checked against each tool's own docs in December 2026.
How It Works
Claude ──── 9 dispatcher tools ──── logic_organize({})
│ logic_tracks("set_color", {indices: [3], color: 2})
│ 7 MCP resources ──────── logic://transport/state
│ (zero tool cost) logic://tracks
▼
┌─── LogicProMCP ──────────────────────────────┐
│ Command Dispatcher → Channel Router │
│ │ │ │ │ │ │
│ CoreMIDI AX CGEvent AS OSC │
│ <1ms ~15ms <2ms ~200ms <1ms │
└───────────────────────────────────────────────┘
Each command routes through the fastest available channel, with automatic fallback if the primary fails.
Tools & Resources
Tools (9 dispatchers, all actions)
| Tool | Commands | Examples |
|------|----------|----------|
| logic_organize | Rename, color and stack the whole session | logic_organize({params: {dry_run: true}}) |
| logic_tracks | select, create_audio, rename, set_color, create_stack, flatten_stack, stack_add, stack_remove, mute, solo, arm... | logic_tracks("set_color", {indices: [2], color: 5}) |
| logic_transport | play, stop, record, set_tempo, goto_position... | logic_transport("set_tempo", {tempo: 140}) |
| logic_mixer | set_volume, set_pan, insert_plugin, bypass_plugin... | logic_mixer("set_volume", {track: 0, value: 0.8}) |
| logic_midi | send_note, send_cc, send_chord, mmc_play... | logic_midi("send_note", {note: 60, velocity: 100, channel: 1, duration_ms: 500}) |
| logic_edit | undo, redo, cut, copy, paste, quantize, split... | logic_edit("quantize", {value: "1/16"}) |
| logic_navigate | goto_bar, create_marker, toggle_view, set_zoom... | logic_navigate("toggle_view", {view: "mixer"}) |
| logic_project | new, open, save, bounce, launch, quit | logic_project("open", {path: "/path/to/song.logicx"}) |
| logic_system | health, permissions, refresh_cache, help | logic_system("help", {category: "transport"}) |
Resources (7 URIs — zero context cost)
| URI | Description | Refresh |
|-----|-------------|---------|
| logic://transport/state | Playing/recording/tempo/position/cycle | 500ms |
| logic://tracks | All tracks: mute/solo/arm, color, stack membership | 2s |
| logic://tracks/{index} | Single track detail | 2s |
| logic://mixer | All channel strips: volume, pan, plugins | 2s |
| logic://project/info | Project name, sample rate, time sig | 5s |
| logic://midi/ports | Available MIDI ports | 10s |
| logic://system/health | Channel status, cache, permissions | on-demand |
Installation
Quick Install (Script)
curl -fsSL https://raw.githubusercontent.com/koltyj/logic-pro-mcp/main/Scripts/install.sh | bash
Download Binary
Grab the latest universal macOS binary from GitHub Releases, then:
chmod +x LogicProMCP
sudo mv LogicProMCP /usr/local/bin/
Build from Source
Requires Swift 6.0+ and macOS 14+.
git clone https://github.com/koltyj/logic-pro-mcp.git
cd logic-pro-mcp
swift build -c release
Binary at .build/release/LogicProMCP
Register with Claude Code
claude mcp add --scope user logic-pro -- LogicProMCP
Claude Desktop (One-Click Bundle)
Download logic-pro-mcp.mcpb from the latest release and double-click it. Claude Desktop installs it as an extension. You don't need the binary or the config below.
The server is also listed in the official MCP Registry as io.github.koltyj/logic-pro-mcp.
Claude Desktop (Manual Config)
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"logic-pro": {
"command": "/usr/local/bin/LogicProMCP",
"args": []
}
}
}
Permissions
The server requires two macOS permissions:
- Accessibility — System Settings > Privacy & Security > Accessibility > add your terminal app
- Automation — System Settings > Privacy & Security > Automation > allow control of Logic Pro
LogicProMCP --check-permissions
Usage
Once registered, ask your AI assistant naturally:
- "Clean up this session" —
logic_organize({}) - "Show me how you'd organize this before you change anything" —
logic_organize({params: {dry_run: true}}) - "Color and stack the tracks by group, without renaming" —
logic_organize({params: {rename: false}}) - "Put the drums in a summing stack" —
logic_tracks("create_stack", {indices: [...], kind: "summing", name: "Drums"}) - "What tracks do I have?" — reads
logic://tracksresource - "Mute track 3" —
logic_tracks("mute", {index: 3, enabled: true}) - "Set tempo to 128" —
logic_transport("set_tempo", {tempo: 128}) - "Play a C major chord" —
logic_midi("send_chord", {notes: [60,64,67], ...}) - "Show me the mixer" —
logic_navigate("toggle_view", {view: "mixer"})
logic_system("help", {category: "all"})
Architecture
Channel Routing
| Channel | Latency | Used For | |---------|---------|----------| | CoreMIDI | <1ms | Transport (MMC), note/CC/sysex sending | | Accessibility | ~15ms | State reading, UI button clicks, slider values | | CGEvent | <2ms | Keyboard shortcuts (postToPid, no focus needed) | | AppleScript | ~200ms | App lifecycle only (launch, quit, open file) | | OSC | <1ms | Mixer control (requires Logic Pro OSC setup) |
State Cache
Background Accessibility polling with adaptive intervals:
- Active (tool used <5s ago): 500ms transport, 2s tracks/mixer
- Light (5-30s idle): 2s all
- Idle (>30s): 5s all, near-zero CPU
Context Efficiency
| Approach | Tools | Resources | Context Cost | |----------|-------|-----------|-------------| | Typical MCP server | 100+ tools | 0 | ~40k tokens | | This server | 9 tools | 7 resources | ~3k tokens |
Same 100+ operations. 90% less context.
Limitations
Logic Pro does not expose a programmatic API. This server works within macOS platform constraints:
- UI element paths may change between Logic Pro versions
- Some deep state (automation curves, region MIDI data) is not exposed via Accessibility
- AX element labels may be localized on non-English macOS
- Plugin parameter control is limited to what's visible in the UI
- OSC channel requires manual Logic Pro Control Surface setup
- Track color is write-only from Logic's side; see the notes under "What's supported"
Changelog
See CHANGELOG.md.
Development
# Build debug
swift build
Build release
swift build -c release
Run tests
swift test
Check permissions without starting server
.build/debug/LogicProMCP --check-permissions
Project Structure
Sources/LogicProMCP/
main.swift # Entry point
Server/ # MCP server + config
Dispatchers/ # 9 MCP tool dispatchers
Resources/ # 7 MCP resource handlers
Channels/ # 5 communication channels
Accessibility/ # AX API wrappers
MIDI/ # CoreMIDI engine + MMC
OSC/ # UDP client/server
State/ # Cache + adaptive poller
Utilities/ # Logging, permissions, process utils
License
MIT