Skip to content

tunesync-cli ​

Python 3.10+ CLISpotify ⇄ YouTube MusicExportify CSVBuilt-in MCP Server

Keep your music playlists in sync between Spotify and YouTube Music — in both directions, or via one-way Exportify CSV import — with an interactive review tool, periodic watch mode, --json output, and a built-in stdio MCP server for AI agents.

Quick install ​

bash
uv tool install git+https://github.com/agarcial16/tunesync-cli
bash
pipx install git+https://github.com/agarcial16/tunesync-cli

Command overview ​

bash
tunesync auth spotify | ytmusic         # log in (opens browser window automatically)
tunesync lists [--json]                 # list playlists on each service
tunesync link [--create] [--likes]      # pair playlists for two-way sync
tunesync pairs [--json]                 # show linked playlist pairs
tunesync sync [--dry-run] [--json]      # two-way sync with live progress
tunesync watch [--interval 30] [--json] # periodic sync loop
tunesync import file.csv --target new   # one-way import of an Exportify CSV
tunesync review [--target NAME]         # interactively resolve 'not found' tracks
tunesync doctor [--json]                # validate config and credentials
tunesync mcp                            # stdio MCP server for AI agents

Choose your workflow ​

WorkflowSpotify PremiumRisk to Spotify accountDirection
Exportify CSV (import)NoNoneSpotify → YouTube Music
Official Spotify API (sync)Yes (since 2026)NoneTwo-way
Web backend (--method web)NoUnofficial API (use secondary account)Two-way

Unofficial client

tunesync-cli is not affiliated with Spotify or Google. YouTube Music uses ytmusicapi (unofficial), and Spotify's --method web uses Spotify's private web-player API. Read Authentication and Two-Way Sync & Safety before running writes on important playlists.

Next steps ​