Skip to main content

MCP Playlist Generator - Generate .m3u playlists based on mood or theme

Project description

🎧 MCP Playlist Generator

This project is a Model Context Provider (MCP) server designed to work with Claude or any AI assistant that supports tool usage. It generates .m3u playlists on the user's PC based on their current mood or theme. The playlist gets saved to a user-specified directory, ready to be queued up in your favorite media player.

Built with Python, powered by uv and mutagen, and inspired by the legendary Filesystem MCP Server — major shoutout for the idea and foundational reference!


🛠 How It Works

  1. User sets up the MCP server using Python and uv.
  2. Server listens for requests from Claude or any LLM agent.
  3. Based on the request (e.g., "make a chill evening playlist"), it:
    • Scans local music files.
    • Uses mutagen to read metadata (genre, title, artist, etc.).
    • Filters songs matching the vibe.
    • Creates an .m3u playlist.
    • Saves it at the desired location on the user's machine.

🔧 Tech Stack

  • Python
  • uv — for the async web server
  • mutagen — for metadata extraction

📦 Installation

pip install uv mutagen

Clone this repo and run:

uvicorn mcp_server:app --reload

🧠 Example Claude Prompt

"Hey Claude, can you make me a happy vibe playlist."

Claude will then use the MCP server tool and boom — you get a playlist in your music app.

[!important] Make sure you re-index the Music app after creating the playlist.

🙏 Special Thanks

Massive thanks to the Filesystem MCP Server — this project was built with your idea as the spark.

💬 Got Feedback?

Open an issue or hit me up. PRs are welcome, mood-based jams even more so 🎶


Need:

  • What's the default directory fallback if user doesn't pick a location?
  • Are you supporting MP3 only, or other formats too?
  • Should I include API route structure for devs?

Lemme know and I’ll update it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2.tar.gz.

File metadata

  • Download URL: iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a3ffb7c83f9d9f72f022bca85fbdbc28b2c465bba87f920a6723c2433a015361
MD5 9702e389533f9dbc5f71a88ae3d66433
BLAKE2b-256 db4dc576c7cf7ec1ee732a6a8cfe298e5bf6f345077649abc4db6a4628ee7c27

See more details on using hashes here.

File details

Details for the file iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_m4dd0c_playlist_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a11383e387213898d744a8abeaf711071bdc581dcfe34a91a8f70f90d43dbb27
MD5 923d0d96da62dfc9106e430be0efb9cc
BLAKE2b-256 8f7bce2c029c0695b4f876df3994c7369fa5fe5e727569e592d4a9030dc4f25c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page