About LLM For Zotero
LLM For Zotero is an MCP server published by yilewang in the RAG category: an open-source research agent system for your Zotero library. Conduid read 29 tools from its source: annotate_pdf, context_read, file_io, library_cite, library_delete, library_import and 23 more. No package is published for it, so it installs from a source checkout.
The repository has 3.7K stars and 225 forks, is licensed AGPL-3.0, and its last commit was on 2 Dec 2026. The latest release is v3.9.21 (25 Nov 2026): What's new in LLM for Zotero Changes for 3.9.21.* Notes become a place to write with AI. It follows v3.9.20 (19 Nov 2026), and the 5 most recent releases go back to v3.9.17 (10 Nov 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include academic-paper, literature-analysis, llm-agent, rag, research-tool and zotero.
Install
git clone https://github.com/yilewang/llm-for-zoteroTools (29)
annotate_pdfApply tags, update metadata, move items, manage collections and attachments, merge duplicates, trash items, import identifiers or local files, highlight PDF passagescontext_readSearch items and collections, read metadata, read papers, search paper passages, render PDF pages, inspect attachments and the chat context| Parameter | Type | Description |
|---|---|---|
| allowStale | boolean | source:'tool_result' only. Set true only when stale results are acceptable after the Zotero resource scope changed. |
| handle | string | source:'tool_result' only. The trh_... handle from a semantic/context checkpoint or compacted tool message. |
| limit | integer | source:'tool_result' only. Maximum rows to return for array sections. |
| maxTokens | integer | Approximate maximum tokens to return. |
| messageId | string | source:'conversation' only. Omit to list messages; set to read one message. |
| offset | integer | Zero-based offset for array sections (tool_result) or the message list (conversation). |
| path | string | source:'tool_result' only. Optional top-level section to read, such as results, paperMatches, snippets, papers, coverage, resourcePool, or warnings. Omit to list available sections and metadata. |
| source * | string | conversation for chat messages; tool_result for a stored tool result handle. |
| textOffset | integer |
file_ioRead/write local files, run analysis commands, or execute Zotero JavaScript with write confirmationslibrary_citeFormat citations and bibliographies with Zotero's citation engine, and read or change the Zotero preferences the agent may touch| Parameter | Type | Description |
|---|---|---|
| action * | string | 'bibliography' formats full reference entries; 'cite' formats in-text citations; 'export' writes the items in a file format such as BibTeX; 'styles' lists installed citation styles; 'formats' lists export formats. |
| format | string | |
| itemIds | array | The items to cite or export. Required for cite, bibliography and export. |
| locale | string | CSL locale, e.g. 'en-US'. Defaults to en-US. |
| styleId | string | A citation style ID, e.g. 'http://www.zotero.org/styles/apa'. Defaults to the user's Quick Copy style. List them with action:'styles'. |
| translatorId | string | The export translator ID, for action:'export'. List them with action:'formats'. |
library_deleteApply tags, update metadata, move items, manage collections and attachments, merge duplicates, trash items, import identifiers or local files, highlight PDF passageslibrary_importApply tags, update metadata, move items, manage collections and attachments, merge duplicates, trash items, import identifiers or local files, highlight PDF passageslibrary_readSearch items and collections, read metadata, read papers, search paper passages, render PDF pages, inspect attachments and the chat context| Parameter | Type | Description |
|---|---|---|
| itemIds | array | |
| maxAnnotations | number | |
| maxNotes | number | |
| paperContexts | array | Paper context references. Alternative to itemIds for targeting papers. |
| sections * | array |
library_retrieveSearch items and collections, read metadata, read papers, search paper passages, render PDF pages, inspect attachments and the chat context| Parameter | Type | Description |
|---|---|---|
| depth | string | How deeply to traverse the resource pool. Default evidence. |
| intent | string | Retrieval intent. Use enumerate for comprehensive evidence search across the scoped resource pool, verify for exact presence/absence, and summarize for broad taxonomy/theme/commonality/comparison synthesis over the retrieved ledger. |
| maxCandidatePapers | number | Default ${LIBRARY_RETRIEVE_DEFAULT_BUDGETS.maxCandidatePapers}, hard max ${LIBRARY_RETRIEVE_HARD_CAPS.maxCandidatePapers}. |
| maxFullTextPapers | number | Deprecated alias for maxSnippetPapers. Default ${LIBRARY_RETRIEVE_DEFAULT_BUDGETS.maxFullTextPapers}, hard max ${LIBRARY_RETRIEVE_HARD_CAPS.maxFullTextPapers}. |
| maxMetadataItems | number | Default ${LIBRARY_RETRIEVE_DEFAULT_BUDGETS.maxMetadataItems}, hard max ${LIBRARY_RETRIEVE_HARD_CAPS.maxMetadataItems}. |
| maxSnippetPapers | number | Maximum papers expanded into returned snippets. Default ${LIBRARY_RETRIEVE_DEFAULT_BUDGETS.maxFullTextPapers}, hard max ${LIBRARY_RETRIEVE_HARD_CAPS.maxFullTextPapers}. |
| maxTotalSnippets | number | Default ${LIBRARY_RETRIEVE_DEFAULT_BUDGETS.maxTotalSnippets}, hard max ${LIBRARY_RETRIEVE_HARD_CAPS.maxTotalSnippets}. |
| methods | array | |
| perPaperTopK | number | Default ${LIBRARY_RETRIEVE_DEFAULT_BUDGETS.perPaperTopK}, hard max ${LIBRARY_RETRIEVE_HARD_CAPS.perPaperTopK}. |
| query * | string | Search question, keywords, or exact phrase to retrieve evidence for. |
| queryVariants | array | Optional bounded search probes such as translations, acronyms, notation variants, or technical equivalents. Variants improve recall but are not evidence by themselves. |
| requireExact | boolean | Require exact keyword/phrase support in returned snippets. Implied by depth:'verify'. |
| scope | object | Optional search pool. Omit to use selected collection/tag scope when present, otherwise the active library. |
| sections | array | Optional paper sections the user asked about, in any language: ${EVIDENCE_SECTION_KINDS.join(", ")}. Snippet ranking prefers evidence from them. |
library_searchSearch items and collections, read metadata, read papers, search paper passages, render PDF pages, inspect attachments and the chat context| Parameter | Type | Description |
|---|---|---|
| conditions | array | Advanced search clauses, forwarded to Zotero's own search engine. Use this for anything the nine simple filters cannot express — fulltextContent, abstractNote, DOI, publisher, dateAdded, dateModified, note, annotationText, citationKey, retracted, publications, and every other Zotero search condition. Only valid with entity:'items'. |
| entity * | string | What to query: 'items' for any library item, 'collections' for folders, 'notes' to search/list notes (mode:'search' finds all notes including child notes, mode:'list' lists standalone notes only), 'tags' to list/search all tags in the library, 'libraries' to enumerate all libraries (personal + group), 'itemTypes' to discover Zotero's item types and the exact fields and creator types each one accepts (use this before creating an item or setting an unfamiliar field — a field the type does not have is rejected, not ignored), 'savedSearches' to list the library's saved searches and the conditions behind them, 'statistics' (mode:'list') for counts by type, year, author, journal, tag, collection and annotation over the library or filters.collectionId's direct members (subcollections not included); limit sets the length of top lists. |
| filters | object | |
| include | array | |
| joinMode | string | Whether every condition must match ('all', the default) or any one of them ('any'). Applies to conditions[]. |
| libraryID | number | Search a specific library. Defaults to the active one; a group library ID searches that group instead. |
| limit | number | |
| mode * | string | |
| offset | number | Skip this many results before returning. Use with limit to page through a large result set across several calls; a capped result says limited:true with the true totalCount and the nextOffset to pass next. Applies to entity:'items' (mode:'list', mode:'search', mode:'duplicates' where it counts groups, and conditions[]), to entity:'notes' (mode:'list' and mode:'search'), and to entity:'tags'. |
| order | string | Sort direction. Defaults to 'desc' for dates and year (newest first) and 'asc' for title and creator. |
| refs | array | |
| resolveToParents | boolean | Return the parent paper for matches that are child items. Required for conditions that match children — fulltextContent, annotationText and childNote match an attachment or note, and without this those matches are dropped and the search looks empty. |
| sections | array | For entity:'statistics': which parts. Default: all. |
| sort | string | Order results before limit/offset are applied. Use sort:'dateAdded' for requests like 'the most recently added papers'; creator sorts by first author. Applies to entity:'items' with mode:'list'; text search returns relevance order and ignores this. |
| text | string | |
| view | string | For entity:'collections' mode:'list': 'flat' returns a list, 'tree' returns the full hierarchy with paper counts. Default: flat. |
library_settingsFormat citations and bibliographies with Zotero's citation engine, and read or change the Zotero preferences the agent may touchlibrary_updateApply tags, update metadata, move items, manage collections and attachments, merge duplicates, trash items, import identifiers or local files, highlight PDF passagesliterature_reviewSearch OpenAlex, arXiv, and Europe PMC for papers, recommendations, references, and citations (metadata lookup via CrossRef and Semantic Scholar), then present ranked candidatesliterature_searchSearch OpenAlex, arXiv, and Europe PMC for papers, recommendations, references, and citations (metadata lookup via CrossRef and Semantic Scholar), then present ranked candidates| Parameter | Type | Description |
|---|---|---|
| arxivId | string | |
| author | string | Author name to filter results by. When provided alone (without query), returns the author's papers sorted by citation count. When combined with query, narrows keyword results to this author. |
| count | integer | workflow:'review': papers the user asked for, five when unspecified. |
| doi | string | |
| forLiteratureReview | boolean | workflow:'review': true when the papers are candidates for a literature review you will write. |
| itemId | number | |
| libraryID | number | |
| limit | number | |
| mode * | string | |
| paperContext | any | |
| query | string | |
| source | string | Search source. OpenAlex (default) supports all modes. arXiv (preprints, CS/ML/physics) and europepmc (biomedical) only support search mode. |
| title | string | |
| workflow | string | answer returns scholarly evidence. review marks discovery candidates for subsequent ranking and literature_review; with mode:'metadata' it proposes metadata changes for the user to approve. |
load_skillLoad a skill's instructions when the task needs them, ask you a question when a choice is ambiguous, and add an earlier conversation to the chat| Parameter | Type | Description |
|---|---|---|
| id * | string | Exact ID from the installed skill inventory. |
note_writeCreate, append to, or edit Zotero notes, write one note on each of many items, and finalize longer documentsnote_write_batchCreate, append to, or edit Zotero notes, write one note on each of many items, and finalize longer documentspaper_readSearch items and collections, read metadata, read papers, search paper passages, render PDF pages, inspect attachments and the chat context| Parameter | Type | Description |
|---|---|---|
| figureLabels | array | For figures mode: exact labels such as Figure 1 or Supplementary Figure S2; [] selects all main figures. |
| includeSupplementary | boolean | |
| maxChars | number | A character limit on the text of an overview. Reads by sectionIds, sections, or pages ignore it: they return the text when it fits the context left, else a map with sizes in tokens. |
| mode | string | overview = bounded summary/main message; outline = one level of the section tree with ids, pages and sizes; targeted = relevance-ranked text evidence; full = exhaustive processing of every extractable text chunk; figures = precise extracted figures; visual = rendered pages/layout; capture = current reader page. |
| neighborPages | number | |
| pages | any | |
| query | string | |
| queryVariants | array | Optional search probes such as translations, acronyms, notation variants, or technical equivalents. |
| sectionId | string | Outline: list this section's subsections, not the top level. |
| sectionIds | array | Section ids from an outline. No query: a section without subsections is read whole, one with subsections lists them. With query: searches them. |
| sections | array | Parts of the paper as the user named them, in any language; the reader picks the paper's matching sections and reads them whole. |
| target | object | Optional explicit paper or visual target. Provide target or targets, never both; omit both to use the current turn's paper scope. |
| targets | array | Optional explicit paper targets. Provide target or targets, never both; omit both to use the current turn's paper scope. |
| topK | number | |
| whole | boolean | sectionIds: read whole with subsections. |
past_chat_attachLoad a skill's instructions when the task needs them, ask you a question when a choice is ambiguous, and add an earlier conversation to the chatread_attachmentSearch items and collections, read metadata, read papers, search paper passages, render PDF pages, inspect attachments and the chat context| Parameter | Type | Description |
|---|---|---|
| attachFile | boolean | If true, prepare the whole file as a model-readable artifact instead of reading content inline. |
| maxChars | number | Text truncation limit. Omit to read full content. |
| target | object | Target attachment. |
reader_openWhen the user asks to open or show a PDF, open it in Zotero's reader at a page (pageIndex is 0-based) or annotation.| Parameter | Type | Description |
|---|---|---|
| annotationId | number | An annotation item; opens its PDF at it. |
| attachmentId | number | A PDF attachment. |
| itemId | number | A paper; opens its PDF. |
| pageIndex | number | Zero-based page number. |
| pageLabel | string | A page label, such as 'iv' or '12'. |
request_user_inputLoad a skill's instructions when the task needs them, ask you a question when a choice is ambiguous, and add an earlier conversation to the chat| Parameter | Type | Description |
|---|---|---|
| questions * | array |
run_commandRead/write local files, run analysis commands, or execute Zotero JavaScript with write confirmationssubmit_documentCreate, append to, or edit Zotero notes, write one note on each of many items, and finalize longer documents| Parameter | Type | Description |
|---|---|---|
| assets * | array | Copy the selected figures' documentAsset objects returned by paper_read. The host renders their images, captions and provenance; do not also put Markdown image links in markdown. Use [] only when the document has no figures. |
| citations * | array | |
| documentKind | string | Document shape. |
| excluded | array | Papers left out, by id (12 or item:12). |
| groundingIssues * | array | Non-authoritative grounding-review concerns. Required to be non-empty when groundingReviewed is passed_with_limitations. |
| groundingReviewed * | string | |
| integrityPolicy | string | Use research_grounded when the document makes claims from retrieved literature evidence. |
| markdown * | string | |
| quotes * | array | Strict direct-quote mappings for [[quote:Q1]] tokens. Use [] when the document has no direct quotations; the host verifies each quote against an open PDF.js source and persists the location certificate. |
| taskId | string | The id of the declared part this document fulfils, when parts were declared. Name it so the host ticks the right part. |
| title * | string |
task_updateSplit a compound request into parts the plugin tracks, and run several tool calls in one script with loops and conditions| Parameter | Type | Description |
|---|---|---|
| blocked | any | |
| cancelled | any | |
| excluded | any | |
| skipped | any | |
| tasks | array |
undoUndo recorded write actions from the conversation's durable change history, one at a time or several newest-firstweb_readSearch the current public web with Tavily, read relevant pages, and show source links with the answer (only when a Tavily key is set)web_searchSearch the current public web with Tavily, read relevant pages, and show source links with the answer (only when a Tavily key is set)workflow_scriptSplit a compound request into parts the plugin tracks, and run several tool calls in one script with loops and conditions| Parameter | Type | Description |
|---|---|---|
| description * | string | |
| script * | string | |
| timeoutMs | number | Cooperative time limit in milliseconds; at most 120000 |
zotero_scriptRead/write local files, run analysis commands, or execute Zotero JavaScript with write confirmationsSecurity checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 6.3K words.
- ✓License declaredThe repository declares the AGPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and packages/claude-bridge/package-lock.json.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 6.3K words, fetched 6 days ago. The original in the repository is authoritative.
Read full README