Works with the AI Agents you already use

    music assistant automation

    by Marv B

    2

    Control your self-hosted Music Assistant server from any AI agent — search and play tracks on AirPlay, HomePod, Sonos and more speakers via simple API calls.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    music assistant automation

    music assistant automation

    Example session with this skill installed

    Play the song 'Blue Monday' by New Order on the Living Room speaker and set the volume to 30%.

    • Read your context and instructions
    • Compiled the music assistant automation

    Searching for 'Blue Monday' by New Order...
    Found track on Spotify.
    Sending play command to Living Room (ID: living_room_123).
    Setting volume to 30%.
    Playback started.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    🎵 Control your self-hosted Music Assistant server from any compatible AI coding agent — Claude Code, Codex CLI, Cursor, VS Code Copilot, and more.

    This skill gives your AI agent hands-on control over your existing Music Assistant setup (Spotify, Internet Archive, local library, AirPlay, UPnP, HomePod, Chromecast, Sonos). One natural-language prompt is enough: "play Tame Impala on Living Room", "pause Küche", "set Bedroom volume to 25".

    ✨ Highlights

    • Works with YOUR self-hosted MA server — no cloud signup, no extra service
    • Supports 25+ providers: Spotify, Internet Archive, radio, local files, podcasts
    • Multi-room audio (groups, individual control, sync playback)
    • Built-in playback control (play/pause/skip/volume/queue/shuffle/repeat)
    • Best-practice error handling around Music Assistant API gotchas (constructor signature, WebSocket listener lifecycle, Spotify URI prefix)

    🛠 Requirements

    • A self-hosted Music Assistant server (v2.x — Home Assistant add-on, Docker, or standalone). Free & open source: https://music-assistant.io
    • A long-lived API token from MA Settings → Users → Create token
    • Local network reachability from agent → MA server (usually LAN)

    🔌 Setup (one-time)

    1. Install dependencies: pip install music-assistant-client websockets aiohttp orjson
    2. Store your MA token securely (env var MUSIC_ASSISTANT_TOKEN, or ~/.ma_token with chmod 600). Never paste into chat.
    3. Run the included ma-play.py "Daft Punk" --player "Living Room" --dry-run to verify connection
    4. Start scripting — see SKILL.md for full pattern

    🏠 Perfect for Home Assistant users Music Assistant is a popular HA add-on. Combine both for music automation from any HA script or scene.

    📦 What's included

    • SKILL.md — main skill definition with onboarding wizard
    • references/api-gotchas.md — detailed API gotchas + verified working examples
    • scripts/ma-play.py — minimal CLI for search-and-play (great for testing)

    Requires a self-hosted Music Assistant server. API tokens must be stored securely. Constructor signature is sensitive to argument order.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 months ago

    Permissions

    Terminal / Shell
    Environment Variables
    Network Access
    Listed4 months ago

    What's inside

    Creator

    M

    Marv B

    Frequently Asked Questions

    This skill allows AI agents to interact directly with your self-hosted Music Assistant server via natural language, bridging the gap between coding assistants and your home audio hardware like Sonos, HomePod, and AirPlay speakers.

    You need an active Music Assistant server (v2.x) running via Docker or Home Assistant, a long-lived API token, and a Python environment to run the included client scripts.

    The skill is designed to work with any agent that can execute Python or shell commands, including Claude Code, Cursor, VS Code Copilot, and the Codex CLI.

    Yes, the skill supports full multi-room control, allowing you to target specific rooms, manage groups, and adjust volume levels for individual speakers through simple prompts.

    You receive the SKILL.md definition, a dedicated guide on handling Music Assistant API nuances, and a CLI script (ma-play.py) for testing and verifying your connection.

    No, this skill communicates directly with your local Music Assistant server (typically over your LAN), ensuring your data and playback commands stay private and off third-party clouds.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.