Spotify Bulk Actions MCP is a server based on the Model Context Protocol (MCP), designed specifically for Spotify bulk operations, supporting bulk playlist creation, music library export, and large-scale library management.
[Main Purpose] This tool is aimed at users who need to efficiently manage large Spotify music libraries, especially in scenarios such as importing song lists from podcast episode notes, bulk organizing playlists, and analyzing personal listening data.
[Main Capabilities]
- Bulk search with confidence scoring: Each bulk search returns a HIGH, MEDIUM, or LOW confidence level for each song match, helping users judge matching accuracy.
- Human-in-the-loop review process: Uncertain match results can be exported as CSV for manual review, corrected, and then re-imported.
- Bulk operations: Built-in rate limiting, capable of efficiently processing more than 500 songs.
- Music library export: Supports exporting complete music library data.
- Podcast playlist-specific: Built specifically for importing song lists from podcast episode notes.
Specific features include:
- Music library analysis: Get all followed artists, get all saved/liked songs (supports libraries of up to 10,000 songs), find unique artists sorted by song count, find albums with more than 6 saved songs (suitable for vinyl shopping), export a complete library summary.
- Listening insights: Get top artists and tracks (short-term/medium-term/long-term), recent play history.
- Bulk playlist creation: Import song lists from CSV files, bulk search with confidence scoring, automatically handle uncertain matches for manual review, create playlists based on search results.
- Playlist maintenance: Find and remove duplicate tracks, compare two playlists (shared and unique tracks), bulk remove and reorder tracks, update playlist details, export any playlist as CSV.
- Bulk music library operations: Bulk follow/unfollow artists, bulk save/unsave tracks.
[How to Use]
Prerequisites: A Spotify account and Spotify developer credentials.
Installation: Can be installed from PyPI pip install spotify-bulk-actions-mcp, but still requires local .env and authentication setup; you can also clone the repository for setup.
One-time authentication: Running the authentication script will open a browser for login, and after login the token is saved locally in the .spotify_cache/ directory.
Connect to Claude Code: Add the configuration in the Claude Code settings file ~/.claude/settings.local.json , and it will take effect after restarting Claude Code.
Hosted mode: This server can also be accessed via streaming HTTP (MCP_TRANSPORT=http) runs as a remote MCP, with the frontend using OAuth 2.1 (WorkOS AuthKit) and a fail-closed user allowlist. The author uses Cloud Run plus Secret Manager to store the Spotify refresh token, and adds it to claude.ai as a custom connector. The tools carry readOnlyHint / destructiveHint annotations so clients can distinguish read and write operations.
[Available Tools] A total of 33 tools are provided, divided into five categories: music library analysis, listening insights, bulk library operations, playlist creation, and playlist management.
[Differences from the Official Spotify Connector] Claude has an official Spotify connector (built by Spotify in April 2026), which as of August 2026 exposes only 8 tools: search Spotify, create playlist, get currently playing, add to library, remove from library, get playlist tracks, and two authentication tools. The official connector runs on a Spotify partner-restricted MCP gateway (dynamic client registration is not supported, and tokens from ordinary developer apps are rejected), so it can only be used within partner AI interfaces. This MCP, by contrast, runs under the user's own Spotify developer app and is subject to development mode limits (as of February 2026, 5 allowlisted users per Client ID), but the user has full control throughout.
[Example Workflows]
- Get library stats: ask "Who is the artist I have saved the most songs by?" Claude will use get_library_artists to show this.
- Find vinyl albums: ask "Find albums where I have saved 6 or more songs," and Claude will use get_albums_by_song_count with min_songs=6.
- Create a playlist from a song list: after creating a CSV file, ask "Create a playlist named 'My Mix' from this CSV," and the system will search and score each song one by one, create the playlist using high-confidence matches, and show uncertain matches for review.
- Bulk podcast playlist: for large lists (500+ songs), use batch_search_tracks, automatically add high-confidence matches, use export_review_csv to export uncertain matches, correct them in a spreadsheet, then use add_reviewed_tracks to add the corrected results.
[Rate Limit Handling] The server automatically handles Spotify's rate limits: short delays between API calls, automatic retries on 429 errors, and caching to reduce duplicate calls. For 10,000 songs, the initial library fetch is expected to take 2-3 minutes.
[Troubleshooting]
- "Not authenticated" error: rerun the authentication script.
- Rate limit error: wait a few minutes and retry; the server will retry automatically.
- Token expired: the server automatically refreshes the token; if the problem persists, rerun
setup_auth.py.
[Security Notes]
Credentials are stored in .env(added to gitignore, never committed); authentication tokens are stored locally in .spotify_cache/; never share .env or the token file; if credentials are leaked, rotate them in the Spotify Dashboard.
[Use Cases] Suitable for users who need to manage their Spotify music library in bulk, import playlists from podcast show notes, analyze their personal listening data, and need manual review of song matches.
[Limitations] Runs under the user's own Spotify developer app and is subject to development mode limits (5 allowlisted users per Client ID). Other pricing and platform details are not provided at this time.