A Zotero integration layer for agents, apps, and scripts, with Web API sync, HTTP/MCP access, semantic search over libraries, and recoverable headless state.
Project description
zotbridge
zotbridge is a Zotero integration layer for agents, apps, and scripts, with Web API sync, HTTP/MCP access, semantic search over libraries, and recoverable headless state. It keeps the local project surface small:
- canonical SQLite store
- Zotero Web API sync for personal and group libraries
- HTTP API and MCP server for tool-capable clients
- qmd-backed semantic search over exported Markdown
- skills for clients that support them
- recovery snapshots for canonical state and derived artifacts
It no longer ships a Zotero Desktop helper, reads or writes zotero.sqlite, or bundles native client plugin projects.
Current Zotero Baseline
The current tracked Zotero baseline is Zotero 9.0.5, released June 10, 2026. The runtime avoids depending on Zotero Desktop internals so routine Zotero Desktop changes should not force project updates. Zotero 9 citation-key fields are preserved in normalized item payloads where present, and remote writes use the Web API.
Install
uv tool install zotbridge
# or, from a checkout:
uv run --no-editable zotbridge version
Useful entry points:
zotbridge # human-oriented CLI
zotbridge raw ... # strict JSON/machine-friendly commands
zotbridge-daemon serve # HTTP API daemon
zotbridge-mcp # MCP stdio server
Setup
Run the wizard:
zotbridge setup start
Or configure directly:
zotbridge config init \
--api-key "$ZOTERO_API_KEY" \
--remote-library-id user:123456 \
--default-library-id user:123456
Discover and sync remote libraries:
zotbridge raw sync discover
zotbridge raw sync pull --library user:123456
Integration
Use MCP setup when a client can call MCP tools:
zotbridge setup add codex --scope user
zotbridge setup add claude-code --scope project
zotbridge setup add cursor --scope project
zotbridge setup add json
Use skills when a client supports them:
zotbridge skill install codex
zotbridge skill install claude-code
zotbridge skill install cline
zotbridge skill export claude-desktop
There is no native client plugin install/update flow. The intended distribution boundary is the Python runtime plus MCP/HTTP config and skills.
Runtime
Start the API daemon:
zotbridge-daemon serve --host 127.0.0.1 --port 23119 --sync-interval 300
Useful endpoints:
GET /healthGET /capabilitiesGET /daemon/statusGET /librariesGET /libraries/{library_id}/itemsPOST /sync/discoverPOST /sync/pullPOST /sync/pushPOST /recovery/snapshots
Search
Export Markdown and query through qmd:
zotbridge qmd export --library user:123456
zotbridge qmd query "retrieval augmented generation"
zotbridge qmd vsearch "semantic search over papers"
zotbridge qmd get "<target-from-result>"
Use qmd for discovery and related-work retrieval, then qmd get to recover the exported source behind a useful hit. Use direct API/CLI/MCP reads for exact item keys, collections, and authoritative metadata.
Recovery
Create and inspect snapshots:
zotbridge recovery snapshot-create --reason before-large-sync
zotbridge recovery snapshot-list
zotbridge recovery restore-plan --snapshot <snapshot_id>
Execute a restore only with explicit confirmation:
zotbridge recovery restore-execute --snapshot <snapshot_id> --confirm
For remote libraries, optionally push restored pending changes through the Zotero Web API:
zotbridge recovery restore-execute --snapshot <snapshot_id> --library user:123456 --push-remote --confirm
Project Layout
src/zotbridge/core/: canonical store and change modelsrc/zotbridge/adapters/web_sync.py: Zotero Web API sync adaptersrc/zotbridge/api.py: HTTP APIsrc/zotbridge/mcp.py: MCP stdio serversrc/zotbridge/agent_setup.py: MCP config and skill installerssrc/zotbridge/recovery.py: snapshots and restore flowtests/: Python runtime and integration testsdocs/: focused CLI, API, MCP, skills, sync, and recovery docs
Removed Surface
The desktop/helper/plugin surface has been intentionally removed:
- no bundled Zotero Desktop helper workflow
- no local
zotero.sqliteadapter - no
/local/*HTTP API routes - no
zotero_local_*MCP tools - no plugin install/update commands
- no packaged client plugin bundles
This keeps the project lighter and better isolated from Zotero Desktop internals.
Verification
uv run pytest -q
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 zotbridge-1.2.0.tar.gz.
File metadata
- Download URL: zotbridge-1.2.0.tar.gz
- Upload date:
- Size: 106.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
584f81cc68bbc9693f66245f2aab3d49b03bc5a808a3c59df091369eb8f43b9e
|
|
| MD5 |
cb5da6bba3934ffaf0c99d853a367f80
|
|
| BLAKE2b-256 |
048129f758761554d5bb3e0f526d95203507aadcde3b5fb8289c6736a8c05855
|
Provenance
The following attestation bundles were made for zotbridge-1.2.0.tar.gz:
Publisher:
publish.yml on robinradx/zotbridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zotbridge-1.2.0.tar.gz -
Subject digest:
584f81cc68bbc9693f66245f2aab3d49b03bc5a808a3c59df091369eb8f43b9e - Sigstore transparency entry: 1973127504
- Sigstore integration time:
-
Permalink:
robinradx/zotbridge@5e921569b900de1de01fba8d91c4fdf84a9c83f4 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/robinradx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5e921569b900de1de01fba8d91c4fdf84a9c83f4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zotbridge-1.2.0-py3-none-any.whl.
File metadata
- Download URL: zotbridge-1.2.0-py3-none-any.whl
- Upload date:
- Size: 92.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611296d4fea444028d501c82158d435eef14189e8d794b7537470e5c27908422
|
|
| MD5 |
aca65853bd7c10ba6fba907b50b07af2
|
|
| BLAKE2b-256 |
4533e614597b21bf0f8b0e5be3eeccfd144103814038b121fa3512d924de2438
|
Provenance
The following attestation bundles were made for zotbridge-1.2.0-py3-none-any.whl:
Publisher:
publish.yml on robinradx/zotbridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zotbridge-1.2.0-py3-none-any.whl -
Subject digest:
611296d4fea444028d501c82158d435eef14189e8d794b7537470e5c27908422 - Sigstore transparency entry: 1973127566
- Sigstore integration time:
-
Permalink:
robinradx/zotbridge@5e921569b900de1de01fba8d91c4fdf84a9c83f4 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/robinradx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5e921569b900de1de01fba8d91c4fdf84a9c83f4 -
Trigger Event:
push
-
Statement type: