原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

DocSlicer

作者:DocSlicer版本 0.2.5i★ 36i在你的电脑上运行
注册名称io.github.DocSlicer/docslicer

安装方法

What it does

Answer questions from documents too large to fit in context, reading only the sections you need.

  • Connects 在你的电脑上运行
  • Account or key Needs DOCSLICER_MCP_ROOT
  • Category 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 下载开发者的安装文件

    下载作者的 .mcpb 文件

    .mcpb 文件直接来自开发者,我们没有修改

  2. 双击文件,然后在电脑版 Claude 应用中点击 Install

  3. 试一试

    用 DocSlicer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 DocSlicer,或回答中出现 DocSlicer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 DocSlicer

DocSlicer 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 DocSlicer 的应用

  • 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要 DocSlicer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要 DocSlicer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)
  • 需要 DocSlicer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

B · 文档、表格与办公 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要 DocSlicer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 DocSlicer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    打开 DocSlicer 网站 ↗

  3. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  4. 粘贴这条命令并按 Enter

    claude mcp add docslicer --env DOCSLICER_MCP_ROOT=your-value --env DOCSLICER_MCP_ALLOW_CLAUDE_DIR=your-value --env DOCSLICER_MCP_ALLOW_URLS=your-value -- uvx docslicer

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Claude Code 中输入 /mcp

    应能看到 DocSlicer 在列表中并显示已连接

  6. 试一试

    用 DocSlicer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 DocSlicer,或回答中出现 DocSlicer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要 DocSlicer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 DocSlicer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    打开 DocSlicer 网站 ↗

  3. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 DocSlicer 的设置中,DOCSLICER_MCP_ROOT, DOCSLICER_MCP_ALLOW_CLAUDE_DIR, DOCSLICER_MCP_ALLOW_URLS 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 Cursor 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 DocSlicer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 DocSlicer,或回答中出现 DocSlicer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要 DocSlicer 的密钥(在开发者网站注册,可能收费) · 需要先在电脑上安装 Python (uv)(只需一次)

  1. 安装 Python (uv)

    只需一次,所有需要 Python (uv) 的服务器都能用

    打开 Python (uv) 下载页 ↗

  2. 注册并创建 DocSlicer 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。可能收费。

    打开 DocSlicer 网站 ↗

  3. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  4. 填写你的密钥

    在 DocSlicer 的设置中,DOCSLICER_MCP_ROOT, DOCSLICER_MCP_ALLOW_CLAUDE_DIR, DOCSLICER_MCP_ALLOW_URLS 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  5. 在 VS Code 中以 Agent 模式打开 AI 聊天

  6. 试一试

    用 DocSlicer 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 DocSlicer,或回答中出现 DocSlicer 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 DocSlicer 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add docslicer --env DOCSLICER_MCP_ROOT=your-value --env DOCSLICER_MCP_ALLOW_CLAUDE_DIR=your-value --env DOCSLICER_MCP_ALLOW_URLS=your-value -- uvx docslicer

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "docslicer": {
      "command": "uvx",
      "args": [
        "docslicer"
      ],
      "env": {
        "DOCSLICER_MCP_ROOT": "your-value",
        "DOCSLICER_MCP_ALLOW_CLAUDE_DIR": "your-value",
        "DOCSLICER_MCP_ALLOW_URLS": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "docslicer": {
      "command": "uvx",
      "args": [
        "docslicer"
      ],
      "env": {
        "DOCSLICER_MCP_ROOT": "your-value",
        "DOCSLICER_MCP_ALLOW_CLAUDE_DIR": "your-value",
        "DOCSLICER_MCP_ALLOW_URLS": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "docslicer": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "docslicer"
      ],
      "env": {
        "DOCSLICER_MCP_ROOT": "your-value",
        "DOCSLICER_MCP_ALLOW_CLAUDE_DIR": "your-value",
        "DOCSLICER_MCP_ALLOW_URLS": "your-value"
      }
    }
  }
}

需要你填写的值

  • DOCSLICER_MCP_ROOT 必填 env
    Restrict file sources and outputs to this directory tree. Several may be given, separated by the platform path separator.
  • DOCSLICER_MCP_ALLOW_CLAUDE_DIR env
    Set to 0 to refuse documents dropped into a Claude chat, which the app copies into its own directory outside DOCSLICER_MCP_ROOT.
  • DOCSLICER_MCP_ALLOW_URLS env
    Set to 0 to reject http(s) sources and only permit local files.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
115/周
许可证i
AGPL-3.0
连接方式
在你的电脑上运行
最新版本i
0.2.5
发布到注册中心i
2026年9月2日
代码最后更新i
2026年9月2日
作者
DocSlicer
软件包
mcpb: https://github.com/DocSlicer/DocSlicer/releases/download/v0.
pypi: docslicer
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月12日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 DocSlicer 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于2个月前

  • ✓ 通过

    有许可证

    使用 AGPL-3.0

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3778 个服务器的 97%
  • 发布到注册中心的时间比此分类中其他 3778 个服务器的 29% 更新
  • 基础检查结果等于或优于此分类中其他 3778 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

DocSlicer 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:DOCSLICER_MCP_ROOT

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于2个月前,最新版本(0.2.5)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB, Python (uv)。

有什么可以替代它?

同一分类中有:Puter MCP, XcodeBuildMCP, XcodeBuildMCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

作者:HeyPuter广泛使用★ 4.4万5个月前更新

在云端运行✓ puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:getsentry广泛使用↓ 13万/周★ 65634个月前更新

在你的电脑上运行✓ xcodebuildmcp.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:cameroncooke广泛使用↓ 13万/周★ 656314个月前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

DocSlicer

Lightning-fast (31 pages/sec), deterministic document parser and chunker for business documents. No LLM calls or heavy ML models.

DocSlicer turns PDFs, Word documents, HTML pages, and PowerPoint files into clean chunks, structured blocks, tables, charts, markdown and a navigable heading hierarchy.

Top score on BizDocBench (0.88 overall vs 0.70 for the next-best tool). 0.80 table accuracy, 0.98 content faithfulness, 0.85 heading recognition and hierarchy preservation, and 0.76 RAG retrieval performance.

Two ways to use it:

  • As a Python library — classic RAG. The layout-aware chunker gives you clean, non-overlapping chunks, each carrying its full heading breadcrumb, ready to embed. Jump to the API ↓
  • As an MCP server — vectorless RAG. For when you want an answer out of a document right now. Claude, Cursor, or VS Code pulls the outline, picks the section it needs, and reads only that — no embedding, and no 200-page document in the context window. Jump to setup ↓
Quick start
import docslicer

def main(): result = docslicer.parse_document("annual_report.pdf")

Inspect the outline first

result.hierarchy.to_outline()

- PART I — FINANCIAL INFORMATION

- Item 1. Financial Statements

- Notes to Condensed Consolidated Financial Statements

- Note 4 – Financial Instruments

- Derivative Instruments and Hedging

- Foreign Exchange Rate Risk

- Interest Rate Risk

- Accounts Receivable

- Trade Receivables

- Item 2. Management's Discussion and Analysis

- Liquidity and Capital Resources

- PART II — OTHER INFORMATION

...

Pull only the chunks you need

risk_section = result.find_heading("Risk Factors")[0] chunks = result.chunks_under(risk_section)

Tables come back structured, not as flat text

for table in result.tables_under(risk_section): print(table.markdown)

if name == "main": main()


Features

  • No LLM, VLM, or ML models — fully deterministic; no model weights to download, no GPU required, no cold-start delay
  • Lightweight — ~630 KB wheel with no heavy ML dependencies
  • Agentic-friendly — reduces token spend on long documents: have the agent inspect the outline first, then pull only the relevant chunks into context instead of feeding a 500-page document verbatim; well-suited for legal texts, technical SOPs, financial filings, and compliance documents
  • Deep hierarchy extraction — works for both numbered (1., 1.2., 1.2.3) and free-form headings; uses font size, bold weight, and document structure — not inference; handles re-entry after exhibit breaks and repeated navigation headings across pages
  • Structure-aware chunking — splits at heading and paragraph boundaries, preserving semantic coherence
  • Zero character overlap — chunks are non-overlapping by default; no duplicated tokens in your context window
  • Unified result object — chunks, blocks, tables, charts, metadata, and hierarchy in one place
  • Structured tables — tables come back as cells, not flat text; export as Markdown, JSONL, or melted format
  • Multiple export formats — CSV, Markdown, JSONL, Parquet, JSON, plain text, and DataFrames
  • Reading order preserved — including multi-column PDF layouts
  • Supports `pdf`, `docx`, `pptx`, and `html` — including JS-rendered pages via Playwright
  • Robust URL fetching — always renders pages in a real browser, handling cookie banners and bot protection out of the box; also preserves styling signals like boldness that raw HTML omits, producing sharper heading detection and chunk quality
  • OCR fallback — auto-detects scanned pages and falls back to Tesseract when the extra is installed

Benchmarks

Measured with BizDocBench — an open benchmark for multi-format business document parsing. All scores are 0–1 (higher is better); pages_per_sec_aggregate is throughput across the full corpus.

ToolScoreCoverageSpeedHierarchyFaithfulnessTablesRetrievalPages/sec
docslicer0.87961.00000.88360.84660.98240.80470.760131.27
docling0.70361.00000.38050.49050.89270.74670.71113.46
markitdown0.58381.00000.85130.06040.79720.25840.535727.42
unstructured0.57980.90910.10730.43270.90570.48120.64300.52
opendataloader0.53590.58441.00000.38530.64840.26550.3317117.26
pymupdf4llm0.45190.59740.64920.10890.64560.35510.355211.84
mineru0.41070.59740.13530.42200.61760.30120.39100.70
marker0.37350.59740.15980.19260.61210.30120.37780.87

Install

pip install docslicer

The core install is dependency-light. Optional features are available as extras:

pip install 'docslicer[html]'    # HTML / URL parsing via Playwright

playwright install chromium # one-time browser install (Chromium only)

pip install 'docslicer[ocr]' # scanned PDF support via Tesseract + OpenCV

The tesserocr wheel bundles libtesseract but NOT the language models,

so install the Tesseract engine to provide them (docslicer auto-detects the path):

Linux: apt install tesseract-ocr

macOS: brew install tesseract

pip install 'docslicer[mcp]' # MCP server for LLM clients (Claude, Cursor, …) pip install 'docslicer[llm]' # exact token counts via tiktoken (exact_tokens=True) pip install 'docslicer[crypto]' # password-protected Office files (msoffcrypto-tool) pip install 'docslicer[parquet]' # Parquet export support

Extras can be combined: pip install 'docslicer[html,ocr,llm]'.

Requires Python 3.10+


What you get back (ParseResult)

parse_document returns a ParseResult:

result.chunks      # list[Chunk]   — heading-aware text chunks, ready for embedding

result.blocks # list[Block] — paragraph/heading/table blocks before chunking result.tables # list[Table] — structured tables with cells, spans, and markdown result.charts # list[Chart] — charts as extracted data points (docx/pptx) result.metadata # DocumentMetadata — title, author, language, page count, OCR flag result.hierarchy # HierarchyTree — navigable tree of all headings

Each Chunk carries:

chunk.text          # str   — chunk text

chunk.path # list — full heading breadcrumb from root to nearest heading chunk.heading # str — nearest heading above this chunk chunk.section # str — body | toc | exhibit | header | footer | coverpage | … chunk.page_number # int — 1-based physical page chunk.page_label # str — "A-6", "iv", "F-3" — as printed on the page chunk.table_ids # list — IDs of tables referenced in this chunk chunk.chart_ids # list — IDs of charts referenced in this chunk (docx/pptx) chunk.link_url # list — URLs found in this chunk chunk.bbox # BBox — bounding box (PDF only)

Every chunk carries its full heading breadcrumb, no matter how deeply nested. For example, a paragraph six levels deep in a financial filing:

chunk.path == [

"# PART I — FINANCIAL INFORMATION", "## Item 1. Financial Statements", "### Notes to Condensed Consolidated Financial Statements (Unaudited)", "#### Note 4 – Financial Instruments", "##### Accounts Receivable", "###### Trade Receivables", ]

This lets downstream code filter or group chunks by any level of the hierarchy without re-parsing the document.


Supported formats

FormatExtensionNotes
PDF.pdfText-based and scanned (OCR extra required for scanned)
Word.docxFull style and outline hierarchy
HTML.html, URLsStatic files and JS-rendered pages (html extra required for URLs)
PowerPoint.pptxSlides, speaker notes, charts

Not supported: .doc, .ppt (legacy Office formats), .xlsx.


Parsing

parse_document auto-detects the format from the file extension or magic bytes. Pass a file path, URL, raw bytes, or a file-like object:

result = docslicer.parse_document("contract.docx")

result = docslicer.parse_document("report.pdf") result = docslicer.parse_document("https://www.sec.gov/Archives/edgar/data/.../10-K.htm") result = docslicer.parse_document(file_bytes)

Parsing & content options

parse_document (and the format-specific functions) accept options that control what gets parsed and how, before it's chunked. Format-specific toggles are accepted everywhere for a uniform API but only take effect for the relevant format.

result = docslicer.parse_document(

"contract.docx", password="admin123", # decrypt password-protected files; .docx and .pptx needs [crypto] extra max_workers=4, # process-pool width for PDF extraction/OCR (default: auto by CPU cores) include_headers_footers=True, # docx: include header/footer content (default False) include_footnotes=True, # docx: include footnotes (default True) include_comments=True, # docx: include review comments (default False) include_speaker_notes=True, # pptx: include slide speaker notes (default True) use_browser=True, # html/URL: render in a real browser (default True) )

Chunking options
result = docslicer.parse_document(

"report.pdf", max_chunk_size=2000, # hard cap, default 3200 optimal_chunk_size=800, # target size, default 1500 min_chunk_size=400, # soft floor, default 700 chunking=False, # skip chunking, return blocks only (faster) merge_small_chunks=True, # merge chunks below min_chunk_size (default True) table_representation="jsonl", # "markdown" (default) | "jsonl" | "melted" exact_tokens=True, # exact tiktoken (cl100k_base) counts; needs [llm] extra, else char/4 estimate extra_fields=["is_bold", "font_size", "font_name"], # surface internal pipeline columns on each chunk/block via .extra )

How merge_small_chunks works

Because DocSlicer is structure-aware, it initially produces one chunk per heading or paragraph boundary. For documents with many short sections this can yield a lot of small chunks. With merge_small_chunks=True (the default), sibling sections under the same parent heading are merged together until they reach min_chunk_size — but never a

只显示了开头部分;其余内容请在仓库中阅读