DeepSeek Harness plugin

zotero-mcp-dsh

DSH bundle: local Zotero MCP server (search, metadata, PDF fulltext, BibTeX export) for DeepSeek Harness

Jump to install

Source facts

Repository
LiJunfeng000000000000/zotero-mcp-dsh
Latest update
Aug 15, 2026
Category
Tools & Capabilities
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/LiJunfeng000000000000/zotero-mcp-dsh
Plugin: zotero-mcp-dsh
Author: LiJunfeng000000000000

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

zotero-mcp-dsh

DeepSeek Harness (DSH) 插件:把本地 Zotero 文献库接入 DSH,让模型在会话中 直接检索文献、读取文献基本信息和 PDF 全文、导出 BibTeX,用于构造 LaTeX 参考文献库并在 tex 中插入 \cite{}

模型侧新增工具(mcp__zotero__*):

工具功能
zotero_search按关键词/集合/年份搜索文献,返回 itemKey、citekey、标题、作者、年份、期刊、DOI
zotero_get_item按 itemKey 取单条文献完整元数据(摘要、关键词、附件列表)
zotero_get_fulltext读取文献 PDF 全文(Zotero 全文索引),maxChars 控制长度
zotero_export_bibtex按查询/集合/itemKeys 导出 Better BibTeX 风格 BibTeX 文本(含 citekey)
zotero_list_collections列出文献库全部集合(分类)

原理

  • 这是一个 DSH bundle:npm 包格式,package.json 声明

"dsh": { "bundle": { "patch": "./cordis.patch.yml" } },通过 pnpm 从 GitHub 安装到 DSH profile。

  • cordis.patch.yml 注册一个 @deepseek-ai/dsh-mcp-client 插件实例(stdio

transport),spawn 包内的 server.mjs

  • server.mjs 是零依赖 MCP 服务器(Node ≥ 18),通过 Zotero 桌面端本地

HTTP API(http://127.0.0.1:23119只读、无需 API key)工作。

  • 安装后作为 profile 的 bundle 层加载;profile 的 cordis.patch.yml 变更会

被 HMR 热加载,新增/升级 bundle 后需重启 DSH 生效

安装

前置条件:本机 Zotero 桌面端已打开(本地 API 默认开启)。建议安装 Better BibTeX 以获得 稳定 citekey(非必需)。

从 GitHub 安装:

dsh plugin --profile web add github:LiJunfeng000000000000/zotero-mcp-dsh

或指定 tag/branch(tag 发布后可用):

dsh plugin --profile web add github:LiJunfeng000000000000/zotero-mcp-dsh#v0.1.0

安装完成后重启 DSH,模型工具列表即出现 mcp__zotero__*

写作工作流

1. 找文献mcp__zotero__zotero_search(如 collection: "节理"query: "numerical manifold"),从结果挑选合适的文献。 2. 核对内容:对关键文献用 zotero_get_fulltext 读 PDF 全文,确认方法、 公式、结论与正文一致。 3. 构造 .bib:用 zotero_export_bibtex 拿 BibTeX 文本,写入 docs/latex/references.bib 等目标库。 4. 插入引用:在正文相应句子后写 \cite{citekey},按 XeLaTeX—BibTeX—XeLaTeX—XeLaTeX 顺序编译。

卸载

dsh plugin --profile web remove zotero-mcp-dsh

开发

# 本地直接测试 MCP 服务器(不经 DSH)
node server.mjs
# 向 stdin 发送 MCP JSON-RPC 消息即可

说明与边界

  • MCP 服务器只读:不会修改 Zotero 库;BibTeX 文本由模型写入 .bib 文件

(文件写入走 DSH 沙箱审计)。

  • PDF 全文依赖 Zotero 已建立全文索引;未索引的文献返回提示(可在 Zotero 中

右键"重新索引")。

  • 集合搜索时,无 citekey 的 PDF 附件条目会被跳过(它们不是可引用的文献条目)。

License

MIT