audiobookshelf-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| 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_DENY_TOOLS | No | Same syntax; removed from whatever AUDIOBOOKSHELF_ALLOW_TOOLS left | |
| AUDIOBOOKSHELF_ALLOW_TOOLS | No | Comma-separated tool names, list_* prefixes, or essential for a curated preset | |
| AUDIOBOOKSHELF_INSECURE_TLS | No | true accepts self-signed certificates — scoped to this connection, not process-wide |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_librariesA | Lists the Audiobookshelf libraries the API key’s user can access, with their id, name and media type (book or podcast). Start here — every other library tool needs a library id. |
| get_libraryA | Fetches a single library including its folders and scanner settings. |
| get_library_statsA | Statistics for one library: number of items, authors and genres, total duration and size, longest and largest items. |
| get_library_filter_dataA | Returns the values that can be filtered on in this library: authors, genres, tags, series, narrators, languages and publishers, each with the id or name to pass to list_library_items as filter_value. |
| list_library_itemsA | Lists items (books or podcasts) of a library, paginated, sortable and filterable. Use get_library_filter_data first to learn the valid filter values. Filter groups — valued (need filter_value): genres, tags, series, authors, progress, narrators, publishers, publishedDecades, missing, languages, tracks, ebooks; standalone: issues, feed-open, share-open, recent. |
| search_libraryA | Full-text search within one library. Matches books, podcasts, series, authors, narrators and tags. Use this for "do I own X?" questions; use list_library_items with a filter for "show me all X" questions. |
| get_personalized_shelvesA | The shelves of the Audiobookshelf home screen for this user: Continue Listening, Continue Series, Recently Added, Newest Episodes, Listen Again and so on. The fastest answer to "what am I listening to right now?". |
| list_seriesA | Lists the series of a book library with their number of books and total duration. To list the books of one series, call list_library_items with filter_group="series" and filter_value=. |
| get_seriesA | Fetches a single series by id, including its books. To list the books with paging and sorting, use list_library_items with filter_group="series" instead. |
| list_authorsA | Lists all authors of a book library with their number of books. To list the books of one author, call list_library_items with filter_group="authors" and filter_value=. |
| get_authorA | Fetches a single author, optionally with the library items attributed to them. |
| list_tagsB | Lists all tags used on the server, across libraries. Tags are the user-defined labels on library items. |
| list_genresA | Lists all genres used on the server, across libraries. Genres come from the media metadata, not from the user. |
| get_server_statusA | Version and initialization state of the Audiobookshelf server. Useful to check connectivity and whether the server is new enough for API keys (2.26.0 or later). |
| get_library_itemA | Fetches one book or podcast including its metadata, tags and the listening progress of the API key’s user. Chapters, audio files and tracks are not part of the compact projection — use get_item_chapters for chapters, or detail="full" for everything. |
| get_item_chaptersB | Returns the chapter list of a book with start and end times in seconds. Separate from get_library_item because long audiobooks can have hundreds of chapters. |
| get_podcast_episodeB | Fetches one podcast episode with its publication date, duration and description. |
| list_recent_episodesA | Lists the most recently published episodes across a podcast library — the "Newest Episodes" view. Only works on libraries with mediaType "podcast". |
| get_meA | Returns the Audiobookshelf user the API key acts on behalf of, with their permissions and accessible libraries. The compact projection reports media progress and bookmarks as counts — the full user object embeds every single one of them. |
| list_items_in_progressA | The items the user has started but not finished, newest first — the "Continue Listening" list across all libraries. The entries carry progressLastUpdate but not the position itself; use get_media_progress for that. For podcasts, recentEpisode names the episode in progress. |
| get_media_progressA | The listening progress of the current user for one book or podcast episode: position, percentage and whether it is finished. Returns a 404 error when the item has never been started. |
| get_listening_statsA | Aggregated listening statistics of the current user: total time, time per weekday, the last 30 days, the ten most listened items and the ten most recent sessions. detail="full" returns the complete per-day history and the full metadata of every item ever listened to, which is the largest response this API produces. |
| get_year_statsA | The "year in review" statistics of the current user for one calendar year: books finished, time listened, top authors and genres. |
| list_listening_sessionsA | The playback sessions of the current user, newest first — each entry is one listening stretch with device, position and time listened. |
| list_bookmarksA | The bookmarks of the current user — either all of them, or those of one library item. A bookmark is a named position in seconds. |
| list_collectionsA | Lists collections — the curated, ordered groups of books. Without library_id it returns the collections of every accessible library. Collections are shared server-wide; playlists are private per user. |
| get_collectionA | Fetches one collection with the books it contains, in order. |
| list_playlistsA | Lists the playlists of the API key’s user. Without library_id it returns the playlists of every accessible library. Playlists are private per user and can hold books or podcast episodes; collections are shared server-wide and hold books only. |
| get_playlistA | Fetches one playlist with its entries, in order. |
| set_media_progressA | Creates or updates the listening progress of the API key’s user for one book or podcast episode. Set is_finished=true to mark it as finished, is_finished=false to reopen it (which resets the position to 0), or current_time to jump to a position in seconds. Audiobookshelf also marks an item finished on its own once less than ten seconds remain. |
| delete_media_progressA | Deletes a progress record of the API key’s user, which removes the listening history for that item — position, finished state and dates. Takes the media progress id (field "id" of get_media_progress), not the library item id. Two-step: the first call returns a confirmation token, the second call with that token performs the deletion. |
| create_bookmarkA | Creates a bookmark at a position of a book for the API key’s user. The position in seconds is the bookmark’s identity — a second bookmark at the same second is rejected. |
| update_bookmarkA | Renames the bookmark at a given position. The position itself cannot be changed — delete the bookmark and create a new one for that. |
| delete_bookmarkA | Deletes the bookmark at a given position. No confirmation token: a bookmark is a position and a title, and create_bookmark restores it. |
| create_collectionA | Creates a collection of books. Audiobookshelf rejects empty collections, so at least one library item id is required, and every item must be a book from the given library. |
| update_collectionA | Renames a collection, changes its description or reorders its books. library_item_ids replaces the order completely, so it has to contain every item that should stay in the collection — use add_books_to_collection and remove_books_from_collection to change membership. |
| add_books_to_collectionA | Adds one or more books to an existing collection. Books already in the collection are ignored; books from a different library are rejected. |
| remove_books_from_collectionA | Removes books from a collection. The books themselves are untouched — only their membership in the collection ends, and it can be restored with add_books_to_collection. |
| delete_collectionA | Deletes a collection. The books stay in the library, but the curated list and its order are gone. Two-step: the first call returns a confirmation token, the second call with that token performs the deletion. Requires an Audiobookshelf account with delete permission. |
| create_playlistA | Creates a playlist for the API key’s user. Unlike a collection it may start out empty and it may hold podcast episodes. |
| update_playlistA | Renames a playlist, changes its description or reorders its entries. items replaces the order completely, so it has to contain every entry that should stay — use add_items_to_playlist and remove_items_from_playlist to change membership. The library of a playlist cannot be changed. |
| add_items_to_playlistA | Appends books or podcast episodes to a playlist. All entries must come from the playlist’s library and match its kind — a podcast playlist needs an episode_id on every entry, a book playlist on none. |
| remove_items_from_playlistA | Removes entries from a playlist. The media itself is untouched and the entries can be added back with add_items_to_playlist. Note that Audiobookshelf deletes a playlist automatically once its last entry is removed. |
| delete_playlistA | Deletes a playlist. The media stays in the library. Two-step: the first call returns a confirmation token, the second call with that token performs the deletion. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ni-c/audiobookshelf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server