M

Musicbrainz MCP Server

by cyanheads · io.github.cyanheads/musicbrainz-mcp-server

Search artists, releases, recordings, works, and labels; traverse relationships; resolve ISRC/ISWC/barcode; fetch cover art via MCP. STDIO or Streamable HTTP.

npm Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-cyanheads-musicbrainz-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/musicbrainz-mcp-server"
      ],
      "env": {
        "MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS": "true",
        "MUSICBRAINZ_CONTACT": "repo URL",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "COVER_ART_BASE_URL": "https://coverartarchive.org",
        "MCP_TRANSPORT_TYPE": "stdio",
        "MUSICBRAINZ_BASE_URL": "https://musicbrainz.org/ws/2",
        "MUSICBRAINZ_CACHE_TTL": "86400",
        "MUSICBRAINZ_TIMEOUT_MS": "30000",
        "MUSICBRAINZ_MAX_RETRIES": "3",
        "MUSICBRAINZ_RATE_LIMIT_RPS": "1"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-musicbrainz-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/musicbrainz-mcp-server"
      ],
      "env": {
        "MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS": "true",
        "MUSICBRAINZ_CONTACT": "repo URL",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "COVER_ART_BASE_URL": "https://coverartarchive.org",
        "MCP_TRANSPORT_TYPE": "stdio",
        "MUSICBRAINZ_BASE_URL": "https://musicbrainz.org/ws/2",
        "MUSICBRAINZ_CACHE_TTL": "86400",
        "MUSICBRAINZ_TIMEOUT_MS": "30000",
        "MUSICBRAINZ_MAX_RETRIES": "3",
        "MUSICBRAINZ_RATE_LIMIT_RPS": "1"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-musicbrainz-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/musicbrainz-mcp-server"
      ],
      "env": {
        "MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS": "true",
        "MUSICBRAINZ_CONTACT": "repo URL",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "COVER_ART_BASE_URL": "https://coverartarchive.org",
        "MCP_TRANSPORT_TYPE": "stdio",
        "MUSICBRAINZ_BASE_URL": "https://musicbrainz.org/ws/2",
        "MUSICBRAINZ_CACHE_TTL": "86400",
        "MUSICBRAINZ_TIMEOUT_MS": "30000",
        "MUSICBRAINZ_MAX_RETRIES": "3",
        "MUSICBRAINZ_RATE_LIMIT_RPS": "1"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-cyanheads-musicbrainz-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/musicbrainz-mcp-server"
      ],
      "env": {
        "MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS": "true",
        "MUSICBRAINZ_CONTACT": "repo URL",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "COVER_ART_BASE_URL": "https://coverartarchive.org",
        "MCP_TRANSPORT_TYPE": "stdio",
        "MUSICBRAINZ_BASE_URL": "https://musicbrainz.org/ws/2",
        "MUSICBRAINZ_CACHE_TTL": "86400",
        "MUSICBRAINZ_TIMEOUT_MS": "30000",
        "MUSICBRAINZ_MAX_RETRIES": "3",
        "MUSICBRAINZ_RATE_LIMIT_RPS": "1"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-cyanheads-musicbrainz-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/musicbrainz-mcp-server"
      ],
      "env": {
        "MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS": "true",
        "MUSICBRAINZ_CONTACT": "repo URL",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "COVER_ART_BASE_URL": "https://coverartarchive.org",
        "MCP_TRANSPORT_TYPE": "stdio",
        "MUSICBRAINZ_BASE_URL": "https://musicbrainz.org/ws/2",
        "MUSICBRAINZ_CACHE_TTL": "86400",
        "MUSICBRAINZ_TIMEOUT_MS": "30000",
        "MUSICBRAINZ_MAX_RETRIES": "3",
        "MUSICBRAINZ_RATE_LIMIT_RPS": "1"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-cyanheads-musicbrainz-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/musicbrainz-mcp-server"
      ],
      "env": {
        "MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS": "true",
        "MUSICBRAINZ_CONTACT": "repo URL",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "COVER_ART_BASE_URL": "https://coverartarchive.org",
        "MCP_TRANSPORT_TYPE": "stdio",
        "MUSICBRAINZ_BASE_URL": "https://musicbrainz.org/ws/2",
        "MUSICBRAINZ_CACHE_TTL": "86400",
        "MUSICBRAINZ_TIMEOUT_MS": "30000",
        "MUSICBRAINZ_MAX_RETRIES": "3",
        "MUSICBRAINZ_RATE_LIMIT_RPS": "1"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MUSICBRAINZ_CLAMP_OVERSIZED_LIMITS No Clamp search/browse page limits above 100 with a notice; off restores maximum-100 validation. Default: true
MUSICBRAINZ_CONTACT No Contact (email or URL) embedded in the mandatory descriptive User-Agent. Not start-blocking — a default is provided — but operators of a shared/hosted instance should set their own so MusicBrainz can reach them about traffic. Default: repo URL
MCP_LOG_LEVEL No Log level (RFC 5424). Default: info
OTEL_ENABLED No Enable OpenTelemetry instrumentation. Default: false
MCP_AUTH_MODE No Auth mode: none, jwt, or oauth. Default: none
MCP_HTTP_PORT No Port for the HTTP server. Default: 3010
COVER_ART_BASE_URL No Cover Art Archive base URL. Default: https://coverartarchive.org
MCP_TRANSPORT_TYPE No Transport: stdio or http. Default: stdio
MUSICBRAINZ_BASE_URL No MusicBrainz Web Service v2 base URL. Override for a private mirror or beta.musicbrainz.org. Default: https://musicbrainz.org/ws/2
MUSICBRAINZ_CACHE_TTL No Response cache TTL in seconds. MBIDs are stable, so data changes slowly. 0 disables caching. Default: 86400
MUSICBRAINZ_TIMEOUT_MS No Per-request HTTP timeout in milliseconds. Default: 30000
MUSICBRAINZ_MAX_RETRIES No Retry attempts for transient upstream failures (503 / 5xx / HTML error page). Default: 3
MUSICBRAINZ_RATE_LIMIT_RPS No Client-side request-per-second ceiling. ~1 is the documented limit; lower it for shared-hosting headroom. Default: 1

Similar servers