roon-mcp
This MCP server controls the Roon music player, enabling AI agents to search music, manage playback, and adjust audio settings across zones.
Music Discovery
Search music (
search_music) — find artists, albums, tracks, playlists, radio stations, or genres by free-text query, optionally including streaming services (e.g. TIDAL/Qobuz)Expand items into tracks (
get_tracks_for) — drill into an artist, album, genre, or playlist to get a concrete, playable list of tracks
Playback Control
Play something immediately (
play_now) — start playing a single item in a zone, replacing the current queue; supports shuffleBuild and start a curated queue (
enqueue_and_play) — queue an ordered, hand-picked list of items and start playbackTransport controls (
control_playback) — pause, resume, skip to next/previous track, or stop playbackSeek within a track (
seek) — jump to an absolute position or move forward/backward by a relative number of seconds
Zone & Output Management
List available zones (
list_zones) — see all playable rooms/outputs with their current playback stateCheck what's playing (
now_playing) — get the current track, artist, album, playback state, and seek position for a zone
Audio Settings
Set volume (
set_volume) — set a zone's volume to a target percentage (0–100), automatically rescaled to each output's native rangeMute/unmute (
mute) — mute or unmute every output in a zoneSet loop/repeat mode (
set_loop) — configure repeat to off, repeat-all, or repeat-one
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@roon-mcpsearch for Miles Davis and play his album Kind of Blue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
roon-mcp
An MCP server to control the Roon music
player, so an AI agent can find music and start playback. Built on the official
Roon Extension API (node-roon-api + node-roon-api-transport /
node-roon-api-browse).
"Play a female vocal trance mix on Roon (Zone: This Computer) — 2000s Dutch trance vibes, the kind of set you'd hear at Amnesia in its prime. Start with something like 4 Strings' Take Me Away."
Claude searches across your library and streaming, hand-picks the tracks, and queues them — all from a single natural-language prompt.
Requirements
Node.js 20+
A running Roon Core on the local network to pair with
git on the install host — the
node-roon-api*dependencies are published on GitHub (not npm) and are fetched via git URLs during install
Related MCP server: navigravity
MCP Client Configuration
Add this to your MCP client config. npx fetches the package on first run:
{
"mcpServers": {
"roon": {
"command": "npx",
"args": ["-y", "roon-mcp"],
"env": { "ROON_DEFAULT_ZONE": "Office" }
}
}
}On first launch, open Roon → Settings → Extensions and enable Roon MCP
to pair. Pairing status is logged to stderr; stdout is reserved for the MCP
protocol. The pairing token is persisted to ~/.config/roon-mcp/config.json
(override with ROON_MCP_CONFIG), so the extension stays authorized across
restarts rather than appearing as a new "Discovered" entry each time.
Global install (optional)
npm install -g roon-mcp{
"mcpServers": {
"roon": {
"command": "roon-mcp",
"env": { "ROON_DEFAULT_ZONE": "Office" }
}
}
}Configuration
Env var | Purpose |
| Optional fallback target for |
| Optional path for the persisted pairing token. A value ending in |
Tools
Tool | Purpose |
| List playable zones/outputs (id, name, state, output ids). |
| Resolve a text query into ranked browse candidates (opaque, session-scoped item keys). |
| Expand an artist/album/genre/playlist candidate into concrete playable tracks. |
| Play or queue one search candidate. By default replaces the queue and starts immediately. Pass |
| Build an ad-hoc queue from curated item keys and start it (replaces the zone's queue); reports queued/skipped. |
| Snapshot of the zone's current track — state, title, artist, album, seek position. |
| Run a transport verb: |
| Seek within the current track. |
| Set the loop/repeat mode: |
| Set the zone's volume to |
| Mute ( |
Notes
Genre search fuzzy-matches what you type — "psychedelic trance" will find the right genre even if the name isn't exact. By default results come from your library.
includeStreaming: true(ontype:"genre"ortype:"artist") extends the search to your streaming service, so you can play artists or genres that aren't in your local collection.After starting playback,
now_playingreflects the track that just started, not whatever was playing before.Volume is set as a percentage (0–100) and works correctly across grouped zones.
Assumptions
Core language: English. Category/action label matching (
Artists,Play Now,Top Tracks, …) assumes an English Core.Sources: local library + your configured streaming service. The server goes through Roon's Browse API, which routes to whatever streaming service you have set up in Roon (Tidal, Qobuz, etc.). Developed and tested against Tidal — other services should work but are untested. Results differ on a local-only Core.
Queue: replace.
enqueue_and_playstarts a fresh queue rather than adding to whatever is already playing.Curation is agent-side. Dedupe / cap-per-artist / ordering / trimming stay in the agent; the server has no curation logic.
There is no save_playlist tool: Roon exposes no official playlist-write service, so
durable playlists are out of scope. Curated playback is delivered by enqueue_and_play
(an ad-hoc, in-the-moment queue).
Logging
Every Roon API call (browse, load, get_zones, change_settings) emits one
structured line to stderr (stdout stays reserved for MCP JSON-RPC):
[roon-call] {"t":"2026-06-19T18:00:00.000Z","lvl":"info","op":"browse","ms":12,"params":{"hierarchy":"search","item_key":"…"},"result":{"action":"list","count":7}}Failures log lvl:"error" with the mapped error code, and retries surface as repeated
lines for the same op. Grep stderr for [roon-call] to trace a flow.
Development
npm install # pulls node-roon-api packages from RoonLabs' GitHub
npm run build
npm test # builds, then runs node:test
npm run dev # tsc --watch
npm run typecheckRun the built server directly:
npm startIntegration smoke test
scripts/integration.mjs spawns the built server over stdio (like a real MCP client)
and runs list → search → expand against your Core. Audible steps are opt-in so it never
blasts music by accident:
npm run build
node scripts/integration.mjs # list_zones + search only (read-only)
ROON_PLAY=1 node scripts/integration.mjs # also play_now a shuffled genre
ROON_ENQUEUE=1 node scripts/integration.mjs # also enqueue a few curated tracks
# overrides: ROON_ZONE="Office" ROON_QUERY="Tycho"Enable Roon MCP under Roon → Settings → Extensions on the first run (the script
retries list_zones for ~45s while it waits to pair).
Releasing
npm run release -- <patch|minor|major>Requires a clean worktree on main and a matching ## [<version>] entry in
CHANGELOG.md. The script runs the tests, bumps the version, tags the
commit, and verifies the package with npm pack. It then prints the push and
npm publish commands to run.
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bestimmaa/roon-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server