zotero-mcp
Provides related paper recommendations based on library seeds, similar to Connected Papers, via the find_related_papers tool.
Allows AI assistants to search, create, organize, and cite from a Zotero library. Provides tools for reading items, writing items, citation management, analysis (retractions, duplicates, citation graph), knowledge graph, and full-text search.
Click on "Install 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-mcpsearch for recent papers on metacognition"
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.
zotero-mcp
MCP server that lets AI assistants search, create, organize, and cite from a Zotero library. Produces Word documents with live Zotero field codes. Checks for retractions, finds duplicates, maps citation graphs, and builds a knowledge graph with paper recommendations.
Quickstart
Add to your MCP client config (Claude Code, Claude Desktop, etc.):
{
"zotero": {
"command": "uvx",
"args": ["zotero-mcp-plus"],
"env": {
"ZOTERO_API_KEY": "your-api-key",
"ZOTERO_USER_ID": "your-user-id"
}
}
}Get your API key and user ID at zotero.org/settings/keys.
OPENALEX_API_KEY is also required for the analysis tools (check_retractions, get_citation_graph, check_published_versions). To enable those plus the knowledge graph and full-text search tools, add the extras and an OpenAlex key:
{
"zotero": {
"command": "uvx",
"args": ["zotero-mcp-plus[graph,fulltext]"],
"env": {
"ZOTERO_API_KEY": "your-api-key",
"ZOTERO_USER_ID": "your-user-id",
"OPENALEX_API_KEY": "your-openalex-key"
}
}
}Free OpenAlex key at openalex.org/users/me.
Related MCP server: zotero-mcp-lite
Operating modes
All 36 tools work with just API credentials — Zotero desktop does not need to be running. Two diagnostic tools (check_ssl_health, audit_local_keys) require no credentials at all.
Mode | What it provides | Requirements |
Cloud (primary) | All reads, writes, citations, attachments, analysis, fulltext, entities |
|
Local (optional) | Faster reads via Zotero desktop's local API (no rate limits) | Zotero 7 desktop running with local API enabled |
When Zotero desktop is running, reads automatically use the faster local API. When it is not, reads fall back to the Web API transparently.
Call server_status to check which modes are available.
Tools
Read tools
Tool | Description |
| Check which modes are available |
| Search library items by keyword |
| Fetch item metadata or BibTeX |
| List all collections |
| List items in a collection |
| List child notes on an item |
| List attachments with availability status |
| Find best path to a paper's full text (PMCID, local PDF, or web download). Pass |
Write tools
Tool | Description |
| Create item from DOI, PMID, or URL (with duplicate detection) |
| Create item with manual metadata (with duplicate detection) |
| Attach a note to an item |
| Create a collection |
| Bulk-add tags/collection to items |
| Add item to a collection |
| Patch metadata fields |
| Attach a local or auto-downloaded PDF |
| Move items to trash (reversible) |
| Permanently delete all trashed items |
| List, remove, or rename tags library-wide ( |
Citation tools
Tool | Description |
| Create new .docx with live Zotero citations |
| Insert citations into existing .docx |
Analysis tools
Tool | Description |
| Check items for retractions, corrections, and errata via CrossRef + OpenAlex |
| Scan library for duplicate items by DOI and title similarity |
| Get citing/referenced works via OpenAlex with in-library flags |
| Check if preprints have been formally published; reports journal and in-library status |
Knowledge graph tools
Requires the graph extra (uvx "zotero-mcp-plus[graph]" or pip install "zotero-mcp-plus[graph]") and OPENALEX_API_KEY env var.
Tool | Description |
| Build or update citation graph and/or fulltext index ( |
| PageRank, clusters, bridge papers, shortest paths, neighborhood, timeline, topic evolution, citation velocity, trending |
| Semantic Scholar recommendations from library seeds (like Connected Papers) |
| Prolific/influential authors, co-author lookup, ego network, author clusters |
| Interactive HTML visualization (citations, authors, or full view) with D3.js |
Full-text search tools
Requires the fulltext extra (uvx "zotero-mcp-plus[fulltext]" or pip install "zotero-mcp-plus[fulltext]").
Tool | Description |
| Search indexed full text with BM25 ranking and highlighted snippets |
Use build_index(type='fulltext') to extract text from library PDFs and build the FTS5 search index.
Entity extraction tools
Two-tool pattern: the MCP server provides abstracts, the calling LLM extracts entities, and stores them back.
Tool | Description |
| Get papers with abstracts not yet entity-extracted |
| Persist typed entities (biomarker, drug, gene, etc.) extracted by the LLM |
| Query entity index: by_name, by_type, paper_entities (by DOI), co_occurrence, shared_entities |
Diagnostic tools
These two tools require no API credentials and can be used to debug setup problems.
Tool | Description |
| Diagnose Python SSL/TLS config — cert paths, CA count, env-var overrides, live HTTPS probes. Returns HEALTHY/DEGRADED/BROKEN verdict with remediation steps. Use when any tool reports |
| Scan local Zotero SQLite for item/collection keys containing characters ( |
MCP Prompts
Pre-built multi-tool workflows that guide the AI through common tasks:
Prompt | Description |
| Check retractions, verify preprint publication status, scan for duplicates |
| Build indexes and explore research landscape (influential papers, clusters, trends) |
| Add a paper, check retractions, attach PDF, find related work |
| Extract biomedical entities from unprocessed abstracts and store them |
Writing with live citations
Both document tools use [@ITEM_KEY] markers in content:
Gastric cancer screening reduces mortality [@ABC123]. Multiple studies
support this finding [@DEF456, @GHI789].write_cited_documentcreates a new .docx from markdowninsert_citationsmodifies an existing .docx (preserves formatting, including tables)Citations are emitted as Vancouver-style superscript numbers
A References section with a live Zotero bibliography field is appended
After opening in Word with the Zotero plugin: click Refresh to populate the bibliography and switch citation styles.
Architecture
┌─────────────┐ reads+writes ┌──────────────────┐
│ MCP client │ ──────────────>│ Zotero Web API │
│ │ │ api.zotero.org │
│ │ reads (fast) ├──────────────────┤
│ │ ─ ─ ─ ─ ─ ─ ─>│ Zotero Desktop │
│ │ (optional) │ localhost:23119 │
│ │ resolves ├──────────────────┤
│ │ ──────────────>│ Translation Srv │
│ │ │ PubMed/CrossRef │
│ │ analysis ├──────────────────┤
│ │ ──────────────>│ OpenAlex │
│ │ │ CrossRef updates │
│ │ knowledge ├──────────────────┤
│ │ graph + FTS5 │ SQLite + NetworkX│
│ │ │ (local cache) │
│ │ related ├──────────────────┤
│ │ papers │ Semantic Scholar │
└─────────────┘ └──────────────────┘Setup
1. Create a Zotero Web API key (required)
Go to zotero.org/settings/keys
Create a key with write access to your library
Copy the API key and note your User ID
2. Enable Zotero's local API (optional, for faster reads)
In Zotero Desktop: Settings > Advanced > General > enable Allow other applications on this computer to communicate with Zotero. This is optional — without it, all reads go through the Web API.
3. Install
Option A — uvx (recommended, no clone needed):
Install uv first if you don't have it: astral.sh/uv (one-line install on macOS/Linux). Then use zotero-mcp-plus for the base install or zotero-mcp-plus[graph,fulltext] for the full feature set (see Quickstart above). Your MCP client runs uvx directly — no separate install step.
Option B — local install:
git clone https://github.com/alisoroushmd/zotero-mcp.git
cd zotero-mcp
pip install -e ".[graph,fulltext]"Then configure your MCP client to run python -m zotero_mcp.
4. Set up OpenAlex API key (required for analysis and knowledge graph tools)
OPENALEX_API_KEY is required for: check_retractions, get_citation_graph, check_published_versions, build_index(type='graph'), query_knowledge_graph, query_authors, and export_knowledge_graph. OpenAlex requires a free API key as of Feb 2026:
Register at openalex.org/users/me
Set
OPENALEX_API_KEYin your MCP client config
5. Install knowledge graph support (optional)
With uvx (add to your MCP client config args):
zotero-mcp-plus[graph]With pip (local install):
pip install "zotero-mcp-plus[graph]"Adds networkx, numpy, and scipy for build_index(type='graph'), query_knowledge_graph, query_authors, and export_knowledge_graph. find_related_papers works without it (uses Semantic Scholar API directly).
Optionally set SEMANTIC_SCHOLAR_API_KEY for improved rate limits.
6. Install full-text search support (optional)
With uvx (add to your MCP client config args):
zotero-mcp-plus[fulltext]With pip (local install):
pip install "zotero-mcp-plus[fulltext]"Adds pypdf for extracting text from PDFs. Used by build_index(type='fulltext') to build a searchable FTS5 index. Without it, search_fulltext and build_index(type='fulltext') return an install prompt.
Environment variables
Variable | Required | Description |
| Yes | Zotero Web API key — get at zotero.org/settings/keys |
| Yes | Zotero user/group ID — same page as the API key |
| For analysis/graph tools | Required for |
| No | Your email address. Sent in User-Agent headers to CrossRef/OpenAlex polite pools and required for Unpaywall PDF lookup in |
| No | Improves rate limits for |
| No | Override path to Zotero desktop data directory (default: |
| No | Override path for the knowledge-graph SQLite database (default: |
| No | Standard XDG override for the default graph DB location. |
| No | Set to |
Troubleshooting
Problem | Cause | Fix |
| Missing env vars | Set |
| Python SSL misconfiguration | Run |
|
| Unpaywall requires a real email address. Set |
Analysis tools fail without obvious error |
|
|
Reads are slow | Zotero desktop not running; reads go through Web API | Start Zotero and enable local API for faster reads (optional) |
Item not found after creation | Zotero sync lag | Items created via Web API appear locally after Zotero syncs (usually seconds) |
| Item was modified between read and write | Retry the operation; the server uses optimistic locking |
Translation server 503 | translate.zotero.org is intermittent | The server falls back to PubMed and CrossRef automatically |
Orphan server processes accumulate | Parent exits without closing stdin | Normal behavior is auto-handled by the watchdog. Disable with |
Development
pip install -e ".[dev,graph,fulltext]"
python -m pytest tests/ -vLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alisoroushmd/zotero-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server