Skip to content

Installing the Server

Installing via Home Assistant is the easiest way to get started!

Music Assistant (MA) can be operated as a complete standalone product but it is actually tailored to use side by side with Home Assistant. MA is built with automation in mind, hence our recommended installation method is to run the server as a Home assistant Add-on which will be automatically installed when you add the Home Assistant Integration. Install using one of the three methods below.

MA requires a 64bit Operating System and a minimum of 2GB of RAM on the physical device or the container (physical devices are recommended to have 4GB+ if they are running anything else)

Primary installation method: Home Assistant Integration Installation

Using HAOS. Go to the Home Assistant Integration page and follow the instructions there which will install the integration and the server (as an addon).

Secondary installation method: Home Assistant Add-on Manual Installation

Using HAOS. If you dont need the HA Integration but want to run the Music Assistant Server then install the Music Assistant Add-on manually:

  1. Add the Music Assistant repository to your Home Assistant instance.
  2. Install the Music Assistant add-on.

Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.

Tertiary installation method: Docker image

An alternative way to run the Music Assistant server is by running the docker image:

docker run --network host --privileged -v <dir>:/data ghcr.io/music-assistant/server

You must run the docker container with host network mode and in privileged mode. The data volume is /data - replace <dir> with a writable directory to ensure the data volume persists between updates. If you want access to your local music files from within MA, make sure to also mount that, e.g. /media. Note that accessing remote (SMB) shares can be done from within MA itself using the SMB File provider (but requires the privileged flag).


Server Notes

  • Because the server heavily relies on multicast techniques like mDNS and uPnP to discover players in your network it MUST be run in the same Layer 2 network as your player devices.

  • The server itself hosts a very simple webserver to stream audio to devices. This webinterface must be accessible via HTTP (no HTTPS) by IP-address from local players. See the server's logging at startup to see if the server has correctly auto-detected the local IP.

  • The server itself hosts a websocket API and a JSON RPC API which is more or less compatible with LMS, however, you cannot run a separate LMS server on your network if the MA slimproto provider is enabled. The Music Assistant fronted communicates with the server using the websockets API.

  • You cannot run the slimproto integration in Home Assistant if the slimproto provider is emabled.

  • The webinterface of the server can be reached on TCP port 8095 if enabled in the settings. By default, on HAOS based installations, the webserver is internal only and not exposed to the outside world. It is protected by HA authentication using the Ingress feature of Home Assistant (you also get the sidepanel shortcut for free!)

  • You can access the frontend over https by following these steps:

  • Expose the webserver via MA settings>>Core>>webserver

  • To access the frontend behind a reverse proxy you will have to configure the reverse proxy to point at the 8095 port and expose it to whatever is desired (and add an ssl certificate). How that works differs for each implemention.

Tip

You can keep the server more secure by NOT exposing the webserver and let the addon talk directly to the webserver on the internal docker network. In that case address the internal dns name of the addon would be, for example, http://d5369777-music-assistant-beta:8095

Usage and Notes

  • If you are running Music Assistant in docker, you need to access the webinterface at http://youripaddress:8095. When running the Home Assistant add-on, you can access the webinterface from the add-on (a shortcut can be added to the sidebar) which is more secure than via the port (although the port can be exposed in the settings).
  • Music from your music sources will be automatically loaded into the Music Assistant library. If you have multiple sources, they will be merged as one library.
  • In this first implementation the UI centres around the concept of the Library, so your artists, albums, tracks, playlists and radio stations. You can BROWSE the various providers to add aditional items to your Library. In a later release options will be provided to browse the recommendations of the various streaming providers.
  • Note that at the first startup it can take a while before data is available (first sync), the Music Assistant UI will notify you about tasks that are in progress.
  • Music sources are synced at addon (re)start and every 3 hours (or other interval as selected in the settings).
  • If a song is available on multiple providers (e.g. Spotify and a flac file on disk), the file/stream with the highest quality is always preferred when starting a stream.
  • Music Assistant uses a custom stream port (TCP 8096 by default) to stream audio to players. Players must be able to reach the Home Assistant instance and this port. If you're running one of the recommended HAOS installation methods, this is all handled for you, otherwise you will have to make sure you're running MA in a container in privileged mode and HOST network mode. Note: If the default port 8096 is occupied, the next port will be tried, and so on.