Skip to content

Build a provider

A provider adds a music service, a kind of speaker, a source of metadata or a feature to Music Assistant. This section helps you pick the type and the place for yours, and build it.

Each type has a base class in music_assistant/models/ and a type value in its manifest.

Type Base class What it adds
music MusicProvider A source of music: a streaming service, a radio directory, your own files.
player PlayerProvider A kind of player, such as Sonos, Chromecast or AirPlay.
metadata MetadataProvider Metadata the music sources leave out, such as artwork, biographies and lyrics, from an online source or local files. It does not change the original item.
plugin PluginProvider A feature that works with the core, such as scrobbling, the AirPlay Receiver, AI and speech engines, or the Home Assistant connection.
audio_analysis AudioAnalysisProvider Analysis of the audio of a track, such as beats, key or loudness.

You can also improve an existing provider: its manifest.json lists its maintainers in codeowners, where @music-assistant stands for the core maintainers.

  • In the server: it ships with every Music Assistant server, and the project supports it. That asks for demand, documentation, tests and a maintainer.
  • In your own repository: administrators install it from the community catalog in the Marketplace. You release when you want, and the project does not support it.

Building a provider compares the two and covers the template, testing and joining the community catalog.

  1. Choose the place. For your own repository, start from the community provider template (you need Docker and VS Code with Dev Containers). For the server, set it up first: see Server.
  2. Read the page of your type: music provider, player provider, or metadata, plugin and audio analysis providers. Each names the provider to start from: a demo provider, or for metadata an existing provider.
  3. Give your provider a folder with at least __init__.py and a manifest. Options come from get_config_entries() in code, a login or a pairing from a setup flow.

These are not negotiable. Read them before you start:

Providers and Players explain how they fit into the server.

Music Assistant is a project of the Open Home Foundation.