Skip to main content
Glama
Fidelia MCP server

Fidelia MCP server

Official

Fidelia MCP server

Play and explore the music you own in Fidelia, an audiophile music player for Mac, from Claude, Codex or any MCP app.

Ask for music the way you'd ask a friend who knows your records: "play some irish trad", "put on that album I got yesterday", "something by Planxty". Fidelia finds it in the music you own (your files, your Music library and any servers you've added) and plays it: a record in track order, a genre or an artist shuffled. When the tags say less than you mean, "Folk" where you mean Irish traditional music, your AI app reads your genres, artists and composers and uses what it knows about the music to choose.

The server is part of Fidelia itself. This repository holds what an AI app needs to reach it: a Claude Desktop extension, a Claude Code plugin, and the setup for other MCP apps.

What your AI app can and can't do

It can read your whole Fidelia library (titles, artists, albums, genres, composers, years, when you added each one, your playlists, your radio stations and what's playing), play, queue, pause and skip, set the volume, shuffle and repeat, and make playlists or add to them.

It never learns where your files are, and it can't change or delete them. What it reads goes to your AI app's service, under that app's terms.

Related MCP server: xiaozhi-local-music-mcp

What you need

  • Fidelia for Mac 2.13 or later, on macOS 14 or later.

  • Fidelia ▸ Settings ▸ Agent ▸ Let AI apps use Fidelia turned on. It's off until you turn it on, and the same page shows your token.

  • Playing music needs Fidelia's one-time unlock or its free trial, as it does in the app; music from a server also needs the Network & Server unlock. Reading the library, pausing, the volume and playlists work without them.

Set it up

Claude

In Fidelia, open Settings ▸ Agent and click Make Extension…. Fidelia saves the extension with your token inside and opens it in Claude, which asks to install it.

Or download Fidelia.mcpb from the latest release, open it, and paste the token from Fidelia's Settings ▸ Agent when Claude asks for it.

When Fidelia isn't running, the extension opens it with no window, so asking Claude for music starts it.

Claude Code

Add this repository as a plugin marketplace and install the plugin. Claude Code asks for the token from Fidelia's Settings ▸ Agent and for Fidelia's port (keep 38412 unless you changed it there). The plugin runs the same bridge as the Claude extension, so it needs Node.js on your PATH:

/plugin install fidelia --marketplace weareaudiofile/fidelia-mcp

On Claude Code before 2.1.275, add the marketplace first:

/plugin marketplace add weareaudiofile/fidelia-mcp
/plugin install fidelia@fidelia-mcp

Or run one line in Terminal; Settings ▸ Agent shows it with your token already in it:

claude mcp add --transport http fidelia http://127.0.0.1:38412/mcp --header "Authorization: Bearer YOUR_TOKEN"

Codex

Add this to ~/.codex/config.toml, then restart Codex. Settings ▸ Agent shows it with your token already in it:

[mcp_servers.fidelia]
url = "http://127.0.0.1:38412/mcp"
http_headers = { "Authorization" = "Bearer YOUR_TOKEN" }

Other MCP apps

Fidelia serves Streamable HTTP at http://127.0.0.1:38412/mcp and wants the header Authorization: Bearer YOUR_TOKEN. In an app that takes an mcpServers JSON file:

{
  "mcpServers": {
    "fidelia": {
      "url": "http://127.0.0.1:38412/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

If you change the port in Settings ▸ Agent, change it here too.

Things to ask

  • "Play some irish trad."

  • "Put on the album I got yesterday."

  • "Queue that Bothy Band record next."

  • "What's playing?"

  • "Make a playlist of everything I added last month."

  • "What's the oldest piece I own, by when it was written? Play it."

  • "Play one of my radio stations."

Tools

Tool

What it does

search

Search the library

reads

genres

List genres

reads

artists

List artists

reads

composers

List composers

reads

artists_in_genre

List a genre's artists

reads

recently_added

List recently added albums

reads

album_tracks

List an album's tracks

reads

now_playing

What's playing

reads

stations

List radio stations

reads

playlists

List playlists

reads

playlist_tracks

List a playlist's tracks

reads

play

Play

acts

queue

Add to the queue

acts

pause

Pause

acts

transport

Resume or skip

acts

set_volume

Set the volume

acts

set_shuffle

Shuffle on or off

acts

set_repeat

Set repeat

acts

make_playlist

Make a playlist

acts

add_to_playlist

Add to a playlist

acts

Lists come in pages, because a library can run to 100,000 tracks. A page of tracks is grouped by album.

What's in this repository

  • plugins/fidelia/: the Claude Code plugin. It runs its own copy of server/index.js (below) with Node.js, with Fidelia's port and your token from its settings.

  • server/index.js: the script inside Fidelia.mcpb, which Claude runs with its own Node. It hands each message to Fidelia at 127.0.0.1 with your token and writes back Fidelia's answer. When nothing answers, it opens Fidelia with no window (open -g -b com.audiofile.fidelia --args -agent.headless YES) and tries again for up to 45 seconds. It uses only Node's own modules.

  • server.json: Fidelia's entry in the official MCP Registry.

  • tools/publish_listing.py and tools/listing.json: how Fidelia's own CI keeps this repository, its releases and its registry entry equal to what Fidelia serves. When a Fidelia release changes its tools, the script writes them here from Fidelia itself, releases the new Fidelia.mcpb and publishes the new version to the registry. People never run it.

  • glama/, Dockerfile and glama.json: for Glama's automated build check only. Fidelia's server is part of the Fidelia app, so Glama's Linux build machine runs server/index.js against a stand-in that lists Fidelia's real tools (glama/tools.json, read from Fidelia itself) and answers every call with a note to install Fidelia. People never run these files.

Privacy and security

  • Fidelia listens on 127.0.0.1 only. Nothing on your network or the internet can reach it.

  • Only an app with the token from Settings ▸ Agent can connect. New Token there turns the old one away at once. A request from a web page is refused.

  • The server answers only the AI app you set up. That app sends what it reads to its own AI service, under that app's terms.

  • Audiofile's privacy policy: https://audiofile.engineering/privacy

Support

Questions and problems: https://audiofile.engineering/support

License

The files in this repository are under the MIT License. Fidelia itself is Audiofile Engineering's app, on the Mac App Store.

Available Tools

20 tools
add_to_playlistAdd to a playlistB

Add to the end of one of the person's playlists what play would take (plain words, an album_id, track_ids, a genre or an artist).

Inputs: playlist_id (required), genre, query, artist, +2 more.

album_tracksList an album's tracksB
Read-onlyIdempotent

An album's tracks in disc and track order: the album's id, title, artist and whatever all the page's tracks share once, then a page of its tracks.

Inputs: album_id (required), limit, offset.

artistsList artistsA
Read-onlyIdempotent

The library's artists (as albums credit them), most tracks first, with their track counts.

Inputs: limit, offset.

artists_in_genreList a genre's artistsA
Read-onlyIdempotent

The artists whose tracks carry a genre (as genres names it), with their track counts, most first.

Inputs: genre (required), limit, offset.

composersList composersA
Read-onlyIdempotent

Every composer in the library as tagged, with how many tracks carry them, most first. Spellings that differ only in case or accents are one composer. Names are short: ask for up to 500 at a time. A composer's tracks: search "composer ".

Inputs: limit, offset, contains.

genresList genresA
Read-onlyIdempotent

Every genre in the library as tagged, with how many tracks carry it, most first. Spellings that differ only in case or accents are one genre.

Inputs: limit, offset, contains.

make_playlistMake a playlistB

Make a new playlist in Fidelia, empty or holding what play would take (plain words, an album_id, track_ids, a genre or an artist), in that order.

Inputs: name (required), genre, query, artist, +3 more.

now_playingWhat's playingA
Read-onlyIdempotent

What is playing now: the track, where in it, the volume, shuffle and repeat, and where in the queue.

Inputs: no named parameters.

pausePauseB

Pause playback.

Inputs: no named parameters.

playPlayA

Play from the library, replacing the queue: plain words (Fidelia chooses the genre, artist, album, song or radio station they mean and plays it — a record in order, a genre or an artist's music shuffled), or an album_id, track_ids, playlist_id, genre, artist, station or station_id. shuffle overrides. With nothing named, resumes what was playing, or plays the newest album added.

Inputs: genre, query, artist, shuffle, +5 more.

playlistsList playlistsA
Read-onlyIdempotent

The library's playlists with their track counts, and whether each can take tracks (the person's own lists can; smart lists, folders and a server's lists cannot).

Inputs: limit, offset.

playlist_tracksList a playlist's tracksB
Read-onlyIdempotent

A playlist's tracks in its order, grouped by album where neighbours share one (by_album).

Inputs: playlist_id (required), limit, offset.

queueAdd to the queueA

Add to the queue without stopping what plays: after the playing track (position "next") or at the end. Takes what play takes.

Inputs: genre, query, artist, album_id, +3 more.

recently_addedList recently added albumsA
Read-onlyIdempotent

Albums added to the library in a window, newest first, with the day each was added and its whole track count. The window in plain words ("yesterday", "last week", "the past 3 months"); the last 30 days if none.

Inputs: limit, since, offset.

set_repeatSet repeatB

Repeat off, the whole queue (all), or the playing track (one).

Inputs: mode (required).

set_shuffleShuffle on or offA

Turn shuffle on or off, as the shuffle button does.

Inputs: on (required).

set_volumeSet the volumeA

Set Fidelia's volume as a percentage, or move it one step up or down (the step a Remote's buttons take).

Inputs: step, percent.

stationsList radio stationsA
Read-onlyIdempotent

The internet radio stations in Fidelia's library: name, station_id, tags and preset number. Play one with play's station_id, or by name with station.

Inputs: limit, offset, contains.

transportResume or skipC

Resume, toggle play/pause, skip to the next track, or go to the previous one.

Inputs: command (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools target clearly distinct resources or actions, and the descriptions distinguish playback, searching, queueing, and playlist management well. The main overlaps are pause versus transport (which also toggles play/pause) and play versus queue (replace versus append), though the descriptions largely clarify the intended use.

    Naming Consistency3/5

    All names use snake_case and are readable, but the set mixes plural nouns (artists, genres), state phrases (now_playing, recently_added), bare verbs (play, pause, queue), and verb_noun forms (make_playlist, add_to_playlist). There is no single predictable naming pattern across the 20 tools.

    Tool Count3/5

    At 20 tools this is in the heavy borderline range for a music library/player. Most tools map to real features, but there is some redundancy, especially pause versus transport's toggle behavior.

    Completeness3/5

    The surface covers library browsing, playback control, queueing, and basic playlist creation/addition well. However, playlist lifecycle management is incomplete: there is no remove-from-playlist, delete-playlist, rename/reorder, or queue removal/clear operation, which are notable gaps for a library and player server.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects AI assistants to a local music library for full-text search and filtering of tracks, albums, artists, genres, composers, and lyrics, plus listening analytics and metadata hygiene audits. Also lets users generate and populate playlists and control playback (play, pause, seek, volume) in a running player instance.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Lets Claude or any MCP client drive the macOS Music app locally to control playback, search the library, build and edit playlists, set favorites, and pull listening statistics like top tracks, artists, albums, and genres.
      17
      MIT