
playlist mcp server
A Model Context Protocol (MCP) server that enables AI agents to create and manage music playlists through context-aware API endpoints.
Repository Info
About This Server
A Model Context Protocol (MCP) server that enables AI agents to create and manage music playlists through context-aware API endpoints.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
🎧 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
uvandmutagen, and inspired by the legendary Filesystem MCP Server — major shoutout for the idea and foundational reference!
🛠 How It Works
- User sets up the MCP server using Python and
uv. - Server listens for requests from Claude or any LLM agent.
- Based on the request (e.g., "make a chill evening playlist"), it:
- Scans local music files.
- Uses
mutagento read metadata (genre, title, artist, etc.). - Filters songs matching the vibe.
- Creates an
.m3uplaylist. - Saves it at the desired location on the user's machine.
🔧 Tech Stack
- Python
uv— for the async web servermutagen— 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.
Quick Start
Clone the repository
git clone https://github.com/m4dd0c/playlist-mcp-serverInstall dependencies
cd playlist-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.