Sonos MCP Server

MCP server for CastBreeze functionality - control Sonos speakers and play audio streams

Local serverstdio

What is the Sonos MCP server?

Most developer tooling work still happens through a UI a human drives. Sonos MCP server moves it into the conversation instead. MCP server for CastBreeze functionality - control Sonos speakers and play audio streams.

The short version

Model Context Protocol (MCP) server for controlling Sonos speakers and playing audio streams through CastBreeze.

  • 🔐 OAuth authentication with CastBreeze
  • 🔊 Control Sonos speakers through MCP
  • 🎵 Play audio clips (MP3, WAV) from URLs or local files
  • 📻 Stream audio URLs on repeat
  • 🎚️ Manage playback priority and volume
  • 🏠 Get speaker groups and player information

The tools it exposes

The server publishes 3 tools. What each one is for:

  • PNPM — The PNPM tool exposed by this server
  • Authentication — The Authentication tool exposed by this server
  • Playback — The Playback tool exposed by this server

Getting it running

Installation goes through your MCP client rather than a global install: point it at @castbreeze/sonos-mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

  • Node.js >= 22.0.0 - CastBreeze account (for OAuth authentication) - Sonos speakers on your network

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Sonos's toolset — PNPM, Authentication, Playback — is a fair guide to whether it matches your workflow. It is maintained by afirus; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Sonos's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
PNPMThe PNPM tool exposed by this server.
AuthenticationThe Authentication tool exposed by this server.
PlaybackThe Playback tool exposed by this server.

How to install the Sonos MCP server

Or if installed globally:

```json
{
  "mcpServers": {
    "castbreeze-sonos": {
      "command": "sonos-mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 22.0.0 - CastBreeze account (for OAuth authentication) - Sonos speakers on your network

Example prompts to try

  • Use Sonos to PNPM.
  • Use Sonos to Authentication.
  • Use Sonos to Playback.

Frequently asked questions

It connects Sonos to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (PNPM, Authentication, Playback) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Sonos directly.