Connect AI assistants (MCP)
Let Claude and ChatGPT search your Librario library directly — no more dragging PDFs into a chat window or copying search results by hand.
Librario provides a server for the Model Context Protocol (MCP) — an open standard for connecting AI applications to external systems. Your AI assistant is the client, Librario is the server. Once you’ve connected it, it can on your behalf:
- Search in natural language: “Find publications about EN 1993-1-1 steel column buckling published since 2020.”
- See what is new: “What was added to the library last week?” The assistant lists the most recently added entries, regardless of their publication year.
- Look up publication details: “Tell me more about publication #42.” The assistant also names the collections the publication is in, whether a copy is free to borrow and where your own loan request stands in the queue.
- Find and browse collections: “Is there a collection on concrete rehabilitation?” Once it has found the collection, the assistant shows what is in it and can also search within that collection alone. It also answers “Which collections does the library recommend?” and “Show the collections in the Standards section.”
- Create citations for your reference manager: “Give me the BibTeX entries for these three results.” The assistant returns up to 20 publications at once as BibTeX or EndNote, ready to paste into your reference manager.
- Tell you what is new in Librario: “What is new in Librario?” The assistant summarises the latest entries of the changelog. The connection needs no permission of its own for this.
- Download, read, or process attached files: through a short-lived signed link, or directly in the conversation on AI tools that support reading MCP resources. Reading in the conversation works for files up to 1 MB. For larger files, the assistant gets a download link and the publication’s page in Librario, where you can still download the file after the link has expired.
- Mark favourites: “Add the Bautabellen to my favourites.” The assistant adds a publication to your favourites or removes it. Favourites are personal: only you see them, and you remove them in the web app as usual. The connection needs the permission “Manage own loans and favourites” for this.
- Correct publications: “The Schneider-Bautabellen are missing the edition. Add the 25th edition.” Librarians and administrators let the assistant change the bibliographic details of a publication, such as title, contributors, identifiers or keywords. The connection needs the permission “Manage catalogue” for this.
- Import publications: “Import these ISBNs into the catalogue.” Librarians and administrators give the assistant ISBNs, DOIs, PubMed IDs or standard identifiers. It shows a preview first, then starts the import and follows its progress. The connection needs the permission “Manage catalogue” for this.
- View and edit tasks (librarians and administrators): “Which tasks are assigned to me and due by next week?” The assistant lists tasks of the task board, shows one task with its details and changes description, priority, due date, assignee or status. The connection needs “View tasks” and, for editing, “Manage tasks” (more).
- Complete and ignore tasks and reviews (librarians and administrators): “Close the duplicate review for this ISBN.” The assistant sets a task to done or ignores it with a reason. Before it does, it shows what that does. Closing cleans up no data, it only closes the task. The connection needs “Manage tasks”; connections that already have it can do this without a new consent (more).
The assistant can also read Librario’s public documentation. Ask, for example, how loan requests work, and it fetches the matching help page, in English by default or in German on request, with the get_documentation tool. The connection needs no extra permission for this. The guide for AI agents describes how assistants keep documentation and holdings apart and how they cite sources.
Quickstart
You need two things:
- Your personal MCP URL from Librario. Click your avatar in the top right and open Integrations. The page shows whether your plan includes MCP and provides your tenant-specific MCP URL — copy it from the MCP card. You’ll paste this URL into your AI tool in a moment.
- An AI-assistant account on a plan that supports custom connectors (per-vendor requirements below).
Which AI tools work?
Librario works with any AI tool that supports the Model Context Protocol and an OAuth sign-in. Claude.ai, Claude Desktop, ChatGPT, Claude Code, and Codex are the most common examples and are walked through below. For any other MCP-capable tool, follow its own instructions for adding a custom MCP connector and use your Librario MCP URL there.
Claude.ai (web — recommended)
-
In Claude.ai, open Connectors settings (under Customize on personal plans, Settings on Team / Enterprise plans) — directly at https://claude.ai/customize/connectors.
-
Click + Add custom connector and paste your MCP URL. Leave authentication on OAuth.
-
Claude.ai opens a new tab to the Librario sign-in page. Sign in. The consent screen then shows the requested permissions.
-
Review the permissions, then click Authorize.
-
Try a search query:
Find publications about steel column buckling since 2020.
Requirement: a Claude.ai Pro, Team, or Enterprise plan — custom connectors are not available on the free plan.
Claude Desktop (macOS & Windows)
- Install Claude Desktop and sign in.
- Open Settings → Connectors → Add custom connector (or in a chat window click + → Connectors).
- Paste your MCP URL. Leave authentication on OAuth. Click Add.
- Claude Desktop opens your browser to the Librario sign-in. Sign in, review the permissions, and click Authorize.
- Try a search query.
ChatGPT
- Click your profile picture → Settings → Connectors → Advanced and toggle Developer mode on.
- Back at Connectors, click + Add custom connector.
- Paste your Librario MCP URL, leave authentication on OAuth, and confirm I trust this application.
- ChatGPT opens a new tab to the Librario sign-in. Sign in, review the permissions, and click Authorize.
- Try a search query.
Requirement: a paid ChatGPT plan (Plus, Pro, Business, Team, Enterprise, or Edu) — the free tier does not support custom connectors. On Business, Team, Enterprise, and Edu workspaces the workspace administrator must first enable Developer mode and grant you access before the steps above will work.
Claude Code
Connect Claude Code to Librario directly:
-
Add the server in a terminal and replace
<your-MCP-URL>with your MCP URL:claude mcp add --scope user --transport http librario <your-MCP-URL>With
--scope user, Librario is available in every folder, not only the current project. -
Start
claudeand enter/mcp. Chooselibrarioand sign in. Your browser opens the Librario consent page. Review the permissions and click Authorize. -
Try a search. Claude Code asks before it first calls a tool.
Codex (CLI and IDE)
-
Add the server and replace
<your-MCP-URL>with your MCP URL:codex mcp add librario --url <your-MCP-URL> -
Sign in. Your browser opens the Librario consent page. Review the permissions and click Authorize.
codex mcp login librario
Tips for Codex:
-
Tell Codex that library questions belong to Librario. Codex is a coding agent and reads a question like “Is there a collection on concrete repair?” as a question about the local folder. Create a file
AGENTS.mdin your working folder with one line for the agent:Answer questions about the library (publications, collections, tasks) with the MCP server librario. -
Confirm changes. Depending on its approval policy (
approval_policy), Codex asks before tools that change data: editing publications, editing and closing tasks, and importing. Starring favourites runs without asking. With the policy set toneverincodex exec, Codex refuses these calls: “MCP tool call requires approval, but approval policy is never”. -
Turn off the prompt (with care). Add the line
default_tools_approval_modeto the existing[mcp_servers.librario]table in~/.codex/config.toml, whichcodex mcp addcreated. The line turns off the prompt for all Librario tools. The assistant then changes data without asking, and planted text could push it to do so (Treat text from others as data). Use it only in scripts that cannot ask.[mcp_servers.librario] # already in the file default_tools_approval_mode = "approve"
Permissions on the consent screen
The consent screen shows one permission per line. For reading there are two: “View library” (search and view publications) and “View and download files” (download and read attached files). Your Integrations page lists them under the same names later. Untick the files permission and search and detail lookup stay allowed while download links and reading file content stop. Permissions the connection already has show as “Already allowed” without a checkbox; a new consent adds to them. Both permissions are ticked by default. To take a permission back, revoke the connection on the Integrations page (“Revoke”) and reconnect; a permission the connection lacks returns a permission error to the assistant on the next call.
Permissions to change data
Besides reading, the consent screen offers up to three permissions to change data. Neither is preselected, and existing connections do not get either on their own. Tick one only if the AI client may make changes on your behalf.
- “Manage own loans and favourites” allows exactly one thing today: adding publications to your own favourites and removing them. Everyone can grant this permission.
- “Manage catalogue” allows changing the bibliographic details of a publication, checking them against external catalogues and importing publications by identifier today. The consent screen offers it only to librarians and administrators, as in the web app, where only they edit and import publications. What the assistant can do with it is under Edit publications and Import publications.
- “Manage tasks” allows editing tasks: description, priority, due date, assignee and status (open, in progress, in review), including reopening a done or ignored task. The consent screen offers it only to librarians and administrators. To edit you need “View tasks” as well. Your Librario role decides which fields you may change, as in the web app. Only librarians and administrators can be assignees. It also allows completing and ignoring tasks and reviews, as described below.
- Completing and ignoring: the assistant sets a task to done or ignores it. What happens depends on the task type:
- Generic and recurring tasks and error reports are set to done or ignored.
- A duplicate review returns with the next daily check if the number of duplicates changes. If you ignore it, the daily check does not create it again until you reopen the task.
- A data quality summary returns while records still match; completing it fixes none of them. If you ignore it, the daily check stops until you reopen the task.
- The assistant completes a quality review of a publication with your name as reviewer and low priority; that needs advanced task management. If you ignore it, the record stays unchecked. You complete quality reviews of contributors in Librario, because the assistant cannot read those records yet.
- The assistant closes a failed-import review by retrying the import with
import_publications; the review then counts as done. If the publication has been catalogued since, the identifier counts as a duplicate and the assistant skips it; you then close the review in the web app. Alternatively, you cancel the import on the web import page. You close a loan request on the task board.
- Ignoring needs a reason (at least three characters). It goes into the task’s comment with your name and the date. The assistant reopens an ignored task on request by setting its status to “open”.
- Closing has its own limit: ten tasks per minute and 100 per day for each user, across all AI clients together. Calls that change nothing do not count against this limit. A backlog of several hundred tasks belongs on the task board in the web app.
- If we extend a permission, the extension also applies to connections that already have it ticked, without a new consent. The changelog announces each extension.
- The consent screen shows only what the AI client asks for, and an AI client asks for a change permission only once Librario has a tool that uses it.
- Every change counts as your own, even when the AI client made it.
- To add a permission, reconnect and tick the new permission. To take a permission back, revoke the connection on the Integrations page and reconnect.
Edit publications
With the permission “Manage catalogue”, the assistant changes the same bibliographic details you maintain in the edit form: title and subtitle, abstract, publication date, edition, publisher and address (place of publication), journal with volume, number and pages, series, URL, language, keywords, authors and editors, identifiers such as ISBN and DOI, and the publication type. The field reference explains what goes into each field.
It cannot: create or delete publications, or change categories, the responsible organisation, the parent publication, the original title, files and covers, hard copies, notes, or a standard’s own fields (status, type, predecessors and successors). You do all of that in the web app.
- No overwritten changes. For every field it changes, the assistant sends the value it read before. If someone has changed the publication in the meantime, Librario refuses the whole change and names the affected fields to the assistant. The assistant has to read the publication again before it tries once more.
- Contributor names. The assistant does not rename contributors. When it changes a name in a publication, Librario links the publication to the record of that name or creates one. Once no publication uses the old record any more, Librario deletes it, exactly as after a change in the form. A record with a GND, VIAF or ORCID, notes, alternative names or a completed quality review stays, and the old name links it again. To fix a typo in a name, use Contributors in the web app instead: there you change the name of the record itself, and the links stay with it.
- Keywords are free text. The assistant does not match them against the keywords your library already uses. Tell it the spelling you use.
- Details from catalogues. As with Fetch metadata, Librario looks the publication up in external catalogues, and the assistant shows the suggestions next to the current values. Librario saves only what you choose; a catalogue can be wrong. How it works
- Limits. Librario accepts up to 30 calls that change data per person per minute, favourites included, up to 200 calls that edit publications per day and, separately, ten catalogue lookups per minute. Beyond that it refuses further calls until the minute or the day is over. Independently, every call of a connection, reads included, counts against 60 calls per minute. From the 61st call, Librario answers with
limit_reachedand gives the seconds the assistant has to wait inretry_after. - No version history. Librario keeps no earlier versions of publications, and the audit log names only the changed fields. Ask the assistant to show you what it wants to change before you agree. Your own backup protects you against unintended changes.
Import publications
With the permission “Manage catalogue” the assistant imports publications by ISBN, DOI, PubMed ID or standard identifier, like an import under Import in the web app.
- Preview first. The preview saves nothing. It shows which identifiers Librario would import, which are already in the catalogue, which are being imported and which are invalid.
- Identifiers already in the catalogue. If an identifier is already on a publication in the catalogue, the assistant skips it. If you explicitly ask to import it anyway, a second publication is created; the existing one stays unchanged.
- Failed imports. When the assistant imports an identifier again whose import failed or was cancelled, Librario retries that import and closes its review task. If the publication has been catalogued since, the identifier counts as a duplicate and the assistant skips it; you then close the review task in the web app. You cancel an import only in the web app.
- No metadata found. If Librario finds no metadata for an identifier, it still creates an ordinary catalogue record with that identifier, which your colleagues see like any other. The assistant reports these imports; you catalogue them in the web app. If your account has advanced task management, Librario creates a review task for them.
- Limits. The assistant imports up to 25 identifiers per call, and at most 100 per person and 250 per account per hour. Once a limit is reached, Librario refuses further imports until the hour is over. Imported publications count towards your plan’s publication limit.
- You see all imports, including those made through an assistant, under Import.
Microsoft 365 Copilot, Copilot Studio and Google Gemini are set up through Connect enterprise AI assistants.
Whose Librario user does the assistant act as?
The assistant acts in Librario with the user and permissions of the person it is signed in as. Depending on the setup, that is your own user or a shared one:
| Setup | The assistant acts as | Can change data |
|---|---|---|
| Claude.ai, Claude Desktop | Your own Librario user: each person signs in themselves | Yes, after reconnecting with the box ticked: favourites with “Manage own loans and favourites”, editing and importing publications with “Manage catalogue”, editing and closing tasks with “Manage tasks” (each for librarians and administrators only) |
| ChatGPT | Your own Librario user | Yes, as with Claude |
| Claude Code | Your own Librario user | Yes, as with Claude; Claude Code asks before tool calls |
| Codex (CLI, IDE) | Your own Librario user | Yes, as with Claude; Codex asks depending on its approval policy |
| Microsoft 365 Copilot, federated connector | Your own Librario user | No, the connector only reads |
| Copilot Studio with End user credentials | Your own Librario user | Not yet tested, probably yes as with Claude. Tick the permissions only after a test of your own |
| Copilot Studio with Maker-provided credentials | Shared: everyone acts as the Librario user of the person who built the agent | Not recommended: everyone changes data as the person who built the agent. All favourites land with them, and if they are a librarian or administrator, everyone edits and imports publications and edits and closes tasks with their rights. Use End user credentials |
The other setups on this page (Gemini Enterprise, Gemini CLI, your own OAuth client registrations) act with the Librario user that the respective person signed in with. Whether they can change data has not been tested yet. Grant “Manage catalogue” and “Manage tasks” there only after a test of your own.
Treat text from others as data
Titles, abstracts and file names come from people other than you, for example from a catalogue import. Such text can try to give the assistant commands. Librario removes hidden and control characters from it and tells the assistant that field values are data, not instructions. Error messages from Librario contain no titles, file names or search terms.
A residual risk remains: a request written in plain sight stays in the text, and whether the assistant follows it is up to the AI model. Librario limits what it can do: every call checks your role, changes need a permission of their own and are limited per minute, and the assistant cannot delete publications. More in the guide for AI agents.
With the permission “Manage catalogue” this residual risk weighs more: planted text could lead the assistant to change a publication or a task or import publications. If your AI tool asks before a change, confirm only when the change matches what you asked for, and do not allow update_publication, import_publications, update_task, complete_task and ignore_task permanently without asking.
Manage and revoke connections
The Integrations page lists every application that accesses Librario on your behalf under “Connected applications”, sorted by last use. Each row carries a type badge, “AI assistant” or “REST API”, plus the name, connect time, last-used timestamp and the granted permissions as individual badges. A connection that has been used, but not in the last 30 days, also carries the badge “Unused for over 30 days”.
Click Revoke on a row to end that connection immediately. The assistant’s next request to Librario returns HTTP 401. The only way to regain access is a new authorisation.
To take the right to change data away from an AI client:
- For yourself: revoke the connection and reconnect without ticking the permission you want to take back.
- For the whole account: administrators switch AI assistants off in the account settings, or revoke an OAuth client the account issued itself.
- For publications and tasks, the role is the lever: once administrators take the librarian role away from a person, that person’s assistant can no longer change or import publications from its next call on. It sees only tasks assigned to that person or created by them, and can only change the description of their own error reports. For favourites no role helps, as everyone may mark favourites.
- Administrators do not see individual people’s connections and cannot revoke them one by one. There is no account switch for “read yes, change no”.
With advanced AI controls, administrators see under Our account → View audit log which person called which tool through which AI client, and when, and what it changed: for favourites the value before and after, for publications the names of the changed fields, and for the publication type the old and new type too; for imports, how many imports were created and retried and whether existing identifiers were imported again on purpose; for tasks, status, priority and due date before and after, and when a task is closed, who closed it. Librario stores no search terms, titles or other text there. Without advanced AI controls there is no audit log, and a change through an assistant looks like a change in the web app.
Librario attributes everything an AI assistant does to the signed-in person. The assistant is not a user of its own. Only the audit log shows that something happened through an AI client, and which one.
From version 3.0 of the MCP server, search_library is called search_publications; a call to search_library fails as an unknown tool. If your AI tool still offers search_library, reconnect it, or refresh its tool list if it caches it, and enable search_publications if you enable tools by name. Version 3.0 also changed fields in the answers, such as changed, which is now a list; the tools are described in the guide for AI agents.
MCP is disabled?
If the MCP card says the connection was disabled by your administrator, someone with the administrator role has switched MCP off for the entire account. Existing connections are preserved and resume without reconnecting once it is re-enabled. Administrators control this in the account settings.