Skip to main content

MCP server for Music Assistant – control playback, browse libraries, and manage queues via AI assistants

Project description

music-assistant-mcp

An MCP server that wraps the Music Assistant client library, exposing music search, library browsing, playback control, queue management, and playlist curation to AI assistants.

Installation

pip install music-assistant-mcp

Or run directly with uvx:

uvx music-assistant-mcp

Configuration

Set environment variables before running:

Variable Required Description
MA_SERVER_URL Yes (or MA_HOST) Full URL like http://192.168.1.10:8095
MA_HOST No Hostname, combined with MA_PORT
MA_PORT No Defaults to 8095
MA_TOKEN Yes Bearer token generated by Music Assistant

Running

music-assistant-mcp
# or
python -m music_assistant_mcp

Generating a Long-Lived Access Token

  1. Navigate to your Music Assistant instance at http://<your-ma-host>:8095/#/settings/profile.
  2. Scroll down to the Long-lived access token section and click + Create new token.
  3. Assign a name and submit.
  4. Copy the generated token value to a safe place — you will need it in the setup steps below.

Claude Code Integration

Add via CLI:

claude mcp add --transport stdio music-assistant \
  --env MA_SERVER_URL=http://your-ma-host:8095 \
  --env MA_TOKEN=your-token \
  -- uvx music-assistant-mcp

Or add to your Claude Code MCP config:

{
  "mcpServers": {
    "music-assistant": {
      "command": "uvx",
      "args": ["music-assistant-mcp"],
      "env": {
        "MA_SERVER_URL": "http://your-ma-host:8095",
        "MA_TOKEN": "your-token"
      }
    }
  }
}

Tools (27)

Search & Browse

  • search_music - Search across all providers
  • browse_media - Browse provider folders
  • get_item_by_name - Find item by name, artist, album

Library

  • get_library_artists/albums/tracks/playlists - Browse library with search/filter/pagination
  • get_album_tracks - Get tracks on an album
  • get_artist_albums - Get albums by an artist
  • get_recently_played - Recently played items

Playback

  • get_players - List all players and state
  • player_play_pause/stop/next/previous - Transport controls
  • player_volume - Set volume (0-100)
  • player_power - Power on/off
  • player_seek - Seek to position

Queue

  • play_media - Play URIs on a queue
  • get_queue - Queue state
  • get_queue_items - Items in queue
  • queue_clear - Clear queue
  • queue_shuffle - Toggle shuffle
  • queue_repeat - Set repeat mode

Playlists

  • create_playlist - Create new playlist
  • add_playlist_tracks - Add tracks by URI
  • remove_playlist_tracks - Remove tracks by position

Resources

  • ma://players - All players with current state
  • ma://library/stats - Library counts

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

music_assistant_mcp-0.1.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

music_assistant_mcp-0.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file music_assistant_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: music_assistant_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for music_assistant_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 210d6489d4f2f36b56fa2a7fd1f3384d6144c35262becd1bd7e8776cff53e6a7
MD5 259defe043c167b0ce04db63f58cc97b
BLAKE2b-256 e9138ded9e50bdc75a85f7f4dc52c3a329aa9ebbb97274a0fbe9cbe56022f29c

See more details on using hashes here.

Provenance

The following attestation bundles were made for music_assistant_mcp-0.1.1.tar.gz:

Publisher: publish.yml on devjourney/music-assistant-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file music_assistant_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for music_assistant_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e91e6f38e71d1a0d1b267a54abfb82b5cb94c3320e09cf0e9f77b8560ea1399
MD5 301b754703b98ab6b7e9c43cd025b689
BLAKE2b-256 ec423ee270b0226b5dc949bb3c9caf3ccab57746897957efc9e7649f958049cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for music_assistant_mcp-0.1.1-py3-none-any.whl:

Publisher: publish.yml on devjourney/music-assistant-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page