Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Audiobookshelf

@sierikovMCP server · External

Browse Audiobookshelf libraries and listening stats; opt-in tools fix chapters, genres and tags.

Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

MCP Bundlehttps://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-macos-arm64.mcpb

Distributed as an MCP bundle (`https://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-macos-arm64.mcpb`) — download it and import the bundle in your MCP client.

MCP Bundlehttps://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-macos-amd64.mcpb

Distributed as an MCP bundle (`https://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-macos-amd64.mcpb`) — download it and import the bundle in your MCP client.

MCP Bundlehttps://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-linux-amd64.mcpb

Distributed as an MCP bundle (`https://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-linux-amd64.mcpb`) — download it and import the bundle in your MCP client.

MCP Bundlehttps://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-linux-arm64.mcpb

Distributed as an MCP bundle (`https://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-linux-arm64.mcpb`) — download it and import the bundle in your MCP client.

MCP Bundlehttps://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-windows-amd64.mcpb

Distributed as an MCP bundle (`https://github.com/sierikov/audiobookshelf-mcp/releases/download/v0.3.1/audiobookshelf-mcp-windows-amd64.mcpb`) — download it and import the bundle in your MCP client.

npm@sierikov/audiobookshelf-mcpv0.3.1

Run

npx -y @sierikov/audiobookshelf-mcp

MCP client config

{
  "mcpServers": {
    "audiobookshelf": {
      "command": "npx",
      "args": [
        "-y",
        "@sierikov/audiobookshelf-mcp"
      ]
    }
  }
}
README11 min read

Audiobookshelf MCP Server

Go Go Report Card MCP Registry

A Model Context Protocol server for Audiobookshelf - gives AI assistants access to your self-hosted audiobook and podcast library.

MCP Registry name: mcp-name: io.github.sierikov/audiobookshelf-mcp

What can it do?

Ask your AI assistant things like:

  • "What am I currently listening to?"
  • "Search for Dune in my library"
  • "What are my listening stats?"
  • "What did I listen to recently?"
  • "How far am I in Katabasis?"
  • "What libraries do I have?"

Quick start

One command connects the server to your Audiobookshelf and adds it to your AI agents. Pick the way you like to install:

npx (needs Node.js 18+):

bash
npx -y @sierikov/audiobookshelf-mcp setup

go install:

bash
go install github.com/sierikov/audiobookshelf-mcp/cmd/audiobookshelf-mcp@latest
audiobookshelf-mcp setup

The Go bin directory ($(go env GOPATH)/bin, or $GOBIN if you set it) must be on your PATH for audiobookshelf-mcp setup to work.

setup asks for:

  1. Your Audiobookshelf URL and API token (Settings → Users → your user → API Token). The token is hidden as you type. setup checks them and prints Connected to … as ….
  2. Whether to turn on the tools that edit your library (chapters, metadata). The default is no.
  3. Which of the agents it found to add the server to. Press Enter for all of them.

It then saves your settings and adds the server to those agents, after backing up each config file it edits. The agents' configs hold only the command to run, never your token. It looks for these agents:

AgentID for --agents
Claude Desktopclaude-desktop
Claude Codeclaude-code
Codexcodex
OpenCodeopencode
Hermes Agenthermes
Antigravity CLIantigravity
Gemini CLIgemini
Cursorcursor

Restart your agent, then ask it about your library. If you configured Claude Code by hand before (claude mcp add), also run claude mcp remove audiobookshelf -s local in that project, because that local entry wins over the one setup writes.

setup takes flags for the questions it asks, so you can script it:

FlagWhat it does
--url URLYour Audiobookshelf URL
--token TOKENYour API token. Other programs on the machine can see it in the process list, and your shell may keep it in its history, so the prompt is safer
--toolsets a,bToolsets to use, as a comma-separated list. It replaces the defaults (libraries,items,playback): for example libraries,items,playback,chapters,metadata, or all. An empty value restores the defaults
--agents id,idAgents to add the server to, by ID. none adds it to no agent
--yesNever ask: use the flags, the saved settings and the defaults

Run setup again to change the token, to add an agent you installed since, or to move agents that use npx to a new version.

Updating

Upgrade the way you installed:

Installed withUpgrade
npxnpx -y @sierikov/audiobookshelf-mcp@latest setup
go installgo install github.com/sierikov/audiobookshelf-mcp/cmd/audiobookshelf-mcp@latest
A downloaded binary or the Claude Desktop extensionDownload the .mcpb or binary for your platform from GitHub releases

With npx, setup pins each agent to the version it ran with, so running it again with @latest is what moves them forward.

At most once a day, audiobookshelf-mcp version, setup and the running server ask GitHub whether a newer release exists (one request with your version in the User-Agent, nothing else). version and setup print the answer. The server asks your agent to mention a new release once in a conversation where you use its tools, until you upgrade, with the upgrade command for your install. For a downloaded binary or the extension, the text names the download. Restart the app after upgrading. Set AUDIOBOOKSHELF_MCP_NO_UPDATE_CHECK=1 to turn the check off.

Where settings live

setup saves your settings to a file only you can read (mode 0600):

SystemSettings file
macOS, Linux$XDG_CONFIG_HOME/audiobookshelf-mcp/config.json, which is ~/.config/audiobookshelf-mcp/config.json unless XDG_CONFIG_HOME is set
Windows%AppData%\audiobookshelf-mcp\config.json
json
{
  "url": "https://abs.example.com",
  "token": "your-token",
  "toolsets": ["all"]
}

If XDG_CONFIG_HOME points somewhere other than ~/.config, apps started outside your shell, such as Claude Desktop or Cursor, may not see it and will look in ~/.config instead. setup warns you when that is the case.

Environment variables override the file. Re-run setup to change the token.

VariableRequiredDefaultDescription
AUDIOBOOKSHELF_URLUnless saved by setup—Your Audiobookshelf server URL
AUDIOBOOKSHELF_TOKENUnless saved by setup—API token from Settings → Users
AUDIOBOOKSHELF_TOOLSETSNolibraries,items,playbackComma-separated toolsets to enable: libraries, items, playback, browse, chapters, metadata. Use all to enable everything, including the chapters and metadata write tools.

Tools

ToolDescriptionToolset
list_librariesList all librarieslibraries
search_librarySearch by title, author, or narratorlibraries
list_library_itemsList items with paginationlibraries
get_itemGet detailed info about an audiobook or podcast, including its tagsitems
get_items_in_progressGet currently listening items with progressitems
get_listening_statsTotal listening time and daily breakdownplayback
get_listening_sessionsRecent listening sessionsplayback
get_media_progressProgress for a specific itemplayback
list_seriesList all series in a librarybrowse
get_seriesGet series details with booksbrowse
get_authorGet author details with booksbrowse
list_collectionsList collections in a librarybrowse
get_chaptersA book's chapters, duration and audio fileschapters
search_audibleFind matching Audible editions, closest runtime firstchapters
get_audible_chaptersAudible's chapter list for an ASINchapters
set_chaptersReplace all of a book's chapters (writes)chapters
rename_chaptersRename chapters, keeping their timestamps (writes)chapters
get_metadata_overviewCount every genre, tag and language in a library, and the books missing themmetadata
find_itemsList books with their genres, tags and language, filtered; detail: full adds a description previewmetadata
search_book_metadataLook a book up in one metadata source (fantlab, google, audible, openlibrary, itunes)metadata
add_genresAdd genres to books (writes)metadata
remove_genresRemove genres from books (writes)metadata
add_tagsAdd tags to books (writes)metadata
remove_tagsRemove tags from books (writes)metadata
update_itemsSet the language and description of books (writes)metadata

Default toolsets: libraries, items, playback. The browse, chapters and metadata toolsets are opt-in via AUDIOBOOKSHELF_TOOLSETS. setup asks whether to turn on the editing toolsets (chapters, metadata), and --toolsets sets the whole list.

Fixing chapters

With the chapters toolset enabled, ask things like "Fix the chapters for Katabasis". The assistant reads the book's current chapters, searches Audible for the edition whose runtime matches your files, fetches its chapters, replaces generic titles ("Chapter 1, 2, 3") with real ones, and shows you the list before saving. When Audible has no match, it can build the list from its own research or from timestamps you give it. Every save returns the previous chapters, so a change can be undone, as long as those old chapters were valid (old chapters that run past the end of the book, for example, cannot be saved back).

Cleaning up genres, tags and descriptions

With the metadata toolset enabled, ask things like "Make my genres consistent" or "Fix the descriptions of the Harry Hole books". The assistant surveys the library with get_metadata_overview, proposes a mapping from the old genres or tags to the new ones, and shows you the affected books. After you say yes, it adds the new value first and then removes the old one, so no book is left without it. For descriptions it looks up real ones with search_book_metadata, shows each change from old to new, and tells you when it wrote a description itself. Every write returns what it changed, so a change can be undone: the genre and tag tools list each book's added or removed values, and update_items returns the previous values.


Manual setup

Prefer to configure things yourself, or is your agent not on the list above? Use the extension below (Claude Desktop only) or the three steps after it.

Claude Desktop extension (one-click)

Download the .mcpb bundle for your platform, open it, and Claude Desktop will walk you through setup. Use either the extension or setup's Claude Desktop entry, not both: with both, every tool appears twice.

The .mcpb format is currently only supported by Claude Desktop; other clients use setup or the steps below. If your organisation blocks extensions, use setup instead.

1. Get your API token

Audiobookshelf → Settings → Users → your user → API Token

2. Install the binary

go install:

bash
go install github.com/sierikov/audiobookshelf-mcp/cmd/audiobookshelf-mcp@latest

Download and install to /usr/local/bin:

macOS (Apple Silicon)
bash
curl -L https://github.com/sierikov/audiobookshelf-mcp/releases/latest/download/audiobookshelf-mcp-macos-arm64 \
  -o /usr/local/bin/audiobookshelf-mcp && chmod +x /usr/local/bin/audiobookshelf-mcp
macOS (Intel)
bash
curl -L https://github.com/sierikov/audiobookshelf-mcp/releases/latest/download/audiobookshelf-mcp-macos-amd64 \
  -o /usr/local/bin/audiobookshelf-mcp && chmod +x /usr/local/bin/audiobookshelf-mcp
Linux (x64)
bash
curl -L https://github.com/sierikov/audiobookshelf-mcp/releases/latest/download/audiobookshelf-mcp-linux-amd64 \
  -o /usr/local/bin/audiobookshelf-mcp && chmod +x /usr/local/bin/audiobookshelf-mcp
Linux (arm64)
bash
curl -L https://github.com/sierikov/audiobookshelf-mcp/releases/latest/download/audiobookshelf-mcp-linux-arm64 \
  -o /usr/local/bin/audiobookshelf-mcp && chmod +x /usr/local/bin/audiobookshelf-mcp
Windows

Download audiobookshelf-mcp-windows-amd64.exe, rename to audiobookshelf-mcp.exe, and place it in a directory on your %PATH% (e.g. C:\Program Files\audiobookshelf-mcp\).

3. Configure your client

Claude Code
bash
claude mcp add audiobookshelf \
  -e AUDIOBOOKSHELF_URL=https://abs.example.com \
  -e AUDIOBOOKSHELF_TOKEN=your-token \
  -- audiobookshelf-mcp
Antigravity CLI (formerly Gemini CLI)
bash
antigravity --add-mcp '{"name":"audiobookshelf","command":"audiobookshelf-mcp","env":{"AUDIOBOOKSHELF_URL":"https://abs.example.com","AUDIOBOOKSHELF_TOKEN":"your-token"}}'
OpenCode

Add to ~/.config/opencode/config.json:

json
{
  "mcpServers": {
    "audiobookshelf": {
      "type": "stdio",
      "command": "audiobookshelf-mcp",
      "args": [],
      "env": {
        "AUDIOBOOKSHELF_URL": "https://abs.example.com",
        "AUDIOBOOKSHELF_TOKEN": "your-token"
      }
    }
  }
}

Security

The default toolsets are read-only. Two opt-in toolsets write, and both need an API token whose user has the Update permission in Audiobookshelf. Neither needs admin.

  • chapters: set_chapters and rename_chapters replace a book's chapters. They are annotated as destructive so MCP clients ask before running them, and return the previous chapters so a change can be undone when those old chapters were valid.
  • metadata: add_genres, remove_genres, add_tags and remove_tags add and remove genres and tags, and update_items sets language and description. The remove tools and update_items are annotated as destructive. Every write can be undone: the list tools by calling the opposite tool with each book's added or removed values, update_items by passing the previous values it returns. Audiobookshelf can limit what a user sees by tag, so add_tags and remove_tags can change what a restricted user, such as a kids account, can see.

all includes every write tool; list toolsets explicitly to stay read-only. No tool deletes items, controls playback, or manages users. The API token comes from the settings file (readable only by you) or an environment variable, and is never logged or exposed.

Every call is checked against the tool's input schema before it runs. An unknown argument, a wrong type, or a value out of range is refused with an error that names it, so a misspelled filter or an extra field is never silently ignored.

Releasing

A release is a signed tag. The version comes from the tag, so there is nothing to bump in files: manifest.json and server.json keep the placeholder version 0.0.0-dev, and the release stamps the real one.

bash
git tag -s vX.Y.Z -m vX.Y.Z && git push origin vX.Y.Z

The Release workflow then publishes, one job after another, the GitHub release (binaries and .mcpb bundles), the npm packages, and the MCP Registry entry. GitHub generates the release notes; edit them on the release afterwards if needed. The Homebrew cask is switched off for now: to turn it on, set the HOMEBREW_TAP_GITHUB_TOKEN secret (write access to sierikov/homebrew-tap) and change skip_upload in .goreleaser.yaml to auto.

Actions → Release → Run workflow is always a dry run: it builds a snapshot, checks server.json with the MCP Registry, rehearses the npm publish, and publishes nothing.

If a job fails, fix the cause and use Re-run failed jobs on the run: the jobs that succeeded are kept, and the rest reuse their build, which is kept for 90 days.

A pre-release tag such as v1.2.0-rc.1 becomes a GitHub pre-release and goes to npm under the next tag. It gets no MCP Registry entry, and no Homebrew cask once that is on.

For the first release, npm trusted publishing cannot create a package, so the npm job fails until the packages exist. Publish the six packages by hand once (@sierikov/audiobookshelf-mcp and the five @sierikov/audiobookshelf-mcp-<platform> ones), set up trusted publishing for each of them on npmjs.com, then re-run the failed jobs.

License

MIT

Similar modules

Browse Self-hosting & homelab