Skip to main content
Glama
TIDAL MCP Server

TIDAL MCP Server

by keenanbb

TIDAL MCP Server

A traditional MCP (Model Context Protocol) server for TIDAL music streaming service. Clean API wrapper following official MCP best practices - thin wrappers around tidalapi methods with no custom business logic.

Features

27 Tools

Category

Tool

Description

Auth

login

OAuth browser authentication

Search

search_tracks

Find tracks by name/artist

search_albums

Find albums

search_artists

Find artists

search_playlists

Find public playlists

Favorites

get_favorite_tracks

Get liked tracks

get_favorite_albums

Get saved albums

get_favorite_artists

Get followed artists

add_track_to_favorites

Like a track

remove_track_from_favorites

Unlike a track

remove_album_from_favorites

Remove saved album

Playlists

get_user_playlists

List your playlists

get_playlist_tracks

Get tracks from playlist

create_playlist

Create new playlist

add_tracks_to_playlist

Add tracks to playlist

remove_tracks_from_playlist

Remove tracks from playlist

update_playlist

Update name/description

delete_playlist

Delete a playlist

Albums

get_album_tracks

Get all album tracks

get_album

Get album details

get_similar_albums

Find similar albums

Artists

get_artist

Get artist details with bio

get_artist_albums

Get artist discography

get_artist_top_tracks

Get popular tracks

get_similar_artists

Find similar artists

Recommendations

get_track_radio

Similar tracks to seed

get_artist_radio

Tracks based on artist style

Related MCP server: Music MCP Server

Installation

Requirements

  • Python 3.10+

  • uv (recommended) or pip

Setup

# Clone and enter directory
cd tidal-mcp

# Install with uv
uv sync

# Or with pip
pip install -e .

Usage

With Claude Desktop

Add to your Claude Desktop config:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "tidal": {
      "command": "/path/to/uv",
      "args": [
        "--directory", "/path/to/tidal-mcp",
        "run", "tidal-mcp"
      ]
    }
  }
}

Note: Use full path to uv (find with which uv)

With MCP Inspector

npx @modelcontextprotocol/inspector uv run tidal-mcp

Direct Usage

uv run tidal-mcp

Authentication

python authenticate.py

Example Workflows

Create a Playlist from Search Results

  1. login - Authenticate with TIDAL

  2. search_tracks("Radiohead Creep") - Find tracks

  3. create_playlist("My Playlist", "A collection of favorites") - Create playlist

  4. add_tracks_to_playlist(playlist_id, [track_ids...]) - Add tracks

Browse and Add Album to Playlist

  1. search_albums("OK Computer") - Find album

  2. get_album_tracks(album_id) - Get all tracks

  3. add_tracks_to_playlist(playlist_id, [all_track_ids...]) - Add to playlist

Manage Existing Playlist

  1. get_user_playlists() - List your playlists

  2. get_playlist_tracks(playlist_id) - View tracks

  3. remove_tracks_from_playlist(playlist_id, track_ids=[...]) - Remove tracks

  4. update_playlist(playlist_id, name="New Name") - Rename

Development

Project Structure

tidal-mcp/
├── pyproject.toml           # Project configuration
├── README.md                 # This file
├── CLAUDE.md                # AI development guidance
└── src/
    └── tidal_mcp/
        ├── __init__.py      # Package init
        ├── models.py        # Pydantic response models
        └── server.py        # MCP server with 27 tools

Dependencies

  • fastmcp>=2.12.0 - MCP protocol framework

  • tidalapi>=0.8.6 - TIDAL API client (v0.8.6+ required for working OAuth)

  • anyio>=4.0.0 - Async utilities

Testing

# Test with MCP Inspector
npx @modelcontextprotocol/inspector uv run tidal-mcp

# Quick protocol test
echo '{"jsonrpc": "2.0", "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {}, "clientInfo": {"name": "test", "version": "1.0.0"}}, "id": 1}' | uv run tidal-mcp

Troubleshooting

Authentication Fails

  • Ensure tidalapi >= 0.8.6 (older versions have invalid OAuth credentials)

  • Delete .tidal-sessions/ and re-authenticate

Search Returns No Results

  • Simplify query (single artist or song name)

  • Check spelling

Port Conflicts (Inspector)

pkill -f "inspector|tidal-mcp"

Future Roadmap

The server currently has 27 tools covering core TIDAL functionality. Potential future additions:

  • Remote Server: HTTP/SSE transport for Claude.ai and mobile apps (see docs/REMOTE-DEPLOYMENT.md)

  • Advanced Search: ISRC/UPC lookup for precise track/album identification

  • Playback: Queue management and now-playing info (requires TIDAL Connect)

  • Social: Following users, collaborative playlists

License

MIT

Credits

Built with FastMCP and tidalapi.

Available Tools

27 tools
add_tracks_to_playlistA

Add tracks to an existing playlist.

Args: playlist_id: ID of the playlist track_ids: List of track IDs to add

Returns: Success status and number of tracks added

Inputs: playlist_id (required), track_ids (required). Returns: Result of adding tracks to a playlist.

add_track_to_favoritesB

Add a track to user's favorites (like a track).

Args: track_id: ID of the track to add to favorites

Returns: Success status and confirmation

Inputs: track_id (required). Returns: Result of adding an item to favorites.

create_playlistA

Create a new playlist in user's TIDAL account.

Args: name: Name for the playlist description: Optional description

Returns: Created playlist details including ID and URL

Inputs: name (required), description. Returns: Result of creating a new playlist.

delete_playlistC

Delete a playlist from user's account.

Args: playlist_id: ID of the playlist to delete

Returns: Confirmation of deletion

Inputs: playlist_id (required). Returns: Result of deleting a playlist.

get_albumB

Get detailed information about an album.

Args: album_id: ID of the album

Returns: Album details including title, artist, release date, and track count

Inputs: album_id (required). Returns: Detailed album information.

get_album_tracksB

Get all tracks from a specific album.

Args: album_id: ID of the album

Returns: List of tracks in the album with album metadata

Inputs: album_id (required). Returns: Tracks from a specific album.

get_artistB

Get detailed information about an artist including biography.

Args: artist_id: ID of the artist

Returns: Artist details including name, URL, and biography

Inputs: artist_id (required). Returns: Detailed artist information including biography.

get_artist_albumsA

Get albums by an artist (discography).

Args: artist_id: ID of the artist limit: Maximum albums to return (default: 20, max: 50)

Returns: List of albums by the artist

Inputs: artist_id (required), limit. Returns: List of albums with metadata.

get_artist_radioA

Get tracks similar to an artist's style (artist radio).

This returns TIDAL's native recommendations based on the specified artist, useful for discovering music in a similar style.

Args: artist_id: ID of the seed artist limit: Maximum tracks to return (default: 20, max: 100)

Returns: List of similar tracks with seed artist info

Inputs: artist_id (required), limit. Returns: Radio/recommendation tracks based on a seed track or artist.

get_artist_top_tracksA

Get an artist's most popular tracks.

Args: artist_id: ID of the artist limit: Maximum tracks to return (default: 10, max: 50)

Returns: List of the artist's top tracks

Inputs: artist_id (required), limit. Returns: List of tracks with metadata.

get_favorite_albumsB

Get user's favorite (saved) albums from TIDAL.

Args: limit: Maximum albums to retrieve (default: 50)

Returns: List of favorite albums

Inputs: limit. Returns: List of albums with metadata.

get_favorite_artistsB

Get user's favorite (followed) artists from TIDAL.

Args: limit: Maximum artists to retrieve (default: 50)

Returns: List of followed artists

Inputs: limit. Returns: List of artists with metadata.

get_favorite_tracksB

Get user's favorite (liked) tracks from TIDAL.

Args: limit: Maximum tracks to retrieve (default: 50)

Returns: List of favorite tracks

Inputs: limit. Returns: List of tracks with metadata.

get_playlist_tracksC

Get tracks from a specific playlist.

Args: playlist_id: ID of the playlist limit: Maximum tracks to return (default: 100)

Returns: List of tracks in the playlist

Inputs: playlist_id (required), limit. Returns: Tracks from a specific playlist.

get_similar_albumsB

Get albums similar to the specified album.

Args: album_id: ID of the seed album limit: Maximum albums to return (default: 10, max: 50)

Returns: List of similar albums

Inputs: album_id (required), limit. Returns: List of albums with metadata.

get_similar_artistsB

Get artists similar to the specified artist.

Args: artist_id: ID of the seed artist limit: Maximum artists to return (default: 10, max: 50)

Returns: List of similar artists

Inputs: artist_id (required), limit. Returns: List of artists with metadata.

get_track_radioA

Get tracks similar to a seed track (track radio).

This returns TIDAL's native recommendations based on the specified track, useful for music discovery and creating "similar music" playlists.

Args: track_id: ID of the seed track limit: Maximum tracks to return (default: 20, max: 100)

Returns: List of similar tracks with seed track info

Inputs: track_id (required), limit. Returns: Radio/recommendation tracks based on a seed track or artist.

get_user_playlistsB

Get list of user's own playlists from TIDAL.

Args: limit: Maximum playlists to return (default: 50)

Returns: List of user's playlists

Inputs: limit. Returns: List of playlists with metadata.

loginAuthenticate with TIDALA

Authenticate with TIDAL using OAuth browser flow. Opens browser automatically for secure login. Session is persisted for future use.

Inputs: no named parameters. Returns: Result of authentication attempt.

remove_album_from_favoritesC

Remove an album from user's favorites.

Args: album_id: ID of the album to remove from favorites

Returns: Success status and confirmation

Inputs: album_id (required). Returns: Result of removing an item from favorites.

remove_track_from_favoritesA

Remove a track from user's favorites (unlike a track).

Args: track_id: ID of the track to remove from favorites

Returns: Success status and confirmation

Inputs: track_id (required). Returns: Result of removing an item from favorites.

remove_tracks_from_playlistA

Remove tracks from a playlist by track ID or position index.

Args: playlist_id: ID of the playlist track_ids: List of track IDs to remove (optional) indices: List of position indices to remove, 0-based (optional) Note: Provide either track_ids OR indices, not both

Returns: Success status and number of tracks removed

Inputs: playlist_id (required), track_ids, indices. Returns: Result of removing tracks from a playlist.

search_albumsA

Search for albums on TIDAL.

Args: query: Search query - album name, artist name, or combination limit: Maximum results (1-50, default: 10)

Returns: List of matching albums with id, title, artist, release date, track count, and URL

Inputs: query (required), limit. Returns: List of albums with metadata.

search_artistsA

Search for artists on TIDAL.

Args: query: Search query - artist name limit: Maximum results (1-50, default: 10)

Returns: List of matching artists with id, name, and URL

Inputs: query (required), limit. Returns: List of artists with metadata.

search_playlistsA

Search for public playlists on TIDAL.

Args: query: Search query - playlist name or theme limit: Maximum results (1-50, default: 10)

Returns: List of matching playlists with id, name, description, track count, and URL

Inputs: query (required), limit. Returns: List of playlists with metadata.

search_tracksA

Search for tracks on TIDAL.

Args: query: Search query - artist name, song title, or combination limit: Maximum results (1-50, default: 10)

Returns: List of matching tracks with id, title, artist, album, duration, and URL

Inputs: query (required), limit. Returns: List of tracks with metadata.

update_playlistB

Update a playlist's name and/or description.

Args: playlist_id: ID of the playlist to update name: New name for the playlist (optional) description: New description (optional)

Returns: Updated playlist details

Inputs: playlist_id (required), name, description. Returns: Result of updating a playlist.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 27 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific resources and actions, such as get_album vs. get_album_tracks or add_track_to_favorites vs. remove_track_from_favorites. The descriptions explicitly differentiate operations, preventing confusion between similar tools like search_albums and get_album.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case, such as create_playlist, get_artist_albums, and remove_tracks_from_playlist. The naming is uniform across the set, making it predictable and easy to understand the action and target resource.

    Tool Count3/5

    With 27 tools, the count is borderline high for a music streaming server, potentially overwhelming for agents. While it covers many features, it might be slightly over-scoped, as some tools like get_artist_radio and get_track_radio could be consolidated under a broader recommendation tool.

    Completeness5/5

    The tool set provides comprehensive coverage for TIDAL's domain, including CRUD operations for playlists and favorites, detailed retrieval for albums, artists, and tracks, search across all resource types, and discovery features like radio and similar content. No obvious gaps exist for core music streaming workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers