Skip to main content
Glama

astra-mcp

An MCP server for Astra's Companion API v2. It lets Claude and other MCP clients see and drive a running Astra desktop music player — what's playing, search the library, start and queue music, manage favorites and playlists.

Read-only by default: Astra ships the API disabled, and each capability is a separate switch the user controls. This server adapts to whatever is granted and hides the tools that aren't.

Setup

1. Turn on Astra's Local API

In Astra: Settings → Integrations → Local API.

Switch

Grants

Tools it unlocks

Local Integration API

observe

astra_now_playing, astra_queue, astra_capabilities

External Playback Controls

playback-control

astra_control, astra_play, astra_enqueue, astra_queue_edit

Library Search

library-search

astra_search, astra_open

Favorites & Playlist Changes

library-write

astra_set_favorite, astra_playlist

Copy the Local API Key from that panel. The token only works over 127.0.0.1.

2. Build

npm install
npm run build

3. Register the server

Claude Code:

claude mcp add astra --env ASTRA_API_TOKEN=<your-token> -- node /absolute/path/to/astra-mcp/dist/index.js

Claude Desktop (claude_desktop_config.json) and other clients:

{
  "mcpServers": {
    "astra": {
      "command": "node",
      "args": ["/absolute/path/to/astra-mcp/dist/index.js"],
      "env": { "ASTRA_API_TOKEN": "your-token" }
    }
  }
}

4. Browser-based clients (llama.cpp WebUI, and similar)

Clients that run in a browser cannot spawn a subprocess, so stdio is not an option for them. Start the server in HTTP mode instead:

$env:ASTRA_API_TOKEN = 'your-token'
node dist/index.js --http          # http://127.0.0.1:38500/mcp
node dist/index.js --http=9000     # or pick a port

Then in llama.cpp: launch llama-server with --webui-mcp-proxy (spelled --ui-mcp-proxy on some builds) so the WebUI can reach it past CORS, and add http://127.0.0.1:38500/mcp as an MCP server in the WebUI settings.

GET /health reports whether the Astra link is up and which scopes are granted — the quickest way to tell a broken token from a stopped app.

The HTTP transport is stateless: it never issues an Mcp-Session-Id. That is deliberate. llama.cpp's WebUI does not echo that header back (ggml-org/llama.cpp#20471), so a stateful server would reject every call after initialize. The trade-off is that HTTP clients get no server-initiated messages: no tools/list_changed when you flip a scope switch in Astra, and no resource-update notifications. Tool calls are unaffected. Both work normally over stdio.

GET /mcp returns 405 for the same reason — there is no session to push a stream to, and an open one would leak.

Configuration

Variable

Default

Purpose

ASTRA_API_TOKEN

Local API Key from Astra settings. Required.

ASTRA_API_URL

http://127.0.0.1:38401

Set this if you changed the port in Astra.

ASTRA_POSITION_INTERVAL_MS

1000

How often Astra pushes position updates (250–5000).

ASTRA_DISABLE_EVENTS

unset

Set to 1 to poll instead of holding an event stream.

ASTRA_MCP_HTTP_PORT

38500

Enables HTTP mode, same as --http.

ASTRA_MCP_HTTP_HOST

127.0.0.1

Bind address for HTTP mode.

ASTRA_MCP_HTTP_ORIGINS

empty

Comma-separated browser origins allowed to call the server directly.

A missing token is a warning, not a crash — the server starts and each tool explains what to fix.

On ASTRA_MCP_HTTP_ORIGINS: this process holds a token that can control your music player, so no browser origin is allowed by default. Any page you allowlist can drive Astra. You do not need this for llama.cpp — its proxy calls from the server side, where CORS does not apply.

Related MCP server: Spotify MCP Server

Tools

Tool

What it does

astra_search

Find tracks, albums, artists, playlists. Start here — everything else takes refs from it.

astra_now_playing

Current track, position, volume, shuffle, repeat, output device.

astra_control

play, pause, stop, next, previous, seek, set-volume, set-muted, set-shuffle, set-repeat.

astra_play

Play a ref now, replacing the queue.

astra_enqueue

Add a ref to the queue, next or end.

astra_open

Focus the Astra window on a ref without playing it.

astra_queue

Read the queue with per-item ids.

astra_queue_edit

Move, remove, or clear upcoming queue items.

astra_set_favorite

Set a track's favorite state explicitly.

astra_playlist

Create, rename, and edit the contents of normal playlists.

astra_capabilities

Granted scopes, features, limits — the tool to reach for when something is 403.

Resources

astra://playback, astra://queue, and astra://capabilities are live JSON views that support subscriptions. astra://artwork/{ref} returns album art as a blob — a resource rather than a tool so a model can't flood its own context with 2 MiB images.

How it works

Refs are opaque. Astra never exposes file paths or database ids; it hands out signed AstraRef strings. Nothing here accepts a name, so every flow is search → act. Refs can go stale and start returning 404, which means search again.

One event stream, not polling. The server holds a single SSE connection to /v2/events and keeps playback and queue snapshots warm, so astra_now_playing usually costs zero HTTP requests. Astra's budget is 120 requests/minute shared across everything using the token; a client-side limiter keeps this server under it by queuing rather than failing. If the stream drops, tools fall back to direct reads.

202 is not "done". Playback, intent, and queue commands are queued to Astra's renderer and return immediately. astra_control and astra_play wait briefly on the event stream and report the state Astra actually reached, rather than claiming success.

The tool list is live. Flipping a switch in Astra's settings force-closes the event stream; the reconnect handshake carries the new scopes, and the server enables or disables tools to match. (Over HTTP the gating still applies, but the client is not notified — it sees the change on its next tools/list.)

One Astra connection, many MCP servers. HTTP mode builds a fresh McpServer per request, as stateless mode requires, but they all share a single AstraRuntime holding one HTTP client and one event stream. Otherwise each request would open its own stream and exhaust Astra's limit of eight.

What this cannot do

Astra's v2 contract deliberately omits catalog browsing, audio streaming, metadata editing, library scans, remote-source administration, settings, DSP/EQ, lyrics, playlist deletion, and dynamic playlist rules. Those endpoints do not exist, so no tool here can reach them. Library writes are limited to favorites and locally owned normal playlists — mirrored (Jellyfin/Subsonic) and dynamic playlists reject edits.

Only the loopback transport is supported. Astra also serves the same v2 surface to paired LAN devices over HTTPS on port 38402, which needs its own pairing flow.

Development

npm run build       # tsc
npm test            # build, then unit + contract tests
npm run inspector   # MCP Inspector against the built server
npm run smoke       # end-to-end against a running Astra (read-only)

Smoke testing runs against a live Astra and is read-only unless you opt in. --play replaces the current queue; --write creates a playlist you then have to delete by hand, since Astra has no delete endpoint. Neither touches existing playlists or favorites.

# PowerShell
$env:ASTRA_API_TOKEN = 'your-token'
npm run smoke
node scripts/smoke.mjs "Miles Davis"           # + search
node scripts/smoke.mjs "Miles Davis" --play    # + play and enqueue
node scripts/smoke.mjs "Miles Davis" --write   # + playlist creation
# bash / zsh
export ASTRA_API_TOKEN='your-token'
npm run smoke

src/types.ts mirrors Astra's src/types/companionApi.ts by hand, and ASTRA_ENDPOINTS in src/client.ts lists every endpoint this server calls. test/contract.test.mjs checks both against Astra's own docs/api/openapi-v2.json, and fails if the source calls a path that isn't declared. It looks for the Astra checkout as a sibling directory; set ASTRA_REPO if yours lives elsewhere.

License

GPL-3.0

Available Tools

11 tools
astra_capabilitiesAstra: capabilities and granted scopesA
Read-only

Report which Astra Companion API scopes are granted, which features are available, and the current limits. Useful for diagnosing a permission error: if a tool returns "insufficient_scope", this shows which switch is off in Astra → Settings → Integrations → Local API.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint and openWorldHint already present, the description adds value by specifying the exact UI path (Astra → Settings → Integrations → Local API) and what the report covers. It doesn't contradict annotations and provides actionable diagnostic context, though it doesn't detail output format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the primary purpose, then a concrete use case. No redundant information, every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no parameters, read-only annotations, and a simple reporting focus, the description covers the purpose, usage scenario, and scope of the report. It's complete for an agent to select and invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, so the baseline is 4. The description adds meaning by outlining what the report includes (scopes, features, limits), which is useful even without parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Report') and resource ('Astra Companion API scopes, features, and current limits'). It clearly distinguishes from sibling tools by focusing on capabilities and diagnostics rather than playback control.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance: 'Useful for diagnosing a permission error: if a tool returns insufficient_scope...'. This clearly indicates the diagnostic context and implies when alternatives (the control tools) would be used instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_controlAstra: control playbackA

Control playback in Astra: play, pause, stop, next, previous, seek, set-volume, set-muted, set-shuffle, set-repeat. Each action needs its own argument — seek needs positionSeconds, set-volume needs volume (0-1), set-muted needs muted, set-shuffle needs enabled, set-repeat needs mode. Astra accepts commands asynchronously; this tool waits briefly and reports the state it actually landed on. To start a specific track or album instead, use astra_search then astra_play.

ParametersJSON Schema
NameRequiredDescriptionDefault
modeNoRequired for "set-repeat".
mutedNoRequired for "set-muted".
actionYesThe playback action to perform.
volumeNoRequired for "set-volume": 0 (silent) to 1 (full). 0.5 is 50%.
enabledNoRequired for "set-shuffle".
positionSecondsNoRequired for "seek": absolute position in seconds from the start of the track.

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations (readOnlyHint=false, etc.), the description discloses that the tool accepts commands asynchronously and waits briefly to report the resulting state. This is a valuable behavioral detail that annotations do not cover, providing insight into how the tool executes and what it returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with the core purpose. Each sentence adds distinct information (actions, argument requirements, async behavior, alternative tool usage) without redundancy or unnecessary detail. It is appropriately sized for a multi-action control tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description covers the essential operational context: full action list, conditional parameters, asynchronous execution with state reporting, and a clear alternative path for starting specific media. For a tool with 6 parameters and 10 actions, this is comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and each parameter already has a description. The description adds value by mapping each action to its required argument (e.g., 'seek needs positionSeconds'), which consolidates conditional requirements in one place. It also reinforces the volume range (0-1), though that's already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: controlling playback in Astra with a list of 10 specific actions (play, pause, stop, etc.). It distinguishes itself from sibling tools like astra_play by explicitly noting 'To start a specific track or album instead, use astra_search then astra_play.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage context: this tool controls current playback, and for starting specific media it directs the agent to use astra_search then astra_play. It also explains the asynchronous behavior ('Astra accepts commands asynchronously; this tool waits briefly and reports the state it actually landed on'), which guides expectations for invocation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_enqueueAstra: add a target to the queueA

Add a track, album, artist, or playlist to the Astra queue without interrupting what is playing. Takes an opaque ref from astra_search. Use position "next" to play it after the current track, or "end" to append. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

ParametersJSON Schema
NameRequiredDescriptionDefault
positionNo"next" plays it after the current track; "end" appends. Defaults to "end".
targetRefYesAn opaque AstraRef from astra_search. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations mark the tool as non-read-only, non-idempotent, and non-destructive, but the description adds valuable behavioral details: it is non-interrupting, refs are opaque signed strings that must be passed through verbatim, and a stale ref can return 404. This goes beyond the annotations by explaining the opaque ref protocol and failure mode, giving the agent important operational guidance.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, front-loaded with the core action and key benefit, followed by parameter-specific guidance and ref handling. Every sentence earns its place, with no redundancy or fluff. It is concise yet information-dense, ideal for quick comprehension by an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter queue-addition tool with no output schema, the description fully covers what the tool does, how to use each parameter, how to handle refs, and the potential 404 error. Combined with the annotations, an agent has complete information to select and invoke the tool correctly without ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already covers both parameters with 100% description coverage, including the enum for position and a detailed explanation for targetRef. The description adds semantic richness by clarifying that the ref can represent a track, album, artist, or playlist, and by explaining how 'next' vs 'end' affects playback order. This enriches the schema's baseline and helps the agent understand the domain meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Add a track, album, artist, or playlist to the Astra queue.' It also differentiates from siblings by noting 'without interrupting what is playing,' which clearly distinguishes it from immediate-play tools like astra_play. The purpose is unambiguous and directly tied to the tool name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool (to add to the queue without interrupting current playback) and gives explicit positional guidance: 'Use position "next" to play it after the current track, or "end" to append.' It does not explicitly name alternative tools (e.g., astra_play), but the phrase 'without interrupting what is playing' implies the alternative is immediate playback. This is clear context without explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_now_playingAstra: now playingA
Read-only

Get the current playback state of the Astra music player: track, position, duration, volume, mute, shuffle, repeat, output device, and queue length. Served from a live event stream when connected, so it is cheap to call. Returns the current track's ref, which can be passed to astra_set_favorite or astra_playlist.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
mutedYes
stateYes
repeatYes
sourceYes
volumeYes
shuffleYes
updatedAtYes
queueCountYes
currentTrackYes
durationSecondsYes
positionSecondsYes
outputDeviceLabelYes

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this as readOnly and openWorld, but the description adds meaningful behavioral detail beyond those: the live event stream backing, the cheapness of calling, and the ability to pass the returned ref to astra_set_favorite or astra_playlist. This enriches understanding of the tool's behavior without contradicting annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, front-loaded with the primary purpose, and every sentence adds distinct value: what is returned, why it is cheap, and how the result can be used downstream. There is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, read-only state getter with an output schema and annotations, the description is contextually complete. It specifies the return contents and integration potential, leaving no significant gaps for an agent to select or invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With zero parameters, the description is not required to elaborate on parameter meaning. The baseline score of 4 applies, and the description does add value by enumerating what the returned state includes, which compensates for the absence of parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Get') with a clear resource ('current playback state of the Astra music player') and enumerates the exact fields returned. It distinguishes itself from sibling tools like astra_control or astra_play by focusing on read-only state observation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies when to use this tool: whenever current playback state is needed. It adds practical usage context ('Served from a live event stream when connected, so it is cheap to call') and explains how the returned ref connects to other tools, though it does not explicitly list when-not-to-use or alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_openAstra: show a target in the appA
Idempotent

Bring the Astra window to the front and navigate to a track, album, artist, or playlist. This only changes what the user is looking at — it does not start playback. Takes an opaque ref from astra_search. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

ParametersJSON Schema
NameRequiredDescriptionDefault
targetRefYesAn opaque AstraRef from astra_search. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, the description discloses that the window is brought to front, that playback is not started, that refs can go stale and return 404, and that refs should never be parsed or edited. This adds significant behavioral context not captured by the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the main purpose and stays concise. All sentences serve a purpose—covering behavior, parameter handling, and error cases. No redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that this is a simple navigation tool with one parameter and no output schema, the description covers all essential aspects: what it does, what it doesn't do, how to handle the parameter, and a potential error case. It is contextually complete for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, including a detailed description of targetRef. The tool description adds extra guidance about passing refs verbatim and the risk of staleness, which is valuable beyond the schema. Baseline 3 raised due to this additional semantic guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action: 'Bring the Astra window to the front and navigate to a track, album, artist, or playlist.' It also distinguishes from siblings by noting 'it does not start playback,' setting it apart from playback tools like astra_play.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context for when to use the tool: to show a target without starting playback. It explicitly states it takes a ref from astra_search, which implies a prerequisite. However, it doesn't explicitly name alternative tools or when-not-to-use exclusions beyond playback.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_playAstra: play a target nowA
Destructive

Start playing a track, album, artist, or playlist in Astra, replacing the current queue. Takes an opaque ref from astra_search — call that first to turn a name into a ref. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404. To resume something already loaded, use astra_control with action "play" instead.

ParametersJSON Schema
NameRequiredDescriptionDefault
targetRefYesAn opaque AstraRef from astra_search. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds crucial specifics: it replaces the current queue (what gets destroyed), explains refs are opaque signed strings that must be passed verbatim, and discloses that a ref can go stale and return a 404. This is meaningful behavioral context beyond the basic annotation flags.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, each earning its place: the action, the prerequisite, and the alternative. It is front-loaded with the main purpose and avoids redundant phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema, the description covers prerequisites (astra_search), error conditions (stale ref 404), side effects (queue replacement), and the alternative for resuming (astra_control). This is complete enough for an agent to select and invoke it correctly without further assumptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the parameter description in the schema fully explains targetRef, including the opaque-string caveat and staleness risk. The description repeats the same semantics without adding new parameter details, so per the baseline for high schema coverage, a 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific action: 'Start playing a track, album, artist, or playlist in Astra, replacing the current queue.' It names the resource (Astra content), the operation (play), and the side effect (replaces current queue), which clearly distinguishes it from siblings like astra_enqueue (adds) and astra_control (resumes).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs to call astra_search first to convert a name into a ref, and explicitly names the alternative for resuming already-loaded content: 'use astra_control with action "play" instead.' This provides clear when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_playlistAstra: create and edit playlistsA

Create a playlist in Astra, rename one, or add / remove / reorder its tracks. "create" needs name. "rename" needs ref and name. "add-tracks" needs ref and trackRefs. "remove-track" needs ref and trackRef. "move-track" needs ref, trackRef, and position. Get playlist refs from astra_search with types ["playlist"], and track refs from astra_search with types ["track"]. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

Limits: only locally owned normal playlists are editable — mirrored (Jellyfin or Subsonic) and dynamic playlists reject edits with playlist_not_writable. Astra has no playlist deletion endpoint, so playlists cannot be deleted through this server.

ParametersJSON Schema
NameRequiredDescriptionDefault
refNoRequired for every action except "create": the playlist ref.
nameNoRequired for "create" and "rename": the playlist name, 1-200 characters.
actionYesThe playlist operation to perform.
positionNoRequired for "move-track": the 0-based index to move the track to.
trackRefNoRequired for "remove-track" and "move-track": the track ref to act on.
trackRefsNoRequired for "add-tracks": track refs to append, in order. More than 100 are sent in batches automatically.

TDQS

A5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations only signal mutating, open-world, non-idempotent behavior. The description goes far beyond by disclosing that refs are opaque signed strings that must be passed verbatim, that stale refs yield 404, that only locally owned normal playlists are editable, and that deletion is impossible. This is rich behavioral context with no contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a clear first-sentence summary, then efficiently lists required parameters per action, followed by essential cross-tool references and failure modes. Every sentence is informational and earns its place; there is no filler or redundant explanation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (six parameters, five actions, no output schema, sparse annotations), the description covers all necessary operational context: how to source refs, what causes 404, what playlist types reject edits, and the absence of deletion. It is sufficiently complete for an agent to invoke correctly without further clarification.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

While the schema already covers all parameters (100% coverage), the description adds crucial per-action requirements ('create needs name', 'rename needs ref and name', etc.), the automatic batching of >100 trackRefs, and the rule to never parse or edit refs. These semantics are not present in the schema and significantly improve correct invocation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise and specific verb-resource pairing: 'Create a playlist in Astra, rename one, or add / remove / reorder its tracks.' It enumerates all supported actions and clearly distinguishes this playlist-focused tool from sibling queue-editing tools like astra_queue_edit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells the agent where to obtain refs (astra_search), explicitly excludes mirrored/dynamic playlists with a concrete error code, and explicitly states that playlist deletion is not available. These are direct when-to-use and when-not-to-use directives with an alternative source, exceeding the minimum guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_queueAstra: read the play queueA
Read-only

List the tracks in the Astra play queue, in order, with the currently playing one marked. Each entry has a queue item id — pass that to astra_queue_edit to move or remove it. Served from the live event stream when connected. Astra only publishes the first 200 queue entries to the API, so a longer queue is reported as truncated and the later entries are not reachable.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoHow many queue entries to show. Defaults to 25.

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnlyHint annotation, the description adds crucial behavioral details: the tool is served from the live event stream when connected, and Astra only publishes the first 200 queue entries, truncating longer queues. These are valuable insights not covered by annotations, enhancing the agent's understanding of tool behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at three sentences, with each sentence serving a distinct purpose: stating the core function, hinting at parameter/identifier usage, and disclosing an important limitation. It is front-loaded with the primary action and has no redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with one optional parameter and no output schema, this description is exceptionally complete. It covers the purpose, behavior, live-streaming aspect, truncation limitation, and cross-reference to the editing sibling, leaving no significant gaps for an agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already fully documents the single 'limit' parameter (including default, min, max, and description). The description adds some context by explaining why the maximum is 200, but this is supplemental rather than required. With 100% schema coverage, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: 'List the tracks in the Astra play queue, in order, with the currently playing one marked.' It uses a specific verb ('List') and resource ('Astra play queue'), and distinguishes itself from siblings by explicitly directing users to astra_queue_edit for modifications.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool (viewing the queue) and even gives an alternative for editing ('pass that to astra_queue_edit'). However, it does not explicitly state any exclusions or contrast with similar read tools like astra_now_playing, so it slightly misses the 'when-not' guidance for a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_queue_editAstra: edit the play queueA
Destructive

Reorder or trim the Astra play queue. "move" needs queueItemId and a 0-based position, "remove" needs queueItemId, and "clear" empties the upcoming queue without stopping the current track. Get queue item ids from astra_queue. The currently playing item cannot be moved or removed — attempting it returns queue_item_not_found. To add tracks instead, use astra_enqueue.

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesWhat to do: move an item, remove an item, or clear everything upcoming.
positionNoRequired for "move": the 0-based index to move the item to.
queueItemIdNoRequired for "move" and "remove": the id field from astra_queue.

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already set destructiveHint=true and readOnlyHint=false, but the description adds critical context: 'clear' empties the upcoming queue without stopping the current track, and the currently playing item cannot be moved or removed, returning queue_item_not_found. This goes beyond the annotation flags and helps the agent predict side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with purpose, and every sentence carries distinct information: action semantics, param requirements, ID source, edge-case error, and alternative tool. No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the tool is a mutation with three actions, and the description covers all actionable cases: how to perform each action, the source of IDs, the sole error case, and the alternative for adding. Annotations cover safety flags, so nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with per-parameter descriptions, so baseline is 3. The description adds value by mapping each action to required parameters ('move' needs queueItemId and a 0-based position; 'remove' needs queueItemId) and by specifying that queueItemId comes from astra_queue, a cross-tool reference not present in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Reorder or trim the Astra play queue', a specific verb+resource statement, and enumerates three actions (move/remove/clear) that map to the enum. It also distinguishes itself from astra_enqueue for adding and points to astra_queue for IDs, removing ambiguity with siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly tells the agent when to use this tool ('Reorder or trim the play queue') and when not to: 'To add tracks instead, use astra_enqueue.' It also gives a prerequisite: 'Get queue item ids from astra_queue.' This is clear usage guidance with an alternative tool named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

astra_set_favoriteAstra: set a track favoriteA
Idempotent

Mark or unmark a track as a favorite in the Astra library. This sets an explicit state rather than toggling, so it is safe to repeat. Takes a track ref from astra_search or from the current track reported by astra_now_playing. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

ParametersJSON Schema
NameRequiredDescriptionDefault
favoriteYestrue to favorite the track, false to un-favorite it.
trackRefYesA track ref. Refs are opaque signed strings from astra_search (or from the current track / queue). Pass them through verbatim — never parse, edit, or invent one. A ref can go stale and return 404.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, the description adds the behavioral nuance that the operation sets an explicit state (reinforcing idempotency) and warns that refs can go stale and return 404, providing a failure mode not present in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, front-loaded with the core purpose, and each sentence adds value—state-setting behavior, input source, and ref handling. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only two documented parameters, rich schema descriptions, and annotations covering idempotency and safety, the description fully covers the tool's behavior, input requirements, and failure mode. No output schema is needed for this simple action, but the description is sufficient for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with both parameters fully described (trackRef as opaque string and favorite as boolean). The description largely repeats this information without adding new parameter-level meaning, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Mark or unmark a track as a favorite in the Astra library' with a specific verb and resource, and it distinguishes itself by noting it sets an explicit state rather than toggling, which differentiates it from other track-related operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides explicit guidance on where to obtain a valid trackRef (from astra_search or astra_now_playing) and instructs to pass refs verbatim without parsing or inventing. It does not explicitly exclude alternative tools, but the input-source guidance gives clear context for use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 11 tool updatesv0.1.0
    • First observedastra_capabilities
    • First observedastra_control
    • First observedastra_enqueue
    • First observedastra_now_playing
    • First observedastra_open
    • First observedastra_play
    • First observedastra_playlist
    • First observedastra_queue
    • First observedastra_queue_edit
    • First observedastra_search
    • First observedastra_set_favorite

TDQS

A4.5/5.0

Scored across 11 tools

Disambiguation5/5

Each tool targets a distinct resource or action: search returns refs, play/enqueue/queue_edit manage the queue, control handles transport, set_favorite toggles favorites, playlist manages playlists, open navigates the UI, and now_playing/capabilities are informational. There is minor potential overlap between astra_play and astra_control 'play', but descriptions clearly separate starting a specific item from resuming playback.

Naming Consistency4/5

All tools share the astro_ prefix, but the pattern is not uniform: most are verb_noun (set_favorite, queue_edit) or bare verbs (open, play, search), while some are nouns (queue, capabilities, playlist) implying a 'get' action. Occasional phrases like now_playing deviate from a strict verb_noun convention, but the prefix and readable structure keep it mostly consistent.

Tool Count5/5

With 11 tools, the server is well-scoped for a music player control surface. Each tool covers a distinct operation without redundancy, and the count is within the ideal range for a focused MCP server.

Completeness4/5

The core workflows are covered: search, play, control, queue management, favorite toggling, and playlist CRUD (minus deletion, which is documented as unavailable). Minor gaps exist: there is no tool to list favorites or fetch the contents of a playlist, and search is bounded without pagination, but agents can work around these via now_playing/queue for current state and by using playlist refs directly.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    MCP server for the Spotify Web API — gives Claude and other AI assistants tools to search music, control playback, manage playlists, library, and podcasts.
    59
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    MCP server that provides LLM tools to interact with Lyrion Music Server (LMS), enabling player control, playback management, playlist operations, and music library search.
    55
    24 npm
    MIT