Skip to main content
Glama
MusicBrainz MCP Server

MusicBrainz MCP Server

by zas

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_artists

Search for artists with filters (country, type, gender)

search_releases

Search for releases with filters (title, artist, label, barcode, catalog number, format)

search_recordings

Search for recordings with filters (title, artist, release, ISRC)

search_release_groups

Search for release groups (albums/EPs/singles) with filters (artist, type)

search_labels

Search for record labels with filters (type, country)

search_works

Search for musical works/compositions with filters (artist, type)

search_areas

Search for geographic areas with filters (type)

search_events

Search for music events with filters (artist, type)

search_instruments

Search for musical instruments with filters (type)

search_places

Search for places (venues, studios) with filters (type, area)

search_series

Search for series (release series, tours) with filters (type)

search_entities_fuzzy

Typo-tolerant search with automatic exact-first fallback

browse_entities

Browse entities linked to another entity with paging and optional includes (e.g. all releases by an artist with label info)

get_artist_details

Artist info with aliases, genres, ratings, URLs, and paged discography

get_release_details

Release (specific edition) tracklist, barcode, label, and catalog number

get_release_group_details

Release group (album concept) details with type, genres, and editions (with label, format, country)

get_recording_details

Recording info with appearances, ISRCs, and genres

get_album_tracks

Tracklist with durations and performer credits (instruments, vocals) for a release group

get_album_recording_rels

Recording-level relationships (studios, engineers, producers, works) for all tracks on an album in one call

get_work_details

Musical work details with composers and lyricists

get_area_details

Geographic area info (country, city) with aliases

get_label_details

Label info with type, area, genres, and URLs

get_event_details

Event info (concert, festival) with date, time, aliases, and tags

get_instrument_details

Musical instrument info with type, description, aliases, and tags

get_place_details

Place info (venue, studio) with address, coordinates, aliases, and tags

get_series_details

Series info (release series, tour) with type, aliases, and tags

get_entity_relationships

Relationships for any entity type (band members, producers, etc.)

get_cover_art_urls

Cover art image URLs from the Cover Art Archive

get_release_group_cover_art

Cover art image URLs for a release group (album concept)

lookup_recording_by_isrc

Translate a commercial ISRC (Spotify/Apple) to a MusicBrainz recording

lookup_work_by_iswc

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 sync

Usage

Standalone

uv run mcp-musicbrainz

Claude 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 install

Caching

Responses are cached locally in .musicbrainz_cache/ using diskcache with a 24-hour TTL to respect MusicBrainz rate limits.

License

GPL-3.0-or-later

Available Tools

17 tools
browse_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

    A3.8/5.0

    Scored across 17 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness5/5

    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

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides 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 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching music artists and releases, and retrieving artist biographies, discographies, release track listings, credits, and metadata through the MusicBrainz API.
      308 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      5
      55 npm
      MIT