> Loopsmith

API + MCP · free · no key needed to start

Give your AI a beat machine.

Loopsmith is a beat maker that runs in the browser. This page is for agents and developers: send a short description of a beat, and get back a link that opens the finished, editable beat in the app. The music is written by the same code the app uses.

What an agent can do

Make a beat from words

Pick a genre and get a ready-made 16-bar sketch or a full dance track with intro, build, drop, break and outro.

Write the parts itself

Send your own drum lanes, bassline, melody or chords. Loopsmith finishes everything else around them and never changes your notes.

Read music as text

Every beat comes back with tempo, key, sections and each pattern written out, so the agent can reason about it and change it.

Hand over a link

The person opens the link, presses Space and hears it. They can keep editing in the full app.

Export

Project file for the app and a standard MIDI file for any other music software.

Save to a profile

With the person's API key, an agent can read their saved songs and save a new beat into a slot.

One honest limit: there is no audio file. Loopsmith synthesises sound live in the listener's browser, so the result of a request is a link, text and MIDI, not a WAV or MP3. WAV and stems are exported from inside the app.

Connect over MCP

Server URL (streamable HTTP):

https://beats.thetempleofdoom.com/mcp

Claude (web, desktop, mobile)

Settings → Connectors → Add custom connector. Name it Loopsmith and paste the URL above. No sign-in step is needed.

Claude Code

claude mcp add --transport http loopsmith https://beats.thetempleofdoom.com/mcp

Any client with a JSON config

{
  "mcpServers": {
    "loopsmith": {
      "type": "http",
      "url": "https://beats.thetempleofdoom.com/mcp"
    }
  }
}

With an API key (optional)

{
  "mcpServers": {
    "loopsmith": {
      "type": "http",
      "url": "https://beats.thetempleofdoom.com/mcp",
      "headers": {
        "X-API-Key": "ls_your_key"
      }
    }
  }
}

Tools

ToolWhat it doesNeeds a key
list_stylesEvery style, drum kit, sound, scale and flavour you can pick.no
make_beatCompose a beat and get the link that opens it in the app.no
get_beatRead a beat back: summary, sections and every pattern as text.no
export_beatLinks to open, download the project file and the MIDI file; says if MIDI needs the pass.no
remix_beatA new beat from an earlier one with changes: key, tempo, kit, sounds, or a fresh take.no
account_statusAccount email, export pass and saved songs.optional
read_saved_songRead a song saved in the person's profile.yes
save_to_profileSave a beat into a profile slot. Never overwrites unless told to.yes

Then just ask: "Make me a dark dubstep track called Night Bus and give me the link."

REST API

Base URL https://beats.thetempleofdoom.com/api/v1 · JSON in, JSON out · CORS open · OpenAPI description · MCP server card · agents asking /api/v1 for JSON get this page as data

Make a ready-made beat

curl -X POST https://beats.thetempleofdoom.com/api/v1/beats \
  -H 'Content-Type: application/json' \
  -d '{"start":"track","style":"dubstep","name":"Night Bus"}'

Write your own parts and let Loopsmith finish

curl -X POST https://beats.thetempleofdoom.com/api/v1/beats \
  -H 'Content-Type: application/json' \
  -d '{"style":"techno","bpm":132,
       "drums":{"kick":"x...x...x...x..."},
       "bass":[{"pitch":"A1","step":0,"len":2},{"pitch":"A1","step":3},{"pitch":"C2","step":6,"len":2}],
       "full_track":true}'

What comes back (shortened)

{
 "id": "k3m9x2pq7a",
 "name": "Night Bus",
 "url": "https://beats.thetempleofdoom.com/b/k3m9x2pq7a",
 "midi_url": "https://beats.thetempleofdoom.com/api/v1/beats/k3m9x2pq7a/midi",
 "project_url": "https://beats.thetempleofdoom.com/api/v1/beats/k3m9x2pq7a/project",
 "summary": {
  "bpm": 140,
  "key": "E",
  "scale": "minor",
  "kit": "grit",
  "bars": 72,
  "seconds": 123,
  "sounds": {
   "bass": "Wobble",
   "melody": "Hoover",
   "chords": "Warm Pad"
  },
  "sections": [
   {
    "type": "intro",
    "bar": 0,
    "bars": 8
   },
   "…"
  ]
 },
 "patterns": [
  {
   "name": "Intro 1",
   "drums": {
    "kick": "X.........X.....X.........X.....",
    "chat": "X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X."
   },
   "chords": [
    {
     "pitch": "G3",
     "step": 0,
     "len": 16
    },
    "…"
   ]
  },
  "…"
 ]
}

Endpoints

RequestDoes
GET /api/v1/healthIs it up, and which build
GET /api/v1/catalogStyles, kits, sounds, scales, flavours
POST /api/v1/beatsMake a beat from a spec
GET /api/v1/beats/{id}Read it back with every pattern as text
POST /api/v1/beats/{id}/remixNew beat from an old one; the body holds only the fields to change
GET /api/v1/beats/{id}/midiStandard MIDI file, drums on channel 10
GET /api/v1/beats/{id}/projectProject .json the app imports
GET /api/v1/beats/{id}/exportExport links, and whether MIDI needs the pass
GET /b/{id}Opens the beat in the app
GET /api/v1/meAccount behind the key
GET /api/v1/songs, /songs/{slot}Saved songs; one song as text
PUT /api/v1/songs/{slot}Save a beat to the profile: {"beat_id":"…"}

The beat spec

FieldValueMeaning
startsketch, track or blanksketch = ready-made 16-bar idea. track = ready-made full dance track (72 bars). blank = your own parts, finished by Loopsmith.
stylegenre idSketches: hiphop, trap, house, lofi, dnb, reggaeton, pop. Tracks and blank starts: house, deephouse, techhouse, techno, trance, bigroom, futurebass, dubstep, dnb, ukg, melodichouse.
nametextTitle shown in the app (60 characters).
bpm60 to 200Tempo. Defaults to the style's own.
keyC, F#, Bb …Root note. Ready-made beats are transposed to it.
scalescale idminor, major, dorian, harmonic, pentaMinor, pentaMajor, blues, chromatic. Blank starts only.
swing0 to 1Shuffle.
kitkit idboom, room, dusty, tape, grit, tick, arena, volt.
soundsobjectPresets for bass, melody and chords, for example {"bass":"Reese","melody":"FM Bell"}. The catalog lists all 27.
flavourflavour idpunchy, soft, dreamy, dark, bright, retro.
bars1 or 2Pattern length for a blank start.
drumsobject of lanesOne string per drum, 16 or 32 characters, one per 16th note: x hit, X accent, o soft, - ghost, . rest. Drums: kick, snare, clap, chat, ohat, tom, rim, crash.
bass / melody / chordslist of notesEach note: {"pitch":"A1","step":0,"len":2,"vel":0.8}. step and len count 16th notes.
finishtrue, false or listBlank starts: let Loopsmith write the parts you did not (default true). Your own notes are never changed.
amount0 to 1How busy the finished parts are.
full_tracktrueArrange the loop into a full track with builds and drops.
seednumberSame spec and seed give the same beat. Leave out for a new take.

Mistakes come back with a matching HTTP status and {"error":{"code":"bad_request","message":"…"}}, where the message is a plain sentence saying what to fix, for example drums.kick must be a string of exactly 16 or 32 characters.

Try it here

The answer from POST /api/v1/beats appears here.

Keys, limits and the export pass

  • No key: make and read beats freely, up to 30 new beats an hour per address.
  • Free account key: 120 new beats an hour, plus reading and saving the 2 profile songs. Create an account and press "Make an API key" on the account page. Send it as X-API-Key: ls_… (or Authorization: Bearer ls_…).
  • Export pass: 600 new beats an hour. When exporting needs the pass in the app, the MIDI download here needs the key of an account that has one. GET /api/v1 reports this as export_needs_pass. Links and project files stay free.
  • Beats made through the API are kept for 90 days. Save one to a profile, or keep the project file, to hold on to it.
  • Please do not use the API to flood the service.

For crawlers and language models: llms.txt · sitemap.xml · llms-full.txt · openapi.json · mcp.json