This isn’t a dedicated component but rather a script and you’ll need to follow this guide to install the component it requires first.
https://github.com/19379/foo-jscript-panel/wiki/Requirements-&-Installation
In the section about samples, there is one included in the complete folder named listenbrainz.txt so just paste the code from that in to a panel, read the note about adding your listenbrainz token and you’re good to go. There are a couple of other options to look at when clicking the button as well.
It obeys the same rules as last.fm so you have to listen to at least half the track - or 4 minutes - whichever comes sooner. All activity can be viewed via the foobar2000 Console (found on the view menu).
If present, the script submits various musicbrainz IDs contained within your files as documented towards the bottom of this page.
https://listenbrainz.readthedocs.io/en/production/dev/json.html#submission-json
Note that foobar itself does not support id3v2/UFID tags so it can’t submit those. As an alternative, you may tag your files with a recording ID in the musicbrainz track id or musicbrainz_trackid TXXX frames. Scroll down to post 20 for a quick Picard script that can copy values. I can’t post a direct link as the forum does this stupid preview box which I despise!!
Please make sure you have the latest version. You can check under File>Preferences>Components>JScript Panel or use Help>Check for updated components.
Changes:
v1.2.3.1
First version with listenbrainz script included
v1.2.3.2
Fix for musicbrainz track id not being submitted from m4a files. It’s also now supported as a TXXX frame for files tagged with id3v2 tags.
v1.2.3.3
Caching/retry support has been added but I’m very much a noob so report any issues if you encounter them! Also please report any code 400 errors you see in the Console as the script will need updating before these tracks can be submitted successfully.
v1.2.4
You can now toggle the script on/off via the button menu. (The bigger version bump is for other component/script changes, not just this!!)
Full changelog/download