Docs › AI assistants
MCP server
Omnibus has a built-in MCP server, so an AI assistant you already use, such as Claude, can work with your library: find books, read their text without running ahead of you, look over your reading, and help tidy shelves and metadata. It acts as you, with your account's permissions.
What an assistant can do
- Find books. Browse and search the library by title, author, series, tag or genre, and look at any book's details and files, authors, series and shelves.
- Read them. List a book's chapters, read a chapter's text, and search the text of every book for a passage, with each find pointing back to its book and chapter. It can also show a book's maps and illustrations, and hand you a link to download the original image.
- Look at your reading. Your place in each book, what you're reading now, read status, highlights, bookmarks, journal entries, reviews, stats and reading sessions. It can read another household reader's stats only if they share them (see Stats and goals).
- Curate shelves. Make hand-picked and smart shelves, trying a smart shelf's rules before it saves anything; rename them, change their books, rules or visibility, or turn Sync to my devices on or off.
- Fix metadata. Look a book up with the metadata providers, show you a before-and-after of the changes, apply them once you agree, and revert them later.
- Merge duplicates, and undo a merge.
- Track physical books. Look up ISBNs, check in a copy you own, edit copy notes, and manage your wishlist.
It never changes your settings, your place in a book, or your highlights, and it can't touch the server's configuration or your API tokens.
Staying behind your place
Omnibus knows how far you've read or listened in each book, and the tools that read book text use it:
- Searching text. Every passage the assistant finds is marked as before or past your place. It can ask Omnibus to leave out everything past your place; Omnibus then only tells it that there's a match further on, without showing it.
- Reading a chapter. The assistant can ask for the text to stop at your place. It ends there, and there's no way to page past it.
- When in doubt, it holds back. A passage Omnibus can't place counts as ahead of you, and if it can't tell where you are in a book, it gives no text at all rather than the whole chapter.
Passages are placed at the start of their chapter, so the rest of a chapter you're partway through counts as read and can still appear. The chapter tool tells the assistant to stop at your place whenever you're partway through a book, but the assistant decides how to use these, so tell it when spoilers matter to you.
Two ways to connect
| Hosted endpoint | omnibus-mcp program | |
|---|---|---|
| Runs | Inside your Omnibus server, at /mcp | On the computer your assistant runs on |
| Turned on by | An admin, for the whole server | You; no admin switch needed |
| Signs in with | An API token | Your username and password |
| Suits | Clients that can send an Authorization header, such as Claude Code | Apps that start a local program, such as Claude Desktop |
Both offer the same tools and the same permissions.
Connect to the hosted endpoint
An admin switches it on. In Administration › Integrations, turn on Hosted MCP endpoint. It's off by default, and while it's off the address answers "not found". The card shows the endpoint's address, with a Copy URL button.
Make an API token. In Settings › Sign-in & security, under API tokens, give the token a name after the client that will hold it and click Create token (Create first token the first time). Copy the secret straight away: it's shown once. See Sessions and API tokens.
-
Connect your client. Under the new secret, Connect an MCP client shows a ready-made command for Claude Code, with your address and secret filled in. Copy it and run it in a terminal:
claude mcp add --transport http omnibus https://omnibus.example.com/mcp --header "Authorization: Bearer omni_…"For another client, add a streamable HTTP server at your address followed by
/mcp, sending the headerAuthorization: Bearerand your token.
Omnibus doesn't offer a sign-in (OAuth) flow for MCP. A client that can only connect to remote servers that way should use the omnibus-mcp program instead.
A token works until you revoke it. Revoking it in API tokens cuts the client off at once.
Run the omnibus-mcp program
omnibus-mcp is a small program your assistant app starts on your own computer. It signs in to any Omnibus server you can reach, so the hosted endpoint doesn't need to be on. There's no ready-made download; build it from the Omnibus source with a Rust toolchain:
git clone https://github.com/omnibus-library/omnibus
cd omnibus
cargo build --release -p omnibus-mcp
The program lands at target/release/omnibus-mcp. Tell it where your server is and who to sign in as, with these environment variables or the matching flags:
OMNIBUS_MCP_URLor--url- Your Omnibus address, such as
http://192.168.1.10:3000. OMNIBUS_MCP_USERNAMEor--username- Your Omnibus username.
OMNIBUS_MCP_PASSWORDor--password- Your Omnibus password.
In Claude Desktop, open Settings › Developer › Edit Config and add Omnibus to claude_desktop_config.json, then restart Claude Desktop. Other apps that start local MCP servers take the same details.
{
"mcpServers": {
"omnibus": {
"command": "/full/path/to/omnibus-mcp",
"env": {
"OMNIBUS_MCP_URL": "http://192.168.1.10:3000",
"OMNIBUS_MCP_USERNAME": "your-username",
"OMNIBUS_MCP_PASSWORD": "your-password"
}
}
}
}
That file now holds your password, so keep it private. The program signs in when it starts and signs in again by itself if its session lapses after a week unused. It shows in your Sessions list under Settings › Sign-in & security.
The tools
51 tools in all. Your assistant sees their names and descriptions; you don't need to call them yourself.
| Group | What they do | Tools |
|---|---|---|
| Library | Browse and search the catalog by metadata; a book's details and files; authors, series, tags and genres; a count of what's on disk. | 10 |
| Shelves | List the shelves you can see, a shelf's books and rules, and which shelves hold a book. | 3 |
| Your reading | Your place, recent books, read status, highlights, bookmarks, reviews, journal entries, stats and reading sessions, and which household readers share their stats. | 10 |
| Book text | Chapters, a chapter's text, full-text search across the library, and a book's images. | 5 |
| Shelf curation | Preview a smart shelf's rules, create and update shelves, add and remove books, delete a shelf. | 6 |
| Physical books | Look up ISBNs and titles, check in a copy, list copies, edit or remove a copy, add to and remove from your wishlist. | 9 |
| Metadata repair | Read a book's current details, preview changes, apply them, revert to the file's own details, search the metadata providers, fetch a provider's full record. | 6 |
| Merging | Merge one book into another, and undo a merge. | 2 |
Permissions and safety
The assistant can do exactly what your account can, and no more. An API token carries all of your account's permissions; API tokens lists them. Some tools need a particular one (see People and permissions):
- Edit permission (or admin) to change metadata, search the metadata providers, or merge books.
- Download permission for image download links. They stop working after 15 minutes and open that one image only.
- Admin to see the library folders' paths. Shelves can be changed only by their owner or an admin.
Changes that reach the whole household, or that last, won't run until the assistant confirms you've agreed: applying or reverting metadata, merging or undoing a merge, deleting a shelf, checking in a copy, and removing one. A good assistant shows you the change and asks first; read what it proposes before you say yes.
- Can be undone: a merge, with the undo it hands back; metadata changes, by reverting the book to its file's own details. Reverting clears every edit on that book, including ones you made yourself in Omnibus.
- Can't be undone: deleting a shelf, and removing a physical copy. Checking in a copy also ties its ISBN to that book for future lookups.
- Seen by everyone: metadata changes, merges and physical copies are library-wide. Your shelves, wishlist and reading stay yours.
Troubleshooting
- The hosted address answers 404
- The Hosted MCP endpoint switch is off. Ask an admin to turn it on.
- The hosted address answers 401
- The client isn't sending a valid token. Check the
Authorization: Bearerheader, and that the token hasn't been revoked. omnibus-mcpsays a value is missing- Set all three of
OMNIBUS_MCP_URL,OMNIBUS_MCP_USERNAMEandOMNIBUS_MCP_PASSWORD, or pass the matching flags. - A tool answers 403
- Your account lacks the permission that tool needs.
- An image link no longer opens
- It expired after 15 minutes. Ask the assistant for the image again.
Still stuck? Ask on Discord, or see Troubleshooting.