Zotero
cookjohn/zotero-mcp · 784 stars · TypeScript · MIT
MCP server It's a plugin extension in Zotero. Zotero MCP Plugin enables integration between AI assistants and Zotero through MCP. Zotero MCP Plugin 是一个 Zotero 插件,通过 MCP协议实现 AI 助手与 Zotero深度集成。插件支持文献检索、元 数据管理、全文分析和智能问答等功能,让 Claude、ChatGPT 等 AI 工具能够直接访问和操作您的文献库。
Install
The repo has no one-line install. Follow its README.
Files
Zotero MCP - Model Context Protocol Integration for Zotero
Zotero MCP is an open-source project designed to seamlessly integrate powerful AI capabilities with the leading reference management tool, Zotero, through the Model Context Protocol (MCP). This project consists of two core components: a Zotero plugin and an MCP server, which work together to provide AI assistants (like Claude) with the ability to interact with your local Zotero library. _This README is also available in: :cn: 简体中文 | :gb: English._
Fork us on Wechat
📚 Project Overview
The Zotero MCP server is a tool server based on the Model Context Protocol that provides seamless integration with the Zotero reference management system for AI applications like Claude Desktop. Through this server, AI assistants can:
- 🔍 Smart Search: Multi-dimensional library search (title/creator/year/tags/fulltext/semantic) with boolean operators and relevance scoring
- 📖 Content Extraction: Extract PDF full-text, notes, abstracts, webpage snapshots with fine-grained mode control
- 📝 Annotation Analysis: Search and analyze PDF highlights and annotations by color, tags, and keywords
- 📂 Collection Browsing: Browse and search collection hierarchies, retrieve items within collections
- 🧠 Semantic Search: AI-powered concept matching via embedding vectors, discover related literature across languages
- ✏️ Write Operations: Create notes, manage tags, update metadata, create new items and attach PDFs
- 💾 Full-text Database: Access and search cached PDF full-text content
This enables AI assistants to help you with literature reviews, citation management, content analysis, annotation organization, knowledge base management, and more.
🚀 Project Structure
This project now features a unified architecture with an integrated MCP server:
zotero-mcp-plugin/: A Zotero plugin with integrated MCP server that communicates directly with AI clients via Streamable HTTP protocolIMG/: Screenshots and documentation imagesREADME.md/README-zh.md: Documentation files
Unified Architecture:
AI Client ↔ Streamable HTTP ↔ Zotero Plugin (with integrated MCP server)
This eliminates the need for a separate MCP server process, providing a more streamlined and efficient integration.
🚀 Quick Start Guide
This guide is intended to help general users quickly configure and use Zotero MCP, enabling your AI assistant to work seamlessly with your Zotero library.
1. Installation (For General Users)
What is Zotero MCP?
Simply put, Zotero MCP is a bridge connecting your AI client (like Cherry Studio, Gemini CLI, Claude Desktop, etc.) and your local Zotero reference management software. It allows your AI assistant to directly search, query, and cite references from your Zotero library, greatly enhancing academic research and writing efficiency.
Two-Step Quick Start:
- Install the Plugin:
- Go to the project's Releases Page to download the latest
zotero-mcp-plugin-x.x.x.xpifile. - In Zotero, install the
.xpifile viaTools -> Add-ons. - Restart Zotero.
- Configure the Plugin:
- In Zotero's
Preferences -> Zotero MCP Plugintab, configure your connection settings: - Enable Server: Start the integrated MCP server
- Port: Default is
23120(you can change this if needed) - Generate Client Configuration: Click this button to get configuration for your AI client
2. Connect to AI Clients
Important: The Zotero plugin now includes an integrated MCP server that uses the Streamable HTTP protocol. No separate server installation is needed.
#### Streamable HTTP Connection
The plugin uses Streamable HTTP, which enables real-time bidirectional communication with AI clients:
- Enable Server in the Zotero plugin preferences
- Generate Client Configuration by clicking the button in plugin preferences
- Copy the generated configuration to your AI client
#### Supported AI Clients
- Claude Desktop: Streamable HTTP MCP support
- Cherry Studio: Streamable HTTP support
- Cursor IDE: Streamable HTTP MCP support
- Custom implementations: Streamable HTTP protocol
For detailed client-specific configuration instructions, see the Chinese README.
👨💻 Developer Guide
Prerequisites
- Zotero 7.0 or higher
- Node.js 18.0 or higher
- npm or yarn
- Git
Step 1: Install and Configure the Zotero Plugin
- Download the latest
zotero-mcp-plugin.xpifrom the Releases Page. - Install it in Zotero via
Tools -> Add-ons. - Enable the server in
Preferences -> Zotero MCP Plugin.
Step 2: Development Setup
- Clone the repository:
git clone https://github.com/cookjohn/zotero-mcp.git
cd zotero-mcp
- Set up the plugin development environment:
cd zotero-mcp-plugin
npm install
npm run build
- Load the plugin in Zotero:
# For development with auto-reload
npm run start
# Or install the built .xpi file manually
npm run build
Step 3: Connect AI Clients (Development)
The plugin includes an integrated MCP server that uses Streamable HTTP:
- Enable the server in Zotero plugin preferences
- Generate client configuration using the plugin's built-in generator
- Configure your AI client with the generated Streamable HTTP configuration
Example configuration for Claude Desktop:
{
"mcpServers": {
"zotero": {
"transport": "streamable_http",
"url": "http://127.0.0.1:23120/mcp"
}
}
}
🧩 Features
zotero-mcp-plugin Features
- Integrated MCP Server: Built-in MCP server using Streamable HTTP protocol, no separate process needed
- Advanced Search Engine: Full-text search with boolean operators, relevance scoring, filtering by title, creator, year, tags, item type, and more
- Unified Content Extraction: Extract content from PDFs, attachments, notes, abstracts, webpage snapshots with four modes (minimal/preview/standard/complete)
- Smart Annotation System: Search and retrieve PDF highlights, annotations, and notes by color, tags, and keywords with intelligent ranking
- Collection Management: Browse, search collection hierarchies, get collection details, subcollections, and item lists
- Semantic Search: AI-powered semantic search using embedding vectors
- Supports OpenAI and Ollama embedding APIs (auto-detection)
- Vector indexing with SQLite-vec storage
- Index status column in main library view
- Collection/item context menu for index management
- Write Operations: Create/modify notes, manage tags, update metadata fields, create new items and reparent standalone PDFs
- Full-text Database: Cached PDF full-text database with list, search, get, and stats operations
- Standalone Attachment Management: Search and manage standalone PDF items without parent metadata
- Client Configuration Generator: Automatically generates configuration for various AI clients
- Security: Local-only operation ensuring complete data privacy
- User-Friendly: Easy configuration through Zotero preferences interface
📸 Screenshots
Here are some screenshots demonstrating the functionality of Zotero MCP:
🔧 API Reference (MCP Tools)
The integrated MCP server provides 29 tools in 5 categories:
1. Search & Query (7 tools)
#### search_library Advanced library search with multi-dimensional filtering, boolean operators, relevance scoring, and intelligent mode control.
q,title,titleOperator,yearRange,fulltext,fulltextMode,itemType,includeAttachments,mode(minimal/preview/standard/complete),relevanceScoring,sort,limit,offset
#### search_annotations Search annotations by query, colors, or tags with intelligent ranking.
q,itemKeys,types(note/highlight/annotation/ink/text/image),colors,tags,mode,limit,offset
#### search_fulltext Full-text search across all document content with context snippets.
q(required),itemKeys,mode,contextLength,caseSensitive
#### search_collections
Facts
- Kind
- MCP server
- Repo
- cookjohn/zotero-mcp
- Group
- Uncategorized
- Stars
- 784
- License
- MIT
- Language
- TypeScript
- Last push
- 2026-09-09
- Forks
- 100
- Topics
- literature-review, mcp-server, zotero
- 1Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 2Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
- 3Gitmodelcontextprotocol/serversA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.85.8k
- 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
- 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
- 6Timemodelcontextprotocol/serversA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.85.8k