DocPull

io.github.raintree-technology由 GitHub 账号 raintree-technology 发布v6.9.0更新于 Nov 7, 2026

Sync public web sources into cited context packs for AI agents, RAG, and MCP clients.

发布方自己的服务:FlightSweeper

概览

AI 生成的概览

本地 MCP 服务器,把公开网页来源同步为带引用的版本化上下文包,并按精确来源片段回答问题。

可以做什么
  • 在锁定的上下文档案中检索去重段落,支持版本过滤、token 预算与精确来源片段
  • 同步声明的网页来源并按内容哈希比对差异,保留 URL、运行 ID 与引用
  • 按原始、面向代理或评估级三种层级校验与准备上下文包
  • 运行 CI 检查,覆盖新鲜度、引用覆盖率、包质量与权利元数据
  • 导出上下文包,供代理客户端、向量导入或数据流程使用
适用场景
当助手需要把文档、政策、订阅源、代码仓库或标准作为可复现、可引用的上下文,并且你想知道答案来自哪个来源版本、来源是否发生变化时使用。
运行要求
以本地 stdio 进程运行,需从 PyPI 安装带 mcp 附加组件的 docpull 包,因此需要 Python。默认路径无需账号或付费 API,抓取、抽取、索引与差异比对均在本地完成。需认证的来源要以环境变量引用方式提供。
安装前请注意
它会抓取公开网页来源,并写入 docpull.yaml、锁定文件、报告与导出的上下文包等项目产物。JavaScript 渲染与云端渲染需显式开启,除非用零美元预算封禁,否则可能产生费用。需认证的来源须以环境变量引用提供,凭据值不会写入项目产物。

安装

在 SourceWeft 中

  1. 打开 控制台中的 DocPull,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[DocPull]

DocPull

Active open-source project · MIT License

DocPull turns changing public web sources into cited, reproducible context for AI agents and retrieval pipelines. Use it when your application needs to know which sources it used, whether they changed, and how to rebuild the same context later.

[Python 3.11+] [PyPI version] [License: MIT]

Install and sync your first source

bash
pip install docpulldocpull init stripe-docsdocpull add https://docs.stripe.comdocpull syncdocpull query "retry policy" --max-tokens 4000docpull diffdocpull export context-pack --target cursor

The project stores declared sources in docpull.yaml and resolved inputs in .docpull/context.lock.json. Later syncs produce a hash-based diff while preserving source URLs, content hashes, run IDs, citations, and export metadata.

docpull query retrieves deduplicated passages from locked archives with version filters, a response budget, and exact source spans. The same query is available through the Python SDK and MCP. See Query locked context for budget semantics and queries across projects.

[DocPull project diff showing changed pages, local semantic categories, and zero failed URLs]

No account or paid API is required for this path. Direct fetching, discovery, extraction, indexing, pack analysis, and diffs run locally.

Why use DocPull

  • Reproduce agent context. Stable IDs, hashes, manifests, and lockfiles show which source versions produced an answer or artifact.
  • Detect source drift. Sync and diff documentation, product pages, policies, feeds, repositories, packages, standards, and local documents.
  • Keep evidence inspectable. Markdown, NDJSON, SQLite, citations, and provenance sidecars remain readable without a hosted service.
  • Choose the downstream surface. Export context for agent clients, vector import, data workflows, or a versioned context-pack release.
  • Keep expensive routes explicit. Browser and cloud rendering require an explicit choice and can be blocked with a zero-dollar budget.

How it works

text
declared sources → local acquisition → versioned evidence → diff and validation → export

DocPull's v3 pack contract separates raw extraction, agent-ready context, and eval-grade evidence. Validate the level a downstream system requires:

bash
docpull pack prepare packs/docs --eval-gradedocpull pack validate packs/docs --level evaldocpull ci --prepare

docpull ci checks freshness, citation coverage, pack quality, rights metadata, and other configured gates. It writes context-ci.report.json and CONTEXT_CI.md, then exits non-zero when a hard gate fails.

Supported surfaces

SurfaceUse it forStart here
CLIFetch, sync, diff, validate, and exportdocs/cli-recipes.md
Python SDKEmbed acquisition in Python applicationsdocs/surface-contract.md
MCP serverGive local agent clients source toolsMCP server
TypeScript SDKRead local packs and invoke the CLI from Node or Bunsdk/js/README.md
Agent pluginInstall the supported MCP workflow in an agent clientplugin/README.md

Common source shapes include static and server-rendered websites, OpenAPI documents, feeds, papers, public GitHub repositories, npm and PyPI packages, standards, datasets, transcripts, Wikimedia pages, product and policy pages, and local PDF or office files. See context-pack workflows for the complete surface.

MCP server

bash
pip install 'docpull[mcp]'docpull mcp

Claude Code can register the same local server:

bash
claude mcp add --transport stdio docpull -- docpull mcp

The Python stdio server is the supported MCP server.

Limits and security boundary

DocPull is an evidence-acquisition engine, not a hosted competitive-intelligence product. It owns fetching, explicit rendering adapters, versioning, citations, hashing, validation, replay, and export. Downstream products own scheduling, human review, approved claims, legal conclusions, accounts, and notifications.

The default path does not handle complex interactive browser workflows, CAPTCHAs, stealth scraping, or private dashboards. JavaScript rendering is explicit. Authenticated sources require environment-variable references; DocPull does not persist credential values in project artifacts.

Security defaults include HTTPS-only fetching, robots.txt compliance, SSRF and DNS rebinding protections, redirect guards, XXE protection, and path-traversal checks. Read the web-source boundary, security posture, and evidence-engine decision before extending acquisition behavior.

Documentation and evidence

Raintree open-source system

DocPull owns evidence acquisition and reproducible agent context. It can be used independently; the sibling projects do not imply a required integration or shared release cycle.

ProjectResponsibility
Raintree StandardsDefines governed requirements and evidence.
TrellisEnforces shared JavaScript and TypeScript code policy.
HIG DoctorAudits interface source and provides HIG guidance.
PolicyStrataTests cross-layer policy behavior.

See the Raintree open-source portfolio for current lifecycle and distribution links.

Raintree also builds BetterOff, which keeps a household's spending, investments, assets, debts, and net worth in one current record.

Project policies

Contributing · Code of Conduct · Security · Metrics and evidence limits · Source repository · MIT License

来源:README.md,提交 90d0880

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

4
  1. v6.9.0最新Nov 7, 2026
  2. v6.8.0Oct 23, 2026
  3. v6.6.0Oct 10, 2026
  4. v6.5.5Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Vercel 集成