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.

VerifiedSTDIODesktop onlyFiles & StorageMedia & Design

Overview

AI-generated 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.
Before you install
The server can start mpv itself and the player keeps running after the server exits. Downloading and streaming from YouTube relies on yt-dlp and may conflict with platform terms. The tagging tool writes metadata into media files, and downloads write files to the configured download directory.

Installation

In SourceWeft

  1. Open Mpv Mcp Server in the dashboard and add it to a workspace.
  2. 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:

json
{  "mcpServers": {    "mpv": {      "command": "npx",      "args": ["-y", "mpv-mcp-server"]    }  }}

Or add at user scope (available in all projects):

bash
claude mcp add mpv --scope user -- npx -y mpv-mcp-server

Claude Desktop

Add to your Claude Desktop config:

json
{  "mcpServers": {    "mpv": {      "command": "npx",      "args": ["-y", "mpv-mcp-server"]    }  }}

With environment overrides

json
{  "mcpServers": {    "mpv": {      "command": "npx",      "args": ["-y", "mpv-mcp-server"],      "env": {        "MPV_PATH": "/usr/local/bin/mpv",        "MPV_MEDIA_DIRS": "/home/user/Music,/home/user/Podcasts",        "MPV_DOWNLOAD_DIR": "/home/user/Music"      }    }  }}

Configuration

All configuration is via environment variables. Everything has sensible defaults.

VariableDefaultDescription
MPV_PATHmpvPath to mpv executable
MPV_IPC_PATH\\.\pipe\mpvpipe (Windows) or /tmp/mpv-ipc.sock (Unix)IPC socket path
MPV_MEDIA_DIRS~/Music,~/VideosComma-separated media directories to scan
MPV_DOWNLOAD_DIR~/DownloadsWhere downloaded files are saved

Tools

Playback

ToolDescription
mpv_playPlay a file by path or search term
mpv_pausePause playback
mpv_resumeResume playback
mpv_stopStop playback
mpv_statusGet current playback status
mpv_seekSeek to position ("90", "1:30", "+10", "-30")
mpv_volumeGet or set volume (0-150)

Library

ToolDescription
mpv_browseList and search available media files
mpv_playlistShow current playlist
mpv_addAdd a track to the playlist
mpv_load_playlistLoad a playlist file (.m3u, .pls, .txt)
mpv_nextSkip to next track
mpv_prevGo to previous track

YouTube

ToolDescription
mpv_youtubeSearch YouTube and stream through mpv (supports append mode)
mpv_downloadDownload from YouTube (audio or video)

YouTube tools require yt-dlp on your PATH. Audio downloads also require ffmpeg.

Metadata

ToolDescription
mpv_infoGet metadata for the current track or any file by search term
mpv_tagWrite metadata tags (artist, title, album, genre, date, comment) to a file

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

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  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.