Sonos Ts MCP logo

Sonos Ts MCP

by Tommertom

Controls Sonos devices over a local network, including playback, groups, queues, libraries, alarms, and real-time state events.

Install Sonos Ts MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tommertom-sonos-ts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sonos-agent-cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio tommertom-sonos-ts-mcp -- npx -y sonos-agent-cli

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y sonos-agent-cli

npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/sonos-agent-cli - Not found npm error 404 npm error 404 'sonos-agent-cli@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-16T16_13_39_251Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Tommertom/sonos-ts-mcp MCP server exposes Sonos device discovery and audio controls to MCP clients over standard input/output. It communicates with local Sonos devices through UPnP/SOAP and supports playback, volume, queues, groups, music library browsing, alarms, EQ settings, and event subscriptions. Reach for it when an AI assistant needs to operate one or more Sonos speakers on a local network. An optional natural-language agent tool requires an OpenAI or Google Generative AI API key.

Use cases

  • Control playback in named rooms
  • Manage queues and Sonos playlists
  • Group speakers for multi-room playback
  • Browse a local Sonos music library
  • Monitor playback and topology changes

Key features

  • SSDP device discovery with manual IP fallback
  • Playback, volume, mute, and queue controls
  • Multi-room grouping and party mode
  • Music library browsing
  • Alarm, EQ, sleep timer, and snapshot controls
  • Real-time UPnP event subscriptions

Tools60

What Sonos Ts MCP lets your agent do. Expand a tool for its parameters.

Self-reported~849 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/18 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · sonos-agent-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars14Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed60Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Sonos Ts MCP works

What Tommertom/sonos-ts-mcp MCP server does

The Tommertom/sonos-ts-mcp MCP server gives MCP-compatible clients access to Sonos systems on a local network. It is implemented in TypeScript and communicates directly with Sonos devices through UPnP and SOAP rather than depending on an external Sonos library.

Its tools cover the main operational areas of a Sonos installation:

  • Discovering devices with SSDP, listing registered devices, and adding a device by IP address when discovery does not work.
  • Starting, pausing, stopping, and navigating playback.
  • Reading and changing volume, mute state, shuffle, repeat, and crossfade settings.
  • Reading, modifying, clearing, saving, and playing from queues.
  • Joining and unjoining speakers, or placing all available devices into a party group.
  • Browsing artists, albums, tracks, genres, and playlists in the Sonos music library.

The repository also describes support for alarms, sleep timers, audio and EQ controls, snapshots and restoration, fuzzy library search, and real-time notifications for playback, volume, queue, and topology changes.

How it works

The server runs locally and uses standard MCP stdio transport. Sonos devices are located through SSDP multicast, with manual IP registration available as a fallback. Device topology is persisted to disk and loaded when the process starts; discovery also runs automatically at startup and periodically afterward.

Tools can resolve devices by friendly names such as a room name instead of requiring a UUID. UPnP GENA event subscriptions provide updates when supported Sonos state changes occur. The server exposes MCP prompts as well as tools for clients that support them.

The optional sonos_agent tool accepts natural-language requests, selects the relevant Sonos operations, and executes them. That tool is enabled only when OPENAI_API_KEY or GOOGLE_GENERATIVE_AI_API_KEY is configured, so ordinary device-control tools do not require those provider credentials.

Setup and configuration

Install the Tommertom/sonos-ts-mcp MCP server through npm and register it as a stdio server in the MCP client. The repository provides configurations for Claude Desktop, Cline, Cursor, Windsurf, and Visual Studio Code Copilot. The core configuration uses npx -y sonos-ts-mcp@latest.

The client process must be able to reach the Sonos speakers on the same local network or on a network that permits the required discovery and device traffic. If multicast discovery is unavailable, use the manual device-add tool with a speaker IP address.

The natural-language agent has separate model configuration. OPENAI_API_KEY enables OpenAI models, GOOGLE_GENERATIVE_AI_API_KEY enables Gemini models, and SONOS_AGENT_MODEL can select a default model. These settings apply to the agent feature, not to basic Sonos controls.

Tools and capabilities

The published tool set includes more than 50 operations. Representative groups include:

  • Discovery: sonos_discover, sonos_add_device, and sonos_list_devices.
  • Playback: play, pause, stop, next, previous, volume, mute, and playback-state operations.
  • Queue control: inspect, add, remove, clear, save, and start from a queue position.
  • Group control: join, unjoin, and party mode.
  • Library access: browse artists, albums, tracks, genres, and playlists.
  • Higher-level control: the optional sonos_agent natural-language tool.

These capabilities fit room-based playback automation, multi-room synchronization, queue workflows, and assistant-driven audio status checks.

Limitations and notes

The server depends on local network access to Sonos devices and on UPnP/SOAP communication. SSDP discovery may fail on networks that block multicast; manual IP registration is provided for that case.

Music-service integrations such as Spotify and Apple Music are listed as planned work rather than current functionality. Advanced group features, audio diagnostics, and MCP event-tool integration are also listed for later phases. The natural-language agent additionally depends on a supported external AI provider key, while direct Sonos tools do not.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sonos Ts MCP

Configure an MCP client to run `npx -y sonos-ts-mcp@latest` over stdio. The repository provides setup examples for Claude Desktop, Cline, Cursor, Windsurf, and Visual Studio Code Copilot.

Yes. The repository includes a Claude Desktop configuration using the `npx -y sonos-ts-mcp@latest` command.

It uses SSDP multicast discovery. If discovery fails, you can add a Sonos device manually by IP address.

No for the standard Sonos tools. An OpenAI or Google Generative AI API key is required only for the optional `sonos_agent` natural-language tool.

Yes. It includes group join and unjoin tools, party mode for joining all devices, and controls for multi-room playback.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSonos Ts MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tommertom-sonos-ts-mcp?style=directory)](https://allmcps.com/mcp/tommertom-sonos-ts-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/tommertom-sonos-ts-mcp"><img src="https://allmcps.com/api/badge/tommertom-sonos-ts-mcp?style=directory" alt="Sonos Ts MCP on AllMCPs" /></a>