CLI Anything Zotero logo

CLI Anything Zotero

CLI-first Zotero automation for searching, importing, exporting, managing PDFs, editing metadata, and generating DOCX citations locally.

Install CLI Anything Zotero

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cli-anything-zotero": {
      "command": "uvx",
      "args": [
        "cli-anything-zotero"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

uvx cli-anything-zotero

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

cli-anything-zotero connects AI-driven terminal workflows to a local Zotero library through a privileged JavaScript Bridge plugin. Its CLI covers library search, imports, exports, PDF handling, metadata and tags, notes, synchronization, DOCX citations, and advanced JavaScript or semantic-search workflows. Reach for it when an agent needs to operate on a running Zotero desktop installation rather than a cloud-only library. The maintained interface is CLI/SDK-first; MCP users must use the frozen 0.9.5 release or its legacy branch.

Use cases

  • Search a local Zotero library by keywords or PDF full text
  • Import DOI, BibTeX, RIS, arXiv, or PDF references into collections
  • Export collection references as BibTeX, RIS, CSL-JSON, or CSV
  • Find missing PDFs and manage attachments
  • Convert Zotero placeholders into citations in DOCX drafts

Key features

  • Local Zotero control through a JavaScript Bridge
  • Search, collection browsing, tags, and full-text PDF queries
  • Reference import and citation export
  • PDF attachment, discovery, and annotation search
  • Metadata, notes, tags, and synchronization operations
  • Static or refreshable DOCX citation generation

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 16d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6h ago via OSV.dev · cli-anything-zotero (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars143Stargazers on the source repository.
Last commit22d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How CLI Anything Zotero works

What cli-anything-zotero does

cli-anything-zotero lets agents and scripts work with a local Zotero library through the zotero-cli command. It supports searching items and PDF full text, browsing collections and tags, importing references, exporting citations, managing attachments, and changing library metadata. Write operations are performed locally through a Zotero JavaScript Bridge plugin.

The package also handles citation workflows for DOCX files. Drafts can contain placeholders such as {{zotero:ITEMKEY}} or multiple keys, which the docx commands convert into either plain-text citations or refreshable Zotero fields. Additional functions include annotation search, PDF discovery, arbitrary Zotero JavaScript execution, local-embedding semantic search, and AI analysis.

How it works

Zotero Desktop must be installed and running. The package communicates with the desktop application through a JS Bridge plugin, giving the CLI access to privileged local operations without requiring a Zotero API key or a cloud connection. The bridge is installed from a generated .xpi file and then loaded by Zotero.

The main interface is CLI-first: an agent can invoke commands directly, inspect zotero-cli --help, and request JSON output for machine-readable workflows. Examples include item find, item search-fulltext, collection tree, add doi, add bibtex, item fetch-pdf, and docx cite.

Setup and configuration

Install Python 3.10 or newer and Zotero 7 or later, then install the package:

Terminal
pip install cli-anything-zotero

Install the bridge with zotero-cli app install-plugin. On the first installation, the command creates an XPI file; install it from Zotero's Plugins window and restart Zotero. The same command can update the bridge later. Verify the connection with:

bash
zotero-cli app ping
zotero-cli js "return Zotero.version"

Static DOCX citations need the Python package, bridge, and running Zotero. Dynamic citations additionally require LibreOffice and the Zotero LibreOffice plugin. zotero-cli --json docx doctor checks that stack; --mode auto selects dynamic output when the required components are available and otherwise uses static output.

Tools and capabilities

  • Search items, PDF full text, collections, and tags.
  • Import references from DOI, PMID, RIS, BibTeX, JSON, arXiv, and local files.
  • Export BibTeX, CSL-JSON, RIS, CSV, and formatted citations.
  • Attach PDFs, find PDFs from supported online sources, and search annotations.
  • Update metadata, manage tags, add notes, and trigger synchronization.
  • Render static or dynamic citations and bibliographies in DOCX files.
  • Find duplicate item clusters and inspect recent write operations through the audit commands.
  • Run Zotero JavaScript and use local semantic-search or analysis features.

Limitations and notes

The desktop application is a required part of the workflow; this is not a replacement for a cloud-only Zotero API. Zotero must be running for bridge operations. If a major Zotero upgrade disables the plugin, reinstall or upgrade the bridge and restart Zotero.

The actively maintained project is CLI/SDK-first. The zotero-mcp command and the MCP package extra ended with release 0.9.5; existing MCP deployments should pin cli-anything-zotero[mcp]==0.9.5 or use the legacy/mcp branch. MCP users should therefore expect the legacy interface to be frozen rather than receive newer CLI features.

Dynamic DOCX citation insertion has a larger dependency stack than static rendering. macOS has an end-to-end tested path, while Windows and Linux may still require manual LibreOffice interaction for opening or saving documents. On Zotero 10, use a bridge version that declares compatibility with that release.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about CLI Anything Zotero

cli-anything-zotero is an MCP server that connects AI workflows to a local Zotero Desktop library through a JavaScript Bridge. Its main tools cover item and full-text search, collection browsing, reference import and export, PDF handling, metadata updates, notes, tags, synchronization, and DOCX citation generation.

Install the legacy MCP package with `pip install "cli-anything-zotero[mcp]==0.9.5"`. Start Zotero, install the JS Bridge plugin, and use the legacy MCP release or `legacy/mcp` branch; newer releases are CLI/SDK-first.

Yes, Cursor is named as a supported client for the CLI workflow. Install the package, make `zotero-cli` available in the environment, keep Zotero running with the bridge enabled, and let Cursor invoke the terminal command.

Yes, Zotero Desktop must be running for bridge operations. The tool automates the local Zotero application through its JS Bridge rather than connecting to a cloud-only API.

Run `zotero-cli --json docx cite draft.docx --output draft-cited.docx --mode auto --force`. Static mode needs the package, bridge, and running Zotero; dynamic fields additionally require LibreOffice and the Zotero LibreOffice plugin.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCLI Anything Zotero AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cli-anything-zotero?style=directory)](https://allmcps.com/mcp/cli-anything-zotero)
HTML Embed
<a href="https://allmcps.com/mcp/cli-anything-zotero"><img src="https://allmcps.com/api/badge/cli-anything-zotero?style=directory" alt="CLI Anything Zotero on AllMCPs" /></a>