Mpv MCP Server logo

Mpv MCP Server

Control mpv playback, playlists, local media, YouTube streaming, downloads, and file metadata through MCP.

Install Mpv MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mpv-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mpv-mcp-server"
      ],
      "env": {
        "MPV_PATH": "YOUR_VALUE_HERE",
        "MPV_IPC_PATH": "YOUR_VALUE_HERE",
        "MPV_MEDIA_DIRS": "YOUR_VALUE_HERE",
        "MPV_DOWNLOAD_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 17 tools correctly ().

Overview

mpv-mcp-server MCP server connects MCP clients to the mpv media player through mpv's JSON IPC protocol. It provides tools for playback control, media-library browsing, playlists, YouTube streaming and downloads, metadata lookup, and tag editing. The server can start mpv automatically and uses a Unix socket or Windows named pipe for communication. Reach for it when an agent needs to operate a local media collection or control an mpv instance.

Use cases

  • Control local mpv playback from an MCP client
  • Browse and search configured music or video directories
  • Manage mpv playlists and queue tracks
  • Stream YouTube results through mpv
  • Download YouTube audio or video files

Key features

  • Playback control and seeking
  • Media-library browsing and search
  • Playlist loading and queue management
  • YouTube streaming and downloads
  • Metadata inspection and tag writing
  • mpv JSON IPC communication

Tools17

What Mpv MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~1.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/28 checks healthy over the last 112d

What it can do

From the 17 tools this server returned when we ran it; 17 declare their own safety hints.

Can delete or modify data · 1Makes changes · 13Makes network requests · 3Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age230 days
Maintainers1

Observed 2026-11-29 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · mpv-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads265Package downloads in the last 30 days.
Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed17Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Mpv MCP Server works

What mpv-mcp-server does

The mpv-mcp-server MCP server exposes mpv media-player operations as MCP tools. It can play a file using a path or search term, pause or resume playback, stop playback, report status, seek by seconds or time notation, and read or change volume from 0 to 150.

Library tools let an agent scan configured media directories, search for files, inspect the current playlist, add tracks, load .m3u, .pls, or .txt playlist files, and move to the next or previous item. This makes the server suitable for local music and video collections rather than only one-off playback commands.

YouTube support is available through mpv_youtube, which searches YouTube and streams results through mpv, including an append mode. mpv_download saves YouTube audio or video locally. Metadata tools can inspect the current track or a searched file and write artist, title, album, genre, date, and comment tags.

How it works

The mpv-mcp-server MCP server communicates with mpv through mpv's JSON IPC interface. On Windows, communication uses a named pipe; on macOS and Linux, it uses a Unix domain socket. If mpv is not already running, the server starts it in idle mode. The mpv process is detached, so playback continues if the MCP server exits.

The server is implemented for Node.js 22 or newer. mpv must be available on the system path unless its executable location is configured explicitly.

Setup and configuration

Install mpv and Node.js 22 or newer. Install yt-dlp if YouTube search, streaming, or downloading is needed. Install ffmpeg for audio extraction, metadata reading through ffprobe, and tag writing. YouTube features require yt-dlp, while audio downloads also require ffmpeg.

The mpv-mcp-server MCP server can be launched with npx -y mpv-mcp-server from an MCP client configuration. The README gives configurations for Claude Code and Claude Desktop. Configuration is supplied through environment variables, and defaults are available for every setting:

  • MPV_PATH selects the mpv executable; the default is mpv.
  • MPV_IPC_PATH sets the IPC endpoint. Defaults are /tmp/mpv-ipc.sock on Unix and \\.\pipe\mpvpipe on Windows.
  • MPV_MEDIA_DIRS provides comma-separated directories to scan. The default is ~/Music,~/Videos.
  • MPV_DOWNLOAD_DIR sets the download destination. The default is ~/Downloads.

Tools and capabilities

Playback tools cover play, pause, resume, stop, status, seeking, and volume. Library and playlist tools cover browsing, searching, queue management, playlist loading, and track navigation. YouTube tools handle search-based streaming and downloads. Metadata tools provide file information and tag updates; both infer artist and title from filenames using an Artist - Title pattern.

Limitations and notes

YouTube operations depend on external yt-dlp, and audio downloads additionally depend on ffmpeg. Metadata inspection and tagging also require ffmpeg. macOS and Linux support is present but untested, while Windows is the tested platform.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mpv MCP Server

mpv-mcp-server is an MCP server that connects MCP clients to the mpv media player through JSON IPC. Its main tools control playback, browse media, manage playlists, stream or download YouTube content, inspect file metadata, and write tags. It can start mpv automatically and supports Windows named pipes or Unix sockets.

Run it with `npx -y mpv-mcp-server` in an MCP client configuration. Install mpv and Node.js 22 or newer first, then add yt-dlp for YouTube features and ffmpeg for audio extraction, metadata operations, and audio downloads. The README provides configurations for Claude Code and Claude Desktop.

Yes, mpv-mcp-server works with Claude Code through a project `.mcp.json` file or the `claude mcp add` command. Configure the server to run `npx -y mpv-mcp-server`; optional environment variables can set the mpv executable, media directories, IPC path, and download directory.

Install `yt-dlp` and make it available on your PATH for YouTube streaming and downloading. Audio downloads also require `ffmpeg`. The server uses `MPV_DOWNLOAD_DIR` to choose where downloaded files are saved, defaulting to `~/Downloads`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMpv MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mpv-mcp-server?style=directory)](https://allmcps.com/mcp/mpv-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/mpv-mcp-server"><img src="https://allmcps.com/api/badge/mpv-mcp-server?style=directory" alt="Mpv MCP Server on AllMCPs" /></a>