Zotero Native MCP

io.github.dvdsosa由 GitHub 帳號 dvdsosa 發布v1.0.2更新於 Oct 26, 2026

Read and write your local Zotero 10 library. No plugin, no zotero.org API key, no cloud.

發布方自己的服務:NativeExpress

已驗證STDIO僅桌面檔案與儲存知識與記憶

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理完全離線地搜尋、讀取、新增、修改與刪除 Zotero 10 文獻庫中的項目,包含 PDF 全文。

可以做什麼
  • 搜尋與讀取項目、子項目、標籤、已儲存的搜尋以及 PDF 全文
  • 新增、更新、刪除與還原項目,並將項目加入或移出分類
  • 新增、更新、刪除與還原分類
  • 附加本機 PDF 檔案並查詢附件路徑
  • 列出與清空資源回收筒、匯出項目,以及查看狀態、文獻庫與項目類型欄位
適用情境
適合在本機 Zotero 10 文獻庫中管理參考文獻的人,讓助理尋找資料、擷取 PDF 文字、把論文歸入分類,或新增項目與附件,且不需要 zotero.org 帳號或外掛。
執行需求
需在本機執行 Zotero 10 或更新版本,並在 Zotero 的進階設定中啟用「允許此電腦上的其他應用程式與 Zotero 通訊」。npm 套件需要 Node.js 22 或更新版本。可選環境變數 ZOTERO_LOCAL_APP_NAME 與 ZOTERO_LOCAL_PORT(預設 23119)。不需要 API 金鑰或帳號。
安裝前請注意
此伺服器可以修改與刪除文獻庫項目;刪除預設移入 Zotero 資源回收筒,回收筒會在 30 天後自動清空,而永久刪除選項會直接抹除項目與磁碟上的附件檔案,無法復原。助理依自然語言指令操作,可能認錯項目,請先備份 Zotero 資料目錄。首次寫入時 Zotero 會跳出授權對話框。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Zotero Native MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

zotero-native-mcp

An MCP server that reads and writes your Zotero 10+ library, entirely offline.

[Zotero 10+] [npm] [CI] [License: MIT] [DOI]

Connect Zotero to Claude, Claude Code, Cursor, or any Model Context Protocol client. Your assistant can search your library, read PDF full text, create collections, add references, and attach PDFs from your disk.

Every operation runs against the Zotero application on 127.0.0.1. No zotero.org account. No web API key. No Zotero plugin. No cloud round trip.

[Claude files a paper into a Zotero collection, then renames 290 tags across the library, all through zotero-native-mcp]

Why this exists

Zotero 10 added write support to its built-in local API. Before that, every Zotero MCP server had to work around a read-only local endpoint, either by routing writes through api.zotero.org (slow, needs an API key, needs your library synced to the cloud) or by shipping a separate Zotero plugin you had to install and keep up to date.

This server uses the native capability directly. Nothing to install inside Zotero, no credentials to manage, and reads land in 8–60 ms because nothing touches the network.

CriterionWeb API serversPlugin-based serverszotero-native-mcp
Works offline❌✅✅
Needs a zotero.org API key✅ required❌❌
Needs a Zotero plugin (.xpi)❌✅ required❌
Create collections✅✅✅
Attach local PDFs⚠️ via cloud✅✅
Typical read latency500–1500 ms<50 ms8–60 ms

Requirements

  • Zotero 10 or newer, running. This is a hard floor, not a preference: writing through the local API did not exist before Zotero 10. On Zotero 7–9 the read tools work and every write fails.
  • Zotero → Settings → Advanced → enable "Allow other applications on this computer to communicate with Zotero".
  • Node.js 22 or newer. Node 20 reached end of life in April 2026.

Tested on

Everything below is a statement of evidence, not of intent. Other platforms and clients are expected to work. The server is portable TypeScript talking to 127.0.0.1, with nothing platform-specific by design. But they have not been verified, and this table is the honest extent of it.

ComponentVerified against
Operating systemmacOS 26.6 (Apple Silicon), Windows 11 Pro build 26200 (x64) and Ubuntu 24.04 LTS (x86_64), all three against a real Zotero
Zotero10.0.1
Node.js26.8, 22.23 and 24.16 respectively; 22, 24 and 26 in CI
MCP clientClaude Code 2.1, on macOS and Windows
LibrariesPersonal and group, all 28 tools exercised in both

CI runs the unit and mock-protocol suites across a matrix of Linux, macOS and Windows × Node 22, 24 and 26, so portability of the code itself is covered on all three platforms. What no runner can cover is the conversation with a real Zotero, since none is installed there. That part was done by hand: scripts/coverage.mjs reaches all 28 tools on all three operating systems, against a live library.

Not yet verified. Intel Macs; Claude Code on Linux, where only the scripts were run; Claude Desktop, Cursor and other MCP clients anywhere.

If you run it somewhere not on this list, a report either way is welcome, those are the most useful issues this project can receive right now.

Back up your library first

[!WARNING] This server can modify and delete items in your Zotero library. Back it up before you start, and keep backing it up.

Deleting is reversible by default: zotero_delete_items and zotero_delete_collection move things to Zotero's trash, where you can restore them from the Zotero window or with zotero_restore_items. But Zotero empties that trash automatically after 30 days, and both tools take a permanent: true that erases outright, no undo, attachment files removed from disk, nothing in the API able to bring them back. zotero_empty_trash does the same to everything already in the trash.

These tools are driven by an assistant interpreting instructions in natural language, which can misread which item you meant.

To back up: quit Zotero, then copy your whole data directory, ~/Zotero on macOS and Linux, %USERPROFILE%\Zotero on Windows, or whatever Settings → Advanced → Files and Folders reports. It holds zotero.sqlite and the storage folder with every attachment. Zotero's own guidance is at zotero.org/support/zotero_data.

Syncing to zotero.org is not a backup: a deletion syncs too.

This software is provided as is, without warranty of any kind, and its authors accept no liability for data loss. See LICENSE.

Quick start

bash
claude mcp add --scope user zotero-native-mcp -- npx -y zotero-native-mcp
Other clients (Claude Desktop, Cursor, …)
json
{  "mcpServers": {    "zotero-native-mcp": {      "command": "npx",      "args": ["-y", "zotero-native-mcp"]    }  }}

--scope user registers it for every project. Without it, claude mcp add defaults to the local scope, which ties the server to the one directory you ran the command in, open anything else and the tools are simply absent.

No environment variables are needed. Start a new session, then ask your assistant to run zotero_status to confirm the connection.

The first time a tool writes, Zotero shows a dialog asking whether to allow it. Choose "Always Allow" so you are not asked again.

Documentation

DocumentWhat it covers
📚 TutorialNew here? Ten minutes from install to filing a paper with its PDF.
🔧 How-to guidesAttach PDFs · Group libraries · Migrate from another Zotero MCP · Recover a deletion · Troubleshooting
📖 ReferenceAll 28 tools, parameters, outputs, limits, environment variables.
💡 ExplanationArchitecture · Linked vs imported attachments · How authorization works
🛠 ContributingDevelopment setup, the 73-test suite, and exercising every tool against a live Zotero.

Tools at a glance

Collections: list_collections get_collection create_collection update_collection delete_collection restore_collection

Items: search_items get_item get_item_children create_items update_item delete_items restore_items add_items_to_collection remove_items_from_collection get_item_fulltext export_items

Trash: list_trash empty_trash (and the restore_* tools above)

Attachments: attach_file get_attachment_path

Discovery: list_tags list_saved_searches run_saved_search

System: status authorize list_libraries get_item_type_fields

All names are prefixed zotero_. See the reference for full signatures.

Prior art

This project is not a fork. It was written from scratch once Zotero 10 made native local writes possible, but it stands on the shoulders of earlier work that solved the same problem under tighter constraints:

If you need Zotero 7/8/9 support, semantic or vector search, or writes to a library you only have cloud access to, then those projects remain the right choice.

Contributing

Issues and pull requests are welcome. CI must pass on Linux, macOS and Windows across Node 22, 24 and 26.

See CONTRIBUTING for the development setup, the test suite, and the scripts that exercise every tool against a live Zotero.

License

MIT © David Sosa


Keywords: Zotero MCP server · Model Context Protocol · Zotero Claude integration · Zotero local API · offline reference manager automation · Zotero AI assistant · BibTeX export · academic research tooling · Claude Code Zotero · Cursor Zotero

來源:README.md,提交 3a612c8

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.0.2最新Oct 7, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Native 整合