
Mpv Mcp Server
io.github.arijit-gogoiPublished by GitHub account arijit-gogoiv1.2.0Updated Oct 24, 2026
Control mpv media player — playback, playlists, YouTube streaming, and downloads.
Overview
A local MCP server that lets an assistant control the mpv media player: browse a library, manage playlists, adjust playback, stream YouTube and download tracks.
- What you can do
- Control playback: play by path or search term, pause, resume, stop, seek, and get or set volume and status. Browse and manage the library: list and search media files, view the playlist, add tracks, load playlist files, and skip tracks. Stream and download from YouTube, with optional append mode and audio or video downloads. Read and write track metadata such as artist, title, album, genre and date.
- When to use it
- Useful when you want an assistant to drive a desktop music or video session hands-free: queueing tracks, adjusting volume, checking what is playing, or pulling YouTube audio into a local library.
- Requirements
- Runs locally over stdio via npx, so Node.js 22+ is needed, plus the mpv player on PATH or set through MPV_PATH. YouTube tools need yt-dlp; audio downloads and metadata tools need ffmpeg. Optional variables set the IPC socket path, media directories and download directory. Developed and tested on Windows; macOS and Linux support is untested.
Installation
In SourceWeft
- Open Mpv Mcp Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mpv-mcp-server
MCP server for controlling mpv media player. Browse your music library, control playback, stream from YouTube, and download tracks — all from inside an MCP client like Claude Code.
Prerequisites
- mpv — media player (must be on your PATH, or set
MPV_PATH) - Node.js 22+
- yt-dlp (optional) — required for YouTube streaming and downloading
- ffmpeg (optional) — required for audio extraction, metadata reading (ffprobe), and tagging
Quick Start
Claude Code
Add to your project's .mcp.json:
Or add at user scope (available in all projects):
Claude Desktop
Add to your Claude Desktop config:
With environment overrides
Configuration
All configuration is via environment variables. Everything has sensible defaults.
Tools
Playback
Library
YouTube
YouTube tools require yt-dlp on your PATH. Audio downloads also require ffmpeg.
Metadata
Both tools infer artist/title from the "Artist - Title" filename pattern. Requires ffmpeg (includes ffprobe).
How It Works
The server communicates with mpv via its JSON IPC protocol. On Windows this uses a named pipe, on macOS/Linux a Unix domain socket. If mpv isn't running, the server spawns it automatically in idle mode. The mpv process is detached, so it keeps playing even if the MCP server exits.
Platform Support
Developed and tested on Windows. macOS/Linux support is implemented but untested — issues and PRs welcome!
License
MIT
Source: README.md at commit 3ca7cd7
Tools
0Version history
1- v1.2.0LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.