Research-focused MCP server and setup helper for Zotero
Project description
Curator for Zotero
Curator for Zotero is a research-focused MCP server for Zotero. It lets AI coding and research assistants search your library, inspect metadata, read indexed attachment text in manageable chunks, navigate outlines/sections, and safely organize items with dry-run-first write tools.
This project is independently maintained and is based on the MIT-licensed kujenga/zotero-mcp. See ACKNOWLEDGEMENTS.md and LICENSE.
Why this repo exists
The original Python MCP server was useful but awkward to configure across Codex, Claude Desktop, Cursor, Claude Code, and other clients because each app needed a hand-maintained virtualenv path. Curator fixes that by making the server a normal installable tool with one stable command:
zotero-curator serve
That command can be installed once with uv tool install or run without a persistent venv through uvx.
Install
uv tool install zotero-curator
zotero-curator setup --local
zotero-curator doctor
Zero-install client command:
uvx --from zotero-curator zotero-curator serve
From a local checkout:
uv sync --extra dev
uv run zotero-curator doctor
uv run pytest
uv run ruff check .
Zotero local API setup
- Open Zotero.
- Go to Settings → Advanced → Allow other applications on this computer to communicate with Zotero.
- Run:
zotero-curator setup --local
zotero-curator doctor
Local mode uses library id 0 and does not require an API key.
Web API setup
zotero-curator setup --web --library-id YOUR_LIBRARY_ID --api-key YOUR_API_KEY
For group libraries, add --library-type group.
MCP client config
Claude/Cursor-style JSON:
{
"mcpServers": {
"zotero": {
"command": "zotero-curator",
"args": ["serve"]
}
}
}
Codex TOML:
[mcp_servers.zotero]
command = "zotero-curator"
args = ["serve"]
Zero-install uvx TOML:
[mcp_servers.zotero]
command = "uvx"
args = ["--from", "zotero-curator", "zotero-curator", "serve"]
Generate config snippets:
zotero-curator mcp-config --format json
zotero-curator mcp-config --format toml
zotero-curator mcp-config --uvx --format toml
Release instructions are in docs/release.md. Claude Desktop MCPB bundle notes are in docs/mcpb.md.
Add arXiv papers
Curator can create a Zotero preprint item directly from an arXiv id, abstract URL, or PDF URL:
zotero-curator add-arxiv https://arxiv.org/abs/2410.03529
The command is dry-run-first. To apply it, enable writes globally and pass --apply:
zotero-curator setup --local --write-enabled
zotero-curator add-arxiv 2410.03529 --tag AI --collection COLLECTION_KEY --apply
This imports arXiv metadata first and stores the PDF as a Zotero file attachment by default. Use --link-pdf to attach only the arXiv PDF URL, --no-pdf to create only the metadata item, or --pdf-mode {stored,linked,none} for explicit control.
Settings
Curator stores central settings in:
~/.config/zotero-curator/config.toml
Example:
[zotero]
local = true
library_type = "user"
library_id = "0"
write_enabled = false
response_format = "markdown"
Environment variables override file settings:
| Variable | Purpose |
|---|---|
ZOTERO_LOCAL |
true for local API, false for Web API |
ZOTERO_LIBRARY_ID |
Zotero user/group library id |
ZOTERO_LIBRARY_TYPE |
user or group |
ZOTERO_API_KEY |
Zotero Web API key |
ZOTERO_WRITE_ENABLED |
Enable non-dry-run write tools |
ZOTERO_CURATOR_CONFIG |
Override settings file path |
ZOTERO_CURATOR_CONFIG_DIR |
Override settings directory |
Tools
Read/navigation:
zotero_healthcheckzotero_diagnosticszotero_search_itemszotero_find_item_by_doizotero_item_metadatazotero_item_fulltextzotero_item_fulltext_infozotero_pdf_pages(pdfextra)zotero_pdf_outline(pdfextra)zotero_item_text_chunkzotero_item_search_textzotero_item_outlinezotero_item_read_sectionzotero_item_childrenzotero_list_collectionszotero_collection_itemszotero_list_tagszotero_semantic_rebuild(semanticextra)zotero_semantic_search(semanticextra)
Write/organization tools are dry-run-first and additionally require write_enabled = true for real changes:
zotero_write_statuszotero_add_arxivzotero_create_collectionzotero_rename_collectionzotero_delete_collectionzotero_update_item_tagszotero_update_item_collectionszotero_update_item_metadatazotero_create_child_notezotero_apply_organization_plan
Safety model
Write tools default to dry_run=true. Real write calls require both:
write_enabled = truein settings, orZOTERO_WRITE_ENABLED=true.- The individual tool call sets
dry_run=false.
This makes accidental library mutations much harder.
Optional extras
The base install stays small. Heavy PDF and semantic dependencies are opt-in:
uv tool install 'zotero-curator[pdf]'
uv tool install 'zotero-curator[semantic]'
uv tool install 'zotero-curator[all]'
From a checkout:
uv pip install --python .venv/bin/python -e '.[pdf]'
uv pip install --python .venv/bin/python -e '.[semantic]'
The pdf extra enables page-aware PDF reads and bookmark extraction from stored Zotero attachments. The semantic extra stores a local Chroma index under the platform data directory shown by zotero-curator doctor; rebuild with zotero_semantic_rebuild after major library changes, then search with zotero_semantic_search. See docs/optional-extras.md for storage and rebuild details.
Runtime diagnostics
Curator writes structured JSONL runtime logs under the platform log directory shown by:
zotero-curator doctor
Set response_format = "json" in the central settings file, or set ZOTERO_CURATOR_RESPONSE_FORMAT=json, to make action-style write responses return structured JSON instead of Markdown. The zotero_diagnostics MCP tool reports resolved settings, log paths, and Zotero API reachability.
Batch organization plans include completed/error counts and a per-step report. Automatic rollback is intentionally not attempted; use the report to build and dry-run a corrective plan before applying fixes.
Development status
Implemented:
- Python package with console scripts:
zotero-curatorand compatibility aliaszotero-mcp. - Central settings, diagnostics, and structured runtime logs.
- Client config generation for JSON and TOML MCP clients.
- Read/search/full-text tools.
- Dry-run-first write tools.
- arXiv preprint import from IDs, abstract URLs, and PDF URLs.
- Test and lint configuration.
- CI skeleton.
Next polish:
- PyPI trusted publishing and signed GitHub releases.
- Claude Desktop
.mcpbpackaging. - Optional semantic index and PDF extraction extras.
- Richer structured JSON responses while keeping Markdown defaults.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zotero_curator-0.1.0.tar.gz.
File metadata
- Download URL: zotero_curator-0.1.0.tar.gz
- Upload date:
- Size: 301.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd7ae1739a9dbf06851fb039fdc565ffbd4472edf54189495de2646912744f5
|
|
| MD5 |
cb53a680395459624e3562e88d978be4
|
|
| BLAKE2b-256 |
aade1ae6b884d845badb8b416ff39d6ca8a38b625c42259a0e7ef971c45e0425
|
File details
Details for the file zotero_curator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zotero_curator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50d05fdbf6f9a943afba78a4f422577aae3a5bfd8fa9e46caee627f988e4e3aa
|
|
| MD5 |
2493f94e495962b08de29e8eface5069
|
|
| BLAKE2b-256 |
6d12a181b3d01fd01252d6c062d63fa55778e31cf078f1e7633289eba8825151
|