54yyyu/zotero-mcp
Python MCP server and CLI for searching, reading, and citing your Zotero library.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
zotero-mcp-server is a Python 3.10+ Zotero integration built with Hatchling. It exposes library operations through an MCP server that supports local stdio, a shell-facing zotero-cli with --json output and an installable agent skill, and a bundled .xpi plugin. The MCP server and CLI share configuration. The plugin delegates work to a user-configured agent through the CLI and gives it context about the open item, PDF page, and selection.
The local backend separates reads from writes: reads come from zotero.sqlite, whereas writes go through the API of a running, authorized Zotero 10+ instance or through the Zotero web API. The optional semantic layer adds a ChromaDB index and a choice of embedding backends. This separates three deployment decisions: where the connector runs, where library writes go, and where document content is embedded or sent for inference.
Key Capabilities & Differentiators
Search spans titles, authors, tags, collections, and indexed full text. The connector can return metadata, BibTeX, attachment text, and selected PDF page ranges. The optional PyMuPDF integration adds page images, layouts, and outlines, which are useful when text extraction loses the structure of equations, tables, or figures. Annotations include notes, text highlights, area boxes, and extraction of existing PDF annotations. Inside Zotero, zotero:// citations can reopen a PDF at the cited page.
Write operations include importing by DOI, URL, ISBN, BibTeX, or file, adding open-access PDFs where available, managing tags and collections, and merging duplicates. Semantic retrieval uses ChromaDB with local sentence-transformers, OpenAI, Gemini, or Ollama embeddings and requires an index to be built and kept current. The optional scite extra adds citation tallies and retraction alerts.
Trade-offs & Limitations
Native Zotero is the simpler choice for manual reference management and annotation; direct Zotero API integration can be a better fit for a fixed application workflow that does not need tool discovery. This connector earns its place when assistants need to combine retrieval, reading, and library actions. The default MCP profile exposes 38 tools and uses 7,752 tokens in the documented configuration. The CLI skill starts at 98 tokens of frontmatter before loading its body or command reference; that is a context-budget comparison, not a latency benchmark, and the skill requires shell access.
Local SQLite reads avoid the Zotero web API for that path, but cloud assistants and embedding providers can still receive library content. Review data flows separately and grant write access only where needed, especially for collection changes and duplicate merges. Local semantic search adds model and index overhead; the Dockerfile flags the size of CUDA-dependent PyTorch wheels and build failures on QEMU-emulated ARM64. For redistribution or hosted use, check licensing by component: the package manifest declares MIT AND AGPL-3.0-or-later and lists a separate plugin/LICENSE.
Hardware & Deployment Guide
Install with uv tool install zotero-mcp-server or pip on Python 3.10+. For the documented desktop setup, enable Zotero's local API in Zotero 7+, then run zotero-mcp setup for Claude Desktop or configure local stdio with ZOTERO_LOCAL=true. Shell-capable agents can use zotero-mcp install-skill; in-app chat requires installing the .xpi located by zotero-cli plugin. For local writes, run zotero-mcp authorize-local on Zotero 10+; on older versions, configure ZOTERO_API_KEY and ZOTERO_LIBRARY_ID for web writes.
Docker starts from python:3.12-slim and uses INSTALL_EXTRAS to select a dependency profile. Start with core unless you need an extra. For local mode, verify that the container can access the library database and attachments and, for local writes, reach the running Zotero instance. Local library access can avoid the Zotero web API, but does not make an external assistant, embedding provider, or Scite offline. Recent releases cover Zotero's own CSL crosswalk for CSL JSON import in v0.17.3, local setup guidance for ChatGPT Desktop and Codex in v0.17.4, and Markdown/plain-text attachment reads by attachment key in v0.17.5.
zotero-mcp-server provides an MCP server, zotero-cli with an agent skill, and a bundled Zotero .xpi plugin.zotero.sqlite; authorized local writes target running Zotero 10+, with the web API available for older versions.zotero://.python:3.12-slim is the base image, and INSTALL_EXTRAS selects core, all, semantic, pdf, or scite dependencies.Researchers and labs that already use Zotero and want assistants to search their collections, read source pages, and cite or annotate papers without leaving their usual tools.
You only need manual bibliography management, want to search beyond your Zotero library, or require end-to-end offline operation but cannot keep the assistant and embedding stack local.
Quick Start & Installation
uv tool install zotero-mcp-server # or: pip install zotero-mcp-server
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| zotero-mcp ★ | 6.2k | +121 | Python | MIT | Python MCP server and CLI for searching, reading, and citing your Zotero library |
| mcp-for-blender | 37.1k | +1.1k | Python | GPL-3.0 | A local MCP bridge for inspecting and editing live Blender scenes with AI |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/54yyyu/zotero-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about zotero-mcp
Which integration should I choose, and how does it reach Zotero?
zotero-cli plus the skill for a shell-capable agent, or the .xpi plugin for chat that follows the open PDF in Zotero. The MCP server and CLI share configuration. Local reads use zotero.sqlite; local writes require authorization from a running Zotero 10+ instance.Do I need a GPU, and what changes when I enable semantic search?
What should a company check before self-hosting or redistributing it?
MIT AND AGPL-3.0-or-later and lists both LICENSE and plugin/LICENSE. Review the terms that apply to the components you deploy, modify, redistribute, or make available over a network. A private container does not settle the licensing question, and self-hosting the connector does not keep content local if you use an external assistant or embedding provider.When is native Zotero or direct API integration the better choice?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy