Drum Engine API
Every function of the ChordMuse drum engine over HTTP: grooves, arrangements, songs, drum packs and drum loops as General MIDI, with the same results as the ChordMuse apps.
Your first call
Send your Drum Engine API key in the Authorization header and a JSON request. Drum Engine API keys start cmd_ and come from your dashboard; Chord Engine API keys don't work here. Keep them on your servers, never in a website's or app's code.
curl https://drums.engine-api.chordmuse.app/v1/loop \
-H "Authorization: Bearer $CHORDMUSE_DRUM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"style": "funk_16ths"}'Full reference
Every function's request and response, with examples you can run with your key.
Functions
Drum Engine API 0.1.1. The full schemas are in the OpenAPI 3.1 spec.
/v1/health/v1/arrangementOne groove's full-track arrangement for one song form, exactly as pack writes it for a pack of that groove and that form.
/v1/bar-signaturesThe distinct bar signatures of MIDI files (read as the reference's originality check reads them): pass them as `avoid` to keep a new pack clear of existing ones.
/v1/catalogueEverything the engine can make: grooves, song parts, song forms, loop styles and feels, kit presets and swaps, and the defaults.
/v1/grooveOne variation of one groove's song part: the file a pack writes at GENRE/FEEL/GROOVE/part/Variation_NN.mid.
/v1/loopOne drum loop of one style in one feel.
/v1/loop-packA loop pack: every feel × style × take with metadata.json, and optionally 1–64 songs built from the styles.
/v1/packA whole drum pack: every selected groove × song part × variation, metadata.json, and either an arrangement per groove and song form or 1–64 songs, with arrangements.json.
/v1/songOne song from a groove or a loop style, exactly as a pack or loop pack with that song in its list writes it.
Files
- Send
Accept: audio/miditogroove,arrangement,songorloopfor the clip's MIDI file itself, with its file name inContent-Dispositionand its length inChordMuse-Duration-Seconds. - Send
Accept: application/ziptopackorloop-packfor every file as one ZIP, laid out as the pack's folder. That needs the files, soincludeFiles: falsewith it is a400. - Errors are JSON whatever the
Acceptheader.
Errors and limits
- Errors are
{"error": {"code", "message"}}. Check thecode; the message is for people and may change. 400for a request the engine can't use (unknown_groove,invalid_seed…),401for a missing or unknown key,403for a revoked key,413for a request over the largest size,429over your plan's limit:rate_limitedfor calls per minute,quota_exceededfor calls per day.- Every response carries
RateLimit-RemainingandRateLimit-Resetfor the minute, and, when your plan has a daily quota,ChordMuse-Daily-RemainingandChordMuse-Daily-Resetfor the day (UTC). A429also carriesRetry-Afterin seconds. - The same request and
seedalways give the same result, and every response gives theseedit used; theChordMuse-Drum-Engine-Versionheader says which engine answered.
AI assistants
GET /v1/tools lists every function as a tool definition (name, description, input schema) for an AI model. For assistants that speak MCP, add the drum engine as a remote MCP server (Streamable HTTP) with your key. The pack and loopPack tools leave out the files' data unless includeFiles is true, to keep results small. MCP calls count against your plan like any other.
Claude Code
claude mcp add --transport http chordmuse-drums https://drums.engine-api.chordmuse.app/mcp \
--header "Authorization: Bearer <your key>"Cursor, VS Code and other tools that take a URL with headers
{
"mcpServers": {
"chordmuse-drums": {
"url": "https://drums.engine-api.chordmuse.app/mcp",
"headers": { "Authorization": "Bearer <your key>" }
}
}
}Claude Desktop
Its custom connectors can't send a key yet, so connect through mcp-remote: Settings → Developer → Edit Config, then restart Claude Desktop.
{
"mcpServers": {
"chordmuse-drums": {
"command": "npx",
"args": ["mcp-remote", "https://drums.engine-api.chordmuse.app/mcp", "--header", "Authorization:${AUTH}"],
"env": { "AUTH": "Bearer <your key>" }
}
}
}