| Crates.io | mpd-discord-rpc |
| lib.rs | mpd-discord-rpc |
| version | 1.9.0 |
| created_at | 2020-02-13 23:23:22.486311+00 |
| updated_at | 2025-08-21 22:35:59.283912+00 |
| description | Displays your currently playing song / album / artist from MPD in Discord using Rich Presence. |
| homepage | |
| repository | https://github.com/JakeStanger/mpd-discord-rpc |
| max_upload_size | |
| id | 208145 |
| size | 106,674 |
Displays your currently playing song / album / artist from MPD in Discord using Rich Presence, along with the album art.
It includes support for multiple MPD hosts if, like me, you have more than one server you alternate between.
The program does not require MPD or Discord to be running in order to run.
Once installed just run mpd-discord-rpc.
The cargo package can be found here.
cargo install mpd-discord-rpc
Two AUR packages are available:
The systemd unit is included and can be started with:
systemctl --user enable --now mpd-discord-rpc
You can use the
mpd-discord-rpc
package in nixpkgs. Users of home-manager can also use the
services.mpd-discord-rpc.enable
option.
Many thanks to Ilan Joselevich for maintaining both of those.
Running the program once will generate a default configuration file. On Linux
this will be at ~/.config/discord-rpc/config.toml
both, elapsed, left or off. Falls back to
both."notes" by default. Setting this to "" disables
the large image."notes" by default. Setting this to "" disables
the small image."" disables the hover."" disables the hover.name, state or details. Defaults to state.Any part of the format string that does not match one of these tokens will be displayed as is. The following will automatically be replaced with their value from MPD:
$title$album$artist$albumartist$date$track$disc$genre$duration$elapsedThis configuration file is automatically generated if one does not exist. It is included here for reference.
id = 677226551607033903
hosts = ["localhost:6600"]
[format]
details = "$title"
state = "$artist / $album"
timestamp = "both"
large_image = "notes"
small_image = "notes"
large_text = ""
small_text = ""
display_type = "name"
Album art is pulled from the MusicBrainz database and Album Art Archive automatically. You'll only get a cover if it can be found though; there's a couple of things you can do to help this: