python-mpd2
A Python MPD client library
Decision gist · record as of 2026-08-14
Yes. This is a mature, actively maintained library with zero dependencies, a permissive copyleft license, and no known vulnerabilities. Install it if you need to control MPD from Python—whether for a simple script, web service, or async application. The only prerequisite is having an MPD server running; the library itself is straightforward to integrate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later and a running Music Player Daemon server to connect to.
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained with recent commits; last release was 2024-01-13 and repository shows ongoing development.
License · maintenance · safety
copyleft license (copyleft) — LGPLv3 copyleft license: you may use this library freely in proprietary software, but any modifications to the library itself must be released under the same license.
last release 2024-01-13 (944 days) · last repo commit 2026-08-08 · 368 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 120,946 downloads/mo, #12,002 on PyPI
Alternatives
Verify before relying
pip install python-mpd2
import python_mpd2
client = python_mpd2.MPDClient()
client.connect('localhost')
status = client.status()
client.close()- Whether asyncio/twisted support is production-ready or still experimental.
- Performance characteristics when controlling large playlists or music libraries.
- Compatibility matrix with specific MPD server versions.
- Default port and connection parameters for MPD server connections.
What it is and what it does
python-mpd2 is a Python client library for Music Player Daemon (MPD), a lightweight music server. It lets you control MPD playback, manage playlists, and query server state from Python code. The library supports both synchronous blocking calls and asynchronous patterns via asyncio or twisted, making it suitable for simple scripts, web applications, and event-driven systems.
The package started as a fork of python-mpd and has evolved to support Python 3.6+, client-to-client protocol messaging, and newer MPD commands including seekcur, prio, config, mount, and others. It includes explicit command declarations for IDE autocomplete, configurable connection timeouts, logging support, and improved Unicode handling. With zero runtime dependencies and a pure-Python wheel, it installs quickly and runs anywhere Python 3.6+ is available.
Use it for
- Build a web dashboard or REST API to control MPD playback and queue from a browser.
- Write a command-line tool to automate playlist management and music library operations.
- Create a home automation script that integrates MPD with other services via asyncio.
- Develop a music client application with custom UI that talks to a remote MPD server.
- Monitor and log MPD server state and playback events for analytics or debugging.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a mature, actively maintained library with zero dependencies, a permissive copyleft license, and no known vulnerabilities. Install it if you need to control MPD from Python—whether for a simple script, web service, or async application. The only prerequisite is having an MPD server running; the library itself is straightforward to integrate.
Install
python-mpd2 on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with recent commits; last release was 2024-01-13 and repository shows ongoing development.
Requires Python 3.6 or later and a running Music Player Daemon server to connect to.
License in practice
LGPLv3 copyleft license: you may use this library freely in proprietary software, but any modifications to the library itself must be released under the same license.
Quickstart
pip install python-mpd2
import python_mpd2
client = python_mpd2.MPDClient()
client.connect('localhost')
status = client.status()
client.close()
Verify before relying
- Whether asyncio/twisted support is production-ready or still experimental.
- Performance characteristics when controlling large playlists or music libraries.
- Compatibility matrix with specific MPD server versions.
- Default port and connection parameters for MPD server connections.
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 944 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 120,946 / month, #12,002 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)Natural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: python_mpd2-3.1.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mpd client library python”
- python-mpd2Provides a Python client library to communicate with Music Player…
- paypalhttpPayPalHttp is a generic HTTP client library designed to work with…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also music-assistant-client · spotifywebapipython · Twisted · pyforked-daapd · aioslimproto · pypd · pysqueezebox · soco · pykaleidescape · pyftpdlib