BR

bestimmaa/roon-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

2 stars 4 forks 品質 78 トレンド 22MIT

MCP サーバは、AI エージェントを介して Roon の音楽プレーヤーを制御する

概要

音楽プレーヤーを制御するMCPサーバーなので、AIエージェントは音楽を見つけて再生を開始することができます。 Roon Extension API (node-roon-api + node-roon-api-transport / node-roon-api-browse) の公式 API で構築されました。 Claudeは、ライブラリとストリーミングを横断検索し、トラックを手渡しし、それらをキューに入れます。すべての自然言語のプロンプトから。 - Node.js 20 + - インストールホストの - - と組み合わせるローカルネットワーク上で実行される - Node-roon-api*の依存関係は GitHub (npm ではなく) で公開され、インストール中に git URL 経由で取得される MCP クライアント config に追加します。 npx は最初の実行でパッケージをフェッチします。 初回起動時、開いてペアリング可能。 ペアリング状態は stderr に記録されます。 stdout は MCP プロトコルで予約されます。 ペアリングトークンは、~/.config/roon-mcp/config.json (ROON MCP CONFIG でオーバーライド) に永続するので、拡張子は、毎回新しい "Discovered" エントリとして表示するのではなく、再起動全体で承認されます.

概要(AI 翻訳)

Roon音楽を制御するMCPサーバー そのため、AIエージェントは音楽を見つけ、再生を開始することができます。 公式に構築 ローンエクステンション API (node-roon-api) + [node-roon-api-transport]] / [node-roon-api-browse]]。

お問い合わせ

「ルーン(Zone:このコンピュータ)」で女性のボーカルトランスミックスを再生する— 2000年代のオランダのトランスバイブ、その一流でアンネシアで聴いたセット。 4弦のテイク・ミー・アウェイのようなものから始める ツイート *Claudeは、ライブラリとストリーミングを横断して検索し、トラックを手渡しし、それらをキューに入れます。

お問い合わせ

要件

  • Node.js 20 +
  • ローカルネットワークでRoon Coreを実行してペアリング
  • インストールホストのgit — [node-roon-api*] 依存関係が公開される GitHub (npm ではなく) でインストール中に git URL で取得

MCP クライアント構成

MCP クライアント config にこれを追加します。 [npx]]] は、最初の実行時にパッケージをフェッチします。

最初の起動時に、Roon → Settings → Extensionsを開き、Roon 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).
GitHub で README 全文を見る

インストール

npx -y roon-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "roon": { "command": "npx", "args": ["-y", "roon-mcp"], "env": { "ROON_DEFAULT_ZONE": "Office" } } } }