
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

A Model Context Protocol server that gives LLMs access to a Zotero library for searching, organizing, adding references, editing items, and injecting live citations into documents.
MCP Zotero server is cataloged as an MCP server attributed to xevos117. A Model Context Protocol server that gives LLMs access to a Zotero library for searching, organizing, adding references, editing items, and injecting live citations into documents. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Zotero server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. By default the server does not allow any deletion; deletion must be enabled via the UNSAFE_OPERATIONS environment variable.
Yes. The server can target a group library by setting ZOTERO_LIBRARY_TYPE and ZOTERO_LIBRARY_ID, and individual tool calls can override the library.
APA, IEEE, Vancouver, Harvard and Chicago are supported.
README.md · f419a1ba765d · Fetched 2026-11-13 14:08:26 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
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.
inject_citations turns placeholders in an existing .docx or .odt into 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).create_cited_document writes a new .docx or .odt from Markdown with Pandoc-style citations, real heading styles and a bibliography.update_item changes fields and creators with a version check (never overwrites a concurrent edit); create_note attaches a plain-text note to an item.check_retractions flags retracted papers, expressions of concern and corrections (Crossref, with Retraction Watch data); find_duplicates finds items with the same DOI or title, or tells which DOIs are already in the library before importing them.delete_items moves items to the Zotero trash by default; permanent deletion needs permanent: true, and every deletion is off unless UNSAFE_OPERATIONS allows it.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.
| 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.
.zip from the latest GitHub ReleaseRequires 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/current
Set 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)
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 |
|---|---|---|---|
ZOTERO_LIBRARY_TYPE | user | group | No | user |
ZOTERO_LIBRARY_ID | numeric library ID | Yes when type=group; otherwise falls back to ZOTERO_USER_ID | — |
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 ID
The 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.
Every tool accepts two optional args that override the env defaults for that single call:
library_type — "user" or "group"library_id — numeric library IDResolution 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"
}
}
| Variable | Required | Description |
|---|---|---|
ZOTERO_API_KEY | Yes | API key for Zotero Web API v3. Create one at zotero.org/settings/keys with library read/write and file access permissions. |
ZOTERO_USER_ID | Yes | Your Zotero numeric user ID. Retrieve it with curl -H "Zotero-API-Key: KEY" https://api.zotero.org/keys/current. |
UNPAYWALL_EMAIL | No | Email for Unpaywall API requests (rate-limit policy). Enables OA PDF lookup in add_items_by_doi and find_and_attach_pdfs. If not set, OA PDF features are silently skipped. |
UNSAFE_OPERATIONS | No | Controls destructive operations (deletion). See Unsafe Operations below. Default: none (all deletions blocked). |
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 | delete_items | delete_collection | Use case |
|---|---|---|---|
none (default) | Blocked | Blocked | Safe mode — no deletions possible |
items | Allowed | Blocked | Allow deleting items but protect collection structure |
all | Allowed | Allowed | Full access — items and collections can be deleted |
Important notes:
UNSAFE_OPERATIONS is not set, empty, or set to an unrecognized value, it defaults to none.ALL, Items, NONE all work).delete_items moves items to the Zotero trash by default, so the user can restore them from the desktop client (Zotero → Trash). Pass permanent: true to delete them for good instead; the same UNSAFE_OPERATIONS setting gates both the trash and the permanent path.delete_collection is 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.all value 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"
}
}
}
}
mcp-zotero.mcpb from the latest release
(available from the first release after 2.0.2).manifest.json lists macOS, Windows and Linux, and CI runs it on
Linux), so other MCPB-compatible clients can install it too.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.
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"
}
}
}
}
claude mcp add zotero -e ZOTERO_API_KEY=YOUR_API_KEY -e ZOTERO_USER_ID=YOUR_USER_ID -- npx -y @xevos117/mcp-zotero
Add -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).
| Tool | Description |
|---|---|
get_collections | List all collections (folders) with keys, names, and parent relationships |
get_collection_items | Get items in a specific collection with keys, titles, authors, dates |
search_library | Search by query, or list items sorted by field (date, title, etc.) |
get_items_details | Batch metadata retrieval for multiple items — returns all type-specific fields (bookTitle, proceedingsTitle, university, etc.), the authors string, the structured creators and each item's current version (needed by update_item); keys not in the library are listed in not_found |
get_item_fulltext | Get full-text content of a PDF attachment via Zotero's fulltext index |
check_retractions | Check items (by item_keys or collection_key) for retractions, expressions of concern or corrections via Crossref (Retraction Watch data). Read-only; reports a status per item with any notices |
find_duplicates | 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 add_items_by_doi). Read-only — never merges or deletes |
| Tool | Description |
|---|---|
add_items_by_doi | Add papers by DOI with automatic metadata resolution. Auto-attaches OA PDFs via Unpaywall |
add_items | Add items with direct metadata — supports all 37 Zotero item types (books, theses, reports, etc.), batch-capable |
create_collection | Create a new collection, optionally nested under a parent |
import_pdf_to_zotero | Download a PDF from URL, upload to Zotero storage, auto-index full text |
find_and_attach_pdfs | Batch OA PDF lookup and auto-attach via Unpaywall (by item keys or collection) |
add_linked_url_attachment | Attach a URL to an existing item or create a standalone link |
| Tool | Description |
|---|---|
update_item | Edit an existing item's fields and/or creators. Needs the item's current version (from get_items_details); a stale version returns version_conflict instead of overwriting |
create_note | Attach a plain-text child note to an existing regular item (blank lines become paragraphs) |
| Tool | Description |
|---|---|
delete_items | Delete up to 50 items per call: moved to the Zotero trash by default (recoverable), or permanently with permanent: true. Requires UNSAFE_OPERATIONS=items or all |
delete_collection | Delete a collection (folder) permanently — collections have no trash. Items inside are kept. Requires UNSAFE_OPERATIONS=all |
| Tool | Description |
|---|---|
inject_citations | Inject live Zotero citations into a Word (.docx) or LibreOffice (.odt) document (native fields in Word, reference marks in LibreOffice; format from the extension or the format argument). Recognizes two placeholder styles automatically: <zcite keys="ITEMKEY"/> tags, or — when the document has no <zcite> — Pandoc markers ([@KEY], [@K1; @K2], [see @KEY, p. 12], -@KEY, inline @KEY), where KEY is a Zotero key or a case-sensitive Better BibTeX citation key (resolved via the item's citationKey field or a Citation Key: line in Extra). Prefer the bracketed [@KEY] form: an inline @word that doesn't resolve (a handle or code) is kept as text with a warning, while an unknown key in [@…] is an error. Supports APA, IEEE, Vancouver, Harvard, Chicago. Output is saved in the same folder as the input file with a _cited suffix (e.g. paper.docx → paper_cited.docx, paper.odt → paper_cited.odt) |
create_cited_document | Create a new .docx or .odt from Markdown (headings, bold/italic, one-level lists) with pandoc-style citations ([@KEY], [@K1; @K2], [see @KEY, p. 12], -@KEY) turned into native Zotero citations and a bibliography. Never overwrites an existing file |
get_user_id | Returns the configured Zotero user ID |
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 |
|---|---|
<zcite keys="ITEMKEY"/> tags | The tags become Zotero citations. Any Pandoc markers in the same document are left alone and reported in a warning |
| Only Pandoc markers | [@KEY], [@K1; @K2], [see @KEY, p. 12], -@KEY (year only) and inline @KEY become Zotero citations |
| Neither | The copy is written unchanged, with a warning |
KEY is a Zotero item key (8 characters) or a Better BibTeX citation key such as rossi2020, found through the item's citation key field or a Citation Key: line in Extra. Citation keys are case-sensitive.[@KEY]. An unknown or ambiguous key inside brackets is an error and nothing is written. An inline @word that doesn't resolve (a social handle, @media, a code decorator) stays text with a warning. Word may split an inline @KEY across formatting runs; the bracketed form is always recognized.inject_citations on the _cited output again to convert the Pandoc markers too. The second run adds the citations without a second bibliography; Zotero → Refresh updates the existing one.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.
User-initiated MCP prompts (prompts/list, prompts/get) that walk a client through a workflow in terms of the tools above:
| Prompt | Description |
|---|---|
cite_word_document | Turn the placeholders in an existing .docx/.odt into Zotero citations (inject_citations) |
write_cited_document | Draft a cited document from scratch and save it (create_cited_document) |
import_references | Import references by DOI: skip those already in the library (find_duplicates), add the rest (add_items_by_doi), check them for retractions (check_retractions) and attach open-access PDFs (find_and_attach_pdfs) |
note_from_item | Read an item and attach a summary note (create_note) |
check_bibliography | Check a collection for retracted items (check_retractions) and duplicates (find_duplicates) before handing it in |
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 building
| Layer | Command | Runs on | What it covers |
|---|---|---|---|
| Unit / per tool | npm test | every PR (Node 22, 24, 26) | every tool through a real MCP client, Zotero faked at the fetch level; produced .docx files are validated against the official CSL schemas and rendered with citeproc-js (test/helpers/docx-validate.ts) |
| E2E + smoke | npm run test:e2e, npm run smoke | every PR | the compiled server over stdio, user and group libraries |
| Live | npm run test:live (workflow, shared with the agent smoke test) | PRs from this repository, main, weekly (Friday), manual runs | the real Zotero Web API on a dedicated test account (test/live); skipped unless ZOTERO_TEST_API_KEY is set |
| Agent smoke | workflow, after the live suite passed | PRs from this repository, manual runs (e.g. on main after a merge) | a Claude Code agent uses the server like a user, following the versioned skill .claude/skills/test-mcp-zotero: inject_citations ⇄ inject.js parity in every style, fixed edge cases and up to 5 exploratory scenarios on what the PR changes. The workflow sets up the MCP server, the tool set and guard hooks (Bash allowlist, delete policy, audit log); local runs use the same pieces (test/live/agent/README.md). The verdict comes from test/live/verify-claims.mjs, not from the agent; each run writes a Job Summary (verdict, scenarios, exploratory findings, friction, turns/cost/duration) and keeps one comment on the PR up to date, both scrubbed of anything that identifies the test account |
| 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:live
Against 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.
| Environment | Secrets | Variables |
|---|---|---|
zotero-live (live tests, agent smoke) | ZOTERO_TEST_API_KEY, ZOTERO_TEST_USER_ID, ZOTERO_TEST_USERNAME, ZOTERO_TEST_GROUP_ID (optional), UNPAYWALL_EMAIL | ANTHROPIC_FEDERATION_RULE_ID, ANTHROPIC_ORGANIZATION_ID, ANTHROPIC_SERVICE_ACCOUNT_ID, ANTHROPIC_WORKSPACE_ID |
claude-deps (dependency agent) | — | the same four ANTHROPIC_* variables (the federation rule may differ) |
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) |
|---|---|---|---|
zotero-live | repo:Xevos117/mcp-zotero:environment:zotero-live | repository_id: 1152178663, repository_owner_id: 86290818 | claims.job_workflow_ref.startsWith("Xevos117/mcp-zotero/.github/workflows/claude-agent-smoke.yml@") (PR runs use the PR ref) |
claude-deps | repo:Xevos117/mcp-zotero:environment:claude-deps | repository_id: 1152178663, repository_owner_id: 86290818, job_workflow_ref: Xevos117/mcp-zotero/.github/workflows/deps-update.yml@refs/heads/main | — |
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:
__mzt_disposable__.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.GITHUB_TOKEN on GitHub, read-only for the agents). If the Claude GitHub App is
installed on this repository, uninstall it.zotero-live environment and the workspace spend limit caps any misuse.test (node 22), test (node 24), test (node 26),
live-tests, agent-smoke.CHANGELOG.md (move Unreleased to the new version) and the version in package.json, in
server.json (version and packages[0].version) and in manifest.json (npm test fails if they differ).main.manifest.json or the Node.js
requirement changes): build it with npm run bundle, install dist/mcp-zotero.mcpb once in a real Claude
Desktop (macOS or Windows), fill in a test key and user ID, and check that the 20 tools appear and
get_collections answers.server.json to 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 if package.json differs.mcp-registry job 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.npx @modelcontextprotocol/inspector npx tsx src/server.ts
MIT - see LICENSE for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Zotero server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-zotero-xevos117)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.