home / mcp / audio player mcp server
Provides an MCP server to browse, play, and stop audio files from Claude with secure directory isolation.
Configuration
View docs{
"mcpServers": {
"here-and-tomorrow-llc-audio-player-mcp": {
"command": "/path/to/your/venv/bin/python",
"args": [
"/path/to/your/audio-player-mcp/src/audio_player_mcp/player.py"
],
"env": {
"AUDIO_PLAYER_DIR": "/path/to/your/audio/files"
}
}
}
}This MCP server lets Claude control audio playback on your computer. You can browse your music directory, play files, and stop playback from conversational prompts, with directory isolation to keep file access secure.
Use Claude to list available audio files, start playback of a chosen file, or stop the current track. You can say things like: “What audio files do I have?” to browse, “Play song.mp3” to start a track, or “Stop the music” to halt playback. The server keeps your file access secure by isolating access to a specific music directory you configure.
{
"mcpServers": {
"audio_player_mac": {
"type": "stdio",
"command": "/path/to/your/venv/bin/python",
"args": [
"/path/to/your/audio-player-mcp/src/audio_player_mcp/player.py"
],
"env": {
"AUDIO_PLAYER_DIR": "/path/to/your/audio/files"
}
},
"audio_player_windows": {
"type": "stdio",
"command": "C:\\path\\to\\your\\venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\your\\audio-player-mcp\\src\\audio_player_mcp\\player.py"
],
"env": {
"AUDIO_PLAYER_DIR": "C:\\path\\to\\your\\audio\\files"
}
}
}
}Prerequisites: Python 3.10 or higher is required to run the server. Ensure you have a compatible Claude Desktop version installed to connect via the MCP.
Install the MCP server package in editable mode from its source directory. Run these commands in your terminal or command prompt (adapt paths to your environment):
pip install -e .Open Claude Desktop settings and locate the MCP configuration area. Add a new MCP server entry using the macOS/Linux or Windows blocks above, depending on your system. Ensure the environment variable AUDIO_PLAYER_DIR points to your music folder, and restart Claude Desktop to apply changes.
If playback isn’t starting, check Claude’s logs for MCP-related messages. Look for entries that reference the audio player MCP server to confirm it’s being reached and that the file path is valid within the configured AUDIO_PLAYER_DIR.
If you want to develop locally, install development dependencies and run the MCP server in development mode according to your setup, ensuring you point to the correct script path for your environment.
Lists available audio files in the configured music directory so you can see what you can play.
Plays a selected audio file by name, triggering playback through the MCP server.
Stops the current audio playback immediately.