pdffr

v0.1.1
io.github.AmerSarhan/pdffr-mcp Checked 1 day ago Published 3 months ago

Local, private PDF to Markdown for agents: geometry-first parsing, OCR only where needed.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pdf_to_markdown PDF → Markdown

Decompile a PDF into Markdown (headings, lists, tables, math as LaTeX) locally. Born-digital pages take milliseconds; scans and screenshots get on-device OCR only where needed. Nothing is uploaded. Use pdf_outline first on long documents to pick pages.

ParameterTypeDescription
base64stringRaw PDF bytes, base64-encoded
langstringTesseract language(s) for OCR, e.g. 'eng', 'deu', 'eng+ara' (default 'eng')
maxCharsintegerTruncate the Markdown to this many characters (default 200000)
ocrbooleanEscalate ink the text layer cannot explain to on-device OCR (default true)
pagesstringPage selection like '1-3,7' (default all)
pathstringPath to a PDF on this machine
urlstringURL of a PDF to fetch

pdf_outline PDF outline

List the headings of a PDF with their level and page number, so you can decide which pages to read with pdf_to_markdown.

ParameterTypeDescription
base64stringRaw PDF bytes, base64-encoded
langstringTesseract language(s) for OCR, e.g. 'eng', 'deu', 'eng+ara' (default 'eng')
ocrbooleanEscalate ink the text layer cannot explain to on-device OCR (default true)
pathstringPath to a PDF on this machine
urlstringURL of a PDF to fetch

pdf_tables PDF tables

Extract every table in a PDF as JSON rows: [{ page, rows: string[][] }]. The first row is the header.

ParameterTypeDescription
base64stringRaw PDF bytes, base64-encoded
langstringTesseract language(s) for OCR, e.g. 'eng', 'deu', 'eng+ara' (default 'eng')
ocrbooleanEscalate ink the text layer cannot explain to on-device OCR (default true)
pathstringPath to a PDF on this machine
urlstringURL of a PDF to fetch