···63636464</details>
65656666+<DetailsAdmo type="tip" summary="Use Plex metadata with Musicbrainz for better scrobbling">
6767+6868+<h3>Matching With Plex</h3>
6969+7070+In Plex, if the **Plex Music** Agent is set on a Music Library then Plex attempts to match your music with Musicbrainz when it is first imported.
7171+7272+<img src={require('/img/plex_music_agent.jpg').default} height="400"/>
7373+7474+Plex uses ID3/metdata tags to match or falls back to matching based on file name and folder names. If it cannot find a match it can be fixed through a **Fix Match** option in the album/track context menu. See [plex documentation for more information](https://support.plex.tv/articles/correcting-your-music-content-matches/).
7575+7676+You can verify if an Item has been matched by:
7777+7878+* Clicking on the Item context menu (...)
7979+* Get Info
8080+* View XML
8181+8282+If a node like this is present then it has been matched: `<Guid id="mbid://4e631558-13b0..."/>`
8383+8484+<h3>Using Musicbrainz With Multi-Scrobbler</h3>
8585+8686+The MBID from the above `<Guid>` node is a [Track](https://musicbrainz.org/doc/Track), a special type of ID that specifically identifies a song on a specific album. If this is present then Multi-scrobbler can use it to gaurantee your scrobble, and all its metadata, is matched 1:1 with what is in your Plex library when using the [Musicbrainz Stage](/configuration/transforms/musicbrainz) to enrich your scrobble.
8787+8888+To configure MS to use Musicbrainz with your Plex metadata use one of the methods below:
8989+9090+<Tabs groupId="configType" queryString>
9191+ <TabItem value="env" label="ENV">
9292+ Add to your multi-scrobbler docker compose file `environment` section for [Musicbrainz ENV Configuration](/configuration/transforms/musicbrainz#env-configuration):
9393+ ```yaml
9494+ # a real email that Musicbrainz can use to contact you in case of issues
9595+ - MB_CONTACT=myEmail@myEmailProvider.com
9696+ - MB_PRESETS=id,default
9797+ - PLEX_TRANSFORMS=musicbrainz
9898+ ```
9999+ </TabItem>
100100+101101+ <TabItem value="file" label="File">
102102+ Your [AIO Config](/configuration?configType=aio#configuration-types):
103103+104104+ ```json5 title="config.json"
105105+ {
106106+ // ...
107107+ "transformers": [
108108+ {
109109+ "type": "musicbrainz",
110110+ "name": "MyMB",
111111+ "data": {
112112+ "apis": [
113113+ {
114114+ // a real email that Musicbrainz can use to contact you in case of issues
115115+ "contact": "myEmail@myEmailProvider.com"
116116+ }
117117+ ]
118118+ }
119119+ }
120120+ ]
121121+ }
122122+ ```
123123+124124+ In your [File Config](/configuration?configType=file#configuration-types):
125125+126126+ ```json5 title="plex.json"
127127+ [
128128+ {
129129+ "name": "MyPlex",
130130+ "data": { /* ... */},
131131+ "options": {
132132+ "playTransform": {
133133+ "preCompare": [
134134+ {
135135+ "type": "musicbrainz",
136136+ "name": "MyMB"
137137+ "searchOrder": ["mbidrecording", "basicOrIds", "basic"]
138138+ }
139139+ ]
140140+ }
141141+ }
142142+ }
143143+ ]
144144+ ```
145145+ </TabItem>
146146+ <TabItem value="aio" label="File AIO">
147147+ Your [AIO Config](/configuration?configType=aio#configuration-types):
148148+149149+ ```json5 title="config.json"
150150+ {
151151+ // ...
152152+ "transformers": [
153153+ {
154154+ "type": "musicbrainz",
155155+ "name": "MyMB",
156156+ "data": {
157157+ "apis": [
158158+ {
159159+ // a real email that Musicbrainz can use to contact you in case of issues
160160+ "contact": "myEmail@myEmailProvider.com"
161161+ }
162162+ ]
163163+ }
164164+ }
165165+ ]
166166+ // ...
167167+ "sources": [
168168+ // ...
169169+ {
170170+ "name": "MyPlex",
171171+ "type": "plex",
172172+ "data": { /* ... */},
173173+ "options": {
174174+ "playTransform": {
175175+ "preCompare": [
176176+ {
177177+ "type": "musicbrainz",
178178+ "name": "MyMB",
179179+ "searchOrder": ["mbidrecording", "basicOrIds", "basic"]
180180+ }
181181+ ]
182182+ }
183183+ }
184184+ }
185185+ ]
186186+ }
187187+ ```
188188+ </TabItem>
189189+ </Tabs>
190190+</DetailsAdmo>
191191+192192+193193+66194#### Configuration
6719568196<Config config="PlexApiSourceConfig" fileContent={PlexConfig} name="plex">