mcp-zotero
Use this MCP server to browse, search, enrich, cite, and manage a Zotero library through the Zotero Web API.
List collections and collection items, search/sort library items, and batch-fetch item metadata or PDF full text.
Add references by DOI or with direct metadata across all Zotero item types, with tags and optional collection placement.
Create collections; import PDFs from URLs into Zotero storage; attach linked URLs; find and attach open-access PDFs via Unpaywall.
Inject Zotero citations and a bibliography into Word
.docxfiles using APA, IEEE, Vancouver, Harvard, or Chicago styles.Target personal or group libraries per call via
library_typeandlibrary_id, and retrieve the configured library/user ID.Delete items (up to 50) or collections only when
UNSAFE_OPERATIONSexplicitly permits it.
Provides tools for searching, organizing, and adding items to a Zotero library by DOI or metadata, managing collections, importing PDFs with full-text indexing, and injecting citations into Word documents.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-zotero search my Zotero library for papers on deep learning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Zotero
Note: This is an unofficial community project and is not affiliated with, endorsed by, or supported by the Zotero team or the Corporation for Digital Scholarship. "Zotero" is a registered trademark of the Corporation for Digital Scholarship.
A Model Context Protocol server for Zotero integration. It gives any LLM full access to your Zotero library: search, organize, add papers by DOI, import PDFs, read full-text content, edit items and notes, check a bibliography for retractions and duplicates, and put live Zotero citations into Word and LibreOffice documents.
Originally based on mcp-zotero by Abhishek Kalia. This project has since been extensively rewritten with a new architecture, 20 tools (up from 5), citation injection, PDF management, and Claude skill support.
Features
Live citations in Word and LibreOffice.
inject_citationsturns placeholders in an existing.docxor.odtinto native Zotero citations and a bibliography, which the Zotero plugin of either app can refresh and restyle. Placeholders can be<zcite>tags or Pandoc markers ([@KEY]), with Zotero item keys or Better BibTeX citation keys (details).Cited documents from Markdown.
create_cited_documentwrites a new.docxor.odtfrom Markdown with Pandoc-style citations, real heading styles and a bibliography.Five citation styles: APA, IEEE, Vancouver, Harvard and Chicago.
Adding references by DOI or with full metadata (all 37 Zotero item types), with open-access PDFs attached automatically through Unpaywall.
Editing:
update_itemchanges fields and creators with a version check (never overwrites a concurrent edit);create_noteattaches a plain-text note to an item.Checking a bibliography:
check_retractionsflags retracted papers, expressions of concern and corrections (Crossref, with Retraction Watch data);find_duplicatesfinds items with the same DOI or title, or tells which DOIs are already in the library before importing them.Safe deletion:
delete_itemsmoves items to the Zotero trash by default; permanent deletion needspermanent: true, and every deletion is off unlessUNSAFE_OPERATIONSallows it.Group libraries, set for the whole server or per call.
MCP prompts for common workflows: citing a document, writing a cited document, importing references, summarizing an item into a note, checking a bibliography before submission.
Claude skill for clients without filesystem access (Claude.ai Projects, Claude Desktop): the same citation injection, run inside the sandbox.
Related MCP server: zotero-grounded-mcp
How it works
The server is designed to be usable by any LLM without external documentation. On connection, it sends workflow instructions via the MCP instructions field, and each tool description includes cross-references and usage guidance. An LLM that has never seen this server before can discover the full workflow — from adding papers to producing a cited Word document — directly from the tool listing.
For advanced use cases (PDF upload policy, citation style guidance, source transparency), a Claude skill is included for Claude.ai Projects. But the skill is optional: the MCP server is fully self-documenting.
Local vs Remote LLMs
Scenario | MCP server | Skill needed? |
LLM with filesystem access (Claude Code, LM Studio, etc.) | All 20 tools | No |
LLM without filesystem access (Claude.ai Projects, Claude Desktop) | API tools (search, add, metadata) | Yes, for citation injection |
LLMs with filesystem access can use all tools directly, including inject_citations which reads and writes .docx (Word) and .odt (LibreOffice) files on disk.
LLMs without filesystem access — including Claude Desktop, which connects to MCP but cannot generate files locally — can use the included Claude skill (skills/zotero-skill-mcp-integrations/), which runs citation injection entirely inside a sandbox. MCP tools handle all Zotero API operations; the skill handles document assembly.
Claude Skill Setup (for Claude.ai Projects and Claude Desktop)
Download the skill
.zipfrom the latest GitHub ReleaseExtract it and upload the folder to your Claude.ai Project as a skill
The skill enables citation injection directly inside the sandbox, without requiring local filesystem access
Setup
Requires Node.js 22 or newer.
The server is listed in the official MCP Registry as
io.github.Xevos117/mcp-zotero (starting with the first release after 2.0.2), so registry-aware clients can find and install it from
there; the configuration below works with any MCP client.
Get your Zotero credentials:
# Create an API key at https://www.zotero.org/settings/keys # (enable library read/write + file access) # Then retrieve your user ID: curl -H "Zotero-API-Key: YOUR_API_KEY" https://api.zotero.org/keys/currentSet environment variables:
export ZOTERO_API_KEY="your-api-key" export ZOTERO_USER_ID="user-id-from-curl" export UNPAYWALL_EMAIL="your@email.edu" # Optional: enables OA PDF lookup via Unpaywall export UNSAFE_OPERATIONS="none" # Optional: "none" | "items" | "all" (see below)
Targeting a group library
By default the server targets your personal Zotero library (/users/<ZOTERO_USER_ID>/...).
To target a group library instead, set two additional environment variables:
Variable | Values | Required? | Default |
|
| No |
|
| numeric library ID | Yes when type= | — |
Example for a group library:
ZOTERO_API_KEY=...
ZOTERO_USER_ID=12345 # optional for groups: used by get_user_id and per-call library_type="user"
ZOTERO_LIBRARY_TYPE=group
ZOTERO_LIBRARY_ID=6178978 # the group IDThe API key in ZOTERO_API_KEY must have access to the target group library — generate or scope keys at https://www.zotero.org/settings/keys.
The server refuses to start if ZOTERO_LIBRARY_TYPE=group is set without ZOTERO_LIBRARY_ID, or if a library ID is not numeric.
Per-call library override
Every tool accepts two optional args that override the env defaults for that single call:
library_type—"user"or"group"library_id— numeric library ID
Resolution order: per-call arg > env var > implicit default (user, ZOTERO_USER_ID). library_id must be numeric. Overriding library_type to group on a server configured for a user library requires library_id; overriding to user on a group server without library_id uses ZOTERO_USER_ID.
Note that per-call overrides let the LLM reach any library the API key can access. Scope the key to the libraries you want exposed; deletions remain gated by UNSAFE_OPERATIONS.
This lets a single MCP instance target multiple libraries (e.g., a staging group and a final-output group) without restarting:
// First call targets the staging group
{
"tool": "add_items",
"args": {
"items": [...],
"library_type": "group",
"library_id": "5597114"
}
}
// Second call targets DART-output (different group)
{
"tool": "add_items",
"args": {
"items": [...],
"library_type": "group",
"library_id": "6178978"
}
}Environment Variables
Variable | Required | Description |
| Yes | API key for Zotero Web API v3. Create one at zotero.org/settings/keys with library read/write and file access permissions. |
| Yes | Your Zotero numeric user ID. Retrieve it with |
| No | Email for Unpaywall API requests (rate-limit policy). Enables OA PDF lookup in |
| No | Controls destructive operations (deletion). See Unsafe Operations below. Default: |
Unsafe Operations
By default, the MCP server does not allow any deletion. This is a safety measure to prevent an LLM from accidentally deleting items or collections from your library.
To enable deletion, set the UNSAFE_OPERATIONS environment variable to one of the following values:
Value |
|
| Use case |
| Blocked | Blocked | Safe mode — no deletions possible |
| Allowed | Blocked | Allow deleting items but protect collection structure |
| Allowed | Allowed | Full access — items and collections can be deleted |
Important notes:
If
UNSAFE_OPERATIONSis not set, empty, or set to an unrecognized value, it defaults tonone.The value is case-insensitive (e.g.
ALL,Items,NONEall work).delete_itemsmoves items to the Zotero trash by default, so the user can restore them from the desktop client (Zotero → Trash). Passpermanent: trueto delete them for good instead; the sameUNSAFE_OPERATIONSsetting gates both the trash and the permanent path.delete_collectionis always permanent: the Zotero Web API has no trash for collections, so a deleted collection cannot be restored. It removes the collection (folder) only — items inside it are not deleted and remain in your library.The
allvalue includes both item and collection deletion because managing collections inherently requires item-level access.
Configuration example:
{
"mcpServers": {
"zotero": {
"command": "npx",
"args": ["-y", "@xevos117/mcp-zotero"],
"env": {
"ZOTERO_API_KEY": "YOUR_API_KEY",
"ZOTERO_USER_ID": "YOUR_USER_ID",
"UNSAFE_OPERATIONS": "items"
}
}
}
}Integration with Claude Desktop
Install as a Claude Desktop extension (one click)
Download
mcp-zotero.mcpbfrom the latest release (available from the first release after 2.0.2).Open the file with Claude Desktop (macOS or Windows; e.g. double-click it) and confirm in the installation dialog. The bundle itself is not platform-specific (
manifest.jsonlists macOS, Windows and Linux, and CI runs it on Linux), so other MCPB-compatible clients can install it too.Fill in your Zotero API key and Zotero user ID (see Setup). Optional settings: library type and group ID (for a group library), the email for Unpaywall (open-access PDF lookup) and which deletions are allowed (default: none, see Unsafe Operations).
The extension bundles the server and all its dependencies, so no npm install is needed. It needs Node.js 22 or newer
(compatibility.runtimes.node in the manifest): according to the MCPB documentation, Claude Desktop runs Node.js
extensions with the runtime that ships with the app. The API key is declared as a sensitive setting (masked
input, stored securely by the client). Deletions stay disabled unless you change Deletions allowed in the
extension settings.
The extension contains only the MCP server: the Claude skills in skills/ (citation injection inside
the sandbox, scientific writing) are installed separately from their .zip files in the same release, as described
in Claude Skill Setup.
Manual configuration (any MCP client)
Add to your Claude Desktop configuration (or the equivalent file of another MCP client):
{
"mcpServers": {
"zotero": {
"command": "npx",
"args": ["-y", "@xevos117/mcp-zotero"],
"env": {
"ZOTERO_API_KEY": "YOUR_API_KEY",
"ZOTERO_USER_ID": "YOUR_USER_ID",
"UNPAYWALL_EMAIL": "YOUR_EMAIL"
}
}
}
}Integration with Claude Code
claude mcp add zotero -e ZOTERO_API_KEY=YOUR_API_KEY -e ZOTERO_USER_ID=YOUR_USER_ID -- npx -y @xevos117/mcp-zoteroAdd -e UNPAYWALL_EMAIL=... or -e UNSAFE_OPERATIONS=items as needed, and --scope user to make the server
available in every project (the default local scope covers only the current project). From a clone of this repository,
npx tsx src/server.ts runs the server from source instead (see Development).
Available Tools
Library browsing
Tool | Description |
| List all collections (folders) with keys, names, and parent relationships |
| Get items in a specific collection with keys, titles, authors, dates |
| Search by query, or list items sorted by field (date, title, etc.) |
| Batch metadata retrieval for multiple items — returns all type-specific fields (bookTitle, proceedingsTitle, university, etc.), the |
| Get full-text content of a PDF attachment via Zotero's fulltext index |
| Check items (by |
| Find duplicate items (same DOI or normalized title/year) in the library or a collection; or, given DOIs, report which are already present (use before |
Adding content
Tool | Description |
| Add papers by DOI with automatic metadata resolution. Auto-attaches OA PDFs via Unpaywall |
| Add items with direct metadata — supports all 37 Zotero item types (books, theses, reports, etc.), batch-capable |
| Create a new collection, optionally nested under a parent |
| Download a PDF from URL, upload to Zotero storage, auto-index full text |
| Batch OA PDF lookup and auto-attach via Unpaywall (by item keys or collection) |
| Attach a URL to an existing item or create a standalone link |
Editing content
Tool | Description |
| Edit an existing item's fields and/or creators. Needs the item's current |
| Attach a plain-text child note to an existing regular item (blank lines become paragraphs) |
Deleting content
Tool | Description |
| Delete up to 50 items per call: moved to the Zotero trash by default (recoverable), or permanently with |
| Delete a collection (folder) permanently — collections have no trash. Items inside are kept. Requires |
Citation & documents
Tool | Description |
| Inject live Zotero citations into a Word ( |
| Create a new |
| Returns the configured Zotero user ID |
Citation placeholders
inject_citations (and the skill's inject.js) recognizes the placeholder style by itself, so there is no argument to set:
The document contains | What happens |
| The tags become Zotero citations. Any Pandoc markers in the same document are left alone and reported in a warning |
Only Pandoc markers |
|
Neither | The copy is written unchanged, with a warning |
KEYis a Zotero item key (8 characters) or a Better BibTeX citation key such asrossi2020, found through the item's citation key field or aCitation Key:line in Extra. Citation keys are case-sensitive.Prefer the bracketed form
[@KEY]. An unknown or ambiguous key inside brackets is an error and nothing is written. An inline@wordthat doesn't resolve (a social handle,@media, a code decorator) stays text with a warning. Word may split an inline@KEYacross formatting runs; the bracketed form is always recognized.A document with both styles: run
inject_citationson the_citedoutput again to convert the Pandoc markers too. The second run adds the citations without a second bibliography; Zotero → Refresh updates the existing one.Footnotes and comments are not scanned, in either style.
After injection
Open the _cited file in Word or LibreOffice with the Zotero plugin installed and use Zotero → Refresh: the plugin formats the citations and the bibliography in the chosen style, and from then on you can add, edit or restyle citations from the plugin as usual. The document stays in its format: a .docx keeps Word fields, an .odt keeps LibreOffice reference marks.
Prompts
User-initiated MCP prompts (prompts/list, prompts/get) that walk a client through a workflow in terms of the tools above:
Prompt | Description |
| Turn the placeholders in an existing |
| Draft a cited document from scratch and save it ( |
| Import references by DOI: skip those already in the library ( |
| Read an item and attach a summary note ( |
| Check a collection for retracted items ( |
Development
npm install
npm run build # Compile TypeScript
npm test # Unit and per-tool tests (vitest, fetch faked, ~1900 tests)
npm run test:e2e # Built server over stdio against a local fake Zotero API
npm run smoke # Quick stdio smoke test of the built server (user + group library)
npm run bundle # Claude Desktop extension: dist/mcp-zotero.mcpb (production dependencies only)
npm run smoke -- --bundle dist/mcp-zotero.mcpb # smoke test of the unpacked bundle, started from its manifest
npx tsx src/server.ts # Run directly without buildingTesting
Layer | Command | Runs on | What it covers |
Unit / per tool |
| every PR (Node 22, 24, 26) | every tool through a real MCP client, Zotero faked at the |
E2E + smoke |
| every PR | the compiled server over stdio, user and group libraries |
Live |
| PRs from this repository, | the real Zotero Web API on a dedicated test account (test/live); skipped unless |
Agent smoke | workflow, after the live suite passed | PRs from this repository, manual runs (e.g. on | a Claude Code agent uses the server like a user, following the versioned skill |
Word | manual | every release | test/WORD_CHECKLIST.md: open an injected document in Word with the Zotero plugin |
Every test case is listed in test/TEST_CASES.md.
Live tests locally use only ZOTERO_TEST_* variables, never your ZOTERO_API_KEY:
ZOTERO_TEST_API_KEY=... ZOTERO_TEST_USER_ID=... UNPAYWALL_EMAIL=you@example.org npm run test:liveAgainst a personal library add ZOTERO_LIVE_SAFE_MODE=1: the suite only creates items and collections
named mzt-<runId>… and tagged mzt-run:<runId>, deletes only those, and skips collection deletion and
group writes. A dedicated test account is marked by a collection named __mzt_disposable__.
Dependencies are updated monthly by a Claude Code agent (workflow,
skill .claude/skills/deps-update); patch-only PRs are auto-merged after
all required checks pass, anything else waits for review. GitHub Actions versions are updated by Dependabot.
CI setup (repository owner)
Environment | Secrets | Variables |
|
|
|
| — | the same four |
The agents authenticate to the Claude API with Anthropic Workload Identity Federation (GitHub OIDC, no API key). Recommended: one federation rule per environment, as narrow as possible:
Rule for | subject (exact, no | claims (exact string pairs) | condition (CEL) |
|
|
|
|
|
|
| — |
Claims are exact-match string pairs (only subject_prefix supports a trailing *), so a prefix such as
"this workflow on any ref" must be written as a CEL condition, as above; an exact job_workflow_ref
(claude-deps, main only) can be a plain claim.
Audience https://api.anthropic.com. The subject is an exact match unless it ends with *; jobs that use
an environment get the OIDC subject repo:Xevos117/mcp-zotero:environment:<environment>, so a rule
written for a branch or PR subject never matches. Numeric ids (not names) keep a renamed or re-created
repository/account from matching.
Trade-off for zotero-live: the "any ref" condition is needed for the agent smoke test to run on pull
requests, but it also accepts a modified copy of that workflow file pushed to any branch of this repository
(only people with write access can push). Pinning it to the exact claim
job_workflow_ref: Xevos117/mcp-zotero/.github/workflows/claude-agent-smoke.yml@refs/heads/main closes that
gap but disables the agent smoke test on PRs (it would then run only on manual runs from main).
Other owner settings:
The Zotero test account needs a collection named
__mzt_disposable__.Repository settings: "Allow auto-merge", and "Allow GitHub Actions to create and approve pull requests" (the dependency workflow opens its PR with
GITHUB_TOKEN). Keep the ruleset at 0 required approvals: auto-merge of the dependency PR relies on it, and it is also what makes the second setting acceptable. That setting is a conscious trade-off: it lets workflows open PRs (needed) and approve them (not used by any workflow here); if approvals are ever required, it would let a workflow approve its own PR, so revisit it together with any approval requirement.No GitHub App is used by any workflow (the agents authenticate to Anthropic with Workload Identity Federation and use only
GITHUB_TOKENon GitHub, read-only for the agents). If the Claude GitHub App is installed on this repository, uninstall it.Set a monthly spend limit on the Anthropic workspace used by the federation rules: it is the real cap on agent costs.
Residual risk: the agent smoke job that holds the OIDC token also runs the MCP server built from the PR's code (that is what it tests). It runs only for same-repository PRs by the owner or a bot, the token is bound to the
zotero-liveenvironment and the workspace spend limit caps any misuse.Required checks after the stack merges:
test (node 22),test (node 24),test (node 26),live-tests,agent-smoke.
Releasing
Update
CHANGELOG.md(moveUnreleasedto the new version) and the version inpackage.json, inserver.json(versionandpackages[0].version) and inmanifest.json(npm testfails if they differ).Make sure CI, live tests and the agent smoke test are green on
main.Run the manual Word checklist on a document injected by the release candidate and record the results in its log.
Before the first release that ships the Claude Desktop extension (and whenever
manifest.jsonor the Node.js requirement changes): build it withnpm run bundle, installdist/mcp-zotero.mcpbonce in a real Claude Desktop (macOS or Windows), fill in a test key and user ID, and check that the 20 tools appear andget_collectionsanswers.Publish the GitHub release: the release workflow runs the tests, publishes to npm, publishes
server.jsonto the MCP Registry and attaches the skill zips and the Claude Desktop extension (mcp-zotero.mcpb). The release tag must be the version (e.g.2.0.3): the registry and bundle jobs check out the tag and fail ifpackage.jsondiffers.If only the
mcp-registryjob fails, use Re-run failed jobs on the run: Re-run all jobs stops at the npm publish (the version already exists) and so never reaches the registry.
Debug with MCP Inspector
npx @modelcontextprotocol/inspector npx tsx src/server.tsLicense
MIT - see LICENSE for details.
Available Tools
20 toolsadd_itemsA
Add items to Zotero by providing metadata directly. Supports ALL 37 Zotero item types.
WHEN TO USE:
For items that do not have a DOI (books, theses, reports, etc.)
When you need full control over metadata (e.g., override a title, set a specific itemType, add custom fields) — even if a DOI exists, use add_items when the auto-resolved metadata would be incorrect or incomplete
Mixed batch: if some items have DOIs and others don't, call add_items_by_doi for the DOIs and add_items for the rest (two separate calls)
Prefer add_items_by_doi when DOIs are available AND you don't need to override metadata (it auto-resolves everything and attaches OA PDFs)
BATCH: Pass multiple items in the 'items' array (one tool call).
COMMON FIELDS (available for most types): title, date, abstractNote, url, DOI, publisher, place, pages, volume, language, extra
ITEM TYPE QUICK REFERENCE:
journalArticle: publicationTitle, volume, issue, pages, DOI, ISSN
book: publisher, ISBN, edition, numPages, series, seriesNumber
bookSection: bookTitle, publisher, pages, ISBN, edition
conferencePaper: proceedingsTitle, conferenceName, publisher, DOI
thesis: thesisType ("PhD thesis"|"Master's thesis"), university
report: reportType, reportNumber, institution
webpage: websiteTitle, websiteType, accessDate
preprint: repository, archiveID, genre ("Preprint")
patent: patentNumber, assignee, issuingAuthority, filingDate
computerProgram: versionNumber, company, system, programmingLanguage
CREATORS: Array of {firstName, lastName, creatorType} or {name, creatorType} for institutional. Default creatorType is "author". Some types use different primary types (e.g., "director" for film, "inventor" for patent, "artist" for artwork).
Invalid fields or creatorTypes for a given type are rejected with helpful error messages listing the valid options.
Inputs: items (required), tags, library_id, library_type, +1 more.
add_items_by_doiA
Add items to your Zotero library by resolving DOIs. Works with ANY item type that has a DOI — journal articles, books, datasets, preprints, conference papers, reports, etc. For each DOI, resolves metadata via content negotiation and creates the item in Zotero with the correct type automatically. Returns a list of successfully added items (with item_key and title) and any failures.
WHEN TO USE vs add_items:
Use add_items_by_doi when the item HAS a DOI — it auto-resolves all metadata and attaches open-access PDFs (when the server has UNPAYWALL_EMAIL set).
Use add_items when the item does NOT have a DOI, or when you need to override specific metadata fields (add_items_by_doi does not allow metadata overrides).
Mixed batch: if some items have DOIs and others don't, make two separate calls — add_items_by_doi for the DOIs and add_items for the rest.
WORKFLOW TIPS:
To collect metadata for all added items, call get_items_details with the returned item_keys (single batch call).
To create a cited Word document, use the returned item_keys as placeholders in a .docx, then call inject_citations. See inject_citations description for the full workflow.
Inputs: dois (required), tags, library_id, library_type, +2 more.
add_linked_url_attachmentA
Attach a linked URL to an existing Zotero item, or create a standalone linked-URL attachment. Use this to link external PDFs, web pages, or other resources to items already in your library. If parent_item is provided, the attachment is added as a child; otherwise it is standalone. A linked URL stores no file and no full text (get_item_fulltext cannot read it): to store a PDF in Zotero use import_pdf_to_zotero.
Inputs: url (required), tags, title, library_id, +4 more.
check_retractionsA
Check whether Zotero items have been retracted, flagged with an expression of concern, or corrected. Pass EITHER item_keys (up to 50) OR collection_key, exactly one. Read-only: it never changes the library. For each item it reads the DOI (the DOI field, or a 'DOI: …' line in Extra) and looks it up on Crossref (Retraction Watch data), then reports a status: retracted, expression_of_concern, corrected, ok, no_doi (no DOI to check), not_in_crossref (the DOI is unknown to Crossref), or lookup_failed (a transient error — rerun just those). The response opens with a summary of the counts and then lists, per item, its key, title, doi, status and any notices (type, date, source, the notice's own DOI). A failed lookup never fails the rest; rerun the lookup_failed items. At most 200 distinct DOIs are looked up per call: if the response has truncated=true, call again with start=next_start to continue (useful for a large collection).
Inputs: start, item_keys, library_id, library_type, +1 more.
create_cited_documentA
Create a Word (.docx) or LibreOffice (.odt) document from Markdown with native Zotero citations and a bibliography, ready for the Zotero plugin's Refresh. Unlike inject_citations (which fills placeholders in an existing file), this writes a new document from Markdown text.
WORKFLOW:
Collect item keys with add_items_by_doi, add_items or search_library.
Write the body as Markdown, with pandoc-style citations where they belong.
Call this tool with the Markdown and an output path. It fetches metadata from Zotero, renders the document and appends the bibliography. It never overwrites an existing file.
Tell the user to open it in Word or LibreOffice with the Zotero plugin → Add/Edit Bibliography, then Refresh.
MARKDOWN SUBSET: headings (#…), paragraphs, bold (…), italic (…), one-level bullet lists (-). Anything else is kept as text, with a warning.
CITATIONS (pandoc style): [@KEY] one item; [@KEY1; @KEY2] several; [see @KEY, p. 12] with prefix and locator; -@KEY to suppress the author. KEY is a Zotero item key. For IEEE/Vancouver the numbers follow the order of first citation automatically.
OUTPUT: a new .docx or .odt (format from the extension, or the format argument). A cited key that is not in the library, or is not a Zotero key, is an error and nothing is written. If the output file already exists it is an error (never overwritten).
Inputs: markdown (required), output_path (required), style, format, +2 more.
create_collectionA
Create a new collection (folder) in your Zotero library. Optionally nest it under a parent collection. Returns the new collection key and name. Use the key as collection_key in add_items_by_doi or add_items to organize imported papers.
Inputs: name (required), library_id, library_type, parent_collection.
create_noteA
Add a child note to an existing Zotero item. Provide the note as PLAIN TEXT (no HTML or Markdown): blank lines become separate paragraphs and single line breaks are preserved. The parent must be a regular item (not a note or attachment). Use this to attach a summary, annotation, or reading note to a reference. For top-level, item-wide editing of fields use update_item; to add references use add_items or add_items_by_doi.
Inputs: note (required), parent_item_key (required), tags, library_id, +1 more.
delete_collectionA
Permanently delete a collection (folder) from your Zotero library; confirm with the user first. Unlike delete_items, this cannot be undone: the Zotero Web API has no trash for collections, so a deleted collection is not recoverable. Items inside the collection are NOT deleted — they remain in your library. Disabled unless the server setting UNSAFE_OPERATIONS is 'all'.
Inputs: collection_key (required), library_id, library_type.
delete_itemsA
Delete one or more items from your Zotero library. By default they are moved to the Zotero trash (recoverable by the user from Zotero → Trash); pass permanent: true to delete them for good (not recoverable), which is the old behaviour — confirm with the user first for a permanent delete. Moving an item to the trash does not move its child notes or attachments to the trash (they stay in the library), matching the Zotero app; a permanent delete also removes an item's children. A key already in the trash is reported in already_in_trash (use permanent: true to erase it). Accepts up to 50 item keys per call. Disabled unless the server setting UNSAFE_OPERATIONS is 'items' or 'all' (the same setting gates both trash and permanent deletion).
Inputs: item_keys (required), permanent, library_id, library_type.
find_and_attach_pdfsA
For each Zotero item, check Unpaywall for open access PDFs and attach them. Items must have a DOI; needs UNPAYWALL_EMAIL in the server settings. Uploads use the user's Zotero file storage; dry_run only reports what is available. Uses the same source as Zotero Desktop's 'Find Available PDFs'.
Inputs: dry_run, item_keys, library_id, library_type, +2 more.
find_duplicatesA
Find duplicate items in your Zotero library. Read-only: it never merges, edits or deletes anything — it only reports candidates for the user to resolve.
Two modes:
With 'dois' (up to 50): checks which of those DOIs are ALREADY in the library. Returns, per DOI, the matching items (item_key, title, year, first author, type). Run this before add_items_by_doi and skip the DOIs that already have an entry, to avoid creating duplicates.
Without 'dois': scans the library (or a single collection) for duplicate groups — items that share a normalized DOI, or a normalized title (ignoring case, accents and punctuation; same year required when both items have one; very short/generic titles skipped). Each group lists its items so the user decides which to keep.
Only regular items are scanned: notes, attachments and the trash are skipped, up to 5000 items (in both modes). The result reports 'scanned' (regular items examined) and 'truncated' (true if the cap was hit before the end; in 'dois' mode a DOI past the cap may then be missed). Pass 'collection_key' to limit the scan to one collection.
Inputs: dois, library_id, library_type, collection_key.
get_collection_itemsA
Get all items in a specific Zotero collection (only items directly in it, not those in its subcollections). Returns item keys, titles, authors, and dates. Use the collectionKey from get_collections. Use the returned item keys with get_items_details, get_item_fulltext, or inject_citations.
Inputs: collectionKey (required), library_id, library_type, excludeAttachments.
get_collectionsA
List all collections (folders) in your Zotero library. Returns an array of collection keys, names, and parent relationships (an empty array [] when the library has no collections — items can still be found with search_library, and create_collection makes one). Use collection keys with get_collection_items or as parent_collection in create_collection. Trashed collections are excluded by default.
Inputs: library_id, library_type, include_trashed.
get_item_fulltextA
Get the text of a Zotero item's stored PDF from Zotero's full-text index. Works for PDFs indexed by Zotero desktop and synced, or imported with import_pdf_to_zotero / find_and_attach_pdfs; not for linked URLs or web pages. Use this to read the full content of papers instead of relying on abstracts.
Inputs: item_key (required), library_id, library_type, max_characters.
get_items_detailsA
Get metadata for multiple Zotero items in a single call. Accepts an array of item keys and returns a map of key → metadata. Use this instead of one call per item. Returns all type-specific fields (e.g. bookTitle for bookSection, proceedingsTitle for conferencePaper, university for thesis). Each entry also carries its current version: pass it to update_item to edit the item safely (update_item rejects a stale version). Set include_abstract to include abstracts (excluded by default to keep responses lightweight). Keys not found in the library are listed in not_found (present only when some are missing).
Inputs: item_keys (required), library_id, library_type, include_abstract.
get_user_idA
Returns the Zotero library configured in the server environment: user_id, library_type, library_id and library_path ("users/" or "groups/"). Pass library_path to the zotero-mcp-integrations skill script (inject.js) to generate Zotero field code URIs. Not needed when using the inject_citations MCP tool, which reads the library internally.
Inputs: no named parameters.
import_pdf_to_zoteroA
Download a PDF from a URL and upload it to Zotero storage as an imported_url attachment. Unlike linked URL attachments, imported files are stored in Zotero's storage and become fulltext-indexed (searchable via get_item_fulltext). Use this when you need the PDF content to be indexed by Zotero. The URL must lead straight to the PDF file (no login, paywall or HTML landing page); files up to 100 MB, counted against the user's Zotero file storage. For items with a DOI, find_and_attach_pdfs finds open-access PDFs by itself.
Inputs: url (required), tags, title, filename, +5 more.
inject_citationsA
Replace citation placeholders in a .docx (or .odt) file with native Zotero field codes that Zotero can recognize and manage. The tool fetches item metadata from Zotero automatically — you only need to provide the file.
PLACEHOLDER SYNTAX — two kinds, recognized automatically (no flag):
tags (see ZCITE TAG FORMAT below). If the document has any tag, it is handled as a zcite document.
Pandoc citation markers when there are no tags: bracketed [@KEY], [@K1; @K2], [see @KEY, p. 12], -@KEY to suppress the author, or inline @KEY. KEY may be a Zotero 8-character key or a Better BibTeX citation key (e.g. [@rossi2020]); citation keys are case-sensitive and resolved against each item's citationKey field or a "Citation Key: " line in Extra. Prefer the bracketed form [@KEY] — it is the reliable one: an inline @word that does not resolve (a handle, an email, code like @media or @angular/core, or a marker Word split across runs) is left as plain text with a warning, never an error, whereas an unknown or ambiguous key in a bracketed [@…] IS an error and nothing is written. A document that mixes and [@…] is treated as zcite, and the Pandoc markers are reported so you can call the tool again on the output.
WORKFLOW — how to create a Word document with live Zotero citations:
Collect item keys: use add_items_by_doi or add_items (or search_library for existing items)
Generate .docx: create a Word document (e.g. with the "docx" npm package) with placeholders where citations should appear. Each MUST be in its own dedicated TextRun — do NOT mix it with surrounding text.
Call this tool with the .docx file path. It replaces every zcite tag with a Zotero field code and appends a bibliography.
Tell the user to open the file in Word with the Zotero plugin, click Zotero → Add/Edit Bibliography, then Zotero → Refresh.
CITATION STYLES — ask the user which style they want before generating:
apa (default): author-year — (Smith, 2023)
harvard / chicago: author-date — (Smith, 2023) / (Smith 2023)
ieee / vancouver: numbered — [1], [2] WARNING: for numbered styles every MUST include a num="N" attribute with the sequential citation number. Without num, citations render as [?].
ZCITE TAG FORMAT: Supported attributes (any order):
keys (required): item key or comma-separated keys — "ABC12345" or "ABC12345,DEF67890"
num: citation number for IEEE/Vancouver — "1" or "1,2" (required for numbered styles)
locator: page reference — "12-15" (shown as "pp. 12–15"; other labels explicit, e.g. "chap. 3")
prefix: text before citation — "see"
suffix: text after citation — ", emphasis added"
OUTPUT: A new .docx file (original filename with _cited suffix) with Zotero field codes and a ZOTERO_BIBL bibliography at the end. A cited key that is not in the library, or that is not a Zotero key (8 characters from 23456789ABCDEFGHIJKLMNPQRSTUVWXYZ), is an error and no file is written.
WHERE THE FILE LIVES: this tool reads and writes files on the machine where this MCP server runs. If you create the .docx in a sandbox or cloud workspace that the server cannot see (for example code execution in Claude.ai or Claude Desktop, paths like /mnt/user-data/...), do not call this tool: use the zotero-mcp-integrations skill, which injects the citations inside the sandbox with metadata from get_items_details. If that skill is not installed, recommend it to the user: zotero-skill-mcp-integrations.zip from https://github.com/Xevos117/mcp-zotero/releases/latest.
Inputs: file_path (required), style, format, library_id, +1 more.
search_libraryA
Search your Zotero library or list items sorted by a field.
When 'query' is provided, matches it against titles, creator names and years (not abstracts, tags or full text). When 'query' is omitted — or is empty / only whitespace — it is treated as no query: the tool lists items sorted by the chosen field (default: dateAdded, descending), up to 'limit'.
Examples:
Search: { "query": "deep learning" }
Recent items: { "sort": "dateAdded", "limit": 10 }
Recent with search: { "query": "transformers", "sort": "dateAdded", "limit": 5 }
Use the returned item keys with get_items_details, get_item_fulltext, or inject_citations.
Inputs: sort, limit, query, direction, +2 more.
update_itemA
Update the metadata of an existing Zotero item: change field values and/or replace its creators. Pass the item's current version (from get_items_details) — the update is rejected as a version_conflict if the item changed since you read it, so re-read and retry in that case. fields are Zotero field names valid for the item's type (e.g. title, date, publicationTitle, volume, pages, DOI, url, publisher). itemType cannot be changed, and key/version/collections/parentItem/relations/dateAdded/dateModified are managed by Zotero and rejected. Use add_items for new items, create_note for notes, and delete_items to remove items.
Inputs: fields (required), version (required), item_key (required), creators, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools target clearly distinct resources and actions, and the descriptions proactively cross-reference near-neighbours (add_items vs add_items_by_doi, find_and_attach_pdfs vs import_pdf_to_zotero). The one real ambiguity is inject_citations vs create_cited_document, which both produce a Word file with Zotero field codes and differ only in input format; descriptions disambiguate but an agent must read carefully.
Every tool uses consistent snake_case with a leading verb and a noun object (get_collections, delete_items, add_items_by_doi, find_and_attach_pdfs). Variants like _by_doi and _to_zotero follow a predictable qualification pattern rather than breaking convention.
20 tools is on the heavy side of the suggested 3-15 band, but the surface maps to genuinely separate capabilities (library reads, ingestion, attachments/fulltext, collections, curation, citation writing). No tool looks redundant enough to remove, so it is slightly over rather than bloated.
Core lifecycle is well covered: items can be created (two paths), read, updated and deleted, collections created and deleted, notes created, attachments added, plus duplicates/retractions/citation authoring. Gaps remain around collections update (rename/move), note editing or deletion, listing a note/item's children and tags management, and trash restore/emptying — workable but notable absences.
Maintenance
Related MCP Connectors
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Remote MCP server for full read/write access to a Zotero library
Research paper search with real citations and reference formatting for AI assistants
Related MCP Servers
- AlicenseAqualityCmaintenanceThis server allows users to interact with their Zotero library through the Model Context Protocol, providing tools for searching items, retrieving metadata, and accessing full text using natural language queries.31,032 PyPI162MIT
- AlicenseAqualityDmaintenanceAn MCP server that gives any MCP-compatible assistant access to your Zotero reference library, enabling search, citation, bibliography generation, and .docx processing while keeping Zotero as the ground truth for references.91MIT
- AlicenseNot gradedqualityDmaintenanceConnects your Zotero research library with AI assistants (Claude, ChatGPT, etc.) via the Model Context Protocol, enabling paper review, summaries, annotations, and semantic search both locally and through the web API.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that connects AI assistants to your Zotero library, enabling full-text PDF extraction and metadata search.MIT