MusicPlayerMcpServer 0.1.0-beta
{ "servers": { "MusicPlayerMcpServer": { "type": "stdio", "command": "dnx", "args": ["MusicPlayerMcpServer@0.1.0-beta", "--yes"] } } }
.vscode/mcp.json settings file.
dotnet tool install --global MusicPlayerMcpServer --version 0.1.0-beta
dotnet new tool-manifest
dotnet tool install --local MusicPlayerMcpServer --version 0.1.0-beta
#tool dotnet:?package=MusicPlayerMcpServer&version=0.1.0-beta&prerelease
nuke :add-package MusicPlayerMcpServer --version 0.1.0-beta
MusicPlayerMcp
MusicPlayerMcp is a simple Model Context Protocol (MCP) server that exposes a stdio-based interface for controlling local music playback. It is intended to be used by MCP‑aware AI assistants (such as GitHub Copilot) or any client that can speak the protocol over standard input/output.
The tool set is intentionally small and focused: play a track (by URL or search query) and stop playback. There is no extra configuration or user interface; the server runs in the background and interacts via MCP messages.
Available MCP Tools
All interactions happen through MCP requests on stdin/stdout.
playSong
Requests playback of a song. The argument may be a full YouTube URL or a natural-language query (title/artist).
- Input: a single string containing the song query or URL.
- Behavior: resolves the query, downloads the audio, and begins local playback.
- Response: confirmation that playback has started, or an error message.
stopPlayback
Stops any currently playing audio.
- Input: none.
- Behavior: halts playback immediately.
- Response: confirmation that playback was stopped.
⚠️ Only one track can play at a time; a new
playSongrequest replaces any existing audio.
Usage
- Launch the server executable. It listens for MCP messages on its standard input and writes responses to standard output.
- Send an MCP request with the desired tool name and parameters.
- Read the response on stdout to know when the action completes.
From an MCP‑capable client (such as Copilot), the assistant simply invokes the tool by name. Example prompts:
- "Play 'Bohemian Rhapsody' for me." → triggers
playSongwith queryBohemian Rhapsody. - "Stop the music." → triggers
stopPlayback.
Notes
- The server uses youtube.com as the source for audio; it does not require the user to install or configure a browser.
- It is a stdio tool and has no GUI.
- Designed for quick control via natural language; implementation details are intentionally hidden from users.
Enjoy seamless, AI‑driven local music playback!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta | 24 | 3/7/2026 |
- Initial beta release (0.1.0-beta).
- Support for search and play musics.
- Support for stop musics.
- Integration with MCP-compliant clients (Visual Studio, Claude Desktop).