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
Pick a genre and get a ready-made 16-bar sketch or a full dance track with intro, build, drop, break and outro.
Send your own drum lanes, bassline, melody or chords. Loopsmith finishes everything else around them and never changes your notes.
Every beat comes back with tempo, key, sections and each pattern written out, so the agent can reason about it and change it.
The person opens the link, presses Space and hears it. They can keep editing in the full app.
Project file for the app and a standard MIDI file for any other music software.
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/mcpAny 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
| Tool | What it does | Needs a key |
|---|---|---|
| list_styles | Every style, drum kit, sound, scale and flavour you can pick. | no |
| make_beat | Compose a beat and get the link that opens it in the app. | no |
| get_beat | Read a beat back: summary, sections and every pattern as text. | no |
| export_beat | Links to open, download the project file and the MIDI file; says if MIDI needs the pass. | no |
| remix_beat | A new beat from an earlier one with changes: key, tempo, kit, sounds, or a fresh take. | no |
| account_status | Account email, export pass and saved songs. | optional |
| read_saved_song | Read a song saved in the person's profile. | yes |
| save_to_profile | Save 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
| Request | Does |
|---|---|
| GET /api/v1/health | Is it up, and which build |
| GET /api/v1/catalog | Styles, kits, sounds, scales, flavours |
| POST /api/v1/beats | Make a beat from a spec |
| GET /api/v1/beats/{id} | Read it back with every pattern as text |
| POST /api/v1/beats/{id}/remix | New beat from an old one; the body holds only the fields to change |
| GET /api/v1/beats/{id}/midi | Standard MIDI file, drums on channel 10 |
| GET /api/v1/beats/{id}/project | Project .json the app imports |
| GET /api/v1/beats/{id}/export | Export links, and whether MIDI needs the pass |
| GET /b/{id} | Opens the beat in the app |
| GET /api/v1/me | Account 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
| Field | Value | Meaning |
|---|---|---|
| start | sketch, track or blank | sketch = ready-made 16-bar idea. track = ready-made full dance track (72 bars). blank = your own parts, finished by Loopsmith. |
| style | genre id | Sketches: hiphop, trap, house, lofi, dnb, reggaeton, pop. Tracks and blank starts: house, deephouse, techhouse, techno, trance, bigroom, futurebass, dubstep, dnb, ukg, melodichouse. |
| name | text | Title shown in the app (60 characters). |
| bpm | 60 to 200 | Tempo. Defaults to the style's own. |
| key | C, F#, Bb … | Root note. Ready-made beats are transposed to it. |
| scale | scale id | minor, major, dorian, harmonic, pentaMinor, pentaMajor, blues, chromatic. Blank starts only. |
| swing | 0 to 1 | Shuffle. |
| kit | kit id | boom, room, dusty, tape, grit, tick, arena, volt. |
| sounds | object | Presets for bass, melody and chords, for example {"bass":"Reese","melody":"FM Bell"}. The catalog lists all 27. |
| flavour | flavour id | punchy, soft, dreamy, dark, bright, retro. |
| bars | 1 or 2 | Pattern length for a blank start. |
| drums | object of lanes | One 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 / chords | list of notes | Each note: {"pitch":"A1","step":0,"len":2,"vel":0.8}. step and len count 16th notes. |
| finish | true, false or list | Blank starts: let Loopsmith write the parts you did not (default true). Your own notes are never changed. |
| amount | 0 to 1 | How busy the finished parts are. |
| full_track | true | Arrange the loop into a full track with builds and drops. |
| seed | number | Same 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_…(orAuthorization: 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/v1reports this asexport_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