# Magnatune > Magnatune is an independent, not-evil record label and music service. Its catalog of over 2,500 albums by over 700 musicians runs from classical, baroque and early music to ambient, electronica, jazz, world and rock. Every track can be streamed free as a preview, and any album can be bought for $8: 100% of the price goes to the musician. ## AI agents: start here - **Find and preview music, credit lines, licence:** free, no sign-in: the MCP server https://magnatune.com/mcp or the JSON API https://magnatune.com/api/. - **Clean songs (no voice-over), album downloads, a member's library:** the person must be a Magnatune member, and you sign them in with **OAuth 2.1** - never ask for their password. MCP clients: connect **https://magnatune.com/mcp/account** (your client runs the sign-in). Programs: OAuth 2.1 with PKCE and dynamic client registration, step by step at https://magnatune.com/api/ ("Start here"); scope `member`, or `download` for just the files. - **If you can't handle passwords or payments** (many AI assistants can't): ask your user to add https://magnatune.com/mcp/account as a connector and sign in there. - Not a member: https://magnatune.com/member/signup ($10/month), or pay for a membership from an agent with MPP (below). ## For AI assistants: MCP server Magnatune has a remote MCP server at https://magnatune.com/mcp (Streamable HTTP, no key needed). Add it as a connector in Claude, ChatGPT, Cursor or any MCP client to search the catalog text with your own regular expressions (grep_catalog, then get_album_text for the albums you pick; recommended), describe the music wanted in plain words (find_music), search songs and albums by mood, use, energy, tag, genre, tempo and length, browse the hand-picked Featured playlists, find similar albums, run SQL on the catalog, and get preview links, credit lines and licensing terms. Claude Code: `claude mcp add --transport http magnatune https://magnatune.com/mcp` ## Members: OAuth sign-in Agents acting for a Magnatune member sign them in with OAuth 2.1 (authorization code + PKCE S256, dynamic client registration at https://magnatune.com/oauth/register; metadata at https://magnatune.com/.well-known/oauth-authorization-server and https://magnatune.com/.well-known/oauth-protected-resource/api) and send `Authorization: Bearer `: clean files, album zips, the member's library and downloads. Step by step: https://magnatune.com/api/ (section "Members: sign in with OAuth"). MCP clients: connect to https://magnatune.com/mcp/account and the client runs the flow itself. ## Finding music - **Recommended: search the catalog text yourself.** You understand the request better than our keyword search, so turn it into the words and regular expressions the catalog might use and ask only for matching lines: `GET /api/grep?re=calm|serene|tranquil|meditat&re=cello|piano` (Tcl regular expressions, which differ from PCRE: syntax at https://magnatune.com/api/regex; case-insensitive, every `re=` must match; compact lines with a snippet of where each matched; `limit=` up to 500, `fields=all` for whole lines). Then read the few albums that fit: `GET /artists/albums/{sku}/about.md` (Markdown: moods, instruments, track list with lengths, notes; artists at `/artists/{page}/about.md`). The whole catalog as one text file: https://magnatune.com/api/catalog.txt (gzip, a few MB). MCP: tools grep_catalog and get_album_text. - The JSON API's own search (`q=` on /api/tracks and /api/albums) is plain keyword matching: use it for structured filters (length, vocals, moods and uses from fixed lists, energy, tempo). A free, read-only JSON API covers the whole catalog: https://magnatune.com/api/ (guide), with an [OpenAPI description](https://magnatune.com/api/openapi.json). - Search: `GET /api/albums?q=piano`. Filter by `genre=` (`GET /api/genres`), `collection=` (`GET /api/collections`) or `artist=`, and `sort=popular|new|name`. - One album: `GET /api/albums/{sku}` gives its tracks with durations and free preview streams (MP3 and Opus), covers, genres, collections, the buy link and related albums. Artists: `GET /api/artists/{page}`. - Music for a purpose (a mood, an instrument, background music, a classical composer): start with the collections (the player's tags), e.g. `GET /api/albums?collection=background_mix` or its songs: `GET /api/collections/background_mix?songs=1`. - Single songs by length, e.g. for a video: `GET /api/tracks?collection=cinematic&min_seconds=120&max_seconds=180` (also `q=`, `genre=`, `artist=`, `sort=popular|new|name|duration`). Add `vocals=instrumental` for music without singing (also on `/api/albums`); songs with singing often have a "(vocals removed)" version, given as `instrumental_version`. - Moods, uses and energy: every album is described with moods (uplifting, tense, dreamy...), uses (corporate, vlog, trailer, meditation or yoga...) and energy 1-5 from fixed lists (`GET /api/vocabulary`); filter with `mood=`, `use=`, `energy=3-5` on `/api/tracks` and `/api/albums`. Songs carry `bpm_approx` (`min_bpm`/`max_bpm`; automatic, folded into 80-160, reliable for rock/electronic/dance only). - Featured playlists, hand-picked by Magnatune for a mood or style: `GET /api/featured`, then `GET /api/featured/{slug}` for the songs in order. Similar albums: `GET /api/albums/{sku}/similar`. - Single songs as audio files, e.g. to put in a video edit: `GET /api/albums/{sku}/tracks/{n}/file?format=mp3`. Without a key this is the free version (the whole song, with a short spoken Magnatune voice overlaid on the music every 30 seconds), which may be used only under CC BY-NC-SA 1.0: non-commercial use, credit the artist and Magnatune, share alike. `GET /api/albums/{sku}/tracks/{n}` gives the terms and a ready-made credit line. With the album's download key (after buying it) the same URL gives the clean song, e.g. `format=wav&key=KEY`. - Every album page (https://magnatune.com/artists/albums//) carries schema.org MusicAlbum JSON-LD with its tracks and an Offer (price and buy link), and links its JSON with ``. - Questions the filters can't answer: run your own read-only SQL on the whole catalog, e.g. jazz artists from outside the USA whose albums are in no collecting society: `GET /api/sql?q=SELECT DISTINCT artist, city, country, album FROM album_details WHERE genres LIKE '%Jazz%' AND country <> 'USA' AND pro = 'NONE' ORDER BY country, artist`. `GET https://magnatune.com/api/sql` returns the schema (views album_details, album_subgenres; tables artists, albums, pro, songs, genres, subgenres, collections, playlists, recommendations), limits and more examples. - Limit: 120 requests per minute per IP (SQL: 20 queries per minute). ## Memberships A membership gives the clean songs (no voice overlay), album downloads in every format, and the Magnatune Project Licence: use the music in projects created and released while a member, commercial or not, including client work, with credit. - A person joins at https://magnatune.com/member/signup: $10/month or $99/year (renewing), or $299 for life. - An agent can pay by itself with MPP (Machine Payments Protocol, HTTP 402, card or Link through Stripe): $10 for one month, $99 for one year or $299 for life, one-off. ## Paying from an agent: music straight into a video edit 1. Find songs with `GET /api/albums?...` or `GET /api/sql?q=...`, then `GET /api/albums/{sku}` for the tracks. 2. `GET https://magnatune.com/api/albums/{sku}/tracks/{n}/file?format=wav` answers `402 Payment Required` with `WWW-Authenticate: Payment` challenges (method stripe, intent charge): one month ($10) first, then a year ($99), then lifetime ($299). 3. Pay one with an MPP client (e.g. `npx @stripe/link-cli mpp pay ''`) and retry with `Authorization: Payment `. 4. That response is the WAV, plus `Payment-Receipt` and the new login in `X-Magnatune-Username` / `X-Magnatune-Password`. 5. Every later file: the same URL with that login as HTTP Basic auth, no more payments. Credit each song with the `credit` line from `GET /api/albums/{sku}/tracks/{n}`. To buy a membership without a file: `POST https://magnatune.com/api/member-pass?offer=month` (or year, lifetime). Payments are single-use and idempotent. Passes don't renew by themselves: to extend one, call /api/member-pass with the member's login as HTTP Basic auth and send the payment in the Payment-Authorization header (the 402 challenge says so); days are added to the current end date. MPP discovery: https://magnatune.com/openapi.json (x-payment-info on the paid routes). ## Buying an album for a person Every album costs $8 and the money goes straight to the musician through PayPal. 1. Find an album: GET https://magnatune.com/api/albums?q=... (or genre=, collection=, artist=), then GET /api/albums/{sku} to check its tracks and previews. 2. Give the person the album's buy_url (https://magnatune.com/buy/album?sku=SKU). They pay $8 on PayPal (card or PayPal account); the money goes straight to the musician. The agent never handles payment details. 3. After paying, the person sees a download key (also emailed to them). Lost keys: https://magnatune.com/buy/album/lostkey emails every key bought with an email address. 4. With the key, GET https://magnatune.com/api/albums/{sku}/downloads?key=KEY lists one download link per format (MP3, AAC, ALAC, FLAC, OGG, WAV), each a zip of the whole album, and one link per song. A single song: GET /api/albums/{sku}/tracks/{n}/file?format=wav&key=KEY (also aac, mp3, ogg, opus). ## Using the music - Licence: all Magnatune music is under Creative Commons Attribution-NonCommercial-ShareAlike 1.0 (CC BY-NC-SA 1.0): https://creativecommons.org/licenses/by-nc-sa/1.0/ - Listening: Stream the free previews, or buy an album for $8 to download it in MP3, AAC, ALAC, FLAC, OGG or WAV. 100% of the price goes to the musician. - Non-commercial use: Non-commercial projects may use the music under CC BY-NC-SA 1.0: credit the artist and Magnatune, and share alike. - Projects: Magnatune members may use any Magnatune music in their projects, commercial or not (videos, films, podcasts, games, apps, websites, adverts), including work for clients, under the Magnatune Project Licence. Projects released while a member stay licensed for good; new projects need an active membership. Credit is required. TV or radio broadcast, cinema, and background music in shops, restaurants or on-hold lines are not included: license those from the musician. Membership: $10/month, $99/year or $299 lifetime; agents can buy one themselves with MPP at /api/member-pass ($10 month, $99 year, $299 lifetime, one-off). - Details: https://magnatune.com/info/licensing. How to credit: Name the artist and "Magnatune", with a link to the album's web_url. ## Whole-catalog data - The catalog database, also queryable at https://magnatune.com/api/sql: [SQLite file](https://magnatune.com/info/sqlite_normalized.db), [gzipped](https://magnatune.com/info/sqlite_normalized.db.gz), [SQL dump, gzipped](https://magnatune.com/info/sqlite_normalized.sql.gz) (schema: [normalized SQLite](https://magnatune.com/info/sqlite-normalized)). - [Data feeds](https://magnatune.com/info/api): the whole catalog as SQLite, XML or CSV. - [changed.txt](https://magnatune.com/info/changed.txt) holds a number that changes whenever there are new releases (check at most daily). ## Browse indexes - [All artists](https://magnatune.com/artists/) - [All albums](https://magnatune.com/artists/albums/) - [All genres](https://magnatune.com/genres/) - [All collections](https://magnatune.com/collections/) - [Music licensing](https://magnatune.com/info/licensing) - [Contact](https://magnatune.com/info/contact) ## Genres - [Alt Rock](https://magnatune.com/genres/altrock) - [Ambient](https://magnatune.com/genres/ambient) - [Avant-Garde](https://magnatune.com/genres/avant-garde) - [Baroque](https://magnatune.com/genres/baroque) - [Blues](https://magnatune.com/genres/blues) - [Chamber Music](https://magnatune.com/genres/chambermusic) - [Children](https://magnatune.com/genres/children) - [Choral](https://magnatune.com/genres/choral) - [Christian](https://magnatune.com/genres/christian) - [Clarinet](https://magnatune.com/genres/clarinet) - [Classical](https://magnatune.com/genres/classical) - [Classical Period](https://magnatune.com/genres/classicalperiod) - [Classical Singing](https://magnatune.com/genres/classicalsinging) - [Contemporary](https://magnatune.com/genres/contemporary) - [Country](https://magnatune.com/genres/country) - [Darkwave](https://magnatune.com/genres/darkwave) - [Downtempo](https://magnatune.com/genres/downtempo) - [Electro Rock](https://magnatune.com/genres/electrorock) - [Electronica](https://magnatune.com/genres/electronica) - [Experimental](https://magnatune.com/genres/experimental) - [Flamenco](https://magnatune.com/genres/flamenco) - [Flute](https://magnatune.com/genres/flute) - [Folk](https://magnatune.com/genres/folk) - [Folk-Rock](https://magnatune.com/genres/folk-rock) - [Funk](https://magnatune.com/genres/funk) - [Guitar](https://magnatune.com/genres/guitar) - [Hard Rock](https://magnatune.com/genres/hardrock) - [Harpsichord](https://magnatune.com/genres/harpsichord) - [Heringman](https://magnatune.com/genres/heringman) - [Hip Hop](https://magnatune.com/genres/hiphop) - [Impressionism](https://magnatune.com/genres/impressionism) - [Indian](https://magnatune.com/genres/indian) - [Industrial](https://magnatune.com/genres/industrial) - [Inspirational](https://magnatune.com/genres/inspirational) - [Instrumental](https://magnatune.com/genres/instrumental) - [Instrumental Ambient](https://magnatune.com/genres/instrumentalambient) - [Instrumental Christmas](https://magnatune.com/genres/instrumentalchristmas) - [Instrumental Classical](https://magnatune.com/genres/instrumentalclassical) - [Instrumental Electronica](https://magnatune.com/genres/instrumentalelectronica) - [Instrumental Jazz](https://magnatune.com/genres/instrumentaljazz) - [Instrumental New Age](https://magnatune.com/genres/instrumentalnewage) - [Instrumental Rock](https://magnatune.com/genres/instrumentalrock) - [Instrumental World](https://magnatune.com/genres/instrumentalworld) - [Irish](https://magnatune.com/genres/irish) - [Jazz](https://magnatune.com/genres/jazz) - [Latin](https://magnatune.com/genres/latin) - [Loops](https://magnatune.com/genres/loops) - [Lute](https://magnatune.com/genres/lute) - [Magnatune](https://magnatune.com/genres/magnatune) - [Medieval](https://magnatune.com/genres/medieval) - [Medieval Romance](https://magnatune.com/genres/medievalromance) - [Metal](https://magnatune.com/genres/metal) - [Neo-Romanticism](https://magnatune.com/genres/neo-romanticism) - [Neoclassical](https://magnatune.com/genres/neoclassical) - [New Age](https://magnatune.com/genres/newage) - [Opera](https://magnatune.com/genres/opera) - [Orchestral](https://magnatune.com/genres/orchestral) - [Piano](https://magnatune.com/genres/piano) - [Pop](https://magnatune.com/genres/pop) - [Progressive Rock](https://magnatune.com/genres/progressiverock) - [Promos](https://magnatune.com/genres/promos) - [Punk](https://magnatune.com/genres/punk) - [R and B](https://magnatune.com/genres/randb) - [Reggae](https://magnatune.com/genres/reggae) - [Renaissance](https://magnatune.com/genres/renaissance) - [Rock](https://magnatune.com/genres/rock) - [Romantic Era](https://magnatune.com/genres/romanticera) - [Soul](https://magnatune.com/genres/soul) - [Spanish](https://magnatune.com/genres/spanish) - [Spoken Promos](https://magnatune.com/genres/spokenpromos) - [Symphonic Metal](https://magnatune.com/genres/symphonicmetal) - [Symphonic Rock](https://magnatune.com/genres/symphonicrock) - [Techno](https://magnatune.com/genres/techno) - [Trip-hop](https://magnatune.com/genres/trip-hop) - [Vihuela](https://magnatune.com/genres/vihuela) - [Viola da Gamba](https://magnatune.com/genres/violadagamba) - [Vocal](https://magnatune.com/genres/vocal) - [World](https://magnatune.com/genres/world) ## Full index - [Sitemap (XML)](https://magnatune.com/sitemap.xml): every artist, album, genre and collection page