
MCP Zotero
io.github.Xevos117由 GitHub 帳號 Xevos117 發布v2.0.4更新於 Nov 2, 2026
Unofficial Zotero server: search your library, add papers by DOI, import PDFs, cite in Word
概覽
非官方 Zotero MCP 伺服器,讓助理搜尋與整理 Zotero 文獻庫、依 DOI 加入論文、匯入 PDF、讀取全文,並將引用插入 Word 文件。
- 可以做什麼
- 瀏覽與檢索文獻庫:列出分類、查看分類中的項目、依查詢或欄位排序檢索、批次取得中繼資料、讀取 PDF 全文
- 加入內容:依 DOI 加入論文並解析中繼資料、加入任何 Zotero 類型的項目、建立分類、從網址匯入 PDF、自動附加開放取用 PDF、加入連結網址附件
- 刪除內容:永久刪除項目或刪除分類,僅在明確開啟時可用
- 引用與文件:以 APA、IEEE、Vancouver、Harvard 或 Chicago 格式將即時 Zotero 引用插入 Word 文件,並讀取已設定的使用者 ID
- 適用情境
- 適合撰寫或管理學術參考文獻的情境:希望助理直接操作你的 Zotero 文獻庫,尋找文獻、依 DOI 加入論文、附加 PDF、取得全文,或產出帶即時引用的 Word 文件。
- 執行需求
- 透過 npx 以 stdio 在本機執行(需 Node.js 22 或更新版本),也可作為 Claude Desktop 擴充套件安裝。需要具備文獻庫讀寫與檔案存取權限的 Zotero Web API 金鑰(ZOTERO_API_KEY)與數字使用者 ID(ZOTERO_USER_ID);群組文獻庫可另設 ZOTERO_LIBRARY_TYPE 與 ZOTERO_LIBRARY_ID,開放取用 PDF 查找需 UNPAYWALL_EMAIL,允許刪除需設 UNSAFE_OPERATIONS。需要連線至 Zotero API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Zotero,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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, and inject live citations into Word documents.
Originally based on mcp-zotero by Abhishek Kalia. This project has since been extensively rewritten with a new architecture, 15 tools (up from 5), citation injection, PDF management, and Claude skill support.
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
LLMs with filesystem access can use all tools directly, including inject_citations which reads and writes .docx 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 Release - Extract 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:
-
Set environment variables:
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:
Example for a group library:
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.
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:
Environment Variables
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:
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_itemsdeletes items permanently: the Zotero Web API multi-item DELETE does not move them to the Zotero trash, so they cannot be restored from the desktop client.delete_collectionremoves 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:
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):
Integration with Claude Code
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).
Available Tools
Library browsing
Adding content
Deleting content
Citation & documents
Development
Testing
Every test case is listed in test/TEST_CASES.md.
Live tests locally use only ZOTERO_TEST_* variables, never your ZOTERO_API_KEY:
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.
CI setup (repository owner)
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:
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 15 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
License
MIT - see LICENSE for details.
來源:README.md,提交 bc154a9
工具
0版本歷史
2- v2.0.4最新Oct 26, 2026
- v2.0.3Oct 21, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。