Skip to main content
Glama

Yit (No Tabs. Just Tunes.) Player 🎵

PyPI version License: GPL v3 Python 3.7+

The Fire-and-Forget Music Player for Developers.

Yit is a lightweight, headless, terminal-based audio player designed for flow states. It allows you to search, queue, and control music directly from your CLI without ever touching a browser or a heavy GUI.

It runs in the background (daemonized), meaning you can close your terminal, switch tabs, or keep coding while the music plays.


🚀 Features

  • Daemon Architecture: The player runs as a detached background process. Your terminal is never blocked.

  • Instant Search: Uses yt-dlp to fetch metadata in milliseconds.

  • Smart Queue: Manage your playlist (add, next, back, Loop) with simple commands.

  • Cross-Platform: Works natively on Windows, macOS, and Linux.

  • Agent-Native: Built from the ground up to be controlled by AI Agents (Vibe Coding).

  • Learns Your Taste (Jarvis mode): Tracks what you finish vs. skip, builds a local taste profile, and DJs for you: personal mixes, endless radio, and an MCP server that lets Claude pick music like it knows you.


Related MCP server: Spotify MCP Server

📦 Installation

pip install yit-player

Requirements

  • None! Yit automatically manages the mpv audio engine internally.

  • Windows: Auto-downloads a portable mpv.exe if missing.

  • Mac/Linux: Uses system MPV (install via brew or apt if needed).

Troubleshooting: "Command/Path not found"

If you run yit and get an error, your Python scripts folder is not in your system PATH. Solution: Run it like this instead (works 100% of the time):

python -m yit search "slava funk" -p

⚡ Quick Start

1. Search & Play

# Search for a song
yit search "funk sigilo"

# Auto-play the first result immediately
yit search "funk infernal" -p

2. Control Playback

yit pause    # (or 'p')
yit resume   # (or 'r')
yit toggle   # Toggle play/pause
yit stop     # Kill the player

3. Queue Management

yit add 1    # Add result #1 from your last search to the queue (use 1 - 5 to choose from search results)
yit queue    # Show the current queue
yit next     # Skip track (or 'n')
yit back     # Previous track (or 'b')
yit clear    # Wipe the queue

4. Looping

yit loop     # Loop the current track indefinitely
yit unloop   # Return to normal playback

5. Status

yit status   # Check if currently Playing/Paused and Looped

6. Favorites (❤️)

Save your best tracks for later.

# list all favorites
yit fav

# Add to favorites
yit fav add        # Add the CURRENTLY playing song
yit fav add 1      # Add result #1 from your last search

# Play favorites
yit fav play       # Play ALL favorites (starting from #1)
yit fav play 3     # Play favorite #3

# Remove
yit fav remove 2   # Remove favorite #2

7. Jarvis Mode: it learns what you like 🧠

Every track you play is logged locally (~/.yit/plays.jsonl) with how long you actually listened, so Yit knows the difference between a song you finished and one you skipped after 5 seconds. Nothing leaves your machine.

yit dj                      # Personal queue: favourites you haven't heard lately + new songs like them
yit dj --discovery 0.7      # More discovery, fewer repeats
yit radio                   # Endless radio from the current song (YouTube Mix)
yit radio "kaavaalaa"       # ...or from any song
yit mix "Artist - Song" "Artist2 - Song2"   # Queue a hand-picked list
yit like                    # Love the current song (favorite + boost)
yit dislike [--artist]      # Never again (optionally the whole artist); skips it
yit profile                 # See what Yit has learned about you

Skip the cold start: export your YouTube Music history from Google Takeout (select YouTube and YouTube Music → history, JSON or HTML) and run:

yit import "Takeout/YouTube and YouTube Music/history/watch-history.json"

🤖 For AI Agents & Vibe Coding

Yit is designed to be self-documenting for AI context. If you are building an AI agent or using an LLM in your IDE:

  1. Read context: Point your agent to AI_INSTRUCTIONS.md (included in the repo).

  2. Discovery: Run yit commands to get a JSON list of all capabilities.

  3. State: Run yit agent to get the full player state (Track, Time, Queue) in pure JSON.

Example Agent Output (yit agent):

{
  "status": "playing",
  "track": {
    "title": "Never Gonna Give You Up",
    "url": "https://..."
  },
  "position": 45.2,
  "duration": 212.0,
  "queue_length": 5
}

Installation for Claude Desktop & AI IDEs (MCP)

Yit includes a built-in Model Context Protocol (MCP) server (yit-mcp). You can easily connect Yit to any supported AI IDE or desktop agent.

Add the following JSON configuration block to your client's MCP config file (e.g., mcp_config.json):

{
  "mcpServers": {
    "yit-player": {
      "command": "yit-mcp",
      "args": [],
      "env": {},
      "disabled": false
    }
  }
}

Windows tip: if yit-mcp isn't on your PATH (common with pip install --user), point the client at Python directly: "command": "C:\\Python314\\python.exe", "args": ["-m", "yit.mcp_server"]

Claude as your DJ

The MCP server ships with DJ instructions and taste-aware tools (get_listening_profile, dj_play_for_me, play_songs, start_radio, like_current_song, dislike_current_song, import_youtube_music_history). Then just talk to Claude:

  • "play something" → reads your profile, plays a personal mix for this time of day

  • "I need to focus for 2 hours" → hand-picks focus tracks from artists you love + similar ones you haven't heard

  • "more like this" → radio from the current song

  • "this is trash, never again" → dislikes and skips it; Yit remembers


🛠️ Architecture

  • Client: Python CLI (yit) handles argument parsing and user signals.

  • Daemon: A detached mpv process handles audio decoding and network streaming.

  • Communication: IPC (Inter-Process Communication) via Named Pipes (Windows) or Unix Sockets (Linux/Mac).

  • Persistence: ~/.yit/history.json stores your playback history and queue metadata.


1. Educational Purpose Only This software (Yit) is a proof-of-concept project designed strictly for educational and research purposes. Its primary goal is to demonstrate:

  • Advanced Python subprocess management and Daemon architecture.

  • Inter-Process Communication (IPC) using sockets and named pipes.

  • Memory-efficient resource management in CLI environments.

2. Third-Party Content This tool acts as a command-line interface (CLI) wrapper for open-source media engines (mpv) and network libraries (yt-dlp).

  • No Content Hosting: This application does not host, store, distribute, or decrypt any copyrighted media content.

  • Streaming Only: It is designed for transient streaming of publicly available content. It does not include features to permanently download or "rip" media to the disk.

3. Terms of Service Users are responsible for ensuring their use of this tool complies with the Terms of Service of any third-party platforms they interact with. The developer of this tool assumes no liability for misuse, account suspensions, or legal consequences arising from the use of this software.

4. No Monetization This project is free and open-source. It is not monetized in any way, nor does it generate revenue from the content it accesses.

License

This project is licensed under the GNU General Public License v3.0 (GPLv3). This ensures the software remains free and open-source. Commercial distribution of this software as a closed-source product is strictly prohibited.

Contact

For any questions, please contact vijayaraj.devworks@gmail.com.

Available Tools

25 tools
add_currently_playing_to_favoritesB

Adds the currently playing music track to the user's favorites list.

Inputs: no named parameters. Returns: result

add_search_result_to_favoritesA

Adds a specific track number from the recent search results to favorites.

Inputs: number (required). Returns: result

add_to_queueB

Appends a track number from the latest search results directly to the end of the queue.

Inputs: number (required). Returns: result

clear_queueA

Clears all upcoming tracks from the queue except the one currently playing.

Inputs: no named parameters. Returns: result

dislike_current_songA

Marks the current song as disliked so it's never recommended again, and skips it. block_artist=true also excludes that artist from all future recommendations.

Inputs: skip, block_artist. Returns: result

dj_play_for_meA

Builds and plays a personal queue from the user's taste: favourites they haven't heard recently, mixed with new songs similar to what they love (via YouTube Mix). discovery = share of new-to-them songs (0 to 1).

Inputs: size, discovery. Returns: result

get_current_queueA

Returns the list of tracks currently in the playback queue.

Inputs: no named parameters. Returns: result

get_listening_profileA

Returns what Yit has learned about the user's music taste as JSON: top artists and tracks (recency-weighted, from songs they actually finished), what they play at this time of day, recently played, often skipped, recent searches, favorites and dislikes. Call this before choosing music for vague or mood-based requests.

Inputs: no named parameters. Returns: result

get_player_statusA

Gets the current playback status (Playing/Paused/Stopped) and the name of the current track.

Inputs: no named parameters. Returns: result

import_youtube_music_historyA

Imports the user's Google Takeout YouTube watch history (watch-history.json or .html) so Yit knows their taste from day one. By default only YouTube Music entries are imported.

Inputs: file_path (required), include_regular_youtube. Returns: result

like_current_songA

Marks the currently playing song as liked (adds to favorites and boosts it in future recommendations).

Inputs: no named parameters. Returns: result

list_favoritesA

Lists all the user's saved favorite tracks.

Inputs: no named parameters. Returns: result

loop_current_trackB

Locks the player to loop the current track indefinitely.

Inputs: no named parameters. Returns: result

pause_musicA

Pauses the currently playing track.

Inputs: no named parameters. Returns: result

play_favoritesB

Plays the user's favorite tracks. If index_to_play is not provided, plays all favorites. If an index is provided, plays only that specific favorite.

Inputs: index_to_play. Returns: result

play_previous_trackB

Goes back to the previously played track.

Inputs: no named parameters. Returns: result

play_search_resultA

Plays a specific track number from the most recent search results. Only call this AFTER a successful search.

Inputs: number (required). Returns: result

play_songsA

Plays a hand-picked list of specific songs in order. Each item should be a precise search like "Artist - Song Title". Set replace_queue=false to append after the current queue instead.

Inputs: songs (required), replace_queue. Returns: result

remove_favoriteB

Removes a track from favorites using its index number from the favorites list.

Inputs: index (required). Returns: result

resume_musicB

Resumes playing the currently paused track.

Inputs: no named parameters. Returns: result

search_music_on_youtubeA

Searches YouTube for music or songs based on a natural language query. If play_first_result is true, it immediately starts playing the best match.

Inputs: query (required), play_first_result. Returns: result

skip_to_next_trackB

Skips to the next track in the queue.

Inputs: no named parameters. Returns: result

start_radioA

Plays an endless-style radio of songs similar to a seed (song name or YouTube URL). With no seed it continues from the currently playing song, or from the user's top track if nothing is playing.

Inputs: seed. Returns: result

stop_loopingA

Stops looping the current track so playback proceeds normally.

Inputs: no named parameters. Returns: result

stop_musicA

Stops music playback entirely and closes the player.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 25 tools

    Disambiguation3/5

    Most playback, queue, and favorites operations are distinct, but there is notable overlap between add_currently_playing_to_favorites and like_current_song, since both add the current track to favorites while like_current_song also boosts recommendations. Multiple playback entry points (search-and-play, play_favorites, dj_play_for_me, start_radio, play_songs) are differentiated by descriptions but still require careful selection.

    Naming Consistency4/5

    Tool names are consistently snake_case and mostly follow a verb_noun pattern. Minor deviations exist, such as dj_play_for_me, skip_to_next_track versus play_previous_track, and some longer multi-preposition names like add_currently_playing_to_favorites.

    Tool Count3/5

    At 25 tools, the surface is on the heavy side for a music player, even one with personalization and history import. Some operations could likely be consolidated, especially favorites/like handling and playback-initiation variants.

    Completeness4/5

    Core music-player workflows are covered: search, playback control, queue management, favorites, listening profile, radio/DJ modes, and history import. Minor gaps remain around volume/seek controls, removing or reordering specific queue items, and broader playlist management.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers