| name | pyzotero |
| description | Interact with Zotero reference management libraries using the pyzotero Python client. Retrieve, create, update, and delete items, collections, tags, and attachments via the Zotero Web API v3. Use this skill when working with Zotero libraries programmatically, managing bibliographic references, exporting citations, searching library contents, uploading PDF attachments, or building research automation workflows that integrate with Zotero. |
| allowed-tools | Read Write Edit Bash |
| license | MIT License |
| compatibility | Requires Python 3.10+ and pyzotero 1.13+. Web API access needs a Zotero API key. Optional CLI and MCP extras require Zotero 7 with local API access enabled. |
| required_environment_variables | [{"name":"ZOTERO_API_KEY","prompt":"Zotero API key.","required_for":"full functionality"},{"name":"ZOTERO_LIBRARY_ID","prompt":"Zotero library id.","required_for":"full functionality"},{"name":"ZOTERO_LIBRARY_TYPE","prompt":"Zotero library type: 'user' or 'group' (default 'user').","required_for":"optional features"}] |
| metadata | {"version":"1.1","skill-author":"K-Dense Inc.","openclaw":{"primaryEnv":"ZOTERO_API_KEY","envVars":["[Truncated]","[Truncated]","[Truncated]"]}} |
Pyzotero
Pyzotero is a Python wrapper for the Zotero API v3. Use it to programmatically manage Zotero libraries: read items and collections, create and update references, upload attachments, manage tags, and export citations.
Current upstream: pyzotero 1.13.0 (PyPI, May 2026). Docs: pyzotero.readthedocs.io.
Authentication Setup
Required credentials — get from https://www.zotero.org/settings/keys:
Store credentials in environment variables or a .env file:
ZOTERO_LIBRARY_ID=your_user_id
ZOTERO_API_KEY=your_api_key
ZOTERO_LIBRARY_TYPE=user # or "group"
See references/authentication.md for full setup details.
Installation
uv add pyzotero
uv add "pyzotero[cli]"
uv add "pyzotero[mcp]"
Quick Start
import os
from pyzotero import Zotero
zot = Zotero(
library_id=os.environ['ZOTERO_LIBRARY_ID'],
library_type=os.environ.get('ZOTERO_LIBRARY_TYPE', 'user'),
api_key=os.environ['ZOTERO_API_KEY'],
)
items = zot.top(limit=10)
for item in items:
print(item['data'][], item[][])
results = zot.items(q=, limit=)
all_items = zot.everything(zot.items())