๐ŸŽต Music Assistant

Music Assistant is a music library manager and multi-room player. It combines your streaming services (Spotify, Apple Music, Tidal, Deezer, YouTube Music โ€ฆ), internet radio and local files into one library, and plays them on almost any speaker: Sonos, AirPlay, Chromecast, Squeezebox, DLNA, Snapcast and Sendspin (e.g. TECHO5 voice satellites).

Together with Home Assistant it gives you voice control like โ€œplay Linkin Park in the bathroomโ€ and a media player entity for every speaker.

๐Ÿท๏ธ Category: Media, Home Automation

๐Ÿณ Image: ghcr.io/music-assistant/server:latest

โš ๏ธ Requires: Host networking (mDNS/SSDP discovery of speakers) ยท Same (V)LAN as your speakers


ย  ย 
๐Ÿ“ฆ Project github.com/music-assistant/server
๐Ÿ“– Documentation music-assistant.io
๐Ÿ  Home Assistant home-assistant.io/integrations/music_assistant
๐Ÿ› Support GitHub Issues

๐ŸŒ Network

Setting Value
Network mode host (required โ€“ speakers are discovered via mDNS/SSDP/multicast)
Port 8095 TCP โ€“ web interface and API (Home Assistant connects here)
Port 8097 TCP โ€“ audio streams to the players

There is no port mapping because the container uses the host network stack.


๐Ÿ’พ Volumes

Host Path Container Path Mode Description
/mnt/cache/appdata/music-assistant /data RW Settings, library database and cache. Back this up.

โš™๏ธ Environment Variables

Variable Default Masked Description
TZ Europe/Vienna โŒ Timezone
LOG_LEVEL info โŒ critical, error, warning, info, debug

๐Ÿ” Extra Parameters

--cap-add=SYS_ADMIN --cap-add=DAC_READ_SEARCH --security-opt apparmor:unconfined โ€“ needed only if Music Assistant should mount SMB/NFS shares for local music files. Without network shares you can remove them.


๐Ÿš€ Setup

  1. Install the template and open http://YOUR_SERVER_IP:8095.
  2. Create the admin account, then add music providers (e.g. Spotify โ€“ needs Premium, Apple Music, Radio Browser, a local folder).
  3. Add player providers: Sonos, AirPlay, Chromecast, Sendspin โ€ฆ โ€“ most are found automatically.
  4. In Home Assistant: Settings โ†’ Devices & services โ†’ Add Integration โ†’ Music Assistant โ†’ URL http://YOUR_SERVER_IP:8095.
  5. For voice control, expose the Music Assistant players to Assist; an LLM conversation agent can then use โ€œplay โ€ฆ in โ€ฆโ€.

๐Ÿ› ๏ธ Troubleshooting

Problem Fix
Speakers are not found Host networking? Same VLAN? mDNS not blocked by the firewall?
Sonos plays but stutters Check port 8097 is reachable from the speakers
Home Assistant canโ€™t connect URL must point to port 8095, no trailing path
Local share canโ€™t be mounted Keep the extra parameters (SYS_ADMIN, DAC_READ_SEARCH, apparmor:unconfined)

๐Ÿ’ก Best Practices

  • Run it on the same host as Home Assistant for the lowest latency
  • Use the Radio Browser provider for internet radio, or add your own stream URLs
  • Back up /data โ€“ it holds your providersโ€™ logins and your library

MOS Templates โ€“ maintained by J000K3R

This site uses Just the Docs, a documentation theme for Jekyll.