m4dd0c

๐ŸŽง MCP Playlist Generator

Community m4dd0c
Updated

A Model Context Protocol (MCP) server that enables AI agents to create and manage music playlists through context-aware API endpoints.

๐ŸŽง 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.

MCP Server ยท Populars

MCP Server ยท New

    softdaddy-o

    soft-ue-cli (+mcp)

    Python CLI + UE plugin that lets Claude Code (AI coding agent) control Unreal Engine in real time. Spawn actors, edit blueprints, call functions, capture screenshots, manage PIE sessions, and more -- all from the terminal. Works with UE5 editor and packaged builds via an in-process HTTP bridge.

    Community softdaddy-o
    opendatalab

    MinerU Document Explorer

    Agent-native knowledge engine with MCP tools for document indexing, wiki organization, fast retrieval and deep reading across PDF/DOCX/PPTX/Markdown

    Community opendatalab
    mgreen27

    Velociraptor MCP

    VelociraptorMCP is a Model Context Protocol bridge for exposing LLMs to MCP clients.

    Community mgreen27
    karavaev-evgeniy

    node-red-mcp-server

    MCP Server

    Community karavaev-evgeniy
    Shelpuk-AI-Technology-Consulting

    Improve AI-generated code quality by 20%

    Lad MCP Server: Autonomous code & system design review for AI coding agents (Claude Code, Cursor, Codex, etc.). Features multi-model consensus via OpenRouter and context-aware reviews via Serena.