zotero-mcp
Provides read-only access to a Zotero library for browsing collections, items, notes, attachments, tags, citations, and exporting references in various formats.
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-mcplist my recent journal articles"
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
Read-only MCP server for browsing, searching, and exporting a Zotero library from AI assistants such as Claude.
Features
Read-only access to collections, saved searches, items, notes, attachments, tags, and citations
Structured JSON responses (
output_format="json") for AI clients that prefer machine-readable outputText responses by default for chat-oriented clients
Pagination hints, filter validation, and normalized metadata fields
Shared HTTP client with retry/backoff and clearer upstream error handling
Available tools
Tool | Description |
| List non-search collections |
| List saved searches |
| List items with optional type/tag filters |
| List items from a specific collection |
| List items returned by a saved search |
| Fetch normalized metadata for a single item |
| Fetch note content for a note item |
| Fetch attachment metadata |
| Full-text or title/creator/year search |
| List tags with item counts |
| List note/attachment children for an item |
| Render a citation in a Zotero style such as APA or MLA |
| Export an item as BibTeX, BibLaTeX, RIS, MODS, Refer, or CSL JSON |
Requirements
Python 3.12+
Your numeric Zotero user or group library ID
Setup
1 — Get your API credentials
Sign in at zotero.org and open Settings → Feeds/API.
Create a new private key with read-only access to your library.
Note the generated key and your numeric User ID or Group ID.
2 — Set environment variables
Variable | Required | Default | Description |
| ✅ | — | Zotero API key |
| ✅ | — | Numeric user or group library ID |
|
|
| |
|
| Override for alternate Zotero API bases | |
|
| Python logging level for request/retry observability |
export ZOTERO_API_KEY="your_api_key_here"
export ZOTERO_LIBRARY_ID="123456"
export ZOTERO_LIBRARY_TYPE="user" # or "group"3 — Install dependencies
With uv:
uv syncWith pip:
python -m pip install -e .4 — Run the server
python main.pyOr via the installed package entrypoint:
python -m zotero_mcpClient configuration
Claude Desktop
Add the following to claude_desktop_config.json:
{
"mcpServers": {
"zotero": {
"command": "python",
"args": ["/absolute/path/to/zotero-mcp/main.py"],
"env": {
"ZOTERO_API_KEY": "your_api_key_here",
"ZOTERO_LIBRARY_ID": "123456",
"ZOTERO_LIBRARY_TYPE": "user"
}
}
}
}Restart Claude Desktop after saving.
Generic stdio MCP clients
Any stdio-based MCP client can launch the server with:
{
"command": "python",
"args": ["/absolute/path/to/zotero-mcp/main.py"],
"env": {
"ZOTERO_API_KEY": "your_api_key_here",
"ZOTERO_LIBRARY_ID": "123456",
"ZOTERO_LIBRARY_TYPE": "user"
}
}Structured output
Every tool supports:
output_format="text"(default)output_format="json"
JSON mode is useful when an MCP client or agent wants explicit paging and normalized metadata:
{
"paging": {
"start": 0,
"returned": 25,
"total": 143,
"next_start": 25,
"has_more": true
}
}Common workflows
Browse a collection:
list_collection_items(collection_key="ABCD1234")Explore saved searches:
list_saved_searches(output_format="json")Fetch richer child data:
get_item_children(item_key="ABCD1234", item_type="note")Export a reference:
export_item(item_key="ABCD1234", export_format="bibtex")Render a formatted citation:
get_item_citation(item_key="ABCD1234", style="mla")
Example prompts for AI clients
“List my saved searches as JSON.”
“Show the latest 10 journal articles tagged
ai.”“Export item
ABCD1234as BibTeX.”“Get the note content for Zotero item
NOTE1234.”“List attachments for item
ABCD1234.”
Tool reference
Common pagination and output parameters
Most list tools support:
Parameter | Type | Default | Description |
| int |
| Pagination offset |
| int |
| Items per page (max |
| str |
|
|
list_items
Parameter | Type | Default | Description |
| str | — | Filter by Zotero item type |
| str | — | Filter by tag name |
| str |
|
|
| str |
|
|
list_collection_items / list_saved_search_items
Parameter | Type | Default | Description |
| str | — | Target Zotero key |
| str |
|
|
| str |
|
|
get_item
Parameter | Type | Default | Description |
| str | — | Zotero item key |
| bool |
| Include abstract text |
get_item_children
Parameter | Type | Default | Description |
| str | — | Parent Zotero item key |
| str | — | Optional |
search_items
Parameter | Type | Default | Description |
| str | — | Search terms |
| str |
|
|
| str | — | Optional tag filter |
| str | — | Optional item type filter |
get_item_citation
Parameter | Type | Default | Description |
| str | — | Zotero item key |
| str |
| Citation style |
| str | — | Optional locale such as |
| bool |
| Request wrapped links when supported |
export_item
Parameter | Type | Default | Description |
| str | — | Zotero item key |
| str |
|
|
Known limitations
Read-only: creating, editing, or deleting items is not supported.
Attachment binaries: attachment file content is not downloaded.
Saved searches: the server exposes saved searches as special collections and uses their keys for item listing.
Single library scope: one configured user or group library per server process.
Development
Install dev dependencies
With uv:
uv sync --extra devWith pip:
python -m pip install -e ".[dev]"Run tests
python -m pytest tests/ -vBuild the package
python -m buildProject layout
zotero-mcp/
├── main.py # Compatibility entry point
├── server.json # MCP Registry metadata
├── zotero_mcp/
│ ├── __main__.py # Packaged entry point
│ ├── client.py # Zotero Web API v3 client
│ ├── config.py # Constants and version metadata
│ ├── formatters.py # Text + structured output normalization
│ └── tools.py # MCP tool implementations
└── tests/
├── test_client.py
├── test_formatters.py
├── test_main.py
├── test_server.py
└── test_tools.pyChangelog
0.2.0
Added collection-scoped listing and saved-search discovery tools
Added dedicated note, attachment, citation, and export tools
Added structured JSON output across the tool surface
Added stricter validation, shared HTTP client reuse, and retry/backoff logging
Expanded automated coverage and CI expectations
0.1.0
Initial Zotero MCP server implementation
Six read-only tools for browsing items, collections, tags, and children
Automatic retry on rate-limit (HTTP 429) and transient network errors
MCP Registry publishing
This repository includes a server.json file for MCP Registry publication under:
name:io.github.nadavWeisler/zotero-mcpregistryType:pypiidentifier:nadavweisler-zotero-mcp
To publish a new release:
Publish version
0.2.0(or newer) ofnadavweisler-zotero-mcpto PyPI.Install
mcp-publisher.Run:
mcp-publisher login githubmcp-publisher publish
v2 roadmap ideas
Optional write operations behind explicit opt-in safeguards
Multi-library support
More advanced search composition for large libraries
Client-selectable output modes tuned for specific MCP consumers
This server cannot be installed
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
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/nadavWeisler/zotero-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server