본문으로 건너뛰기
Skillpedia
리서치5.7k · #14755

zotero-cli

하는 일

이 스킬은 zotero-cli 명령을 사용해 Zotero 참고문헌 라이브러리를 다루는 방법을 에이전트에게 가르칩니다. 논문 찾기, 본문 읽기, 세부 정보 편집, 참고문헌 목록 내보내기를 다룹니다.

사용하는 경우

  • ✓Zotero에 저장한 논문이나 참고문헌에 대해 질문할 때.
  • ✓DOI, URL, ISBN으로 Zotero에 논문을 추가하고 싶을 때.
  • ✓Zotero 라이브러리에서 참고문헌 목록을 내보내야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/54yyyu/zotero-mcp/blob/main/src/zotero_mcp/skills/zotero-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Zotero 라이브러리에서 어텐션 메커니즘에 관한 논문을 찾아서 참고문헌 목록으로 내보내 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 zotero-cli 명령을 JSON 모드로 실행하고, 검색으로 항목 키를 찾은 뒤 그 키로 작업합니다. 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 앱이 열려 있어야 하나요?

로컬 모드에서는 그렇습니다. 로컬 API가 켜진 Zotero 데스크톱 앱이 실행 중이어야 한다고 스킬이 설명합니다.

웹 모드에는 무엇이 필요한가요?

스킬이 설명하듯이 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
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬