Skip to content

Server

The server is the Python core of Music Assistant, in music-assistant/server. This section gets it running on your machine and points you to the part you want to change.

  • Controllers: players, queues, the library, metadata, the webserver and more, in music_assistant/controllers/.
  • Providers: in music_assistant/providers/, see Build a provider.
  • The stream engine: audio from source to player, in music_assistant/controllers/streams/.
  • The API: the commands and events every client uses, see Build on the API.
  • Tests and tooling: tests/, the player scenario tests and the performance benchmark.

You need: macOS or Linux (on Windows, use WSL 2), Python 3.14 or newer, ffmpeg 8.0 or newer, and uv.

  1. Set up your environment: fork, clone and run scripts/setup.sh.
  2. Run and debug: start the server with a data folder of its own and open http://localhost:8095.
  3. Test your change: run pytest and pre-commit run --all-files, and test on a real device where your change talks to one. A change to playback, a queue or a player can also go through the end-to-end test lab.
  4. Read Code conventions before you ask for a review.
  5. Open a pull request against the dev branch and fill in the template. Tick one type of change: it sets the label the release notes use. If you used AI tools, the AI policy applies.

A good first change is small and stays in one place: a fix in a provider you use, with a test under tests/ that shows it works. Your first contribution walks you through the steps.

Bot-MArley, the review bot of the maintainers, reviews a ready pull request within about an hour. A change outside a single provider also needs a maintainer, which takes longer.

  • AGENTS.md: the rule book for code style, stored data and branches. It is written for AI assistants and holds for people too.
  • The README.md next to the code of a controller, in the controllers folder, and of some providers.
  • Architecture and Inside the server: how the parts fit together.

Music Assistant is a project of the Open Home Foundation.