Zoteus MCP Server
io.github.oscardvs/zoteus
Access your Zotero library inside Claude, ChatGPT, and Cursor—search, cite, extract passages, and manage your research.
What is the Zoteus MCP server?
Zoteus is a Zotero MCP server that gives Claude Desktop, claude.ai, ChatGPT, Claude Code, Cursor, and other MCP clients full access to a Zotero research library. It enables hybrid keyword and semantic search over library metadata and PDF full-text, retrieves passages with page numbers, formats citations in any CSL style, adds items by DOI or arXiv ID, and supports safe writes including annotations and attachments.
Zoteus bridges your Zotero research library and AI assistants, letting you search by keyword or meaning, extract passages with page locators, generate formatted citations, add papers by identifier, and organize your library—all without leaving Claude or ChatGPT. It reads directly from a running Zotero desktop app (key-free for personal libraries) and falls back to the Zotero Web API for sync, group libraries, and when the app is closed.
How to install Zoteus
Copy-paste configuration for popular MCP clients.
ZOTERO_API_KEYsecretZotero API key (writes/sync/groups; optional for local-only reads).
ZOTEUS_LOCALUse the Zotero desktop local API: auto | on | off.
ZOTEUS_ALLOW_DELETESet to true to enable permanent deletion (off by default).
Tools & capabilities
Tools this server exposes to the agent.
zotero_semantic_search— Hybrid keyword and semantic search over titles, abstracts, creators, tags, and full-text PDF content with matching passages and page numbers.zotero_keyword_search— Full-text keyword search inside PDFs and notes indexed under their parent items.zotero_get_fulltext— Retrieve relevant passages from PDFs or EPUBs with character offsets, nearest heading, and page locator; supports on-demand page ranges and table of contents.zotero_pdf_images— Render any page of a PDF to an image and extract embedded figures with their positions on the page.zotero_format_bibliography— Format citations and bibliographies in any CSL style using citeproc-js.zotero_add_item— Add a paper to the library by DOI or arXiv ID, fetching metadata and files automatically.zotero_create_item— Create a new item in the library.zotero_edit_item— Edit item metadata with versioned writes and optimistic-locking retries.zotero_annotate— Add highlights, underlines, and notes to PDFs by quoting passages; Zoteus locates and anchors them automatically.zotero_attach_file— Store a local file or URL as an attachment under any item.zotero_import— Import bibliographies from BibTeX, RIS, or CSL-JSON text or files; recover DOI or arXiv ID from PDF first pages.zotero_merge_items— Merge duplicate items: preview, fill gaps, union tags and collections, reparent notes and attachments.zotero_scholar— Look up a paper's references, citing works, and related works through OpenAlex; flag which are already in your library; report open-access PDFs and retraction notices.zotero_evidence_table— Render gathered passages as a Markdown or CSV table with quotations anchored to their sources.zotero_word_document— Write a .docx file with live Zotero field codes for citations.zotero_index— Build or refresh the semantic-search index; check indexing status.zotero_groups— List group libraries and their metadata.zotero_whoami— Show connection status, library info, and available features.
Use cases
- Search your research library by keyword or semantic meaning and retrieve exact passages with page numbers to ground claims in your writing.
- Add papers to Zotero by DOI or arXiv ID and automatically fetch metadata and PDFs without leaving Claude.
- Generate formatted citations and bibliographies in any citation style (APA, Chicago, Harvard, etc.) directly from your library.
- Extract and view PDF pages, figures, and tables as images when the text layer is unavailable or you need to see the original layout.
- Build evidence tables that quote passages from multiple sources, with citations anchored to the original items so they never drift.
Zoteus MCP server FAQ
Zoteus is an MCP server that connects your Zotero research library to Claude, ChatGPT, Cursor, and other AI assistants. It lets you search your library, extract passages with page numbers, format citations, add papers by DOI, and manage your research—all from within your AI chat.
Yes. Zoteus is MIT licensed and open-source. The npm package is free. A hosted version (zoteus.com) offers optional cloud hosting with OAuth for remote access, but local installation via npx costs nothing.
Download the `.mcpb` bundle for your system (macOS, Windows, or Linux) from the latest GitHub release and double-click it. This gives you a settings screen in Claude Desktop under Settings → Extensions → Zoteus. For other clients, use `npx -y @oscardvs/zoteus` or `npx add-mcp @oscardvs/zoteus`.
Not for basic use: if you run the Zotero desktop app, Zoteus reads your library key-free and writes personal-library items (imports, annotations, attachments) directly to the app. Add a Zotero API key (from zotero.org/settings/keys) only if you want to sync, access group libraries, edit metadata/tags/collections, or use Zoteus when the app is closed.
Yes. Zoteus supports both keyword search and semantic (meaning-based) search over PDF full-text, returning the matching passage with its page number. Semantic search requires building an index (automatic on first use) and can use local embeddings, Ollama, OpenAI, or Gemini.
Yes, but group writes always go to the cloud API and require a Zotero API key with read/write access to that group. Reads from a group the desktop app holds are key-free. Address the group by its numeric library_id from `zotero_groups`.
README (reference)
Source of truth, from the repository.
Zoteus
A Zotero MCP server. Your whole library, inside Claude and ChatGPT.
Zoteus gives Claude Desktop, claude.ai, ChatGPT, Claude Code, Cursor and any other MCP client access to a Zotero library: search by keyword or by meaning, passages from your PDFs with page numbers, citations in any CSL style, adding items, and safe writes.
</div> <img alt="Claude in the browser answering a question from a Zotero library through Zoteus: the question is typed, the Zoteus tools run, and the answer arrives with a verbatim passage, its page number, and APA references." src="docs/assets/demo.gif" width="800"><sub>A real session, 6 September 2026, against the maintainer's own library. Tool calls are shown as a time-lapse. The <a href="https://zoteus.com">full recording is on zoteus.com</a>.</sub>
Install
For most clients there is nothing to download: the client fetches Zoteus with npx the first time it runs. New to MCP servers? Start with docs/getting-started.md.
| Client | How |
|---|---|
| Claude Desktop | Download the bundle for your system from the latest release, zoteus-macos.mcpb, zoteus-windows.mcpb or zoteus-linux.mcpb, and double-click it. This is the install with a settings screen (Settings → Extensions → Zoteus) and per-tool permissions. |
| Claude Code | claude mcp add --transport stdio zoteus -- npx -y @oscardvs/zoteus |
| Claude Code, as a plugin | /plugin marketplace add oscardvs/zoteus, then /plugin install zoteus@zoteus. The same server, plus four research skills that teach Claude to quote passages with pages, build evidence tables, cite, and tidy the library. Set the optional API key with /plugin → Zoteus → Configure options. Claude Desktop shows no settings for a plugin, so use the .mcpb there. See plugins/zoteus. |
| Cursor, VS Code, Zed, Codex, Gemini CLI, any MCP client | npx add-mcp @oscardvs/zoteus, or add npx -y @oscardvs/zoteus as a stdio server by hand. |
| claude.ai in the browser | Add a custom connector pointing at a hosted Zoteus or at your own remote instance. |
| ChatGPT (web) | Needs Developer mode on a paid ChatGPT plan (Settings → Security and login). Then Plugins → Create app, with the server URL of a hosted Zoteus (https://mcp.zoteus.com/mcp) or of your own remote instance, and OAuth as the authentication. ChatGPT only connects to remote servers, so the npx install does not apply. |
Then run the Zotero desktop app. Reads, and the personal-library writes that go through the app (adding items by identifier, attachments, annotations, trash and restore), need no cloud key. Add a Zotero API key for sync, group libraries, metadata edits, tags and collections, and for when the app is closed:
claude mcp add --transport stdio zoteus -e ZOTERO_API_KEY=xxxxx -- npx -y @oscardvs/zoteus
Get a key at zotero.org/settings/keys. In the desktop app, enable Settings → Advanced → "Allow other applications on this computer to communicate with Zotero". Step-by-step for each client, with screenshots: zoteus.com/docs/connect-claude-to-zotero.
Updating a desktop-extension install. A manually installed
.mcpb(or older.dxt) does not auto-update. Turn on Check for updates in the extension settings (or setZOTEUS_UPDATE_CHECK=true) and Zoteus asks GitHub once a day, then says so in-chat viazotero_whoamiwhen a newer version exists; download the new bundle for your system and reinstall. The check is off by default.npxinstalls always run the latest published version.
What it does
Zoteus exposes research tools, namespaced zotero_*, that search the library by keyword or by meaning, return passages from your PDFs with page locators, show PDF pages and figures as images, format bibliographies with citeproc-js in any CSL style, add items by DOI or arXiv id, and create, edit, tag and organize items with versioned writes and a reversible trash. When the Zotero desktop app is running, reads and personal-library writes go to it directly and need no cloud API key; the Zotero Web API v3 is the fallback for sync, group libraries, and for when the app is closed. Zoteus is written in TypeScript, runs on your machine, and is MIT licensed.
Features
- Search your own library. Hybrid keyword and semantic search over titles, abstracts, creators, and tags, plus full-text keyword search inside your PDFs and notes, with the matching passage returned together with its page number. Your own notes and PDF annotations are indexed under the item they belong to, so "where did I object to this?" is a question search can answer. Set
ZOTEUS_INDEX_FULLTEXT(or passfulltext:truetozotero_index) and indexed search also covers available PDF body text within configured caps, so a claim that never made it into an abstract is still findable. - Format citations. Zoteus reads the citation data in your Zotero library and formats it with citeproc-js in any CSL style from the CSL styles repository.
- Add a paper by identifier. Pass a DOI or arXiv id and Zoteus fetches the metadata and files the item. This works out of the box through built-in resolvers; a Zotero translation-server extends it to ISBN, PMID, and URLs (see
docs/resolver.md). - Write back. Create items, edit, tag, and organize. Writes are versioned with optimistic-locking retries, trash is reversible by default, and permanent deletion is opt-in and confirmation-gated.
- Write straight to the desktop app. Adding items by identifier, attachments, annotations, and trash and restore go to your running Zotero with no cloud API key. On Zotero 10+ this uses the local API behind a key you grant once ("Always Allow"); on Zotero 9 and earlier, whose local API is read-only, it uses the connector protocol the browser extensions use. The cloud Web API is the fallback for group libraries, for metadata edits, tags, collections and saved searches, and for when the app is not running.
- Annotate PDFs and attach files.
zotero_annotateadds highlights, underlines, and notes, the same objects the Zotero PDF reader creates. Quote the passage and Zoteus locates it in the PDF and anchors the annotation to the lines it occupies, wrapping and hyphenation included, so no page coordinates are needed.zotero_attach_filestores a local file or a URL as an attachment under any item. - Ground claims in the PDF.
zotero_get_fulltextreturns the relevant passage with character offsets, the nearest heading, and a page locator. When Zotero has not indexed the PDF or EPUB, it extracts the text on the fly, from the running desktop app or from Zotero's own storage folder, so a file added a minute ago is readable immediately. It also returns a PDF's table of contents (outline:true) and any page range on demand, so working through a 400-page book costs a few small calls rather than one that returns the whole book. - Look at the page.
zotero_pdf_imagesrenders any page of a PDF to an image the model can see, so a figure, a table, an equation, or a scanned page with no text layer is no longer out of reach, and extracts the figures embedded in a page to files, likepdfimages, each with its position on the page. It draws through the same pdfjs that reads the text, so it needs nothing that is not already installed. - Follow the literature.
zotero_scholarlooks up a paper's references, citing works, and related works through OpenAlex, with Crossref as a fallback, and can flag which of them are already in your library. - Import a bibliography, find duplicates, merge them.
zotero_importreads BibTeX, RIS and CSL-JSON as text or a file without a translation-server, recovers a DOI or arXiv id from a PDF's first pages, and can check the library for an existing copy before saving.zotero_merge_itemsfolds duplicates into one record: it previews by default, fills only what the master lacks, unions tags, collections and relations, reparents notes and attachments, and trashes the emptied copies (seedocs/importing-bibliographies.md,docs/duplicates-and-merging.md). - Open-access copies and retraction notices.
zotero_scholarreports an open-access PDF when OpenAlex knows one andzotero_attach_filecan fetch and attach it from the DOI, recording which version it is;zotero_scholaralso reports retraction and correction records from Crossref and OpenAlex, as records rather than a verdict (docs/open-access-pdfs.md,docs/retraction-notices.md). - Evidence tables and Word documents. A
zotero-evidence-tableprompt pluszotero_evidence_tablerender gathered passages as a Markdown or CSV table whose quotations cannot drift from the passage they cite, andzotero_word_documentwrites a .docx whose citations are live Zotero field codes (docs/evidence-tables.md,docs/word-documents.md; refreshing the fields in Word is not yet verified). - Scans, several libraries, local embeddings.
zotero_get_fulltextreads a PDF with no text layer through an optional OCR engine (docs/ocr.md); one data directory holds one search index per library andzotero_semantic_searchcan search several at once (docs/multiple-library-indexes.md); andZOTEUS_EMBEDDINGS=ollamaembeds through a local Ollama daemon with no API key (docs/ollama.md).zoteus index buildruns a headless index build from the command line. - Agent support. 34 tools with structured outputs, MCP Resources and Prompts, and a generated tool tree for the code-execution-with-MCP pattern.
How it works
- Install with one
npxcommand, or the one-click.mcpb. - Connect by running the desktop app for key-free local access, or by pasting your Zotero API key.
- Ask. Your MCP client can now search, cite, add to, and organize your library.
Zoteus detects a running Zotero desktop app and talks to it directly: the key-free local API for reads (full PDFs, saved-search results, the semantic-search index build), and the app itself for personal-library writes (imports, annotations, attachments, trash). The cloud Web API v3 is the fallback, and it is still required for sync, group libraries, and writes when the app is not running. Details: docs/writing.md.
Writing to a group library. Group writes always go to the cloud, even for a group the desktop app is holding and reading key-free: the app's write paths address your personal library and nothing else. They need
ZOTERO_API_KEYwith read/write access to that group, and a group whose settings let you edit its library. Address the group by the numericlibrary_idfromzotero_groups(library_type:"group"alone is not enough), and take collection keys from that same group. See Group libraries.
Start with one verified passage. Choose a client and connection, check search readiness, then retrieve and verify a passage. A full library index is not required. For local-only, WebDAV or scanned PDFs, see PDF availability.
Semantic search setup. The first
zotero_semantic_searchbuilds the library index in the background. On very large libraries you can also runzotero_index(action:"build") yourself, then poll action:"status" until it is done. The build pages your library through the same local-first path as every other read, so it needs no cloud API key while the desktop app is running. That covers your personal library and, on Zotero 10+, any group library the app holds; a key is needed when the app is closed, and for a group the app does not hold.
Embedding through an API on a large library. A full-text build of a 10k-item library is tens of thousands of requests, and at the default pacing the rate rides at OpenAI's tokens-per-minute ceiling whatever your tier. A rate-limited request backs off and retries rather than failing the build, and a build that still ends short keeps everything it indexed: run
zotero_index action:"build"again and it resumes, embedding only the passages that have no vector yet (action:"refresh"is the one that starts over). To pace it up front, setZOTEUS_EMBED_BATCH_SIZE=256andZOTEUS_EMBED_BATCH_DELAY_MS=8000. Seedocs/semantic-search.md.
Vector ranking is opt-in. Keyword (BM25) search works out of the box everywhere. On-device vectors need
@huggingface/transformers, which the desktop-extension bundle cannot ship (the resolved dependency tree, onnxruntime's native binaries included, is about 700 MB): install it into a directory of its own (mkdir -p ~/.zoteus-deps && cd ~/.zoteus-deps && npm init -y && npm i @huggingface/transformers) and setZOTEUS_TRANSFORMERS_PATHto~/.zoteus-deps/node_modules. Notnpm i -g: Claude Desktop runs the server on its own built-in Node, so a global install under a version manager sits next to a Node the extension never executes. When vectors are unavailable Zoteus says so inzotero_indexstatus,zotero_whoami, andzotero_semantic_searchrather than quietly returning nothing. Seedocs/semantic-search.md.
Configuration
| Variable | Default | Purpose |
|---|---|---|
ZOTERO_API_KEY | none | Cloud auth (sync, groups, writes without the desktop app; optional otherwise) |
ZOTEUS_LOCAL | auto | auto|on|off: use the Zotero desktop app (reads + personal-library writes) |
ZOTEUS_LOCAL_API_KEY | none | Pre-provision the Zotero 10+ desktop write key (else granted once, in-app) |
ZOTEUS_EMBEDDINGS | local | local|ollama|openai|gemini|off for semantic search |
ZOTEUS_EMBEDDING_MODEL | provider default | The model that provider embeds with, local included: Xenova/multilingual-e5-small for a German or otherwise multilingual library, Xenova/all-MiniLM-L6-v2 by default |
ZOTEUS_EMBEDDING_DTYPE | fp32 | Weight precision of the on-device model: q8 downloads Xenova/multilingual-e5-small at 129 MB instead of 465 MB. Above fp32 it joins the embedder identity, so changing it needs one rebuild |
ZOTEUS_EMBED_BATCH_SIZE | 32 | Passages per embedding call. Lower it if an API provider rejects a whole request (OpenAI answers 400 above 300K tokens per request) |
ZOTEUS_EMBED_BATCH_DELAY_MS | 0 | Pause between embedding calls. Raise it if an API provider rate-limits a large build: 256 and 8000 together hold a full-text build near 400K tokens/min |
ZOTEUS_INDEX_OWN_WORDS | true | Index your own child notes and PDF annotations as searchable passages |
ZOTEUS_INDEX_FULLTEXT | false | Index PDF body text for semantic search (opt-in; costly) |
ZOTEUS_INDEX_BACKEND | auto | auto|sqlite|memory: where the search index lives. auto uses SQLite (FTS5) on Node 22.13+, which is what a large library needs |
ZOTEUS_TRANSFORMERS_PATH | none | Where to find @huggingface/transformers for local embeddings when the install can't see it (desktop extension) |
ZOTEUS_LOG_FILE | none | Append every log line to this file, for a server that runs without a terminal |
ZOTEUS_ALLOW_DELETE | false | Must be true or zotero_delete_items refuses every call; the tool stays listed unless ZOTEUS_READ_ONLY=true |
Full table in docs/configuration.md. To run a shared or remote instance, see docs/remote-oauth.md (self-host the OAuth remote on loopback or behind your own proxy).
Documentation
zoteus.com/docs · Connect Claude to Zotero · Connect ChatGPT to Zotero · Group libraries for review teams · Zoteus and zotero-mcp, side by side
In this repository: Getting started · Configuration · Import & resolver · Importing bibliographies · Duplicates and merging · Architecture · Safe writes · Threat model · Citations · Word documents · Evidence tables · Semantic search · Several library indexes · Ollama embeddings · OCR · Scholarly context · Open-access PDFs · Retraction notices · Command line · Lab setup · Code execution · Deployment · Uninstall
Zoteus is listed in the MCP Registry as io.github.oscardvs/zoteus, on mcpservers.org, and in the Citation Styler overview of Zotero MCP projects.
Uninstall
Zoteus writes everything it derives (the search index, the on-device model weights, the update-check cache, the granted local-API key) into one directory: ZOTEUS_DATA_DIR if you set it, otherwise your OS's default application-data path. Stop the server, remove it from your MCP client's configuration, then delete that directory; your Zotero library lives elsewhere and nothing here touches it. Full steps and platform paths: docs/uninstall.md.
Privacy
Zoteus runs on your machine or the server you configure. Usage logging is off by default. Tool results go to your chosen AI client, and enabled features contact Zotero and the scholarly, PDF, or embedding services they require. Full policy: PRIVACY.md.
Contributing
Contributions are welcome; see CONTRIBUTING.md. Zoteus is MIT licensed.
Acknowledgements
Built on the Model Context Protocol, the Zotero Web API, citeproc-js, and the Citation Style Language. Not affiliated with or endorsed by the Corporation for Digital Scholarship / Zotero.
citeproc-js implements the Citation Style Language. (c) Frank Bennett, used under the Common Public Attribution License 1.0. https://citationstyles.org/ Dependency notices are collected in THIRD_PARTY_NOTICES.md.
Related MCP servers

Anamnesis
Cross-machine, file-first memory for Claude Code: markdown + SQLite FTS5, synced with git

chartlink
Charts and tables for AI agents with live-updating embed links. No account: signup returns a key.
Cross-vendor AI model lifecycle: status, sunset dates, and migration targets, source-cited.
Source-cited data-handling comparison of 11 AI vendors: training, retention, opt-out.
Daily Argentina food & beverage price index, source-cited from public retailer prices.

OpenScout
Coordinate local coding agents and track handoffs. For high-trust developer pilots.
