/ 目錄 / 演練場 / Zotero MCP
● 社群 54yyyu 🔑 需要你的金鑰

Zotero MCP

作者 54yyyu · 54yyyu/zotero-mcp

Chat with your Zotero library — search 10k papers, pull citations, and extract note quotes without leaving Claude.

Zotero MCP connects Claude to your Zotero library (local or web). Every tool respects your existing collections and tags. Great for lit-review synthesis, citation management, and turning highlights into outlines.

為什麼要用

核心特性

即時演示

實際使用效果

zotero-mcp.replay ▶ 就緒
0/0

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "zotero-mcp": {
      "command": "uvx",
      "args": [
        "zotero-mcp"
      ]
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "zotero-mcp": {
      "command": "uvx",
      "args": [
        "zotero-mcp"
      ]
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "zotero-mcp": {
      "command": "uvx",
      "args": [
        "zotero-mcp"
      ]
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "zotero-mcp": {
      "command": "uvx",
      "args": [
        "zotero-mcp"
      ]
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "zotero-mcp",
      "command": "uvx",
      "args": [
        "zotero-mcp"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "zotero-mcp": {
      "command": {
        "path": "uvx",
        "args": [
          "zotero-mcp"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add zotero-mcp -- uvx zotero-mcp

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: Zotero MCP

Synthesize a literature review from tagged papers

👤 Grad students, researchers ⏱ ~60 min intermediate

何時使用: You've tagged 30 papers with #thesis-ch3 and need to write section 3.2.

前置條件
  • Zotero running (local API enabled) — Zotero 7: Settings → Advanced → enable local API
  • API key if using web — zotero.org/settings/keys
步驟
  1. Pull the set
    List every item tagged thesis-ch3 in my Zotero. Just titles + years + first author.✓ 已複製
    → Clean inventory, ~30 items
  2. Cluster
    Group those by methodological approach. Cite each item by zotero key.✓ 已複製
    → 3–5 clusters with per-cluster citations
  3. Extract + write
    For cluster "quantitative RCTs", pull my highlights from each item and draft a synthesis paragraph with in-line citations.✓ 已複製
    → Paragraph with (Author, Year) citations backed by actual highlights

結果: A drafted section 3.2 you can edit instead of starting from blank.

注意事項
  • PDF has no highlights, just scans — Run OCR in Zotero first (right-click → OCR PDF), then re-pull
搭配使用: filesystem

Generate the bibliography for a paper you're writing

👤 Anyone writing with LaTeX ⏱ ~15 min beginner

何時使用: You've cited 40 items across a draft and need a single references.bib.

步驟
  1. Scan for cites
    In /paper/main.tex, list every \cite{} key.✓ 已複製
    → All cite keys enumerated
  2. Resolve
    For each, pull BibTeX from Zotero and write the result to /paper/references.bib. Flag any key with no match.✓ 已複製
    → bib file written; unresolved cites listed

結果: A clean references.bib tied to your Zotero — no manual copy-paste.

注意事項
  • Cite key mismatch (Better BibTeX vs default) — Install the Better BibTeX extension in Zotero for stable pinned keys
搭配使用: filesystem

組合

與其他 MCP 搭配,撬動十倍槓桿

zotero-mcp + filesystem

Write the extracted synthesis to your paper draft

Write the synthesis from Zotero into /paper/section-3-2.md.✓ 已複製
zotero-mcp + memory

Remember per-paper key arguments across sessions

Store the 1-sentence thesis of each item from cluster A in memory.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
search_items query: str, tag?: str, collection?: str Find items in library free
get_item key: str Inspect one item in depth free
get_annotations key: str Pull your highlights/notes on a PDF free
get_bibtex keys: str[] Build bibliography for a draft free
list_collections none Navigate your organization free

成本與限制

運行它的成本

API 配額
Local API: unlimited. Web API: rate-limited by Zotero.
每次呼叫 Token 數
Item metadata ~200 tokens; annotations can run large
費用
Free
提示
Prefer search_items with tag filters over listing all items

安全

權限、密鑰、影響範圍

最小權限: library:read
憑證儲存: API key in env var (web mode only)
資料出站: api.zotero.org (web mode) or localhost (local mode)
切勿授予: library:write unless truly needed

故障排查

常見錯誤與修復

ECONNREFUSED localhost:23119

Zotero isn't running, or local API is disabled. Open Zotero; Settings → Advanced → enable local API.

驗證: `curl http://localhost:23119/api/users/0/items`
Web API 403

API key missing the library read scope. Regenerate at zotero.org/settings/keys.

BibTeX keys are auto-generated nonsense

Install Better BibTeX add-on and set a stable citekey format

替代方案

Zotero MCP 對比其他方案

替代方案何時用它替代權衡
Obsidian MCPYour notes live in Obsidian, not ZoteroDifferent data model — not paper-centric
Direct Zotero CSL exportOne-time export, no LLM involvementNo querying, no synthesis

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills