zotero-cli
Skill by 54yyyu
Lets an AI assistant read and write a Zotero library from the shell using the zotero-cli command. It suits researchers who want help with saved papers, references, citations and reading notes.
Install zotero-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/54yyyu/zotero-mcp /tmp/zotero-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/zotero-mcp/src/zotero_mcp/skills/zotero-cli ~/.claude/skills/zotero-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/54yyyu/zotero-mcp /tmp/zotero-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/zotero-mcp/src/zotero_mcp/skills/zotero-cli ~/.gemini/antigravity-cli/skills/zotero-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
zotero-cli is a skill that tells an AI assistant to use the zotero-cli command to read and write a Zotero library from the shell. It covers keyword and semantic search, reading PDF full text and page ranges, getting and setting metadata, and managing collections, tags, notes and annotations. The source also says items can be added by DOI, URL or ISBN and bibliographies can be exported.
The skill asks the assistant to pass --json so output has a stable shape, and to work in a find-then-act loop using 8-character item keys. It also covers paging, outlines, page images for garbled pages, and a careful annotation process with dry runs before writing. It is aimed at people who keep references, citations, saved papers and reading notes in Zotero.
Written from the project's SKILL.md and checked against it.
What it can do
- Keyword and semantic searchFinds items by title, author or phrase, or by topic when the exact wording is unknown.
- PDF readingReads full text, page ranges, outlines and matching passages from PDF attachments.
- Metadata accessGets and sets item metadata, including titles and tags.
- Collections and tagsLists collection items and works with tags across the library.
- NotesCreates, lists and updates notes, converting Markdown to Zotero's note format.
- AnnotationsCreates highlights, boxes and sticky notes on PDF pages, with dry-run checks before writing.
- Adding itemsAdds items by DOI and files PDFs from a folder into a named collection.
- Opening items in ZoteroShows a given PDF page or annotation in the Zotero reader.
What you need
- Shell access
- Zotero installed
- Zotero running with the local API enabled for local writes
- Zotero 10 or newer and a one-time zotero-mcp authorize-local for local writes
- ZOTERO_API_KEY and ZOTERO_LIBRARY_ID for web reads
Try asking
- Search my Zotero library for papers on attention mechanisms
- Read pages 3 to 8 of the PDF for my saved paper ABCD1234
- Add the paper with DOI 10.1038/s41586-021-03819-2 to my Reading List
Good to know
- Local API writes need Zotero running with the local API enabled and write authorization.
- Semantic search needs the search index built first.
- Extracted PDF text is unreliable for math, figures and tables.
- Items in the trash are marked deleted and should not be treated as part of the live library.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/zotero_mcp/skills/zotero-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB -
reference.md19 KB
Alternatives to zotero-cli
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
zotero-cli: common questions
Does zotero-cli need Zotero to be running?
The source says SQLite reads can work with Zotero closed. Local API writes require Zotero to be running with an enabled local API and write authorization.
Can it search across group libraries?
Yes, with --all-libraries, but only on the SQLite backend, which is the default in local mode. Each result is labelled with its library name.
Does semantic search need extra setup?
Yes. The search index must be built with zotero-cli db update, and db status shows whether it is ready. The source notes that an index migration may use a paid embedding API.
How do I install zotero-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is zotero-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is zotero-cli safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to zotero-cli?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
