CastBreeze Sonos MCP server

CastBreeze Sonos MCP server

mcp-castbreeze•bycastbreeze

An MCP server that lets assistants control Sonos speakers and play audio clips, chimes, and streaming radio through CastBreeze with OAuth authentication.

License: MIT•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Plays audio clips from HTTP, HTTPS, or local file URIs on selected Sonos players, with optional volume and priority.
  • •Streams a URI on repeat to Sonos groups.
  • •Plays a default chime sound on chosen players or all of them.
  • •Retrieves speaker groups and player information.

BEST FOR

  • •Using a voice assistant to play a chime or audio clip across Sonos speakers.
  • •Streaming a radio station continuously on Sonos through an assistant.
  • •Querying Sonos speaker groups and players from an AI client.

ABOUT MCP-CASTBREEZE

CastBreeze Sonos MCP server is cataloged as an MCP server attributed to castbreeze. An MCP server that lets assistants control Sonos speakers and play audio clips, chimes, and streaming radio through CastBreeze with OAuth authentication. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for CastBreeze Sonos MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server authenticate with CastBreeze?

It uses OAuth: start the login flow with the start_login tool, complete authorization in the browser, then finish with the finish_login tool using the authorization code, storing the access token in auth.json.

What audio formats can be played as clips?

The play_audio_clip tool supports MP3 and WAV audio.

Upstream README

View this exact version on GitHub

README.md · dfdb7aef218b · Fetched 2026-11-13 12:53:36 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

@castbreeze/sonos-mcp

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

Features

  • 🔐 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
  • 🔔 Play default chime sounds

Installation

NPM

npm install -g @castbreeze/sonos-mcp

PNPM

pnpm add -g @castbreeze/sonos-mcp

NPX (No Installation)

npx @castbreeze/sonos-mcp

Usage

With Claude Desktop

Add to your Claude Desktop configuration file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "castbreeze-sonos": {
      "command": "npx",
      "args": ["-y", "@castbreeze/sonos-mcp"]
    }
  }
}

Or if installed globally:

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

With Cline (VS Code Extension)

Add to your Cline MCP settings (.roo/mcp.json):

{
  "mcpServers": {
    "castbreeze-sonos": {
      "command": "node",
      "args": ["path/to/dist/index.js"]
    }
  }
}

Authentication

The server uses OAuth for authentication with CastBreeze:

  1. Use the start_login tool to initiate OAuth flow
  2. Complete authorization in your browser
  3. Use the finish_login tool with the authorization code
  4. Access token is stored in auth.json for future use

Available Tools

Authentication

  • start_login: Start OAuth login flow (opens browser)
  • finish_login: Complete OAuth login with authorization code

Playback

  • play_default_chime: Play the default chime sound

    • Parameters: players (array or "*"), volume (optional), priority (optional)
  • play_audio_clip: Play an audio clip (MP3/WAV)

    • Parameters: players, uri (URL or file:// path), volume (optional), priority (optional)
    • Supports: https://, http://, file:// URIs
  • play_radio: Play a URI on repeat (streaming)

    • Parameters: uri, groups (optional), volume (optional)

Device Management

  • get_groups: Get all speaker groups and players

Available Resources

  • auth://status: Current authentication status and token information

Examples

Play a chime on all speakers

Play the default chime on my Sonos speakers

Play an MP3 from URL

Play https://example.com/audio.mp3 on my Sonos

Play a local file

Play the file at /path/to/audio.mp3 on Sonos

Stream a radio station

Play https://stream.example.com/radio on repeat

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Run with inspector
pnpm inspector

Requirements

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

Project Structure

mcp/
├── src/
│   ├── index.ts           # Main MCP server implementation
│   └── server-selection.ts # Server selection utilities
├── dist/                  # Compiled JavaScript output
├── auth.json             # OAuth tokens (auto-generated)
├── package.json
└── README.md

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

Changelog

1.1.0

  • Initial npm release as @castbreeze/sonos-mcp
  • OAuth authentication support
  • Audio clip playback from URLs and local files
  • Radio streaming support
  • Speaker group management

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for CastBreeze Sonos MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-castbreeze)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design