Mopidy extension for controlling Mopidy from MPD clients
Project description
mopidy-mpd
Mopidy extension for controlling Mopidy from MPD clients.
MPD stands for Music Player Daemon, which is also the name of the original MPD server project. Mopidy does not depend on the original MPD server, but implements the MPD protocol itself, and is thus compatible with most clients built for the original MPD server.
Maintainer wanted
Mopidy-MPD is currently kept on life support by the Mopidy core developers. It is in need of a more dedicated maintainer.
If you want to be the maintainer of Mopidy-MPD, please:
-
Make 2-3 good pull requests improving any part of the project.
-
Read and get familiar with all of the project's open issues.
-
Send a pull request removing this section and adding yourself as the "Current maintainer" in the "Credits" section below. In the pull request description, please refer to the previous pull requests and state that you've familiarized yourself with the open issues.
As a maintainer, you'll be given push access to the repo and the authority to make releases to PyPI when you see fit.
Installation
Install by running:
python3 -m pip install mopidy-mpd
See https://mopidy.com/ext/mpd/ for alternative installation methods.
Configuration
Before starting Mopidy, you must add configuration for mopidy-mpd to your Mopidy configuration file:
[mpd]
hostname = ::
[!WARNING] As a simple security measure, the MPD server is by default only available from localhost. To make it available from other computers, change the
mpd/hostnameconfig value.Before you do so, note that the MPD server does not support any form of encryption and only a single clear text password (see
mpd/password) for weak authentication. Anyone able to access the MPD server can control music playback on your computer. Thus, you probably only want to make the MPD server available from your local network. You have been warned.
The following configuration values are available:
mpd/enabled: If the MPD extension should be enabled or not.mpd/hostname: Which address the MPD server should bind to. This can be a network address or the path toa Unix socket:127.0.0.1: Listens only on the IPv4 loopback interface (default).::1: Listens only on the IPv6 loopback interface.0.0.0.0: Listens on all IPv4 interfaces.::: Listens on all interfaces, both IPv4 and IPv6.unix:/path/to/unix/socket.sock: Listen on the Unix socket at the specified path. Must be prefixed withunix:.
mpd/port: Which TCP port the MPD server should listen to. Default: 6600.mpd/password: The password required for connecting to the MPD server. If blank, no password is required. Default: blank.mpd/max_connections: The maximum number of concurrent connections the MPD server will accept. Default: 20.mpd/connection_timeout: Number of seconds an MPD client can stay inactive before the connection is closed by the server. Default: 60.mpd/zeroconf: Name of the MPD service when published through Zeroconf. The variables$hostnameand$portcan be used in the name. Set to an empty string to disable Zeroconf for MPD. Default:Mopidy MPD server on $hostnamempd/command_blacklist: List of MPD commands which are disabled by the server. By default this blacklistslistallandlistallinfo. These commands don't fit well with many of Mopidy's backends and are better left disabled unless you know what you are doing.mpd/default_playlist_scheme: The URI scheme used if the server cannot find a backend appropriate for creating a playlist from the given tracks. Default:m3u
Limitations
This is a non-exhaustive list of MPD features that Mopidy doesn't support.
- Only a single password is supported. It gives all-or-nothing access.
- Toggling of audio outputs is not supported.
- Channels for client-to-client communication are not supported.
- Stickers are not supported.
- Crossfade is not supported.
- Replay gain is not supported.
statsdoes not provide any statistics.decodersdoes not provide information about available decoders.- Live update of the music database is not supported.
Clients
Over the years, a huge number of MPD clients have been built for every thinkable platform. As always, the quality and state of maintenance varies between clients, so you might have to try a couple before you find one you like for your purpose. In general, they should all work with Mopidy-MPD.
The Wikipedia article on MPD has a short list of well-known clients. In the MPD wiki there is a more complete list of the available MPD clients. Both lists are grouped by user interface, e.g. terminal, graphical, or web-based
Project resources
Development
Set up development environment
Clone the repo using, e.g. using gh:
gh repo clone mopidy/mopidy-mpd
Enter the directory, and install dependencies using uv:
cd mopidy-mpd/
uv sync
Running tests
To run all tests and linters in isolated environments, use tox:
tox
To only run tests, use pytest:
pytest
To format the code, use ruff:
ruff format .
To check for lints with ruff, run:
ruff check .
To check for type errors, use pyright:
pyright .
Making a release
To make a release to PyPI, go to the project's GitHub releases page and click the "Draft a new release" button.
In the "choose a tag" dropdown, select the tag you want to release or create a
new tag, e.g. v0.1.0. Add a title, e.g. v0.1.0, and a description of the changes.
Decide if the release is a pre-release (alpha, beta, or release candidate) or should be marked as the latest release, and click "Publish release".
Once the release is created, the release.yml GitHub Action will automatically
build and publish the release to
PyPI.
Credits
- Original author: Stein Magnus Jodal and Thomas Adamcik for the Mopidy-MPD extension in Mopidy core.
- Current maintainer: None. Maintainer wanted, see section above.
- Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mopidy_mpd-4.0.0.tar.gz.
File metadata
- Download URL: mopidy_mpd-4.0.0.tar.gz
- Upload date:
- Size: 83.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f118b1c46665c005575d13ad32906a0e477b698478ef6e950a7720a61e16ac8
|
|
| MD5 |
a89e345ddcf4325a9c8066c33e3a1021
|
|
| BLAKE2b-256 |
80190b08754de7df2cf8d233c2c6dc70b5f44c408a3d1375262a30788608b707
|
Provenance
The following attestation bundles were made for mopidy_mpd-4.0.0.tar.gz:
Publisher:
release.yml on mopidy/mopidy-mpd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mopidy_mpd-4.0.0.tar.gz -
Subject digest:
0f118b1c46665c005575d13ad32906a0e477b698478ef6e950a7720a61e16ac8 - Sigstore transparency entry: 1375790094
- Sigstore integration time:
-
Permalink:
mopidy/mopidy-mpd@eda220cc81aef3b81c152f2913e3cd940022cdc5 -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/mopidy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@eda220cc81aef3b81c152f2913e3cd940022cdc5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mopidy_mpd-4.0.0-py3-none-any.whl.
File metadata
- Download URL: mopidy_mpd-4.0.0-py3-none-any.whl
- Upload date:
- Size: 56.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a293c74ff347f359adeb1712767a154d6303a68708e61af1557ee297b7562a4a
|
|
| MD5 |
b945edd03e37e3af7794077c11729c3d
|
|
| BLAKE2b-256 |
2aa0ad3bc4fff26ec675d3fc2a9de62e9d3568159534aaf7e1f39863a6e23ad4
|
Provenance
The following attestation bundles were made for mopidy_mpd-4.0.0-py3-none-any.whl:
Publisher:
release.yml on mopidy/mopidy-mpd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mopidy_mpd-4.0.0-py3-none-any.whl -
Subject digest:
a293c74ff347f359adeb1712767a154d6303a68708e61af1557ee297b7562a4a - Sigstore transparency entry: 1375790185
- Sigstore integration time:
-
Permalink:
mopidy/mopidy-mpd@eda220cc81aef3b81c152f2913e3cd940022cdc5 -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/mopidy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@eda220cc81aef3b81c152f2913e3cd940022cdc5 -
Trigger Event:
release
-
Statement type: