$linuxjunkies
>

mpc(1)

Control the Music Player Daemon (mpd) from the command line.

UbuntuDebianFedoraArch

Synopsis

mpc [OPTION]... [COMMAND] [ARG]...

Description

mpc is a lightweight command-line client for Music Player Daemon (mpd). It allows you to control playback, manage the playlist, and query the status of mpd without needing a graphical interface.

You can play, pause, skip tracks, adjust volume, add songs to the queue, and view the current playlist. mpc is ideal for scripts, remote access over SSH, and minimal desktop environments.

Common options

FlagWhat it does
-h, --hostConnect to a specific mpd host (default: localhost)
-p, --portConnect to a specific mpd port (default: 6600)
-P, --passwordUse the specified password to authenticate with mpd
-q, --quietSuppress status output and confirmation messages
-f, --formatFormat output using a custom format string
-w, --waitWait for a status change before exiting (useful for monitoring)
--no-statusDo not print mpd status after executing a command

Examples

Display current playback status, current song, and volume

mpc

Play if paused, pause if playing

mpc toggle

Skip to the next track in the playlist

mpc next

Set volume to 80%

mpc volume 80

Add a song to the current playlist

mpc add /path/to/song.mp3

Display the entire current playlist

mpc playlist

Jump to 1 minute 30 seconds in the current track

mpc seek 1:30

Start playing on a remote mpd server at that IP address

mpc -h 192.168.1.100 play

Related commands