roon-mcp: An MCP server that plays music on Roon

[ ai, bsd3, library, program, sound ] [ Propose Tags ] [ Report a vulnerability ]

A Model Context Protocol server, over stdio, that lets an assistant play music on a Roon system: list the zones and their queues, search and browse the library, queue or play tracks, albums, playlists and radios, control playback, volume and playback options, move what plays to another zone, and fetch images such as covers. Built on roon-api and effectful-mcp. Not affiliated with Roon Labs.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies aeson (>=2.3 && <2.4), base (>=4.19 && <4.22), effectful (>=2.7 && <2.8), effectful-core (>=2.7.1 && <2.8), effectful-mcp (>=0.1 && <0.2), roon-api (>=0.1 && <0.2), roon-mcp, streamly-core (>=0.3.3 && <0.4), text (>=2.1 && <2.2), time (>=1.12 && <1.15) [details]
Tested with ghc ==9.8.4 || ==9.10.3 || ==9.12.4
License BSD-3-Clause
Author Xavier Dectot
Maintainer Xavier Dectot <xavier@wheredoibegin.fr>
Uploaded by GdeVolpiano at 2026-11-28T14:34:29Z
Category Sound, AI
Home page https://github.com/GuillaumedeVolpiano/roon_mcp
Source repo head: git clone https://github.com/GuillaumedeVolpiano/roon_mcp.git
Distributions
Executables roon-mcp
Downloads 0 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for roon-mcp-0.1.0.0

[back to package description]

roon-mcp

A Model Context Protocol server, on stdio, that lets an assistant play music on a Roon system: list the zones, search and browse the library, queue or play what was found, and control playback and volume.

This is an independent, unofficial project, not affiliated with or endorsed by Roon Labs. It is built on roon-api and effectful-mcp, and speaks MCP revision 2026-07-28, and the earlier revisions to the clients that only know them.

Tools

Tool What it does
list_zones The zones, what plays in each, their outputs with their volume, their playback options, and what each allows.
get_queue The next items of the queue of a zone.
search_tracks Several searches at once, one per track; candidates with an id, a title and artists.
queue_tracks Candidates into the queue of a zone, in order: at the end (queue, the default), after the current track (add_next), or in place of the queue, the first at once (play_now). Reports each track.
control Play, pause, stop, next, previous.
browse_library The library by albums, artists, playlists, genres, composers and internet radios, or a search of all of it; opens the lists it finds, page by page.
play_item What browse_library found (a track, an album, a playlist, an artist, a radio) into a zone: queue (the default), add_next, play_now, start_radio or shuffle.
set_volume The volume of a zone or of one of its outputs: a level, a move, or mute.
seek A position in the track that plays, or a move from the current one.
set_playback_options Shuffle, Roon Radio after the queue, and the loop.
transfer_zone What plays in a zone, with its queue, to another zone.
get_image An image of Roon, such as a cover, from an image_key given by the other tools.

Zones are named by their id or their name.

Setting up

cabal install roon-mcp
roon-mcp register

roon-mcp register connects to the Roon Server and waits until you enable "roon-mcp" in Roon, under Settings, Extensions. It does so once: the token it receives is kept in $XDG_STATE_HOME/roon-api/.

Then declare the server to the MCP client, for instance Claude Code:

claude mcp add roon -- /path/to/roon-mcp

ROON_HOST and ROON_PORT choose the server. Without ROON_HOST, roon-mcp looks for one on the local network when it starts, by SOOD; ROON_CORE, a name or a unique id, chooses among several. If none answers, it uses 127.0.0.1:9330. ROON_TRACE=1 describes every frame exchanged with Roon on stderr, which MCP leaves free for logs.

How it works

Each call opens a connection to Roon, does its work and closes it, so the server keeps no state. Roon keeps one connection per extension, so calls take their connections one at a time. A candidate id carries the browsing session where Roon keeps the result of its search, so that searching and queueing can be two calls.

Building

To build against copies of the libraries this package is built on (roon-api, effectful-mcp and those under them) checked out next to this repository, pass --project-file=cabal.project.siblings.

Tested with GHC 9.8.4, 9.10.3 and 9.12.4, and Roon Server 2.75.

License

BSD-3-Clause. See LICENSE.