
Preprint Fulltext
io.github.genecell由 GitHub 账号 genecell 发布v0.1.0更新于 Oct 24, 2026
bioRxiv/medRxiv/arXiv preprint full text as structured sections for AI agents + search.
概览
获取 bioRxiv、medRxiv 与 arXiv 预印本全文,输出带章节标签的结构化文本,并支持检索与解析预印本。
- 可以做什么
- 按关键词、标题、摘要或作者在 Europe PMC、OpenAlex 与 arXiv 中检索预印本
- 通过 DOI、链接或 arXiv 编号获取单篇预印本全文,按摘要、方法、结果、讨论等章节结构化输出
- 查询元数据并把标识符解析为规范记录
- 按主题与日期范围发现文献
- 返回带许可与来源标注的文本,便于引用或切块
- 适用场景
- 适合需要让助手阅读摘要之外内容的场景:文献深度调研、方法与实验流程提取、对照结果章节核实结论,或为预印本文献构建按章节切块的 RAG 语料。
- 运行要求
- 以 Python 包(PyPI 上的 preprint-fulltext)形式通过 stdio 在本机运行,可用 uvx 或已安装的命令启动。建议设置 CONTACT_EMAIL 以使用 Europe PMC 与 OpenAlex 的 polite pool;使用 OpenAlex 检索与发现需设置 OPENALEX_API_KEY。需要访问 Europe PMC、OpenAlex 与 arXiv 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Preprint Fulltext,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
preprint-fulltext
English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | 日本語
[PyPI] [Python] [License: BSD-3-Clause] [CI]
Retrieve the full text of bioRxiv / medRxiv / arXiv preprints as clean, structured, embedding-ready data — from a CLI, a Python library, or an MCP server.
preprint-fulltext turns a DOI (or a search) into structured sections
(abstract / introduction / methods / results / discussion), a single JSON/Markdown
document, or a chunked JSONL/Parquet corpus ready for embeddings and RAG. openRxiv
text-and-data-mining (TDM) compliance is enforced structurally, not left to the user.
"Embedding-ready" means the output is clean, section-aware, token-bounded chunks — ready to feed to your embedding model. Computing embeddings is an optional last step you own; this tool does not bundle an embedding model.
Contents
- Why · Who it's for · Full text for AI-driven science
- Features · Install · Quickstart (CLI) · Typical workflows
- Python library · MCP server (coding agents) · Data sources & routing
- Configuration · Compliance · Development · Contact · License
Why
Preprint full text is scattered across incompatible channels: Europe PMC serves JATS
XML for the open-access subset, the openRxiv S3 buckets hold the authoritative
.meca corpus (requester-pays), OpenAlex is a catalog with n-gram-only full-text
search, and the bioRxiv/medRxiv websites render HTML. preprint-fulltext unifies
them behind one canonical data model and one shared JATS parser, so you get the
same structured output no matter where a document came from.
Who it's for
- ML / NLP researchers building embedding corpora or RAG systems over the preprint literature.
- Bioinformaticians and labs who need a paper's methods/results as clean text for analysis, extraction, or LLM pipelines.
- Coding agents (via the MCP server /
SKILL.md) that need to pull a preprint's full text or search the literature mid-task. - Anyone who wants one preprint's sections from a DOI without hand-parsing JATS or scraping HTML.
Full text for AI-driven science
Language models and agents reason far more reliably over a paper's methods and results
than over its abstract alone — most scientific claims, protocols, quantities, and caveats
live in the body. preprint-fulltext gives Claude, Codex, and other agents that body as
clean, section-labeled, provenance- and license-tagged text, which is the substrate for
grounded scientific reasoning and deep research:
- Literature deep-research — read across many papers' full text, not just abstracts.
- Methods / protocol extraction — pull exact procedures, parameters, and datasets.
- Claim verification — check a stated result against the actual Results section.
- Reproducibility & meta-analysis — compare methods and numbers across studies.
- RAG over your own corpus — section-aware, token-bounded chunks with citations.
Because every Section/Chunk carries its kind (methods / results / …), source, and
license, an agent can cite precisely (which section of which paper/version) and stay
within-license while it reasons. Full text is retrieval, not memorization: the model
grounds its reasoning in the primary source instead of recalling a possibly-stale summary.
Features
get <id>— one preprint's full text as structured JSON or Markdown. bioRxiv/ medRxiv route Europe PMC → S3 (opt-in HTML fallback); arXiv ids route to arXiv's LaTeXML full text (native HTML → ar5iv). Latest version by default;--versionselects one.search/discover— keyword, title, abstract, or author search across Europe PMC, OpenAlex, and arXiv; topic/category/date discovery.ingest— resumable, incremental bulk ingestion from the openRxiv S3 buckets into a chunked corpus (JSONL or Parquet) with a sidecar manifest.- MCP server — the same capabilities as tools for coding agents.
- Compliance built in — an export gate degrades non-redistributable works to link-back stubs; unknown licenses are treated as non-redistributable (fail-safe).
- One JATS parser shared by the Europe PMC and S3 paths; token- and section-aware chunking with deterministic, idempotent chunk ids.
Install
The MCP server is built in — no extra install and no third-party MCP framework. It's a
small, self-contained JSON-RPC 2.0 stdio server, so preprint-fulltext-mcp works out of the
box with only the core dependencies.
Set a contact email for the Europe PMC / OpenAlex polite pools (recommended), and an OpenAlex API key if you use OpenAlex (required by OpenAlex since 2026-02-13):
Quickstart (CLI)
get emits a FullText document (JSON) or Markdown (--markdown). search /
discover stream one SearchHit per line (JSONL). ingest writes one Chunk per
line plus a <out>_manifest.jsonl audit/resume sidecar.
Typical workflows
1. Read one paper's methods/results as text.
2. Build an embedding-ready corpus on a topic (free, no AWS).
3. Build the complete corpus for a month from S3 (requester-pays).
4. Find papers by author or title, then fetch.
5. Give a coding agent literature access — run preprint-fulltext-mcp and point your
agent at it (see skills/preprint-fulltext/SKILL.md).
Python
MCP server
Give a coding agent live preprint access. The server exposes four tools —
search_preprints, get_fulltext, get_metadata, resolve — over stdio. (Bulk ingest
is intentionally not a tool: it is long-running and incurs requester-pays cost.)
mcp-name: io.github.genecell/preprint-fulltext
It's a local stdio server, so it works in Claude Code / Cursor / VS Code / Windsurf / Zed / Codex / Cline — but not the claude.ai web app (there, use the Skill instead).
Recommended: run via uvx (no install)
uv runs the published package on demand — nothing to
pip install or keep on a PATH. Install uv once:
The launch command is uvx --from preprint-fulltext preprint-fulltext-mcp (the --from is
needed because the run command differs from the package name). First launch downloads the
package (~30 s); later launches are cached.
Claude Code — key mcpServers
Or edit ~/.claude.json (user) / project .mcp.json:
Cursor / Windsurf / Cline / Continue — key mcpServers (same shape)
Cursor: ~/.cursor/mcp.json (global) or .cursor/mcp.json (project). Windsurf:
~/.codeium/windsurf/mcp_config.json. Cline: MCP Servers → Configure. Continue:
~/.continue/config.
VS Code (GitHub Copilot, Agent mode) — key servers + type
.vscode/mcp.json (workspace) or user settings.json under "mcp":
Or one-shot: code --add-mcp '{"name":"preprint-fulltext","command":"uvx","args":["--from","preprint-fulltext","preprint-fulltext-mcp"]}'
Zed — key context_servers (different shape)
~/.config/zed/settings.json:
Codex (OpenAI Codex CLI) — TOML, not JSON
~/.codex/config.toml:
Or: codex mcp add preprint-fulltext -- uvx --from preprint-fulltext preprint-fulltext-mcp
Alternative: install with pip
If you already pip install preprint-fulltext, the server is on your PATH as
preprint-fulltext-mcp — use "command": "preprint-fulltext-mcp" (no args) in any config
above.
Env vars: set
CONTACT_EMAIL(Europe PMC / OpenAlex polite pools) andOPENALEX_API_KEY(only for OpenAlex search/discover) via the config'senvblock, or in your shell before launching the client. SeeSKILL.mdfor the full agent-facing tool reference.
Data sources & routing
Configuration
Via environment variables (prefixed PREPRINT_FULLTEXT_ or the bare names below),
a .env file, or a preprint-fulltext.toml:
Compliance
Corpora are for the operator's own text/data mining under the openRxiv TDM terms.
preprint-fulltext does not re-host or redistribute preprint full text. Every
FullText/Chunk carries its license; the export gate has two modes:
- analysis (default): pass-through for your own mining.
- redistribution (
--redistribution): works whose license permits redistribution pass unchanged; all others are degraded to a link-back stub (metadata + URL, no body text). Unknown/ambiguous licenses are treated as non-redistributable.
Development
Live tests are opt-in (they hit the real public APIs — Europe PMC, arXiv, and the bioRxiv/medRxiv JSON API):
The same live smoke runs in CI on demand (Actions → live-smoke) and weekly, to catch
upstream API drift; the default test workflow stays fully offline.
Agent docs (AGENTS.md, llms.txt, .cursor/rules/…, .github/copilot-instructions.md)
are generated from skills/preprint-fulltext/SKILL.md:
Contact
Min Dai — [email protected] (Gord Fishell Lab, Harvard Medical School / Broad Institute). Issues and pull requests welcome at https://github.com/genecell/preprint-fulltext.
License
BSD-3-Clause (see LICENSE). This covers the software only —
retrieved preprint content remains under its author-selected license.
来源:README.md,提交 625c926
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。