dsrh-mcp
Provides evidence-grounded paper reading, citation verification, and reproducible experiment planning through DeepSeek Harness via a deterministic Python stdio server.
README
DeepSeek Research Harness
<p align="center"> <strong>Evidence-grounded paper reading, citation verification, and reproducible experiment planning for DeepSeek Harness.</strong> </p>
<p align="center"> English | <a href="./README.zh.md">简体中文</a> </p>
<p align="center"> <img alt="Version" src="https://img.shields.io/badge/version-0.1.0-2563eb"> <img alt="DeepSeek Harness" src="https://img.shields.io/badge/DeepSeek_Harness-0.1.0--rc.6-0f766e"> <img alt="Python" src="https://img.shields.io/badge/Python-%3E%3D3.11-3776ab"> <img alt="Node.js" src="https://img.shields.io/badge/Node.js-%5E22.19_%7C_%3E%3D24-339933"> <a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-111827"></a> </p>
DeepSeek Research Harness (DSRH) is an out-of-tree research capability bundle for DeepSeek Harness. It adds three model-invocable skills and a deterministic Python MCP sidecar while leaving model access, sessions, shell execution, jobs, sandboxing, and approvals under Harness control.
[!IMPORTANT] DSRH
0.1.0is a developer preview. The npm and PyPI package names are release targets; install the current version from this repository.
News
| Date | Update |
|---|---|
| 2026-08-14 | Completed end-to-end Harness invocation tests for PaperReader, CitationGuard, and ExperimentPilot. The profile exposes 3 skills, 3 native tools, and 21 MCP tools. |
| 2026-08-14 | Released the 0.1.0 developer preview with the installable Harness bundle, Python MCP sidecar, keyless CI, and workspace security boundaries. |
What DSRH Adds
| Skill | Purpose | Main outputs |
|---|---|---|
PaperReader (dsrh-paper-reader) |
Parse born-digital PDFs, index sections with SQLite FTS5/BM25, and retrieve source-grounded evidence. | Structured metadata, sections, search results, and stable evidence_id references. |
CitationGuard (dsrh-citation-guard) |
Parse BibTeX, detect duplicates, resolve metadata through Crossref/OpenAlex/arXiv, and review local claim support. | JSON and Markdown verification reports with explicit confidence and status. |
ExperimentPilot (dsrh-experiment-pilot) |
Validate versioned manifests, expand experiment matrices, and prepare approval-first execution plans. | Deterministic dry-run commands, run manifests, metrics summaries, and provenance. |
DSRH does not contain a separate chat client and does not call an LLM API directly. You interact through dsh web or a headless Harness profile; Harness performs reasoning and synthesis.
Architecture
DeepSeek Harness
agent loop + model + session + fs/shell/jobs + sandbox/approval
|
+-- DSRH Bundle
+-- PaperReader / CitationGuard / ExperimentPilot skills
+-- deterministic native experiment tools
+-- official @deepseek-ai/dsh-mcp-client
|
+-- dsrh-mcp (Python stdio server)
PDF + SQLite FTS + BibTeX + metadata + aggregation
|
+-- <workspace>/.dsrh
DSRH is tested against DeepSeek Harness npm package 0.1.0-rc.6 and upstream commit 47f9438.
Quick Start
Requirements
- Node.js
^22.19.0 || >=24 - Corepack and pnpm
11.7.0 - Python
>=3.11 - A model provider configured in Harness, or
DEEPSEEK_API_KEYfor DeepSeek
Windows PowerShell
Run from the DSRH repository root:
corepack enable pnpm
corepack pnpm install
corepack pnpm build
python -m venv .venv
.venv\Scripts\python.exe -m pip install -e ".\python[dev]"
$env:DSRH_PYTHON = (Resolve-Path '.venv\Scripts\python.exe').Path
npx.cmd --yes @deepseek-ai/dsh@0.1.0-rc.6 plugin --profile web add .\packages\plugin
npx.cmd --yes @deepseek-ai/dsh@0.1.0-rc.6 --profile web --dump-config
Configure the model credential without committing it:
$env:DEEPSEEK_API_KEY = '<your-api-key>'
npx.cmd --yes @deepseek-ai/dsh@0.1.0-rc.6 web
macOS / Linux
corepack enable pnpm
corepack pnpm install
corepack pnpm build
python3 -m venv .venv
.venv/bin/python -m pip install -e './python[dev]'
export DSRH_PYTHON="$PWD/.venv/bin/python"
npx --yes @deepseek-ai/dsh@0.1.0-rc.6 plugin --profile web add ./packages/plugin
npx --yes @deepseek-ai/dsh@0.1.0-rc.6 --profile web --dump-config
export DEEPSEEK_API_KEY='<your-api-key>'
npx --yes @deepseek-ai/dsh@0.1.0-rc.6 web
The configuration dump must contain dsrh-runtime, dsrh-skills, and dsrh-science-mcp. The Web UI is available at http://127.0.0.1:3080 by default. See the installation guide for profile setup, package release workflows, and troubleshooting.
Usage
Place input files inside the directory from which you start Harness. That directory becomes the DSRH workspace, and generated state is stored under <workspace>/.dsrh/.
Read a Paper
Use dsrh-paper-reader to deeply analyze papers/paper.pdf.
Focus on the research question, method, architecture, experiments,
ablations, results, and limitations. Explain each figure and cite
an evidence_id for every central technical claim.
PaperReader supports born-digital PDFs in V1. Scanned PDFs are reported as degraded-scan-unsupported; missing text is never invented.
Verify Citations
Use dsrh-citation-guard to verify references.bib.
Check metadata, duplicate entries, DOI mismatches, and nonexistent-reference risk.
Mark unresolved entries as UNRESOLVED rather than calling them hallucinations.
Generate both JSON and Markdown reports.
Local parsing and duplicate detection work offline. Metadata resolution is allowlisted to Crossref, OpenAlex, and arXiv. Reports are written to .dsrh/citations/reports/.
Plan Experiments
Start with examples/experiment.yaml or the experiment schema:
Use dsrh-experiment-pilot with examples/experiment.yaml.
Inspect the repository and produce a dry-run plan first.
Show every run's parameters, command, working directory, and artifact directory.
Do not modify source code or execute training until I approve the plan.
DSRH validates and expands the manifest but never bypasses Harness execution controls. Approved commands run through Harness shell/jobs, sandbox, and approval flows.
Verification
corepack pnpm typecheck
corepack pnpm build
corepack pnpm test
.venv\Scripts\python.exe -m ruff check python tests\end-to-end tests\fixtures\toy-training
.venv\Scripts\python.exe -m pytest python\tests tests\end-to-end -q
.venv\Scripts\python.exe -m dsrh_mcp doctor
Current acceptance coverage includes TypeScript unit tests, Python unit/integration tests, a toy end-to-end experiment pipeline, and official Harness profile loading. The suite uses generated PDFs and mocked scholarly APIs, so it requires neither model credentials nor large training jobs. See test results.
Safety
The Python sidecar canonicalizes paths, resolves symlinks, rejects workspace escape, bounds PDF and metadata response sizes, and only contacts allowlisted scholarly metadata providers. It exposes no shell, arbitrary subprocess, Git push, checkpoint deletion, or direct model API tool. Read the security model and known limitations before using DSRH with sensitive projects.
Documentation
License
DSRH is released under the MIT License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。