/ 目录 / 演练场 / 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