MusicBrainz MCP Server
The MusicBrainz MCP Server lets you search, browse, and retrieve detailed music metadata from the MusicBrainz database directly from your AI assistant.
Search
Search any MusicBrainz entity (artists, releases, recordings, labels, works, release groups, areas, events, instruments, places, series) using Lucene query syntax
Apply filters like artist country/type/gender, release label/barcode, label type/country, etc.
Perform typo-tolerant fuzzy searches with automatic exact-first fallback (e.g., 'Bjork' → 'Björk')
Browse & Discover
Browse entities linked to another (e.g., full artist discography, all editions of an album, a label's catalog) with paging support
Detailed Lookups
Artists: aliases, genres, ratings, URLs, discography
Releases: tracklist, durations, barcode, label, catalog number
Release groups: type, genres, and all specific editions
Recordings: ISRCs, genres, album appearances, recording-level relationships (studios, engineers, producers)
Works: composers, lyricists, ISWC
Labels, areas, events, instruments, places, series: comprehensive details for each
Relationships: band members, producers, Wikipedia links, and more for any entity
Identifier & Cover Art Lookups
Look up a release by UPC/EAN barcode
Translate a commercial ISRC (Spotify/Apple) to a MusicBrainz recording
Translate a publisher ISWC to a MusicBrainz work
Retrieve cover art URLs (front/back, thumbnails) from the Cover Art Archive for releases or release groups
The server includes built-in caching (24-hour TTL) to respect MusicBrainz rate limits and integrates with Claude Desktop, Cursor, Windsurf, and Kiro CLI via the MCP protocol.
Provides tools for querying the MusicBrainz music database, enabling users to search for artists, albums, recordings, labels, and works, as well as retrieve detailed discography information, tracklists, and cover art.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MusicBrainz MCP Server Find the tracklist and cover art for Radiohead's 'OK Computer'."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-musicbrainz
An MCP (Model Context Protocol) server that provides tools for querying the MusicBrainz music database. Search for artists, albums, recordings, labels, and more — directly from your AI assistant.
Tools
Tool | Description |
| Search for artists with filters (country, type, gender) |
| Search for releases with filters (title, artist, label, barcode, catalog number, format) |
| Search for recordings with filters (title, artist, release, ISRC) |
| Search for release groups (albums/EPs/singles) with filters (artist, type) |
| Search for record labels with filters (type, country) |
| Search for musical works/compositions with filters (artist, type) |
| Search for geographic areas with filters (type) |
| Search for music events with filters (artist, type) |
| Search for musical instruments with filters (type) |
| Search for places (venues, studios) with filters (type, area) |
| Search for series (release series, tours) with filters (type) |
| Typo-tolerant search with automatic exact-first fallback |
| Browse entities linked to another entity with paging and optional includes (e.g. all releases by an artist with label info) |
| Artist info with aliases, genres, ratings, URLs, and paged discography |
| Release (specific edition) tracklist, barcode, label, and catalog number |
| Release group (album concept) details with type, genres, and editions (with label, format, country) |
| Recording info with appearances, ISRCs, and genres |
| Tracklist with durations and performer credits (instruments, vocals) for a release group |
| Recording-level relationships (studios, engineers, producers, works) for all tracks on an album in one call |
| Musical work details with composers and lyricists |
| Geographic area info (country, city) with aliases |
| Label info with type, area, genres, and URLs |
| Event info (concert, festival) with date, time, aliases, and tags |
| Musical instrument info with type, description, aliases, and tags |
| Place info (venue, studio) with address, coordinates, aliases, and tags |
| Series info (release series, tour) with type, aliases, and tags |
| Relationships for any entity type (band members, producers, etc.) |
| Cover art image URLs from the Cover Art Archive |
| Cover art image URLs for a release group (album concept) |
| Translate a commercial ISRC (Spotify/Apple) to a MusicBrainz recording |
| Translate a publisher's ISWC to a MusicBrainz work (composition) |
Related MCP server: mcp-bookbrainz
Setup
Requires Python 3.12+ and uv.
git clone https://github.com/zas/mcp-musicbrainz.git
cd mcp-musicbrainz
uv syncUsage
Standalone
uv run mcp-musicbrainzClaude Desktop
Add to claude_desktop_config.json:
Kiro CLI
Add to ~/.kiro/settings/mcp.json:
Cursor
Add to .cursor/mcp.json in your project:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
All use the same configuration:
{
"mcpServers": {
"musicbrainz": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-musicbrainz", "mcp-musicbrainz"]
}
}
}Development
uv sync
uv run pytest tests/ -v
uv run ruff check .Pre-commit hooks
Install pre-commit hooks to automatically run linting and formatting on commit, and tests on push:
uv run pre-commit installCaching
Responses are cached locally in .musicbrainz_cache/ using diskcache with a 24-hour TTL to respect MusicBrainz rate limits.
License
Available Tools
17 toolsbrowse_entitiesA
Browse MusicBrainz entities linked to another entity, with paging. Useful for getting complete discographies, all releases on a label, etc.
Common combinations:
release-groups by artist: full discography
releases by release_group: all editions of an album
releases by label: label's catalog
recordings by artist: all recorded tracks
Args: entity_type: What to list (releases, recordings, release-groups, artists, labels, works, events, places) linked_type: The entity you're browsing by (artist, label, recording, release, release_group, work, area, collection) linked_id: MBID of the linked entity limit: Results per page (max 100) offset: Paging offset
Inputs: entity_type (required), linked_type (required), linked_id (required), limit, +1 more. Returns: result
get_album_tracksA
Fetches the tracklist with durations for a release group (album/EP/single). Takes a release_group_id (NOT a release_id). For a specific release's tracklist, use get_release_details instead.
Inputs: release_group_id (required). Returns: result
get_area_detailsC
Get details about a geographic area (country, city).
Inputs: area_id (required). Returns: result
get_artist_detailsA
Get comprehensive info about an artist including aliases, tags, genres, and their discography (Release Groups) with MBIDs. Shows first 10 release groups; use get_artist_discography for the full paged list.
Inputs: artist_id (required). Returns: result
get_artist_discographyA
Get a paged discography (release groups) for an artist. Use this for complete discographies; get_artist_details only shows the first 10. Args: artist_id: The MBID limit: Max results (default 25) offset: Paging offset
Inputs: artist_id (required), limit, offset. Returns: result
get_cover_art_urlsA
Get cover art image URLs for a specific release (edition) from the Cover Art Archive. Takes a release_id, NOT a release_group_id. Returns URLs for front/back covers and thumbnails.
Inputs: release_id (required). Returns: result
get_entity_relationshipsB
Get relationships for any entity type (e.g., band members, producers, recording studios, Wikipedia links). Args: entity_type: artist, release, release-group, recording, work, label, area, place, event, instrument, series entity_id: The MBID (must match the entity_type)
Inputs: entity_type (required), entity_id (required). Returns: result
get_label_detailsB
Get details about a record label including type, area, genres, and URLs.
Inputs: label_id (required). Returns: result
get_recording_detailsB
Get recording details: artist, duration, ISRCs, genres, and which releases (albums/singles) it appears on.
Inputs: recording_id (required). Returns: result
get_release_detailsA
Get tracklist with durations, barcode, and label for a specific release. Takes a release_id (a specific edition), NOT a release_group_id. To get tracks for an album concept, use get_album_tracks with a release_group_id.
Inputs: release_id (required). Returns: result
get_release_group_detailsA
Get details about a release group (the album/EP/single concept). A release group contains one or more releases (specific editions). Use get_release_details for a specific edition's tracklist and barcode.
Inputs: release_group_id (required). Returns: result
get_work_detailsB
Get details about a musical work (composers, lyricists, etc.).
Inputs: work_id (required). Returns: result
lookup_by_barcodeB
Finds a release by its UPC/EAN barcode.
Inputs: barcode (required). Returns: result
search_artistsA
Search for artists with specific filters. Prefer search_entities for simple name searches; use this when filtering by country, type, or gender. Args: name: Artist name country: ISO 3166-1 alpha-2 country code artist_type: 'person', 'group', 'orchestra', 'choir', 'character', 'other' gender: 'male', 'female', 'other', 'not applicable' limit: Max results (default 5)
Inputs: name (required), country, artist_type, gender, +1 more. Returns: result
search_entitiesA
Search for any MusicBrainz entity (artist, release, recording, label, work, release-group, area, event, instrument, place, series). Supports Lucene syntax. Example queries:
'artist:Nirvana AND country:US'
'release:Nevermind'
'recording:"Smells Like Teen Spirit"' PRIMARY DATA SOURCE. Search for artists, releases, or recordings. If an exact search (e.g., 'artist:Name') returns 0 results, try a broader search with just the name string. If still 0 results, use search_entities_fuzzy for typo-tolerant matching.
Entity hierarchy (IDs are NOT interchangeable):
artist: a person or group
release-group: an "album" concept (e.g. "Nevermind") — has type (Album, EP, Single)
release: a specific edition of a release-group (e.g. US CD vs JP vinyl)
a release contains one or more media (disc 1, disc 2, etc.)
each medium contains tracks (with position and optional title override)
recording: a unique audio track (a song). Tracks on a release point to recordings.
work: an abstract composition (lyrics + music), independent of any recording
label: a record label that publishes releases (not release-groups)
Every ID returned is an MBID (UUID) bound to a specific entity type. An MBID from a release-group CANNOT be used as a release_id, and vice versa. Always track which entity type an ID belongs to and pass it to the matching tool.
Inputs: entity_type (required), query (required), limit. Returns: result
search_entities_fuzzyA
Typo-tolerant fuzzy search. Tries an exact search first, then falls back to fuzzy matching if no results are found. Supports 'artist', 'release', 'recording', 'label', and 'work'. Use when the query may contain misspellings (e.g., 'Bjork' -> 'Björk').
Inputs: entity_type (required), query (required), limit. Returns: result
search_releasesA
Search for releases with specific filters. Prefer search_entities for simple title searches; use this when filtering by artist, label, or barcode. Args: title: Release title artist: Artist name label: Label name barcode: UPC/EAN barcode limit: Max results (default 5)
Inputs: title, artist, label, barcode, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have distinct purposes, but there is some overlap between search_entities, search_artists, and search_releases that could cause confusion. The descriptions help clarify when to use each, but an agent might misselect between them for simple searches. Other tools like get_album_tracks vs get_release_details are well-differentiated with clear guidance.
Tool names follow a highly consistent verb_noun pattern throughout, such as browse_entities, get_artist_details, search_artists, and lookup_by_barcode. All tools use snake_case with clear, descriptive names, making the set predictable and easy to navigate.
With 17 tools, the count is slightly high but reasonable for the comprehensive MusicBrainz domain, covering entities like artists, releases, recordings, and labels. It includes essential operations like search, get details, and browse, though it might feel a bit heavy compared to simpler servers.
The tool set provides complete coverage for the MusicBrainz domain, including search, retrieval, and browsing across all entity types (artists, releases, recordings, labels, works, areas). It handles CRUD-like operations where applicable (e.g., get details, search) and includes niche tools like get_cover_art_urls and lookup_by_barcode, leaving no obvious gaps for agent workflows.
Related MCP Connectors
Search MusicBrainz artists, releases, works, labels; resolve ISRC/ISWC/barcode; fetch cover art.
Music industry tools for AI agents: artist research, catalogs, release plans and content.
CWI Discovery Engine is the sync-licensing discovery layer for AI agents: natural-language brief in, licensable tracks with verified ISRCs and one-signature clearance out. 29 MCP tools (find_tracks_for_brief leads). For general ISRC metadata lookup, we defer to MusicBrainz — we are the licensable-track discovery layer, not a general database.
Search, analyze, and discover commercially released music using sonic intelligence.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables music search, metadata retrieval, local audio analysis (tempo, key, energy), recommendations, song recognition, and classical work resolution via Spotify, Last.fm, AudD, MusicBrainz, and Songkick APIs.-
- AlicenseNot gradedqualityCmaintenanceProvides access to BookBrainz open book metadata, enabling search, lookup, and browsing of works, editions, authors, publishers, and series via natural language or direct tool calls.64 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables searching music artists and releases, and retrieving artist biographies, discographies, release track listings, credits, and metadata through the MusicBrainz API.308 npmMIT
- AlicenseAqualityBmaintenanceEnables AI assistants to discover music on Bandcamp by searching, browsing tags, and inspecting albums, artists, labels, and tracks using live public metadata, with no account or API key required.555 npmMIT