Skip to main content
Glama

mcp-deezer

Unofficial Deezer MCP server for AI agents — search music, manage playlists and favorites, and reach your personalized discovery through 21 tools.

PyPI CI Python 3.12+ License: MIT

Quick start · Tools · Configuration · Troubleshooting

Highlights

  • 21 tools, fully typed — every tool ships an outputSchema and MCP annotations, so clients can validate results and gate the five write tools.

  • One response envelope — every list answers {items, count, total, next_cursor}; paging is a cursor argument, not a guess.

  • Safe by default — DEEZER_READ_ONLY=1 removes the write tools from the catalog entirely.

  • Built for real sessions — retries with backoff on 429/5xx, actionable errors, and the ARL is redacted from every message.

Related MCP server: mcp-spotify

Why this exists

Deezer closed their developer portal to new applications in 2025. mcp-deezer drives Deezer's internal Pipe GraphQL API with your own authenticated browser session, so there is no developer app to register and no API key to request.

MCP client  ── stdio / JSON-RPC ──▶  mcp-deezer  ── Pipe GraphQL (ARL) ──▶  Deezer
NOTE

The API is unofficial and can change without notice. This project is not affiliated with or endorsed by Deezer.

Quick start

1 · Install

uvx mcp-deezer          # no persistent install
pipx install mcp-deezer # or a global command

This step is manual, in a browser:

  1. Go to https://deezer.com and log in.

  2. Press F12 → Application → Cookies → deezer.com.

  3. Copy the value of the cookie named arl (~192 hex characters).

CAUTION

The ARL is a session credential: anyone who has it can act as your account. Never commit it, paste it in an issue, or share it. PreferDEEZER_ARL_FILE over a raw value in a client configuration file. See SECURITY.md.

3 · Register the server

Claude Desktop — claude_desktop_config.json:

{
  "mcpServers": {
    "deezer": {
      "command": "uvx",
      "args": ["mcp-deezer"],
      "env": { "DEEZER_ARL": "PASTE_ARL_HERE" }
    }
  }
}

Claude Code:

claude mcp add deezer -e DEEZER_ARL=PASTE_ARL_HERE -- uvx mcp-deezer

Cursor (.cursor/mcp.json) and VS Code / Copilot (.vscode/mcp.json) use the same command / args / env shape as Claude Desktop; VS Code takes the top-level key servers.

Recommended for anything automated — keep the cookie out of the config file:

"env": { "DEEZER_ARL_FILE": "/home/you/.config/deezer/arl", "DEEZER_READ_ONLY": "1" }

4 · Verify

Restart the client and call get_me. It answers with your numeric Deezer user id:

get_me → { "id": "1234567890" }

An error naming DEEZER_ARL means the cookie is missing; an error asking you to refresh it means the session expired.

Configuration

Variable

Default

Meaning

DEEZER_ARL

—

ARL cookie value (required unless DEEZER_ARL_FILE is set)

DEEZER_ARL_FILE

—

Path to a file containing the ARL (read at startup, chmod 600 recommended)

DEEZER_READ_ONLY

0

1 hides and refuses the 5 write tools

DEEZER_TIMEOUT

30

Per-request timeout in seconds (1–300)

DEEZER_LOG_LEVEL

WARNING

CRITICAL, ERROR, WARNING, INFO or DEBUG (logs go to stderr)

Tools

Every tool is annotated (readOnlyHint, destructiveHint, idempotentHint), validates its arguments, and returns a structured object.

Read

Tool

Purpose

get_me

Your Deezer user id

search

Search tracks/albums/artists/playlists, one category at a time with kind

get_track

Track details; lyrics only with include_lyrics

get_lyrics

Lyrics text and credits for one track

get_artist

Artist + optional top tracks, albums and bio

get_album

Album + tracklist (pageable)

get_playlist

Playlist + tracks (pageable)

get_charts

Country or worldwide charts, one category with kind

get_similar_tracks

Tracks similar to a track

get_similar_artists

Artists related to an artist

get_flow

Your personal Flow

get_recommendations

Recommended playlists, new releases, artists, hot tracks

get_recently_played

Recently played containers (album, playlist, artist, Flow)

get_user_charts

Your top tracks, artists or albums

get_favorites

Your liked tracks, albums, artists or playlists (kind)

get_playlists

Your playlists

Write

Tool

Purpose

Notes

set_favorite

Like/unlike a track, album, artist or playlist

idempotent

edit_playlist_tracks

Add or remove tracks (batched by 50)

reports what Deezer applied and rejected

create_playlist

Create a playlist, optionally with tracks

one call instead of create + add

update_playlist

Rename, change description, privacy or collaborative flag

delete_playlist

Permanently delete a playlist

requires confirm: true

Response shape

Every list tool answers with the same object, so clients can validate it and agents can page it:

{
  "items": [{ "id": "3135556", "title": "One More Time", "artist": "Daft Punk", "album": "Discovery", "duration": 320 }],
  "count": 1,
  "total": null,
  "next_cursor": null
}
  • Pass next_cursor back as the cursor argument to page.

  • Detail tools return a flat object (get_track, get_artist, get_playlist…).

  • Failures are isError results with an actionable message: how to refresh the ARL, wait out a rate limit, or fix the arguments.

  • Lyrics, long biographies and track links are opt-in or truncated on purpose: they dominate token cost.

1.x

2.x

get_favorite_tracks / _albums / _artists / _playlists

get_favorites with kind

add_track_to_favorite, remove_track_from_favorite, … (6 tools)

set_favorite with kind + action

get_user_playlists

get_playlists

add_tracks_to_playlist / remove_tracks_from_playlist

edit_playlist_tracks with action

get_track (always included lyrics)

get_track + include_lyrics, or get_lyrics

list tools returning an array

every tool returns an object (MCP requirement)

delete_playlist without confirmation

delete_playlist requires confirm: true

Troubleshooting

Symptom

Cause and fix

DEEZER_ARL is not set

Set DEEZER_ARL or DEEZER_ARL_FILE, then restart the MCP client

Deezer session was rejected (ARL expired…)

Log out/in on deezer.com, copy the new arl, restart

Deezer rate limit reached

Several calls at once; wait a few seconds (reads retry automatically)

Empty items on a favorites/charts call

The account has no data for that category, or the country code has no chart

A write returns success: false with rejected ids

Deezer refused those tracks (unavailable in your country, or not your playlist)

A write returns 403/is_not_allowed

The playlist does not belong to the account

Nothing appears in the client

Check the MCP log: the server writes to stderr, never to stdout

Development

git clone https://github.com/Benitoow/mcp-deezer.git && cd mcp-deezer
uv venv && uv pip install -e ".[dev]"

ruff check . && ruff format --check .   # lint + format
mypy                                    # strict typing
pytest --cov                            # 120+ tests, no Deezer account required
python scripts/smoke.py                 # real stdio handshake (+ live calls if DEEZER_ARL is set)

Layout: catalog.py (schemas, annotations, registry), tools_read.py / tools_write.py (one handler per tool), formats.py (compact projections), client.py (client lifecycle + retries), errors.py (redaction, actionable messages), server.py (MCP wiring).

Adding a tool is one decorated function: the schema, the annotations, the output schema and the handler live together, so the advertised surface cannot drift from the implementation.

Security

The ARL is never written to disk by the server and is redacted from every error message. DEEZER_READ_ONLY=1 removes the write tools entirely, which is the recommended setting for unattended agents. See SECURITY.md.


MIT licensed · Not affiliated with, or endorsed by, Deezer

Changelog · Contributing · Security

Available Tools

21 tools
create_playlistCreate a playlistB

Create a playlist, optionally with initial tracks (one call).

Inputs: title (required), private, track_ids, description, +1 more. Returns: object

delete_playlistDelete a playlistA
Destructive

Permanently delete a playlist. Irreversible: requires confirm: true, after the user agreed.

Inputs: confirm (required), playlist_id (required). Returns: object

edit_playlist_tracksAdd / remove tracks in a playlistA
Destructive

Add or remove tracks in one of your playlists; batched, and reports what Deezer applied versus rejected.

Inputs: track_ids (required), playlist_id (required), action. Returns: object

get_albumGet an albumB
Read-onlyIdempotent

Album details with its tracklist (pageable with cursor).

Inputs: album_id (required), limit, cursor. Returns: object

get_artistGet an artistB
Read-onlyIdempotent

Artist details with optional top tracks, albums and bio; each section pages with its own cursor.

Inputs: artist_id (required), limit, include_bio, albums_cursor, +3 more. Returns: object

get_chartsDeezer chartsB
Read-onlyIdempotent

Public charts for a country, or worldwide without country_code.

Inputs: kind, limit, country_code. Returns: count, items

get_favoritesYour favoritesA
Read-onlyIdempotent

Your liked tracks, albums, artists or playlists, one kind per call. Page with cursor (a previous next_cursor).

Inputs: kind, limit, cursor. Returns: count, items

get_flowPersonal FlowC
Read-onlyIdempotent

Your personal Flow (auto-generated mix).

Inputs: limit. Returns: count, items

get_lyricsGet track lyricsA
Read-onlyIdempotent

Lyrics text and credits for one track. Fails cleanly when Deezer has no lyrics.

Inputs: track_id (required). Returns: object

get_meWho am IA
Read-onlyIdempotent

Your Deezer user id. The Pipe API exposes only id here; use get_playlists / get_favorites for account content.

Inputs: no named parameters. Returns: object

get_playlistGet a playlistB
Read-onlyIdempotent

Playlist details with its tracks (pageable with cursor).

Inputs: playlist_id (required), limit, cursor. Returns: object

get_playlistsYour playlistsB
Read-onlyIdempotent

All playlists of the account, pageable with cursor.

Inputs: limit, cursor. Returns: count, items

get_recently_playedRecently playedA
Read-onlyIdempotent

What you played recently: Deezer stores the container (album, playlist, artist, Flow), not the track. Use get_album/get_playlist for its tracks.

Inputs: limit. Returns: count, items

get_recommendationsPersonal recommendationsC
Read-onlyIdempotent

Your personalized home: recommended playlists, artist playlists, new releases, artists and hot tracks.

Inputs: limit. Returns: object

get_similar_artistsArtists similar to one artistC
Read-onlyIdempotent

Artists related to a given artist.

Inputs: artist_id (required), limit. Returns: count, items

get_similar_tracksTracks similar to one trackC
Read-onlyIdempotent

Tracks Deezer considers similar to a given track.

Inputs: track_id (required), limit. Returns: count, items

get_trackGet a trackA
Read-onlyIdempotent

Track details (ISRC, release date, popularity). Lyrics are excluded by default: set include_lyrics or call get_lyrics.

Inputs: track_id (required), include_lyrics. Returns: object

get_user_chartsYour top tracks/artists/albumsC
Read-onlyIdempotent

Your personal charts for one category.

Inputs: kind, limit. Returns: count, items

set_favoriteLike / unlike somethingC
Idempotent

Like or unlike a track, album, artist or playlist.

Inputs: id (required), kind (required), action. Returns: object

update_playlistUpdate a playlistA
Idempotent

Rename a playlist or change its description, privacy or collaborative flag.

Inputs: playlist_id (required), title, private, description, +1 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 21 tools

    Disambiguation4/5

    Each tool maps to a distinct resource or action (track vs album vs artist vs playlist vs lyrics vs charts), and the descriptions explicitly resolve the riskiest overlaps, e.g. get_track excluding lyrics by default versus get_lyrics, and get_charts versus get_user_charts. The main soft spots are the family of discovery tools (get_flow, get_recommendations, get_user_charts, get_charts) which could still be confused at a glance, and get_favorites versus get_playlists for account content.

    Naming Consistency4/5

    Almost everything follows a snake_case verb_noun pattern with a coherent verb vocabulary (get_*, create_*, update_*, delete_*, set_favorite, edit_playlist_tracks). The exceptions are the bare `search` and the slightly irregular `edit_playlist_tracks` (verb_noun_noun), which break the pattern mildly but remain readable.

    Tool Count4/5

    21 tools is on the high side of comfortable, but the surface is read-heavy by nature (separate getters for track, album, artist, playlist, lyrics, charts, favorites, flow, recommendations) and no tool looks redundant or padded. The playlist mutation group (create/update/delete/edit tracks) is tight and each entry earns its place.

    Completeness4/5

    Playlist lifecycle is fully covered (create, update metadata, edit tracks, delete with confirmation) and the read side covers search, catalog entities, personal library, charts, and recommendations. Gaps are minor: no explicit artist/library follow-unfollow beyond generic set_favorite, no paging helper or batch multi-kind favorites, and no update/delete for anything beyond playlists (acceptable since Deezer's catalog is read-only).

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables access to the Deezer 1 API through MCP protocol. Requires API key authentication and supports integration with Cursor and Claude Desktop for interacting with Deezer services.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Spotify that enables playlist building and music discovery through 19 tools, allowing LLM agents to search tracks/artists/albums, manage playlists, control playback, and access personal listening data.
      20
      22 PyPI
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      MCP server for searching and downloading music from the Soulseek peer-to-peer network via slskd. Enables AI assistants to discover and download music directly.
      5
      -
    • A
      license
      A
      quality
      B
      maintenance
      MCP server to control the Roon music player, enabling AI agents to search music, manage playback, and adjust volume across zones.
      9
      13 npm
      2
      MIT