Zotero MCP: Connects your Zotero research library with Claude and other AI assistants via the Model Context Protocol to discuss papers, get summaries, analyze citations, and more.
Zotero MCP seamlessly connects your Zotero research library with Claude and other AI assistants (Cherry Studio, Cursor, etc.) via the Model Context Protocol. Discuss papers, get summaries, analyze citations, extract PDF annotations, and more!
To install Zotero MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @54yyyu/zotero-mcp --client claude
uv tool install "git+https://github.com/54yyyu/zotero-mcp.git"
zotero-mcp setup # Auto-configure for Claude Desktop
pip install git+https://github.com/54yyyu/zotero-mcp.git
zotero-mcp setup # Auto-configure for Claude Desktop
Keep zotero-mcp up to date with the smart update command:
# Check for updates
zotero-mcp update --check-only
# Update to latest version (preserves all configurations)
zotero-mcp update
Zotero MCP now includes powerful AI-powered semantic search capabilities that let you find research based on concepts and meaning, not just keywords.
After setup, initialize your search database:
# Build the semantic search database
zotero-mcp update-db
# Check database status
zotero-mcp db-status
Example Semantic Queries in Claude:
The semantic search provides similarity scores and finds papers based on conceptual understanding, not just keyword matching.
Full documentation is available at Zotero MCP docs.
Requirements
After installation, either:
zotero-mcp setup
claude_desktop_config.json
:{
"mcpServers": {
"zotero": {
"command": "zotero-mcp",
"env": {
"ZOTERO_LOCAL": "true"
}
}
}
}
Example prompts:
Go to Settings -> MCP Servers -> Edit MCP Configuration, and add the following:
{
"mcpServers": {
"zotero": {
"name": "zotero",
"type": "stdio",
"isActive": true,
"command": "zotero-mcp",
"args": [],
"env": {
"ZOTERO_LOCAL": "true"
}
}
}
}
Then click "Save".
Cherry Studio also provides a visual configuration method for general settings and tools selection.
For accessing your Zotero library via the web API (useful for remote setups):
zotero-mcp setup --no-local --api-key YOUR_API_KEY --library-id YOUR_LIBRARY_ID
Zotero Connection:
ZOTERO_LOCAL=true
: Use the local Zotero API (default: false)ZOTERO_API_KEY
: Your Zotero API key (for web API)ZOTERO_LIBRARY_ID
: Your Zotero library ID (for web API)ZOTERO_LIBRARY_TYPE
: The type of library (user or group, default: user)Semantic Search:
ZOTERO_EMBEDDING_MODEL
: Embedding model to use (default, openai, gemini)OPENAI_API_KEY
: Your OpenAI API key (for OpenAI embeddings)OPENAI_EMBEDDING_MODEL
: OpenAI model name (text-embedding-3-small, text-embedding-3-large)GEMINI_API_KEY
: Your Gemini API key (for Gemini embeddings)GEMINI_EMBEDDING_MODEL
: Gemini model name (models/text-embedding-004, etc.)# Run the server directly
zotero-mcp serve
# Specify transport method
zotero-mcp serve --transport stdio|streamable-http|sse
# Setup and configuration
zotero-mcp setup --help # Get help on setup options
zotero-mcp setup --semantic-config-only # Configure only semantic search
# Updates and maintenance
zotero-mcp update # Update to latest version
zotero-mcp update --check-only # Check for updates without installing
zotero-mcp update --force # Force update even if up to date
# Semantic search database management
zotero-mcp update-db # Update semantic search database
zotero-mcp update-db --force-rebuild # Force complete database rebuild
zotero-mcp db-status # Show database status and info
# General
zotero-mcp version # Show current version
Zotero MCP includes advanced PDF annotation extraction capabilities:
For optimal annotation extraction, it is highly recommended to install the Better BibTeX plugin for Zotero. The annotation-related functions have been primarily tested with this plugin and provide enhanced functionality when it's available.
The first time you use PDF annotation features, the necessary tools will be automatically downloaded.
zotero_semantic_search
: AI-powered similarity search with embedding modelszotero_update_search_database
: Manually update the semantic search databasezotero_get_search_database_status
: Check database status and configurationzotero_search_items
: Search your library by keywordszotero_advanced_search
: Perform complex searches with multiple criteriazotero_get_collections
: List collectionszotero_get_collection_items
: Get items in a collectionzotero_get_tags
: List all tagszotero_get_recent
: Get recently added itemszotero_search_by_tag
: Search your library using custom tag filterszotero_get_item_metadata
: Get detailed metadata (supports BibTeX export via format="bibtex"
)zotero_get_item_fulltext
: Get full text contentzotero_get_item_children
: Get attachments and noteszotero_get_annotations
: Get annotations (including direct PDF extraction)zotero_get_notes
: Retrieve notes from your Zotero libraryzotero_search_notes
: Search in notes and annotations (including PDF-extracted)zotero_create_note
: Create a new note for an item (beta feature)zotero-mcp setup
to configure your environment, or the CLI will automatically load settings from Claude Desktop config--limit
parameter for testing: zotero-mcp update-db --limit 100
zotero-mcp update-db
and check status with zotero-mcp db-status
zotero-mcp update --force
~/.config/zotero-mcp/
for backup filesMIT