
bestimmaa/roon-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
AI Agent를 통해 Roon 음악 플레이어를 제어하는 MCP 서버
개요
MCP 서버는 음악 플레이어를 제어하므로 AI 에이전트는 음악을 찾을 수 있으며 재생을 시작합니다. Roon Extension API (node-roon-api + node-roon-api-transport / node-roon-api-browse)에 내장되어 있습니다. 라이브러리 및 스트리밍을 통해 Claude 검색, 트랙을 손으로 캡처하고, 단일 자연적인 언어 프롬프트에서 모두. - Node.js 20+ - 로컬 네트워크에서 켤 때 - 설치 호스트에서 - 노드-로온-api* 의존성은 GitHub(npm)에 게시되며 설치 중에 git URL을 통해 fetched MCP 클라이언트 구성에 이것을 추가합니다. npx 첫 번째 실행에 패키지를 fetches: 첫 번째 출시, 열리고 쌍을 활성화. 쌍 상태는 stderr에 기록됩니다; stdout는 MCP 의정서를 위해 예약됩니다. 페어링 토큰은 ~/.config/roon-mcp/config.json (ROON MCP CONFIG와 함께 함)에 대해 지속되므로 확장은 새로운 "Discovered" 항목으로 나타낸다.
개요(AI 번역)
Roon 음악을 제어하는 MCP 서버
선수, 그래서 AI 대리인은 음악을 찾아낼 수 있고 재생을 시작합니다. 공식에 내장
Roon 확장 API ([T0]] + node-roon-api-transport /
node-roon-api-browse]).
"Roon (Zone :이 컴퓨터)에서 여성 보컬 트랜스 믹스를 재생합니다. - 2000s 네덜란드 트랜스 바이브, 당신이 그것의 주요한 Amnesia에서 듣고있는 세트의 종류. 4개의 Strings’ Take Me Away와 함께 시작하세요. ·
- 라이브러리 및 스트리밍을 통해 검색할 수 있으며, 트랙을 손으로 만들고 단일 자연적인 언어 프롬프트에서 모두 쿼리합니다.*
요구 사항
- Node.js 20 이상
- 실행 **로온 코어 ** 로컬 네트워크에서 쌍으로
- git 설치 호스트에 -
node-roon-api*의존성 발표 GitHub(npm)에서 설치 중에 git URL을 통해 fetched
MCP 클라이언트 구성
MCP 클라이언트 설정에 이것을 추가하십시오. npx] 첫 번째 실행에 패키지를 fetches :
첫 번째 출시에서 **로온 → 설정 → 확장 ** 및 **로온 MCP **
에 쌍. 페어링 상태는 stderr에 로그인; stdout은 MCP에 대한 예약
프로토콜. 페어링 토큰은 ~/.config/roon-mcp/config.json
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
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
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 |
|---|---|
ROON_DEFAULT_ZONE |
Optional fallback target for play_now / enqueue_and_play when no zoneId is given — a zone/output id or a display-name substring. If unset, the server falls back to the only zone, an Office zone, or the currently-playing zone; if it still can’t decide it returns ZONE_AMBIGUOUS so the agent can ask. |
ROON_HOST |
Optional direct-connection host for the Core’s API, bypassing SOOD multicast discovery — for VLAN-segmented networks, VPNs, or containers where discovery doesn’t survive. Unset (default) uses discovery as before. |
ROON_PORT |
WebSocket port of the Core’s API when ROON_HOST is set. Defaults to 9330. |
ROON_MCP_CONFIG |
Optional path for the persisted pairing token. A value ending in .json is the file itself; anything else is a directory to hold config.json. Defaults to $XDG_CONFIG_HOME/roon-mcp/config.json (i.e. ~/.config/roon-mcp/config.json). |
Tools
| Tool | Purpose |
|---|---|
list_zones() |
List playable zones/outputs (id, name, state, output ids). |
설치
npx -y roon-mcp설정
{
"mcpServers": {
"roon": {
"command": "npx",
"args": ["-y", "roon-mcp"],
"env": { "ROON_DEFAULT_ZONE": "Office" }
}
}
}