Sonos MCP Server
The Sonos MCP Server allows you to control and interact with Sonos devices on your network:
Discover Devices: Find Sonos devices on your network
Control Playback: Play, pause, stop, skip tracks (next/previous)
Manage Queues: Retrieve queue information, modify queues, play specific tracks by index, remove tracks
Retrieve Information: Get device states, current track details (artist, title, album, duration), and speaker information
Control Volume: Get or set device volume levels
Manage Play Modes: Set or retrieve play modes (shuffle, repeat, normal)
Enable Party Mode: Synchronize multiple Sonos speakers
Provides tools for controlling Sonos audio devices, including discovering devices on a network, controlling playback (play, pause, stop, next, previous), managing playback queues, adjusting volume, retrieving now playing information, and enabling party mode across speakers.
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., "@Sonos MCP Serverpause the living room speaker"
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.
Sonos MCP Server
This project is a Sonos MCP (Model Context Protocol) server that allows you to control and interact with Sonos devices on your network. It provides various functionalities such as discovering devices, controlling playback, retrieving device states, and managing queues.
Features
Discover Sonos devices on the network
Retrieve and control playback state for devices
Manage playback queues
Expose functionalities as MCP tools
Related MCP server: YARR Media Stack MCP Server
Requirements
Python 3.7+
uvfor managing Python projects
Installation
Clone the repository:
git clone https://github.com/WinstonFassett/sonos-mcp-server.git cd sonos-mcp-serverInstall the required dependencies using
uv:uv sync
Usage
Running the Server
Stdio
Run the server using stdio:
uv run mcp run server.pySSE with Supergateway
Run the server with SSE using the supergateway tool:
npx -y supergateway --port 8000 --stdio "uv run mcp run server.py"Alternatively, you can use the convenience script provided in the repository:
./npx-serve-sse-8000.shDevelopment
To run the server in "development" mode with the MCP Inspector:
uv run mcp dev server.pyThis command hosts an MCP Inspector for testing and debugging purposes.
To run the server with SSE in development mode, use the SSE command for supergateway, and in a second terminal windor run:
npx @modelcontextprotocol/inspectorAvailable MCP Tools
Use the exposed MCP tools to interact with Sonos devices. The available tools include:
get_all_device_states: Retrieve the state information for all discovered Sonos devices.now_playing: Retrieve information about currently playing tracks on all Sonos devices.get_device_state: Retrieve the state information for a specific Sonos device.pause,stop,play: Control playback on a Sonos device.next,previous: Skip tracks on a Sonos device.get_queue,get_queue_length: Manage the playback queue for a Sonos device.mode: Get or set the play mode of a Sonos device.partymode: Enable party mode on the current Sonos device.speaker_info: Retrieve speaker information for a Sonos device.get_current_track_info: Retrieve current track information for a Sonos device.volume: Get or set the volume of a Sonos device.skip,play_index,remove_index_from_queue: Manage tracks in the queue for a Sonos device.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA 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 updated448MIT
- Alicense-qualityBmaintenanceA comprehensive Model Context Protocol server that bridges LLMs with self-hosted media services, enabling natural language control of TV shows, movies, downloads, and notifications while maintaining traditional API access.Last updated4AGPL 3.0
- Flicense-qualityDmaintenanceA Model Context Protocol server that enables interaction with HomeyPro home automation systems, providing paginated access to devices, zones, and flows with comprehensive management capabilities.Last updated9
- AlicenseAqualityDmaintenanceEnables AI assistants to control Sonos audio devices over a local network using UPnP/SOAP protocols, supporting playback, volume, queue management, zone grouping, and music library browsing.Last updated591713MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/WinstonFassett/sonos-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server