Integrate your DAW
What a DAW or music platform exposes so that a musician's agent can read and edit it safely through DAWMCP.
This page is for people who make DAWs and music platforms, open source or commercial, and for anyone writing a bridge for one. DAWMCP gives a musician's agent (Claude, Codex, Cursor and others) one local connection to their DAW. The agent uses the same operations in every DAW, and DAWMCP translates them for each one. Here is what your DAW needs to expose so that this translation is safe and useful, and how to get there in small steps.
Building a DAW that runs in the browser? Start with Make your web DAW work with agents, a step-by-step guide. What we would like every DAW to make readable is in What we'd like DAWs to show.
What the agent sees
Every DAW appears to the agent through the same operations:
| Operation | What it does | Permission |
|---|---|---|
read_daw_session | Session identity, tempo, play state, tracks, selection and the musical frame | context |
control_daw_transport | Play, stop, set tempo | transport |
create_daw_track | Create a named empty MIDI or audio track and return its ID | composition |
write_daw_midi | Create a persistent MIDI clip on a track | composition |
import_daw_audio | Place a local WAV on a track at a position, preserving speed | media |
list_daw_plugins, list_daw_track_plugins | Installed plug-ins and a track's chain | context |
insert_daw_plugin, read_daw_plugin_parameters, set_daw_plugin_parameter | Insert a plug-in, then read and set its parameters with read-back | mixing |
call_daw_native | Typed commands specific to your DAW | per command |
The musician grants these permissions on their own computer (context, transport, composition, media, mixing, project). Only reading is allowed by default. DAWMCP checks the permission on every call, so your DAW never implements permissions for it. Your DAW does need to make each operation's effect exact and checkable.
Three ways to integrate
Start at the level that suits your project. Each level makes the next one easier.
| Level | You provide | We provide | Example today |
|---|---|---|---|
| 1. Scripting API | A scripting or control API you already have (Lua, Python, JavaScript, OSC) | A small script that runs in your DAW, and an adapter that talks to it over loopback | REAPER (ReaScript Lua), Bitwig (controller JavaScript) |
| 2. Local control server | A built-in loopback server, MCP or JSON-RPC, with tools to read and edit the session | An adapter that maps your tools onto the shared operations | Ardour (mcp_http control surface) |
| 3. Native contract | Your server implements DAWMCP's operations and the rules on this page directly | A thin adapter configured from your declaration, and a test drive | None yet |
Level 1 needs nothing from you except a stable, documented scripting API. Most of this page is about what lets an agent go beyond reading at levels 2 and 3.
Requirements for safe writes
DAWMCP refuses to edit through a connection that cannot prove it is editing the session the agent just read. For that reason the Bitwig and Ardour connections can only read today. These properties allow writes.
Session identity and revision
- A session ID that stays the same while a project is open, survives rename and Save As, and differs between two open projects with the same name. A UUID stored in the project file is ideal.
- A revision counter that increases on every change to the session's content, whether the change comes from the musician, a script or undo.
- Preconditions on writes. Accept an
expectedRevision, or at least anexpectedSessionId, and refuse the write with a distinct error when it no longer matches. This lets an agent edit while the musician keeps working.
Stable object identity
Tracks, clips or regions, devices and parameters each need an ID that does not change when other objects are inserted, deleted, reordered or renamed. Indices and display order are useful for presentation, but they are not identity. Return the new object's ID from every create call.
Explicit units
Use these representations, or document an exact conversion:
| Quantity | Representation |
|---|---|
| Musical position | Zero-based quarter-note beats from project start. Also give bar and beat if you have a meter map |
| Note start | Quarter-note beats from the clip start |
| Duration | Quarter-note beats, positive |
| Pitch | MIDI 0–127 |
| Velocity | MIDI 1–127 for a sounding note, never 0 |
| Channel | 0–15 |
| Tempo | BPM, plus whether a tempo map exists |
| Meter | Numerator and denominator, plus whether a meter map exists |
| Gain | dB, with the floor value stated |
| Pan | −1 (left) to +1 (right), or your convention stated exactly |
| Plug-in parameter | Normalized 0–1 and your native value, plus the plug-in's own display text |
Conversions that depend on tempo or meter maps belong in the DAW, because only the DAW knows the map. Seconds are not a substitute for beats.
Confirmed outcomes
- Return the resulting state in the write response: the created ID, the object's new values and the new revision. "Command sent" is not success.
- Distinguish
confirmed,failed,unsupportedanduncertain. Uncertain means the change may have applied, for example after a timeout. DAWMCP never blindly retries an uncertain write. It reads first, so reads must be cheap. - Accept a client
requestId, and treat a repeated write with the same ID as a no-op that returns the original result. This makes recovery after a lost response safe. - Group each write into one undo step named after the request.
No surprises
- Writes never start playback or recording. Transport is its own command.
- Writes never open dialogs, change focus or depend on what the musician has selected. Take the target as an explicit ID.
- Media import copies or references a file the musician named. It never fetches from the network.
Security
DAWMCP runs on the musician's computer and connects only to loopback. Your server should match that:
- Listen on
127.0.0.1and::1only by default. Listening on other interfaces should be the musician's explicit choice. - Authenticate the client. A random token written to a file only the user can read (mode 0600) in your settings directory is enough. DAWMCP reads it only with the musician's consent.
- No arbitrary code evaluation. A
run_scriptorevaltool cannot be limited by permission, so DAWMCP will not offer it to agents. Offer typed commands instead. - Bound everything. Page long lists, cap payload sizes and time out long operations with a clear error.
- Identify yourself. Return the application version, your server's version and the protocol version when DAWMCP connects, so it can record exactly what was tested.
Report what you can do
Advertise what this build and this session can do, in a machine-readable list of operation names, schemas and versions. Report a missing operation as unsupported instead of leaving it out or failing with a generic error. Keep "this version supports it" apart from "it can be done right now" in your responses, for example: "MIDI writes are supported, but no MIDI track exists."
A subscription that pushes {sessionId, revision, changed: [ids]} when the session changes is optional. It lets the agent notice that the musician moved something without polling. The agent still reads before it writes.
Declare your integration
Describe your integration in a dawmcp-provider.json file at the root of your repository or documentation, and check it:
npx dawmcp provider check dawmcp-provider.json
The check validates the file against the published schema (also printed by npx dawmcp provider schema). It explains what DAWMCP would do with your declaration: which writes it would hold back and why, and what the agent will not be able to see.
{
"schema": "https://dawmcp.com/schemas/provider-v1.json",
"id": "open-daw-desktop",
"name": "Open DAW Desktop",
"kind": "desktop",
"homepage": "https://example.org",
"license": "GPL-3.0-or-later",
"versions": { "app": "2.1.0", "surface": "1.0.0" },
"connection": {
"type": "local-mcp",
"url": "http://127.0.0.1:4821/mcp",
"auth": { "type": "token-file", "path": "~/.config/open-daw/dawmcp-token" },
"enable": "Preferences → Control surfaces → DAWMCP"
},
"session": {
"stableId": true,
"revision": true,
"writePreconditions": true,
"idempotentRequests": true,
"undoPerWrite": true,
"changeEvents": false
},
"operations": {
"read_daw_session": { "tool": "session_read", "support": "experimental" },
"create_daw_track": { "tool": "track_create", "support": "experimental" },
"write_daw_midi": { "tool": "midi_write", "support": "experimental" }
},
"frame": ["meters", "tempos", "markers", "loop"],
"trackKinds": true,
"native": [
{
"tool": "region_move",
"category": "composition",
"description": "Move a region to a quarter-note position."
}
],
"setup": ["Enable the DAWMCP control surface in Preferences."],
"contact": "https://example.org/issues"
}
operationslists the shared operations your server implements with DAWMCP's own input and output schemas, and the tool name each has on your server.read_daw_sessionis required. Implementing the schemas as they are is what makes a thin adapter possible. DAWMCP does not remap arbitrary arguments.framenames the parts of the musical frame your session read fills:meters,tempos,markers,loop,timeSelection,editCursorandplayhead.trackKindssays your tracks carry akind.nativelists typed extras, each with the permission it needs. Their schemas come from your server's owntools/list.supportis your own claim,experimentalorvalidated. DAWMCP records its own test results separately.
How your users connect
With a local-mcp declaration, a musician connects your DAW without a new DAWMCP release:
npx dawmcp provider add dawmcp-provider.json --allow-token-file
--allow-token-file is their consent for DAWMCP to read your token file. DAWMCP then calls only the tools your declaration names, checks every input and output against its own schemas, and holds back writes until your session guarantees are declared. Your agent tools appear as provider:<your id>. To be accepted, your server must:
- answer a request without the token with HTTP 401 or 403
- keep the token file readable only by the user (mode 600), and not a symlink
- keep each native tool's schema the same while DAWMCP is running
DAWMCP never fetches or discovers declarations by itself. Ship the file with your DAW or documentation and tell users where it is. A web app using the browser bridge is added the same way; a remote connector is not, because agents connect to it directly.
Online platforms
A browser-based DAW or music platform cannot be reached by a local program the way a desktop DAW can. There are three routes. Choose by where your users' agents run.
| Route | connection in the declaration | Best when | What the musician does |
|---|---|---|---|
| Your own remote MCP connector | {"type": "remote-mcp", "url": "https://…/mcp", "auth": {"type": "oauth"}} | Your users use Claude or ChatGPT on the web, or another cloud agent | Adds your connector URL in their agent app and signs in. Adds the DAW skill for the workflow guidance |
| Browser bridge to the local companion | {"type": "browser-bridge", "origins": ["https://studio.example.org"]} | Your users run a local agent (Claude Code, Codex, Cursor, Claude Desktop) beside your web app | Chooses Connect agent in your app. Until your app is listed, the first time, they paste the line your app shows into their agent |
| A desktop build | local-mcp, as for any desktop DAW | You ship an Electron or native wrapper | The same as for a desktop DAW |
Whichever route you choose, the session, unit and security rules above still apply. Implement the shared operations with DAWMCP's schemas, so that one skill and one set of habits work on the desktop and the web. For a hosted connector:
- Scope access per project, and offer reading separately from editing.
- Never let a connector reach other people's projects. Bind the session ID to the signed-in user.
- Return the resulting state after each write, so the agent can check its own work.
A remote connector works with any agent that supports MCP.
The browser bridge
Make your web DAW work with agents walks through this route step by step. With the browser bridge, your page connects out to DAWMCP on the musician's computer, so a local agent can work in the project open in your app. Connecting takes one click: the musician chooses Connect agent in your app. Once your app is in DAWMCP's list of web DAWs, that is all. Until then, the musician adds your declaration with npx dawmcp provider add, and the first time a browser connects, your app shows a line such as "Connect Your DAW with code 482913" with a button to copy it. The musician pastes the line into their agent chat, and the agent connects the tab. After that the browser is remembered, and it reconnects without a code after a reload, a project change or an agent restart.
import { connectDawmcp, isRemembered } from "dawmcp/bridge"
async function connectAgent() {
const connection = await connectDawmcp({
provider: "your-daw",
sessionId: project.id,
app: { version: APP_VERSION, surface: "1.0.0" },
declaration: { session: { stableId: true, revision: true, writePreconditions: true } },
onCode: ({ prompt }) => showCopyLine(prompt), // "Copy for your agent", until you are listed
waitForAgent: true, // shows "Waiting for your agent…" until it starts
onStatus: (status) => showAgentStatus(status),
operations: {
read_daw_session: () => project.snapshot(),
write_daw_midi: (input) => project.writeMidi(input),
},
})
// When the musician opens another project, connect again: no code is needed.
project.onClose(() => connection.close())
}
// On load, reconnect only a browser that has connected before.
if (isRemembered("your-daw")) connectAgent()
The library owns the connection details, so your page passes only its ID, its version and its handlers. Your manifest names only who you are and the origins DAWMCP admits. Your page reports its operations, guarantees and native tools each time it connects, and DAWMCP applies the same rules as for a desktop DAW's manifest. Your handlers receive DAWMCP's inputs already checked, and the library checks each result against DAWMCP's schema before sending it, so a mistake shows up in your page rather than in the agent.
DAWMCP accepts connections only from the origins you declare. One tab is connected at a time, and the newest one to connect takes over. Show a small "Agent connected" indicator with a way to disconnect. Chrome asks the musician to allow the site to reach apps and devices on their local network, and the connection fails until they allow it. Connect only after the musician chooses Connect agent, or on load if they have connected before, never on a first visit. That way the prompt follows their own action. Test each other browser you support.
DAWMCP lists a DAW once a connection to it exists. Each connection is marked experimental until a real session passes our test drive: a fixed MIDI and audio task from a fresh project, read-back, save and reopen, undo, and simulated disconnects, stale targets and timeouts. A passing fixture test or a code review alone never changes that. The same rules apply to every DAW, including Maru's own connections.
To work with us on an integration, open an issue with your DAW, its scripting or control interface, and the operations you can provide. We'll agree the plan together before anyone writes code.
Checklist
- Loopback-only listener, a token only the user can read, no eval tool
- Application, server and protocol versions on connect
- A session ID that survives rename and Save As, and a revision counter
- Write preconditions on session and revision
- Stable IDs for tracks, clips, devices and parameters
- Positions in quarter-note beats, with readable meter and tempo maps
- Writes return the resulting state and the new revision
-
requestIdidempotency and one undo step per write - No implicit playback, dialogs or dependence on the selection
- A capability list with
unsupportedentries - Optional: change events
- A
dawmcp-provider.jsonthat passesnpx dawmcp provider check
Licensing
DAWMCP talks to a DAW over a local connection and does not link to it. Scripts we ship to run inside a DAW's own interpreter are separate files with their own notices, so they can be checked against your project's license. Have your own maintainers confirm any licensing question. This page is not legal advice.
Open-source DAWs we would like to support
These are where we would start, as of November 2026. Each project's extension options change over time, so we confirm them with the maintainers before planning work.
| DAW | Where we would start | What would allow edits |
|---|---|---|
| Ardour | Its built-in MCP HTTP control surface (experimental, since 9.5), Lua scripting, OSC | A session ID and revision, listening on loopback only by default with a token, and audio import and render tools |
| Zrythm | CLAP and plug-in hosting in its rewritten version 2. Scripting is currently disabled | A loopback control server (level 2) |
| LMMS | Command-line render and import. No scripting or control API | A level 2 server, which is the main gap for beat-making |
| Qtractor | MIDI controller learn, MMC and session management over NSM | A level 1 or 2 integration |
| MusE | An opt-in Python remote and MIDI scripts | Reading and writing notes with stable IDs |
| Rosegarden | MIDI external-controller support. No scripting | A level 1 or 2 integration |
| Audacity | mod-script-pipe in 3.x. Audacity 4.0 does not have it yet | Audio import, selection and export, as an audio-editing profile without MIDI arrangement |
| Hydrogen | An OSC server, off by default | Reading and writing patterns with stable instrument IDs, as a drum-machine profile |
| Tracktion Engine | Its edit model, where every object has an ID | A level 3 server inside apps built on the engine |
| openDAW | A TypeScript studio in the browser with a scripting API and an agent connection in development | The shared operations on its agent connection, with a token and an origin check on the local relay |
| ossia score | JavaScript scripting with an editing API, OSCQuery and a remote-control WebSocket | A timeline profile with explicit object IDs |
Notation editors such as MuseScore share musical intent but organize a document differently. They would need their own profile.