Zotero MCP
Provides tools for interacting with Zotero reference management software, enabling AI agents to search, browse, and annotate academic papers, extract metadata and PDF text, create annotations and notes, and manage research libraries programmatically.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zotero MCP highlight the key findings in this paper's abstract"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Annota — AI-Powered Paper Annotation Assistant
Turn your PDF library into an intelligent research assistant.
AI reads your papers, highlights key findings, explains formulas, and writes structured notes — all saved back to your reference manager.
Features · Quick Start · Usage Examples · Screenshots · Roadmap
What Can It Do?
You say... | AI does... |
"高亮摘要中的发现结果" (Highlight findings in the abstract) | Reads the abstract, identifies findings, highlights them in green |
"解释第3页的公式" (Explain the formulas on page 3) | Extracts the formula, adds an explanation as a note annotation |
"写一份结构化阅读笔记" (Write a structured reading note) | Generates a note with contributions, methods, results, limitations — saved to your library |
"以 MICRO 审稿人视角审阅" (Review as a MICRO reviewer) | Produces a structured review with scores and actionable feedback |
AI reads the paper → understands content → creates precise annotations
AI generates a structured reading summary with key findings, methods, and conclusions
Related MCP server: Stratosphere MCP Zotero
✨ Features
9 MCP Tools
Tool | What it does |
| Search by title / author / key |
| Browse recent items |
| Get authors, year, venue, DOI |
| Extract full text (no coords, fast) |
| Extract text + precise coordinates |
| View existing annotations |
| Create highlight / underline |
| Create multiple annotations at once |
| Add a note to any item |
3 Claude Code Skills (Slash Commands)
Command | Function |
| Smart annotation with semantic color coding |
| Structured reading notes saved to your library |
| Simulated peer review with scoring rubric |
Smart Design
Two-phase workflow — Reads full text first (cheap), then only gets coordinates for target sentences (precise). Reduces context usage by 63–80%.
Auto-skip references — Detects "References" section and skips it. A 21-page paper extracts only 13 pages.
Batch annotations — Creates 10 highlights in 1 API call instead of 10.
Friendly errors — Write failures return helpful messages instead of crashing.
🚀 Quick Start (3 Minutes)
Step 1: Clone & Install
git clone https://github.com/dengls24/annota.git
cd annota
python -m venv .venv
# Windows:
.venv\Scripts\activate
# macOS / Linux:
# source .venv/bin/activate
pip install pymupdf mcpStep 2: Configure Claude Code
Add to ~/.claude.json (or via Claude Code Settings > MCP Servers):
Windows:
{
"mcpServers": {
"annota": {
"command": "C:/path/to/annota/.venv/Scripts/python.exe",
"args": ["C:/path/to/annota/annota/server.py"],
"env": {
"ZOTERO_DATA_DIR": "C:/Users/YourName/Zotero"
}
}
}
}macOS / Linux:
{
"mcpServers": {
"annota": {
"command": "/path/to/annota/.venv/bin/python",
"args": ["/path/to/annota/annota/server.py"],
"env": {
"ZOTERO_DATA_DIR": "/Users/YourName/Zotero"
}
}
}
}Finding your Zotero data directory:
Windows: Zotero → Edit → Settings → Advanced → Data Directory Location (default:
C:\Users\YourName\Zotero)macOS: Zotero → Settings → Advanced → Data Directory Location (default:
~/Zotero)Linux: default
~/Zotero
Step 3: Use It
Just talk to Claude naturally:
# One command to read a full paper:
/annota-read "path/to/paper.pdf"
# Or natural language:
# Highlight the findings in this paper's abstract in green
"/Users/yourname/Zotero/storage/ABCD1234/paper.pdf"Or use slash commands:
/annota-read "path/to/paper.pdf"
/annota-annotate "path/to/paper.pdf"
/annota-summarize "path/to/paper.pdf"
/annota-review "path/to/paper.pdf" ISCAmacOS path tip: Drag a file from Finder into the terminal to get its full path, or right-click → "Copy as Pathname".
(Optional) Install Skills Globally
# Make skills available in all projects
cp -r .claude/skills/ ~/.claude/skills/📖 Usage Examples
Example 1: Highlight Key Findings
Input:
把这篇论文摘要中的发现结果用绿色标出来
(Highlight the findings in this paper's abstract in green)
"E:\Zotero\storage\ABCD1234\Song et al. - 2025 - AI washing.pdf"Result:
AI identifies findings in the abstract and highlights them in green
Example 2: Annotate Hypotheses & Theories
Input:
标注论文中的假设(H1, H2),并用中文解释每个假设的理论基础
(Annotate the hypotheses (H1, H2) and explain the theoretical basis of each in Chinese)Result:
Hypotheses highlighted in yellow, with Chinese explanation notes for the underlying theory
Example 3: Explain Formulas
Input:
解释论文中的核心公式,添加中文注释
(Explain the key formulas in this paper, add Chinese annotations)Result:
DID model formula annotated with variable explanations in Chinese
Example 4: Policy Implications & Conclusion Notes
Input:
标注结论部分的政策启示,添加中文总结笔记
(Highlight policy implications in the conclusion, add a Chinese summary note)Result:
Conclusion highlighted with a structured policy implications note
Example 5: Full Paper Reading Notes
Input:
/annota-summarize "path/to/paper.pdf"Result:
AI generates a complete reading summary: topic, research question, method, key findings, and implications
Example 6: Detailed Paragraph-by-Paragraph Notes
Input:
逐段阅读这篇论文,为每个重要段落添加中文批注
(Read this paper paragraph by paragraph, add Chinese annotations to each important section)Result:
Each important paragraph gets a Chinese annotation explaining the content
Example 7: The AI Workflow in Action
Here's what Claude Code looks like when processing a paper:
Claude creates a task list, reads the PDF, and calls MCP tools to create annotations step by step
🎨 Color Convention
Color | Code | Use for |
🟡 Yellow |
| Default / general highlights |
🟢 Green |
| Results, findings, data |
🔵 Blue |
| Methods, definitions, algorithms |
🔴 Red |
| Limitations, issues, problems |
🟣 Purple |
| Contributions, novelty |
⚡ How It Handles Large PDFs
For papers >10 pages, a two-phase workflow avoids context overflow:
Phase 1 — Understand (lightweight)
get_pdf_text_bulk(pdf, skip_refs=True)
→ Full text without coordinates
→ AI identifies which sentences to annotate
Phase 2 — Annotate (precise)
get_pdf_layout_text(pdf, target_page_only)
→ Coordinates for 1–2 target pages
batch_annotate(pdf, all_annotations)
→ Write everything in one callReal-world performance:
Paper | Pages | Old approach | New approach | Savings |
Conference paper | 2 pages | 41 KB coords | 15 KB text | 63% |
Journal article | 21 pages | 21 pages extracted | 13 pages (refs skipped at p.13) | 38% |
Survey paper | 19 pages | 19 pages extracted | 10 pages (refs skipped at p.10) | 47% |
📁 Project Structure
annota/
├── annota/ # MCP Server (Python)
│ ├── server.py # 9 tool registrations
│ ├── zotero_db.py # SQLite read/write layer
│ ├── pdf_tools.py # PyMuPDF text extraction
│ └── config.py # Constants & configuration
├── .claude/skills/ # Claude Code Skills
│ ├── annota-annotate/SKILL.md # /annota-annotate
│ ├── annota-summarize/SKILL.md # /annota-summarize
│ └── annota-review/SKILL.md # /annota-review
├── docs/ # Design documents
│ ├── annota-guide.md # Usage guide (CN)
│ ├── large-pdf-design.md # Large PDF handling design
│ ├── dev-notes.md # Pitfalls & solutions
│ └── commercial-plan.md # Commercialization plan
├── assets/ # Screenshots
└── README.md⚠️ Known Limitations & Disclaimer
Database Direct Access: Annota writes annotations directly to the Zotero SQLite database, which bypasses Zotero's internal consistency mechanisms. This is a design choice to enable fully offline, local-first annotation workflows without depending on external services. Users are responsible for their own database — please back up your
zotero.sqlitebefore use. We plan to migrate to the official Zotero Web API / Local API in future versions.
Limitation | Workaround | Planned Fix |
Direct SQLite write (not officially supported) | Back up your database before use | Migrate to Zotero Local API / Web API |
Write ops need Zotero closed | Close Zotero before annotating | Local API bridge |
References detection is heuristic | Pass | Improve heuristics |
Tested primarily on Windows | Should work on macOS/Linux — paths auto-detected | Community testing welcome |
🗺 Roadmap
Zotero Local API / Web API — Migrate from direct SQLite to official API for safer writes
More skills —
/compare-papers,/extract-tables,/literature-mapPrompt template marketplace — Share and reuse annotation rules
Team features — Shared annotation standards for lab groups
Multi-backend — Support Adobe Acrobat, Endnote, and other PDF tools
🤝 Contributing
Issues and PRs are welcome! If you have ideas for new skills or tools, please open an issue.
📄 License
MIT — Use it freely for research and commercial projects.
Built with MCP + Claude Code
If this project helps your research, consider giving it a ⭐
Available Tools
9 toolsadd_child_noteA
为 Zotero 文献条目创建子笔记。
支持 HTML 和纯文本。写入后需重启 Zotero 或按 Ctrl+Shift+R 刷新。 注意:写操作需要关闭 Zotero 桌面应用。
Args: parent_item_id: 父文献条目的 itemID(数字字符串) note_content: 笔记内容(HTML 或纯文本,支持 Markdown 风格)
Inputs: parent_item_id (required), note_content (required). Returns: result
batch_annotateA
一次性创建多条 PDF 标注(减少调用次数)。
每条标注需包含 page_index 和 rects,可选 color/text/comment/type。 写操作需要关闭 Zotero 桌面应用。
Args: item_id: Zotero PDF 附件的 itemID(数字),或 PDF 文件的绝对路径 annotations: 标注列表,每项为: {"page_index": int, "rects": [[x0,y0,x1,y1],...], "color": str, "text": str, "comment": str, "type": str}
Inputs: item_id (required), annotations (required). Returns: result
create_pdf_annotationA
在 Zotero PDF 上创建高亮/下划线批注。
坐标使用 get_pdf_layout_text 返回的 rect 值,无需手动转换。 写入后需重启 Zotero 或按 Ctrl+Shift+R 刷新才能看到批注。
注意:写操作需要关闭 Zotero 桌面应用,否则会因数据库锁而失败。
Args: item_id: Zotero PDF 附件的 itemID(数字),或 PDF 文件的绝对路径 page_index: 页码(从 0 开始) rects: 坐标数组,每项为 [x0, y0, x1, y1](来自 get_pdf_layout_text) color: 十六进制颜色,如 "#ffd400"(黄), "#28CA42"(绿), "#2EA8E5"(蓝) comment: 附加在批注上的文字评论(可选) text: 被高亮的原始文本(可选,用于 Zotero 中显示) type: 批注类型: "highlight"(默认) 或 "underline"
Inputs: item_id (required), page_index (required), rects (required), color, +3 more. Returns: result
get_item_metadataA
获取 Zotero 条目的完整元数据。
返回标题、作者列表、年份、期刊、DOI 等信息。 支持传入文献条目 ID 或 PDF 附件 ID(自动查找父条目)。
Args: item_id: Zotero 条目或 PDF 附件的 itemID(数字),或 PDF 文件路径
Inputs: item_id (required). Returns: result
get_pdf_layout_textA
提取 PDF 指定页面的文本及物理坐标。
返回 JSON,每个文本行包含 text 和 rect [x0, y0, x1, y1](Zotero PDF 坐标系)。 可以直接将 rect 传给 create_pdf_annotation 使用。
Args: item_id: Zotero PDF 附件的 itemID(数字),或 PDF 文件的绝对路径 page_number: 页码(从 0 开始)
Inputs: item_id (required), page_number (required). Returns: result
get_pdf_text_bulkA
批量提取多页 PDF 纯文本(无坐标),适合大 PDF 内容理解。
与 get_pdf_layout_text 的区别:不返回坐标,context 占用减少 ~80%。 推荐工作流:
先用此工具理解全文 → 确定目标页和目标句子
再用 get_pdf_layout_text 获取目标页的精确坐标
最后用 create_pdf_annotation 写入标注
Args: item_id: Zotero PDF 附件的 itemID(数字),或 PDF 文件的绝对路径 pages: 要提取的页码列表(0-indexed),不传则提取全文 skip_refs: 是否自动跳过参考文献页(默认 True)
Inputs: item_id (required), pages, skip_refs. Returns: result
list_annotationsA
列出 PDF 附件上已有的所有标注。
用于检查已有标注,避免重复标注。返回每条标注的类型、颜色、文本和评论。
Args: item_id: Zotero PDF 附件的 itemID(数字),或 PDF 文件的绝对路径
Inputs: item_id (required). Returns: result
list_zotero_itemsA
列出 Zotero 库中的文献条目。
返回每个条目的 itemID、key、标题,以及 PDF 附件 ID(如有)。 用于发现 item_id 以供其他工具使用。
Args: limit: 最多返回条目数(默认 50)
Inputs: limit. Returns: result
search_zotero_itemsA
按标题、作者或 key 搜索 Zotero 条目。
比 list_zotero_items 更高效,可直接定位目标论文。
Args: query: 搜索关键词(标题/作者的部分文字,或 Zotero item key) limit: 最多返回条目数(默认 20)
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct operation: listing vs searching items, extracting text with or without coordinates, creating single vs batch annotations, adding notes, and listing annotations. Descriptions clearly differentiate them, leaving no ambiguity.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., 'list_zotero_items', 'create_pdf_annotation'). Even 'batch_annotate' and 'add_child_note' fit the pattern with a verb first. No mixed conventions.
With 9 tools, the server covers the core workflows of Zotero interaction: discovering items, retrieving metadata, extracting PDF text, creating annotations (single/batch), listing annotations, and adding child notes. The count is well-scoped without being too sparse or overwhelming.
The tool set covers the main use cases for reading and annotating Zotero items. However, it lacks tools for updating or deleting annotations, modifying item metadata, or managing collections/tags, which are minor gaps that could cause agents to hit dead ends in some workflows.
Maintenance
Related MCP Connectors
Research paper search with real citations and reference formatting for AI assistants
Search 250M scholarly papers and work with your Researchzy library and PDFs from your AI agent.
91Add PDFs from a link, ask questions with page citations, and read summaries
Read, search, cite, and inspect figures from your personal PDF and EPUB books.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to search, read, and manage Zotero references locally with customizable research workflows.94MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Zotero libraries, allowing users to search, retrieve, and update papers and metadata via AI assistants like Claude and Gemini.1GPL 2.0
- AlicenseAqualityBmaintenanceEnables AI assistants to search, access, and interact with your Zotero research library, including semantic search, metadata retrieval, PDF annotations, and library management.41MIT
- AlicenseAqualityCmaintenanceEnables read-only search and analysis of your local Zotero library, including full-text PDF retrieval with OCR fallback, annotations, and cross-item comparison for synthesis.13MIT