Music Assistant MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Music Assistant MCP Server
An MCP (Model Context Protocol) server for controlling Music Assistant - manage multi-room audio, playback queues, and search across music providers.
Prerequisites
A running Music Assistant server
A long-lived access token (Settings > Users > Long-lived access token)
uv installed
Related MCP server: music-assistant-mcp
Installation
No local installation required. Configure your MCP client to run directly from GitHub using uvx:
{
"mcpServers": {
"music-assistant": {
"command": "uvx",
"args": [
"--from", "git+https://github.com/davidpadbury/music-assistant-mcp",
"music-assistant-mcp"
],
"env": {
"MUSIC_ASSISTANT_URL": "http://your-server:8095",
"MUSIC_ASSISTANT_TOKEN": "your_token_here"
}
}
}
}Add this configuration to:
Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows)Claude Code:
~/.claude.jsonCursor: Settings > MCP
Running over HTTP (modern MCP protocol)
By default the server speaks stdio, which is limited to MCP protocol version 2025-11-25. To serve over streamable HTTP — required by proxies and clients that only support the 2026-07-28 protocol — run with:
{
"command": "uvx",
"args": ["--from", "git+https://github.com/davidpadbury/music-assistant-mcp", "music-assistant-mcp"],
"env": {
"MUSIC_ASSISTANT_URL": "http://your-server:8095",
"MUSIC_ASSISTANT_TOKEN": "your_token_here",
"MCP_TRANSPORT": "streamable-http",
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "8844"
}
}Run this as a standalone process (shell, systemd, or your container runtime) —
unlike the stdio config above, it is not spawned per-request by a client — and
point a streamable-http client or proxy at the endpoint
http://127.0.0.1:8844/mcp. Keep MCP_HOST at 127.0.0.1 unless you are
deliberately exposing it on your network.
Running with Docker
Prebuilt images are published to GitHub Container Registry:
ghcr.io/davidpadbury/music-assistant-mcp (tags latest and sha-<commit>).
docker run -d --name music-assistant-mcp -p 8844:8844 \
-e MUSIC_ASSISTANT_URL=http://your-server:8095 \
-e MUSIC_ASSISTANT_TOKEN=your_token_here \
ghcr.io/davidpadbury/music-assistant-mcpThe image serves streamable HTTP on port 8844 over the modern MCP protocol
(http://127.0.0.1:8844/mcp). Set MCP_TRANSPORT=stdio to run it in stdio
mode instead. The token is read from the MUSIC_ASSISTANT_TOKEN environment
variable at runtime — it is never baked into the image.
Compose equivalent:
services:
music-assistant-mcp:
image: ghcr.io/davidpadbury/music-assistant-mcp:latest
ports:
- "8844:8844"
environment:
MUSIC_ASSISTANT_URL: http://your-server:8095
MUSIC_ASSISTANT_TOKEN: your_token_here
restart: unless-stoppedQuick Start
List available speakers: Use
ma_list_playersto see all speakers and their current stateSearch for music: Use
ma_searchwith a query to find songs, albums, artists, or playlistsPlay music: Use
ma_play_mediawith the URI from search results and a player IDControl playback: Use
ma_playbackto play, pause, skip, or seek
Available Tools
Player Tools
Tool | Purpose |
| List all speakers with volume, state, and group info |
| Set volume level (0-100), adjust up/down, or mute/unmute for a single player |
| Set or adjust volume for all players in a speaker group |
| Group speakers together or ungroup them |
| Play an announcement (spoken message or audio file) on a player |
| Switch a player's input source (e.g. TV, AUX, Spotify) |
Playback Tools
Tool | Purpose |
| Control playback: play, pause, stop, toggle, next, previous, seek |
| Play media URIs on a player with queue options (play, replace, next, add) |
Queue Tools
Tool | Purpose |
| Get queue contents, set shuffle/repeat, or clear the queue |
| Move or remove specific items in the queue |
| Transfer playback from one player to another |
Music Library Tools
Tool | Purpose |
| Search for artists, albums, tracks, playlists, or radio stations |
| Browse music provider content hierarchically |
Common Workflows
Play Music on a Speaker
1. ma_list_players() → Get player IDs
2. ma_search(query="Beatles Abbey Road") → Find the album, get URI
3. ma_play_media(queue_id="living_room", media="spotify://album/xxx")Group Speakers for Multi-Room Audio
1. ma_list_players() → See available speakers
2. ma_group(action="join", player_ids=["kitchen", "bedroom"], target_player_id="living_room")
3. Now all three speakers play in syncAdd to the Current Queue
1. ma_search(query="Bohemian Rhapsody", media_types=["track"])
2. ma_play_media(queue_id="living_room", media="spotify://track/xxx", option="add")Control What's Playing
- Pause: ma_playback(queue_id="living_room", command="pause")
- Skip: ma_playback(queue_id="living_room", command="next")
- Volume: ma_volume(player_id="living_room", level=50)Transfer Playback to Another Room
ma_transfer_queue(source_queue_id="living_room", target_queue_id="kitchen")
→ Music moves to kitchen, continuing from the same positionUnderstanding IDs
player_id: Identifies a speaker (e.g., "living_room"). Get from
ma_list_playersqueue_id: Usually the same as player_id. Each player has its own queue
item_id: Identifies a track in a queue. Get from
ma_queueURI: Identifies a media item (e.g., "spotify://track/abc123"). Get from
ma_searchorma_browse
Tips
Always call
ma_list_playersfirst to discover available speakers and their IDsUse
ma_searchto find media before trying to play itWhen grouping speakers, the
target_player_idbecomes the group leaderQueue IDs are typically the same as player IDs
Use
option="add"withma_play_mediato add to queue without interrupting current playback
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage your KeepMySubs subscriptions, spend, renewals, and bills from any MCP client.
Drive WhatsApp from any MCP client: pair devices, send text and media, manage contacts and groups.
MCP server for Producer/Riffusion AI music generation
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables control and monitoring of Home Assistant smart home devices through MCP, allowing users to list entities, check device states, and call services to control lights, switches, sensors, and other connected devices.4-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Music Assistant for music search, library browsing, playback, queue management, and playlist curation.2MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server that enables AI assistants to control music playback, manage users and access, configure providers, and administer a Music Assistant setup through natural language commands.MIT
- AlicenseAqualityBmaintenanceEnables controlling Home Assistant from an MCP client, allowing users to read device states, call services, and run configuration commands via REST and WebSocket.5MIT