Browse your Audiobookshelf libraries and keep listening progress, bookmarks and playlists in sync
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Audiobookshelf.
list_librariesThe accessible libraries with id, name and media type β the entry point
get_libraryOne library with its folders and settings
get_library_statsItem, author and genre counts, total duration and size
get_library_filter_dataThe filterable values of a library: authors, genres, tags, series, narrators, languages, publishers
list_library_itemsItems of a library, paginated, sortable, filterable
search_libraryFull-text search across books, podcasts, series, authors, narrators and tags
A Model Context Protocol (MCP) server for Audiobookshelf, the self-hosted audiobook and podcast server.
Lets MCP clients like Claude Code, Claude Desktop or Codex browse your libraries, answer questions about what you own and what you have listened to, and β unless you switch it off β keep your listening progress, bookmarks, collections and playlists up to date: 44 tools, 29 read and 15 write.
Forty-four tools is the ceiling, not the floor: AUDIOBOOKSHELF_ALLOW_TOOLS=essential
registers a curated eight instead, and a model picks the right tool far more
reliably from eight than from forty-four β see
choosing which tools load.
Every response is a projection, not the raw object. An expanded library item
carries every audio file, track and chapter with full ffprobe metadata. The media
tools answer with a compact shape instead, and detail="full" is there for when
the raw object really is what you want.
Twenty-nine of the forty-four tools only read. AUDIOBOOKSHELF_READ_ONLY=true
registers those and nothing else, so a write tool is absent from tools/list
rather than refused when it is called.
The six tools that take something out ask a person first, through MCP elicitation β a dialog the model cannot answer on its behalf, falling back to a single-use token bound to the exact targets where the client cannot show one.
API keys are managed by an admin under Settings β Users β API Keys. A key acts on behalf of exactly one Audiobookshelf user and inherits that user's permissions, so a key issued for a normal account cannot see libraries that account cannot see, and cannot delete anything unless that account may delete. The key is shown only once, at creation.
| Variable | Required | Description |
|---|---|---|
AUDIOBOOKSHELF_URL | yes | Base URL of the instance, e.g. https://abs.example.com. Must not contain credentials. |
AUDIOBOOKSHELF_API_KEY | yes | API key, sent as Authorization: Bearer β¦ |
AUDIOBOOKSHELF_READ_ONLY | no | true registers only the 29 read tools |
AUDIOBOOKSHELF_INSECURE_TLS | no | true accepts self-signed certificates β scoped to this connection, not process-wide |
AUDIOBOOKSHELF_ALLOW_TOOLS | no | Comma-separated tool names, list_* prefixes, or essential for a curated preset |
AUDIOBOOKSHELF_DENY_TOOLS | no | Same syntax; removed from whatever AUDIOBOOKSHELF_ALLOW_TOOLS left |
ELICITATION | no | false replaces the approval dialog with the two-call token. Not prefixed |
The server starts without configuration: it completes the MCP handshake and lists its tools, and every call then fails with the setup instructions. That is deliberate, so registries and sandbox inspectors can introspect it.
AUDIOBOOKSHELF_ALLOW_TOOLS and AUDIOBOOKSHELF_DENY_TOOLS take comma-separated tool names;
a trailing * matches a whole family. essential is a curated preset of
eight: list_libraries, search_library, list_library_items, get_library_item, get_item_chapters, list_items_in_progress, get_media_progress, set_media_progress.
An entry that matches no tool aborts startup and names it, so a typo cannot
silently hide a tool β an absent tool is not something anyone traces back to an
environment variable. A filtered tool is never registered, so it is absent from
tools/list and unknown to tools/call alike, exactly like a write tool under
AUDIOBOOKSHELF_READ_ONLY.
If you run several of these servers at once, mcp-hub
is the other answer β its /hub endpoint replaces every server's tools with six
meta-tools.
claude_desktop_config.json:
~/.codex/config.toml:
Multi-arch, with SBOM and build provenance:
-i is required β the protocol runs over stdin and stdout. There is no port to
publish. More client recipes, including how to keep the key off the docker run
command line, are in the
client guide.
A client that cannot spawn a local process β ChatGPT connectors, Claude on the web,
Cursor, LibreChat β reaches audiobookshelf-mcp through mcp-hub: one
container serves many stdio MCP servers over Streamable HTTP, with an OAuth 2.1 login
behind a single password and long-lived tokens for the clients that cannot do OAuth. Its
/hub endpoint puts every server behind six meta-tools, so one connector reaches all of
them without NΓtool schemas in the model's context, and it speaks both protocol revisions
β a question this server asks travels through it to the person at the far end.
Its /config/mcp.json uses Claude Code's format, so the entry is the one you already
have:
allowTools and denyTools there are the hub's own per-server filter, which is not
the same thing as *_ALLOW_TOOLS in env β the difference, and the mistake it invites,
are in the client guide.
Every tool declares an outputSchema and answers with structuredContent
alongside the text block, so a client can use the result without parsing prose.
Seven tools that answered with a sentence β "Collection col_1 deleted." β now
answer with the fields as well.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/audiobookshelf)<a href="https://allmcps.com/mcp/audiobookshelf"><img src="https://allmcps.com/api/badge/audiobookshelf?style=directory" alt="Audiobookshelf on AllMCPs" /></a>