# cli-anything-zotero [Health: Active]

**Category:** 🔬 Research  
**Repository:** https://github.com/PiaoyangGuohai1/cli-anything-zotero  
**GitHub Stars:** 143  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cli-anything-zotero

## Description
CLI server for Zotero 7/8/9 — let AI manage your library. 70+ CLI commands for search, import, PDF, BibTeX, notes, and more. Works with Claude, Cursor, ChatGPT.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "cli-anything-zotero": {
    "command": "uvx",
    "args": ["cli-anything-zotero"]
  }
}
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/cli-anything-zotero/readme_

