Sonos MCPサーバー
このプロジェクトは、ネットワーク上のSonosデバイスを制御および操作できるSonos MCP(Model Context Protocol)サーバーです。デバイスの検出、再生の制御、デバイス状態の取得、キューの管理など、さまざまな機能を提供します。
特徴
- ネットワーク上のSonosデバイスを検出する
- デバイスの再生状態を取得および制御する
- 再生キューを管理する
- 機能をMCPツールとして公開する
要件
- Python 3.7以上
- Pythonプロジェクトを管理するための
uv
インストール
- リポジトリをクローンします。
uv
を使用して必要な依存関係をインストールします。
使用法
サーバーの実行
スタジオ
stdio を使用してサーバーを実行します。
スーパーゲートウェイを備えたSSE
supergateway
ツールを使用して SSE でサーバーを実行します。
あるいは、リポジトリで提供されている便利なスクリプトを使用することもできます。
発達
MCP インスペクターを使用してサーバーを「開発」モードで実行するには:
このコマンドは、テストとデバッグの目的で MCP インスペクターをホストします。
開発モードで SSE を使用してサーバーを実行するには、supergateway の SSE コマンドを使用し、2 番目のターミナル ウィンドウで次のコマンドを実行します。
利用可能なMCPツール
公開されているMCPツールを使用して、Sonosデバイスを操作します。利用可能なツールは以下のとおりです。
get_all_device_states
: 検出されたすべての Sonos デバイスの状態情報を取得します。now_playing
: すべての Sonos デバイスで現在再生中のトラックに関する情報を取得します。get_device_state
: 特定の Sonos デバイスの状態情報を取得します。pause
、stop
、play
: Sonos デバイスでの再生を制御します。next
、previous
: Sonos デバイスでトラックをスキップします。get_queue
、get_queue_length
: Sonos デバイスの再生キューを管理します。mode
: Sonos デバイスの再生モードを取得または設定します。partymode
: 現在の Sonos デバイスでパーティー モードを有効にします。speaker_info
: Sonos デバイスのスピーカー情報を取得します。get_current_track_info
: Sonos デバイスの現在のトラック情報を取得します。volume
: Sonos デバイスの音量を取得または設定します。skip
、play_index
、remove_index_from_queue
: Sonos デバイスのキュー内のトラックを管理します。
ライセンス
このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
モデル コンテキスト プロトコルを介してネットワーク上の Sonos デバイスを制御および操作できるサーバー。デバイスの検出、再生の制御、デバイスの状態の取得、キューの管理などの機能を提供します。
Related MCP Servers
- AsecurityAlicenseAqualityA server that enables interaction with Home Assistant devices and automations through the Model Context Protocol, allowing users to monitor device states, control devices, trigger automations, and list entities.Last updated -429JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables users to create, check status, and get details of projects on Loveable.dev, a platform for quickly creating applications.Last updated -JavaScriptISC License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables interaction with Service Nervous System (SNS) DAOs on the Internet Computer, allowing users to list proposals, view neurons, get system parameters, manage wallets, and vote on proposals.Last updated -62TypeScript
- -securityFlicense-qualityA Model Context Protocol server that enables interactions with the Hedera network, providing tools for wallet creation, balance checking, transaction building, and sending signed transactions.Last updated -JavaScript