DocSlicer MCP server
Answer questions from documents too large to fit in context, reading only the sections you need.
35 stars218 downloads/wk
Reviews
Write oneNobody has reviewed DocSlicer yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
DocSlicer tools (5, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_outlineRe-fetch a parsed document's outline, with per-heading read costs.
parseParse a document and return its heading outline. Call this first.
readReturn the text under one or more headings, chosen from the outline.
searchFind where something is discussed. Use when the outline is not enough.
to_markdownwrite actionWrite the whole document to disk as markdown. Returns a path, not the text.
Public scan report
scanner v0.1.9 · 2026-09-20 · same rubric, same numbers if you re-run it
- Code scan136 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 19 days ago15/15
- Maintainer identityregistry namespace matches repository owner7/10
What the publisher says
From the DocSlicer repository's README, as published. We do not edit it. Read it on GitHub
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
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
The registry entry has no remote endpoint or installable package.
DocSlicer: common questions
- Is DocSlicer MCP server safe?
- Yes, by our scan: it is graded A (91/100). Read the DocSlicer safety report
- Does DocSlicer need an API key?
- No secret keys are declared. It reads 6 settings from the environment.
- Is DocSlicer maintained?
- The last commit was 19 days ago (2026-09-01). The latest release is v0.2.5.