मुख्य सामग्री पर जाएँ
Skillpedia
रिसर्च5.7k · #14755

zotero-cli

यह क्या करती है

यह स्किल एजेंट को zotero-cli कमांड से Zotero संदर्भ लाइब्रेरी के साथ काम करना सिखाती है। इसमें पेपर ढूँढना, उनका टेक्स्ट पढ़ना, विवरण बदलना और ग्रंथसूची निर्यात करना शामिल है।

कब इस्तेमाल करें

  • ✓जब उपयोगकर्ता अपने Zotero में सहेजे पेपर या संदर्भों के बारे में पूछता है।
  • ✓जब उपयोगकर्ता DOI, URL या ISBN से कोई पेपर Zotero में जोड़ना चाहता है।
  • ✓जब उपयोगकर्ता को अपनी Zotero लाइब्रेरी से ग्रंथसूची निर्यात चाहिए।

Skill का लिंक

https://github.com/54yyyu/zotero-mcp/blob/main/src/zotero_mcp/skills/zotero-cli/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/54yyyu/zotero-mcp/blob/main/src/zotero_mcp/skills/zotero-cli/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी Zotero लाइब्रेरी में attention mechanisms पर जो पेपर हैं, उन्हें खोजिए और ग्रंथसूची के रूप में निर्यात कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट zotero-cli कमांड JSON मोड में चलाता है, खोज से आइटम की ID ढूँढता है, और उन ID पर काम करता है। अगर Zotero तक पहुँच न हो, तो एजेंट लाइब्रेरी की सामग्री का अंदाज़ा लगाने के बजाय यह साफ़ बताता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Zotero from the shell

zotero-cli reaches a Zotero library directly. Prefer it over the Zotero MCP server when you have shell access: the MCP server's tool schemas cost ~14k tokens of context on every request whether or not you use them, while this costs only what you actually run.

Check it is set up before the first real call:

zotero-cli config          # prints the resolved Zotero settings

If that fails, Zotero is not reachable. Local mode needs the Zotero desktop app running with its local API enabled; web mode needs ZOTERO_API_KEY and ZOTERO_LIBRARY_ID. Say so rather than guessing at library contents.

Always pass --json when you will read the output

Default output is markdown for humans. --json gives you one object per invocation with a stable shape, so you never parse prose:

{"ok": true, "command": "search", "schema": 1, "data": {...}}
{"ok": false, "command": "search", "schema": 1, "error": {"message": "...", "code": "..."}}

Both go to stdout; [INFO]/[WARN] diagnostics go to stderr. Check ok before using data. Run zotero-cli --json-schema for the full contract.

The core loop

Almost every task is: find keys → act on keys. Item keys are 8 characters and are the currency of every command.

# 1. find - use --detail keys_only to keep the result small while browsing
zotero-cli --json search "attention mechanisms" --limit 10 --detail keys_only

# 2. act - metadata, full text, or a page range
zotero-cli --json get metadata ABCD1234
zotero-cli --json get fulltext ABCD1234
zotero-cli --json read ABCD1234 --start-page 3 --end-page 8

Pipe keys straight into the next call:

zotero-cli --json search "diffusion models" --limit 5 --detail keys_only \
  | jq -r '.data.items[].key' \
  | while read -r key; do zotero-cli --json get metadata "$key"; done

Choosing a search mode

Mode Use it for Command
items (default) a title, author or phrase you know search "Vaswani attention"
semantic a topic or idea, no exact wording search --mode semantic "why transformers scale"
tag items you filed under a tag search --mode tag "to-read,important"
advanced structured field conditions search --mode advanced --conditions '[...]'
citekey a BibTeX citation key search --mode citekey smith2020
notes text inside your notes, not item fields search --mode notes "research question"

semantic needs the search index built (zotero-cli db status to check, zotero-cli db update to build). If it is empty, fall back to items and say why rather than reporting no results.

Every search covers one library — the active one. When you don't know which library holds something, or a search comes up empty and the item might live in a group library, add --all-libraries:

zotero-cli search "Cladder-Micus" --all-libraries

Each result is then labelled **Library:** <name>. It needs the SQLite backend, the default in local mode, and errors clearly if it is not in use, so try it once and fall back to per-library searches if it is refused. Tag filters work with it; --collection does not, because a collection lives inside one library.

Reading efficiently

get fulltext on a book-length PDF returns a great deal of text. When you need one section, use the outline to find it and read only those pages. To locate a passage by its words, --find returns the matching pages with short snippets instead of the pages themselves:

zotero-cli --json outline ABCD1234
zotero-cli --json read ABCD1234 --find "robustness check"
zotero-cli --json read ABCD1234 --start-page 42 --end-page 55

For "what does my library say about X", prefer search --mode semantic followed by targeted get metadata over reading whole papers.

Paging

Listings cap at --limit. When more exists, the response says so and names the next offset:

zotero-cli --json get collection-items QS7TQPPA --limit 100 --offset 100

Keep going until data.count is less than --limit.

Writing

Write commands report what they did as text under data.text.

zotero-cli add doi 10.1038/s41586-021-03819-2 -c "Reading List"
zotero-cli edit ABCD1234 --title "Corrected Title" --add-tags reviewed
zotero-cli notes create --item-key ABCD1234 --text "Key finding: ..."
zotero-cli batch --item-keys A1B2C3D4,E5F6G7H8 --add-tags screened

Note text is Markdown, converted to Zotero's no

अक्सर पूछे जाने वाले सवाल

क्या Zotero ऐप खुला होना चाहिए?

लोकल मोड के लिए हाँ। स्किल कहती है कि Zotero डेस्कटॉप ऐप को लोकल API सक्षम करके चलना चाहिए।

वेब मोड के लिए क्या चाहिए?

जैसा स्किल बताती है, वेब मोड के लिए API कुंजी और लाइब्रेरी ID चाहिए।

JSON आउटपुट क्यों इस्तेमाल करें?

JSON आउटपुट का ढाँचा स्थिर होता है, इसलिए एजेंट नतीजे ढूँढने के लिए टेक्स्ट नहीं पढ़ता।

जानकारी

लेखक का मूल विवरण

Read and write a Zotero library from the shell with the `zotero-cli` command - search papers by keyword or meaning, read PDF full text and page ranges, get and set metadata, manage collections, tags, notes and annotations, add items by DOI/URL/ISBN, and export bibliographies. Use whenever the user asks about their Zotero library, references, citations, papers they have saved, or their reading notes.

repo: 54yyyu/zotero-mcp

लोकप्रियता

GitHub स्टार
5.7k
रैंकिंग में स्थान
#14755
लाइसेंस
MIT
अपडेट की गई
31/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills