Skip to main content
Glama

Sonos MCP Server

Sonos MCPサーバー

このプロジェクトは、ネットワーク上のSonosデバイスを制御および操作できるSonos MCP(Model Context Protocol)サーバーです。デバイスの検出、再生の制御、デバイス状態の取得、キューの管理など、さまざまな機能を提供します。

特徴

  • ネットワーク上のSonosデバイスを検出する
  • デバイスの再生状態を取得および制御する
  • 再生キューを管理する
  • 機能をMCPツールとして公開する

要件

  • Python 3.7以上
  • Pythonプロジェクトを管理するためのuv

インストール

  1. リポジトリをクローンします。
    git clone https://github.com/WinstonFassett/sonos-mcp-server.git cd sonos-mcp-server
  2. uvを使用して必要な依存関係をインストールします。
    uv sync

使用法

サーバーの実行

スタジオ

stdio を使用してサーバーを実行します。

uv run mcp run server.py
スーパーゲートウェイを備えたSSE

supergatewayツールを使用して SSE でサーバーを実行します。

npx -y supergateway --port 8000 --stdio "uv run mcp run server.py"

あるいは、リポジトリで提供されている便利なスクリプトを使用することもできます。

./npx-serve-sse-8000.sh

発達

MCP インスペクターを使用してサーバーを「開発」モードで実行するには:

uv run mcp dev server.py

このコマンドは、テストとデバッグの目的で MCP インスペクターをホストします。

開発モードで SSE を使用してサーバーを実行するには、supergateway の SSE コマンドを使用し、2 番目のターミナル ウィンドウで次のコマンドを実行します。

npx @modelcontextprotocol/inspector

利用可能なMCPツール

公開されているMCPツールを使用して、Sonosデバイスを操作します。利用可能なツールは以下のとおりです。

  • get_all_device_states : 検出されたすべての Sonos デバイスの状態情報を取得します。
  • now_playing : すべての Sonos デバイスで現在再生中のトラックに関する情報を取得します。
  • get_device_state : 特定の Sonos デバイスの状態情報を取得します。
  • pausestopplay : Sonos デバイスでの再生を制御します。
  • nextprevious : Sonos デバイスでトラックをスキップします。
  • get_queueget_queue_length : Sonos デバイスの再生キューを管理します。
  • mode : Sonos デバイスの再生モードを取得または設定します。
  • partymode : 現在の Sonos デバイスでパーティー モードを有効にします。
  • speaker_info : Sonos デバイスのスピーカー情報を取得します。
  • get_current_track_info : Sonos デバイスの現在のトラック情報を取得します。
  • volume : Sonos デバイスの音量を取得または設定します。
  • skipplay_indexremove_index_from_queue : Sonos デバイスのキュー内のトラックを管理します。

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

モデル コンテキスト プロトコルを介してネットワーク上の Sonos デバイスを制御および操作できるサーバー。デバイスの検出、再生の制御、デバイスの状態の取得、キューの管理などの機能を提供します。

  1. 特徴
    1. 要件
      1. インストール
        1. 使用法
          1. サーバーの実行
          2. 発達
          3. 利用可能なMCPツール
        2. ライセンス

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A 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 -
            4
            29
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A 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 -
            JavaScript
            ISC License
            • Apple
          • A
            security
            F
            license
            A
            quality
            A 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 -
            6
            2
            TypeScript
            • Apple
          • -
            security
            F
            license
            -
            quality
            A 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

          View all related MCP servers

          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/WinstonFassett/sonos-mcp-server'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server