holdings-mcp
Mirrors Zotero libraries and provides read-only lookup of works by Zotero item key, citekey, or other identifiers, including holdings and citation readiness.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
holdings-mcp
What do I have, and in what form? One lookup over every work, whatever the medium: an item filed in Zotero, a Calibre book with or without text, a paper book with quotes in quote-mcp. Each work is keyed the way every other authoring service keys it (the Zotero item, its citekey) and says what can be done with it next: read its text, find its quotes and notes, cite it.
It keeps a mirror of the Zotero libraries listed in HOLDINGS_ZOTERO_LIBRARIES (a library taken off the list is
dropped from the mirror at the next refresh) and polls two feeds: corpus-mcp's books and quote-mcp's quote
counts. It writes to none of them, and its MCP tools are read-only. PLAN.md is the plan of record.
corpus-mcp and quote-mcp read Zotero through it, so only holdings-mcp syncs with zotero.org (see Zotero through holdings-mcp). Writes to Zotero go through zotero-mcp.
MCP tools
Through the portal, which prefixes each server's tools, these appear as holdings_find_work, holdings_get_work, and holdings_status.
Name | What it does |
| Works by words in the title or creators, by author, by any key, or by what they have ( |
| One work by any key: every key it has, every holding, and what stands in the way of citing it. |
| Each source's freshness and errors, counts, Calibre books not yet filed, and feed entries that couldn't be placed. |
Every tool takes any key a work has, and the answer lists all of them:
zotero:<library>/<item key> (the work's key), the citekey (@ optional), the bare item key, a Calibre book
id (main:42), calibre:<uuid>, quote:<id>, or an ISBN. A Calibre book not filed in Zotero is keyed
calibre:<uuid>, and a quoted work quote-mcp can't match to one item is keyed quote:<id>. Once the work
is filed and matched, its old key is recorded under former_keys and keeps resolving.
Related MCP server: pergamos
Quick start
Requires Node.js 22 or later; better-sqlite3 compiles natively.
npm install
cp .env.example .env # then set HOLDINGS_ZOTERO_API_KEY, and the feed URLs once they're deployed
npm run refresh # sync Zotero, poll the feeds, build the works
npm run serve # MCP at http://localhost:8000/mcp, refreshing every 2 minutesnpm run holdings -- status prints what the status tool answers. Run the tests with npm test.
Zotero through holdings-mcp
Research to-dos from any source whose citekeys begin with placeholder (case-insensitive, with an optional leading @) are excluded from the holdings index;
they and their notes remain intact in Zotero and its mirror. Incomplete real references remain searchable.
The root library page allows read-only browsing through the Cloudflare tunnel without sign-in;
its tunnel view has no Admin link. Search result citekeys link to the Zotero record, falling back to the corpus or quote record for works outside Zotero. Calibre, Zotero, and quote glyphs link directly to their respective records. Expand the disclosure arrow for Zotero desktop links and locating instructions
for each Calibre copy (library, book ID, formats, and an exact id: search). On the LAN,
Calibre links open the book’s corpus detail page; set HOLDINGS_CATALOG_URL to your public
corpus catalogue base URL to offer book links to tunnel visitors too. Without a public catalogue,
remote visitors still see the locating instructions. Set HOLDINGS_QUOTES_URL to the public quote site
to link directly to each current quote-store record, including works matched to Zotero. Zotero child notes are counted in results and included by the Notes filter. Their readable text appears in expanded details on the LAN; public visitors see the count and a link to the Zotero record. /admin, /worklist, the Zotero mirror, and maintenance APIs
remain LAN-only (authenticated tunnel requests get a 404). MCP and health requests through the tunnel
continue to require a verified Cloudflare Access token. Existing portal registrations at the root URL
remain supported: authenticated MCP POSTs at / use the same transport as /mcp, while ordinary
browser GETs show the library. Anonymous root POSTs remain disallowed.
On the LAN, the server also answers the part of the Zotero Web API that corpus-mcp and quote-mcp sync with, from its mirror, notes included:
Request | Answers |
| Items changed since a library version: |
| The same, for items without a parent |
| Keys deleted for good since a version ( |
| Refreshes now, after any refresh already running: for a service that just wrote to Zotero |
| Read-only library browsing, also available through the Cloudflare tunnel without sign-in. Library search with minimal stat cards, title/author and exact-key search, and material filters. Search uses |
| Library maintenance: worklist access, complete formatted health and check responses (including deployment metadata, finding timestamps, source snapshots, and Zotero readers), feed freshness, and live service links. Addresses can be overridden with |
| The page below: what the checks found that needs a person |
| A bibliography for the citekeys a document cites (500 at most), so a renderer needn't be handed a |
| The cross-service checks in full, and who last read |
| Each mirrored library in numbers, counts only: items (by type), notes, attachments, annotations, the trash, collections and saved searches, its version, and when it last synced. Items come from the mirror; collections and searches from Zotero's |
Each sets Last-Modified-Version and, for listings, Total-Results, as Zotero does. The versions are
Zotero's own, so a service that synced from Zotero carries on from its version. Any other parameter
(q, tag, sort, …) is refused rather than ignored. To switch a service, set its base URL:
CORPUS_ZOTERO_API=http://holdings-mcp.localdomain:8000/zotero # corpus-mcp
QUOTE_ZOTERO_API=http://holdings-mcp.localdomain:8000/zotero # quote-mcpIt's as fresh as the last refresh: every HOLDINGS_REFRESH_SECONDS (120 by default), or sooner with
POST /api/refresh.
Cross-service checks
After every refresh holdings-mcp tests what must hold between the services and reports it; it never fixes
anything (docs/cross-service-checks.md). /health has the summary,
status and GET /api/checks the results. /worklist on the LAN lists what needs a person, with links
to where each fix happens: anything failing, likely missed matches, and a citekey clash inside one library. A
citekey shared across two mirrored libraries is expected and left out. Fix an item at its source and it leaves at the
next refresh. To accept one, dismiss it with a reason, kept in the store; different wording brings it back, as does
its returning after it went away. To check who reads the Zotero mirror, list them:
HOLDINGS_ZOTERO_READERS=corpus-mcp=192.168.1.179:300,quote-mcp=192.168.1.210:1800 # name=address:seconds it syncs everyWhether each service still lists the tools the authoring skills call is checked by authoring-ops-mcp, which
also reports whether each service is up. HOLDINGS_TOOL_SERVERS is no longer read.
The whole-suite interop runs that used to be kept here (The Chamber and the System, The Glass Office, and the Glass
Office brief, plan, and follow-up) are in authoring-ops-mcp's docs/interop/. The two portal-article essays that
sat untracked in docs/demo are authoring-skills' examples/portal-article/.
Deploying
On its own LXC (holdings-mcp.localdomain, port 8000), on quote-mcp's pattern:
npm run deploy -- --provision # once: Node 22, the holdings user, directories
npm run deploy -- --env # copy the Zotero and feed settings from .env to /etc/holdings-mcp/env
npm run deploy # build, test, install a release, health-check, roll back on failureA deploy whose migration changes the store's schema keeps a copy of the store from before it, and a rollback puts that copy back, since the previous release refuses a newer schema.
A nightly timer backs the store up to /var/lib/holdings-mcp/backups and keeps 14 days. Everything in the
store can be rebuilt from Zotero and the feeds except former_keys, which is why it's backed up.
After the first deploy, add a Cloudflare Access application for the host and add it to the Authoring MCP portal.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only search and retrieval of published books, articles and authors, with public catalog links.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Search your Glasp web and Kindle highlights, notes, and AI memories from any MCP client. Read-only.
Start cited deep-research runs, read reports, search your source vault, and verify citations.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides read-only access to your local Zotero library via the Zotero Local API, enabling search, retrieval, and bibliography generation without API keys.10MIT
- FlicenseAqualityCmaintenanceEnables bibliographic research on a private local Calibre library by providing read-only metadata search, book inspection, and optional RAG-based content retrieval through MCP.5-
- FlicenseNot gradedqualityBmaintenanceEnables read-only access to a local Zotero Desktop library, providing search, recent items, metadata, tags, collections, PDF attachments, and full-text search through a browser UI or MCP endpoint.-
- AlicenseAqualityNot gradedmaintenanceEnables read-only search and analysis of your local Zotero library, including full-text PDF retrieval with OCR fallback, annotations, and cross-item comparison for synthesis.13MIT