Skip to content
VS Code

mpv mcp server for VS Code

io.github.arijit-gogoi/mpv-mcp-server

Control mpv media player — playback, playlists, YouTube streaming, and downloads.

client:VS Code transport:stdio runtime:npm

Install mpv mcp server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mpv-path",
      "description": "MPV_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mpv-ipc-path",
      "description": "MPV_IPC_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mpv-media-dirs",
      "description": "MPV_MEDIA_DIRS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mpv-download-dir",
      "description": "MPV_DOWNLOAD_DIR",
      "password": true
    }
  ],
  "servers": {
    "mpv-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mpv-mcp-server"
      ],
      "env": {
        "MPV_PATH": "${input:mpv-path}",
        "MPV_IPC_PATH": "${input:mpv-ipc-path}",
        "MPV_MEDIA_DIRS": "${input:mpv-media-dirs}",
        "MPV_DOWNLOAD_DIR": "${input:mpv-download-dir}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mpv mcp server in other clients