MyMP3CollectionYour whole MP3 collection, without moving a single file.
Point the app at your music folders, and it reads the tags, remembers where each file is and fetches year, genre and cover from MusicBrainz. Play straight from the file, make playlists and copy chosen artists to a USB drive. The audio files stay where they are, and the folder is mounted read-only.
| Cover | Album and folder | Tracks | Cover from | Status |
|---|---|---|---|---|
| Hunting High and Low/Users/ola/Music/a-ha/Hunting High and Low | – | embedded in file | waiting | |
| Melody A.M./Users/ola/Music/Röyksopp/Melody A.M. | – | folder.jpg | waiting | |
| Kind of Blue/Users/ola/Music/Miles Davis/Kind of Blue | – | MusicBrainz | waiting | |
| Industrial Silence/Users/ola/Music/Madrugada/Industrial Silence | – | MusicBrainz | waiting | |
| Ompa til du dør/Volumes/USB500/Musikk/Kaizers Orchestra/Ompa til du dør | – | cover.jpg | waiting |
MyMP3Collection
1.0.0The sister project of MyRecordCollection, with the same design. A Flask web application with an SQLite database that runs in Docker Desktop at localhost:5070, in English and Norwegian, in light and dark mode.
- Scans
- MP3, M4A/M4P, FLAC, OGG, AIFF and WAV in as many root folders as you like, in your home folder and on external drives. New scans only read new and changed files, and mark files that have been moved or deleted.
- Organises
- Tracks with the same album tag in the same folder become one album.
CD1/CD2are merged, and albums with several artists become “Various artists”. Files without tags get names from the file name. - Fetches
- Covers from the image in the audio file,
cover.jpg/folder.jpgor the Cover Art Archive. Original year, genre and label from MusicBrainz, with Discogs as a fallback. - Plays
- Straight from the file where it is, with the player above the track list. Your own playlists can be sorted by drag and drop and exported as
.jsonor.m3u. - Exports
- Pick artists or albums and copy them to a USB drive as
Eksport_YYYY-MM-DD/Artist/Album (Year)/, withcover.jpg, a free space check and names that FAT32 and exFAT accept. - Leaves alone
- The tags in the files are never changed. Edits are stored in the app only, and survive new scans. Backups contain the database and covers, not the audio files.
How it works
From music folder to playlist in four steps:
- Choose the music folders
The folder from
.envis always included. Under Scan folders you add more with the folder picker, for example an external drive under/Volumes. - Scan
The scan runs in the background with progress. 18,000 tracks take a few minutes the first time and seconds after that, because unchanged files are skipped.
- Fetch info and covers
One click fetches for every album that lacks it. MusicBrainz allows one request per second, so it takes 2–3 seconds per album.
- Play, make lists, export
Add albums and tracks to playlists and export them as
.json. Copy a selection to the USB drive from Export.
| Situation | What to do |
|---|---|
| The Apple Music library | Set MUSIC_DIR to ~/Music/Music/Media.localized/Music and give Docker Desktop Full Disk Access in macOS. |
| Music on several drives | Add each drive as its own root folder. Folders that overlap one you already have are refused, so nothing is registered twice. |
| The car or the cabin | Tick the artists under Export, pick the USB drive and press Start export. A second export the same day becomes Eksport_…_2. |
| Wrong year or missing cover | Edit the album: search MusicBrainz or Discogs, or paste a link. The change is stored in the app, not in the file. |
| A playlist for another computer | Export .json here and Import playlist there. Tracks are found again by path, or by artist and title. |
| New Mac | scripts/pakk.sh --med-data and scripts/installer.sh. With the same folder structure every track is recognised. |
Installation
The app runs in Docker Desktop. The music folder is mounted read-only, the home folder too so you can add more folders, and /Volumes read-write for exporting to external drives.
Docker Desktop on a Mac
$ cd ~/Desktop/MyMP3Collection
$ bash scripts/installer.sh
# open http://localhost:5070 → Scan folders
The installer checks Docker, creates .env with a new SECRET_KEY, asks where your music is, builds and starts the container and asks whether a backup should be restored. Docker Desktop needs Full Disk Access to read the Apple Music folder.
Move the collection to a new computer
# on the old computer
$ bash scripts/pakk.sh --med-data
# on the new one, after unzipping
$ bash scripts/installer.sh
The package carries the database and covers, not the audio files. The app remembers tracks by their path inside the music folder, so if MUSIC_DIR points to a folder with the same structure, every track is recognised with its info, cover, edits and playlists.
If start-up fails with “operation not permitted”, or the scan finds 0 files, Docker Desktop lacks Full Disk Access: System Settings → Privacy & Security → Full Disk Access, then restart Docker Desktop. Without Docker: pip install -r requirements.txt and python app.py.
Screenshots
The interface is available in English and Norwegian, in light and dark mode, and works on mobile too. The library and covers in the screenshots were made for the demonstration. Click to see the full-size image.
Sister project: MyRecordCollection
The register for your LP and CD records, with the same design. Import purchase lists from the record fair, scan the barcodes on the backs and fetch release and cover from MusicBrainz and Discogs.