Back to services

Mopidy

Extensible music server. Offers a superset of the mpd API, as well as integration with 3rd party services like Spotify, SoundCloud etc.

View alternatives to Mopidy
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

Mopidy is an extensible music server written in Python, maintained by Stein Magnus Jodal and community contributors. It typically runs as a background service on a device connected to speakers, such as a home computer, a NAS, or a Raspberry Pi. From clients such as phones, tablets, and computers, you can remotely browse your music library, manage the playback queue, and control playback.

Its core design is its extension mechanism: the server itself provides only the playback core and basic functionality, while music sources, frontend interfaces, and control protocols can all be added through extensions.

Key Features

  • Built-in extensions:
    • mopidy-file: browse and play music from the local file system
    • mopidy-m3u: manage M3U playlists
    • mopidy-stream: play network audio streams, such as internet radio
    • mopidy-http: provides an HTTP server and a web interface
    • mopidy-softwaremixer: software volume control
  • Third-party extensions: extensions can connect more music sources (the official guide includes a tutorial on setting up Spotify on Debian), web frontends, and other ways of controlling playback.
  • Multiple audio outputs: supports configuring different audio outputs (audio sinks), including PulseAudio, PipeWire, or streaming to an Icecast server.
  • Remote control: a variety of clients can connect, and the official documentation provides a guide to UPnP remote control.
  • Developer APIs: provides an HTTP JSON-RPC API and the Mopidy.js JavaScript library for building custom web clients; there are also Python framework APIs such as Core, Frontend, Backend, Audio, Mixer, Config, and Zeroconf for developing extensions.

Target Users and Use Cases

  • Users who want to build a home music player or living-room audio hub with a Raspberry Pi
  • Music lovers who need to manage a local library, internet radio, and online music sources in one place
  • Tinkerers who want to set up multi-room audio or Icecast streaming
  • Developers who want to build custom music control interfaces or hardware players on top of open APIs

Installation and Deployment

The official documentation supports installation on Linux, macOS, and Raspberry Pi, in two ways:

  1. System packages: install through the platform's package manager, which makes integration with system services easier.
  2. Manual installation: install Mopidy and the extensions you need manually in a Python environment.

Once installed, you can run it directly in a terminal with the mopidy command, or configure it as a system service that stays running in the background. The behavior of the server and each extension is adjusted through configuration files; after configuring, just connect a client to start using it. The official documentation provides a dedicated installation guide for Raspberry Pi, as well as troubleshooting documentation.

Technical Highlights

  • Programming language: Python
  • Architecture: core + frontend/backend extensions, modular design
  • Web interfaces: HTTP JSON-RPC API, Mopidy.js
  • Supported platforms: Linux, macOS, Raspberry Pi

Notable Characteristics

  • Highly modular: install extensions as needed and combine them to suit your own requirements
  • Headless server design, well suited to running long term on low-power devices
  • Thorough extension development documentation and API reference, so the barrier to custom development is low
  • Active community: you can ask for help on the Discourse forum or join development discussions in the Zulip chat, and the source code is hosted on GitHub