Zotero MCP Server
Gives LLMs full access to a Zotero research library, either through the Zotero Web API or the local zotero.sqlite database: searching items by query, tags, type or collection, retrieving complete metadata, creators and collections, extracting and searching PDF full text, reading notes and PDF annotations/highlights, generating formatted bibliographies (APA, MLA, Chicago, etc.), finding related items, and listing recent additions along with tags, collections and library statistics.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Zotero MCP Server
A Model Context Protocol (MCP) server that provides comprehensive access to your Zotero research library. Give LLMs full context about your papers, including metadata, abstracts, notes, annotations, and full-text PDF content.
Features
š Full Library Search: Search items by title, author, tags, or full-text content
š Complete Metadata: Access all item fields, creators, tags, and collections
š Full-Text Access: Extract and search PDF content
āļø Annotations & Notes: Access PDF highlights, comments, and user notes
š Citations: Generate formatted bibliographies in various styles (APA, MLA, Chicago, etc.)
š Dual Backend: Switch between Web API (remote) and local SQLite database
Related MCP server: Zotero MCP Server
Quick Start
Prerequisites
Check if Node.js is installed:
node -vIf not installed or version is below 18, download from nodejs.org (LTS recommended) or use a version manager:
# Windows (winget)
winget install OpenJS.NodeJS.LTS
# macOS (Homebrew)
brew install node
# Linux (apt)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsInstallation
# Clone the repository
git clone https://github.com/drxaibi/zotero-mcp.git
cd zotero-mcp
# Install dependencies
npm install
# Build the project
npm run buildGet Your Zotero API Key
Go to Zotero API Keys
Create a new key with these permissions:
ā Allow library access
ā Allow notes access
ā Allow write access (not needed)
Note your User ID shown at the top of the keys page
Copy the generated API key
Configuration
Choose your AI assistant and follow the setup instructions:
MCP Configuration
Add the following configuration to your MCP client. Replace the path with your actual zotero-mcp location:
{
"mcpServers": {
"zotero": {
"command": "node",
"args": ["C:/path/to/zotero-mcp/dist/index.js"],
"env": {
// Web API mode (default)
"ZOTERO_API_KEY": "your-api-key-here",
"ZOTERO_USER_ID": "your-user-id-here"
// Local mode (uncomment below, comment out API_KEY and USER_ID above)
// "ZOTERO_MODE": "local",
// "ZOTERO_DATA_DIR": "" // Leave empty for auto-detection, or set your path
}
}
}
}Path format: Use forward slashes (
/) or escaped backslashes (\\). Always use absolute paths.
Local mode: Close Zotero app before using (SQLite file locking).
Note for VS Code + Copilot: Use "servers" instead of "mcpServers" as the root key:
{
"servers": {
"zotero": {
"command": "node",
"args": ["C:/path/to/zotero-mcp/dist/index.js"],
"env": {
// Web API mode (default)
"ZOTERO_API_KEY": "your-api-key-here",
"ZOTERO_USER_ID": "your-user-id-here"
// Local mode (uncomment below, comment out API_KEY and USER_ID above)
// "ZOTERO_MODE": "local",
// "ZOTERO_DATA_DIR": "" // Leave empty for auto-detection, or set your path
}
}
}
}Where to Add Configuration
Client | Config File Location | Root Key |
Claude Desktop | Windows: |
|
VS Code + Copilot |
|
|
VS Code + Claude |
|
|
Claude Code (CLI) | Windows: |
|
Cursor |
|
|
After adding configuration, restart your client to load the server.
Configuration Options
Setting | Default | Description |
| required | Your Zotero API key |
| required | Your Zotero user ID |
|
|
|
| empty | Group library ID (if accessing group instead of personal) |
|
| Results per query (1-100) |
|
| Cache duration in seconds |
|
| Max characters for full-text extraction |
| auto-detected | Path to Zotero data folder (local mode only) |
|
| Enable/disable response caching |
|
| Enable PDF text extraction |
Full configuration with all options:
{
"mcpServers": {
"zotero": {
"command": "node",
"args": ["C:/path/to/zotero-mcp/dist/index.js"],
"env": {
// Required for Web API mode
"ZOTERO_API_KEY": "your-api-key-here",
"ZOTERO_USER_ID": "your-user-id-here",
// Optional settings
"ZOTERO_MODE": "web",
"ZOTERO_GROUP_ID": "",
"ZOTERO_DEFAULT_LIMIT": "25",
"ZOTERO_CACHE_ENABLED": "true",
"ZOTERO_CACHE_TTL": "300",
"ZOTERO_EXTRACT_PDF": "true",
"ZOTERO_MAX_FULLTEXT_LENGTH": "100000"
// Local mode (uncomment and comment out API_KEY/USER_ID above)
// "ZOTERO_MODE": "local",
// "ZOTERO_DATA_DIR": "" // Leave empty for auto-detection, or set your path
}
}
}
}Local mode notes:
No API key needed - just set
ZOTERO_MODEtolocalZotero app must be closed when using local mode (SQLite file locking)
Finding your Zotero data directory:
Open Zotero app
Go to Edit ā Settings (Windows/Linux) or Zotero ā Settings (macOS)
Click Advanced ā Files and Folders
Look for Data Directory Location ā copy this path
Auto-detection: Leave ZOTERO_DATA_DIR empty ("") or omit it entirely. The server will automatically look for:
Windows:
C:\Users\<YourUsername>\ZoteromacOS:
/Users/<YourUsername>/ZoteroLinux:
/home/<YourUsername>/Zotero
If auto-detection fails, set the exact path from Zotero settings:
"ZOTERO_DATA_DIR": "C:/Users/John/Zotero" // Use YOUR actual pathAvailable Tools
Tool | Description |
| Search items by query, tags, type, or collection |
| Get complete item details with all metadata |
| Extract full text from PDFs |
| Get all notes attached to an item |
| Get PDF highlights and comments |
| List all collections |
| Get items in a collection |
| List all tags with counts |
| Search across all PDF content |
| Generate formatted citations |
| Find related items |
| Get recently added/modified items |
Available Resources
Resource | Description |
| Library statistics overview |
| Full collection hierarchy |
| All tags with item counts |
| Recently modified items |
| Supported item types |
Example Prompts
Once connected, you can ask Claude things like:
"Search my Zotero library for papers about machine learning"
"Get the full text of the paper with key ABC123"
"What annotations did I make on this paper?"
"Show me all papers in my 'Literature Review' collection"
"Find papers tagged with 'methodology'"
"Generate APA citations for these three papers"
"What papers did I add this week?"
"Summarize the key findings from my climate change papers"
Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Server (index.ts) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Tools ā Resources ā
ā - search_library ā - zotero://library/stats ā
ā - get_item ā - zotero://collections ā
ā - get_fulltext ā - zotero://tags ā
ā - ... ā - ... ā
āāāāāāāāāāāāāāāāāāāāāāā“āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Backend Interface ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā Web API Backend ā Local SQLite Backend ā
ā (api.zotero.org) ā (zotero.sqlite) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāTroubleshooting
"ZOTERO_API_KEY is required"
Make sure you've set the environment variables in your MCP configuration.
"Could not detect Zotero data directory"
In local mode, set ZOTERO_DATA_DIR to your Zotero data folder path explicitly.
"Database is locked" (Local mode)
Close Zotero before using local mode. Zotero locks the SQLite database while running.
No full-text results
Make sure Zotero has indexed your PDFs. In Zotero: Edit ā Preferences ā Search ā Rebuild Index.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Citation
If you use this project in your research or work, please cite it:
@software{zotero_mcp_2026,
author = {drxaibi},
title = {Zotero MCP Server: Model Context Protocol Server for Zotero},
year = {2026},
url = {https://github.com/drxaibi/zotero-mcp},
note = {A Model Context Protocol server providing LLM access to Zotero research libraries}
}Or in text format:
drxaibi. (2026). Zotero MCP Server: Model Context Protocol Server for Zotero. GitHub. https://github.com/drxaibi/zotero-mcp
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Zotero - The amazing open-source reference manager
Model Context Protocol - The protocol that makes this possible
Anthropic - For Claude and the MCP SDK
Related Projects
Zotero - The Zotero client
pyzotero - Python client for Zotero API
MCP Servers - Official MCP server examples
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Academic literature search, retrieval, and private library management on top of OpenAlex.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access a Zotero library, searching items and retrieving their metadata and full text. Supports both the local Zotero desktop API and the Zotero Web API.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access a Zotero library, searching items by text query and retrieving complete item metadata or full text such as PDF contents. It works against either the Zotero desktop app's local API or the Zotero Web API.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to search a Zotero library for items, retrieve complete item metadata, and read the full text of PDF attachments. It connects to either the local Zotero desktop API or the Zotero Web API, returning formatted results that clients can use sequentially.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to search a Zotero library and retrieve item metadata and full-text PDF content. It can connect either to the Zotero desktop app's local API or to the Zotero Web API, returning formatted text that clients can chain together.-