PDF Extractor Pro
Connects to Google Drive to ingest PDFs in bulk and convert them into verified Markdown and JSON artifacts.
Syncs verified extraction chunks and entity graph data to Neo4j GraphRAG for downstream knowledge graph and retrieval workflows.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PDF Extractor Pro Skill
An AI Agent Skill & MCP Server for Mathematically Verified, Lossless PDF → Markdown + Analytical JSON
Why this skill exists: Standard PDF parsers silently drop table cells, scramble multi-column layouts, and hallucinate blurry numbers—poisoning RAG pipelines and compliance archives before your LLM ever sees a prompt. PDF Extractor Pro gives AI agents (Claude, Claude Code, OpenAI Codex, Cursor, Gemini, and MCP clients) a deterministic, mathematically verified document ingestion engine where quality is measured, never asserted.
Watch the 10-Second Overview

Watch on YouTube Shorts • Standard YouTube Link — featured on the dodi channel
Related MCP server: Xberg MCP Server
Use as an AI Agent Skill
pdf_extractor_pro_skill ships with a formal Skill.md specification, deterministic Python execution modules, and a native Model Context Protocol (MCP) server so LLMs can invoke verified bulk extraction directly inside agentic workflows.
Platform / Runtime | How to Load This Skill |
Claude Code | Clone or copy this repository into |
Claude Desktop / Claude.ai | Upload the skill folder ( |
OpenAI Codex / Cursor / Windsurf / Cline | Add the repo to your workspace skills directory (e.g., |
Any MCP-Compatible Agent | Run the MCP server entrypoint inside |
Example Prompts Once Loaded
"Use pdf_extractor_pro_skill to convert all PDFs in ./contracts into lossless Markdown + JSON and verify η ≥ 0.998.""Ingest Q4 financial statements from s3://corp-filings/q4/ using PDF Extractor Pro, quarantine any Tier-4 OCR regions, and sync verified chunks to Qdrant and Neo4j.""Run the cryptographic SHA-256 cross-link check and red-team evaluation suite on ./pdfx_out and summarize any audit flags."Measured Extraction Quality
Side-by-Side Metric Breakdown
Metric | Legacy Parsers | PDF Extractor Pro (Verified) | Improvement | Enforced Gate |
Token Conservation ( |
|
|
| Mandatory SLA |
Table Cell Recall |
|
|
| Full cell, span & row preservation |
Multi-Column Reading Order |
|
|
| Strict-DAG 2D Kahn's topological sort |
Audit & Lineage Traceability |
|
|
| UUIDv5 + mutual SHA-256 + Merkle proofs |
Distributional Fidelity | Unmeasured |
| Lossless | Unigram & Bigram |
%%{init: {'theme': 'base', 'themeVariables': { 'xyChart': { 'backgroundColor': '#0d1117', 'titleColor': '#f0f6fc', 'xAxisLabelColor': '#c9d1d9', 'yAxisLabelColor': '#c9d1d9', 'xAxisTitleColor': '#8b949e', 'yAxisTitleColor': '#8b949e', 'plotColorPalette': '#484f58, #06b6d4' }}}}%%
xychart-beta
title "Legacy PDF Parsers (Gray) vs. PDF Extractor Pro Verified (Cyan) — %"
x-axis ["Token Conservation (η)", "Table Cell Recall", "Multi-Column Order", "Audit & Lineage"]
y-axis "Accuracy / Compliance (%)" 0 --> 105
bar [86.5, 74.0, 68.0, 20.0]
bar [99.8, 99.4, 100.0, 100.0]Architecture & MCP Federation
Live Pipeline Flow (Native GitHub Diagram)
flowchart TB
classDef agent fill:#2e1065,stroke:#a855f7,color:#f5f3ff,stroke-width:2px
classDef source fill:#0c4a6e,stroke:#38bdf8,color:#f0f9ff,stroke-width:2px
classDef gate fill:#0f172a,stroke:#06b6d4,color:#ecfeff,stroke-width:2px
classDef artifact fill:#064e3b,stroke:#10b981,color:#ecfdf5,stroke-width:2px
classDef sink fill:#1e293b,stroke:#94a3b8,color:#f8fafc,stroke-width:2px
subgraph T1["1. AI Agent & Skill Layer"]
direction LR
AG1["Claude / Claude Code"]:::agent
AG2["OpenAI Codex"]:::agent
AG3["Cursor / IDE Agents"]:::agent
AG4["Skill.md + MCP Server"]:::agent
end
subgraph T2["2. Cloud & Local Ingestion (MCP Federation)"]
direction LR
S1["SharePoint Online"]:::source
S2["Google Drive"]:::source
S3["AWS S3"]:::source
S4["Local Bulk Archives"]:::source
end
subgraph T3["3. Deterministic DAG & Math Verification Gate"]
direction TB
G1["DAG Compiler • Little's-Law Concurrency • EWMA Circuit Breaker"]:::gate
G2["Strict-DAG 2D Layout Sort (Kahn's) • Tables, Equations & PII/Security"]:::gate
G3["Math Verification: η ≥ 0.998 • D_KL < 1e-4 • 4-Tier Epistemic Audit"]:::gate
G4["Cryptographic Integrity: UUIDv5 Key • Mutual SHA-256 • Merkle + SQLite Ledger"]:::gate
G1 --> G2 --> G3 --> G4
end
subgraph T4["4. Bijective Dual-Artifact Output"]
direction LR
A1["{doc_id}.md\nLossless Text, Tables & Equations\nSHA-256 Cross-Linked"]:::artifact
A2["{doc_id}.json\nEntities, Graph, RAG Chunks,\nProof Metrics & Tier-4 Audit"]:::artifact
end
subgraph T5["5. Enterprise AI & Knowledge Sinks"]
direction LR
K1["Qdrant Vector Search"]:::sink
K2["Neo4j GraphRAG"]:::sink
K3["Compliance Archives"]:::sink
end
T1 --> T2
T2 --> G1
G4 --> A1
G4 --> A2
A1 --> T5
A2 --> T5Mathematical & Engineering Guarantees
Every ingested PDF compiles into a cryptographically paired output bundle—{doc_id}.md + {doc_id}.json—bound 1-to-1 by filename and mutual SHA-256 cross-checksums:
doc_id = UUIDv5(NAMESPACE_OID, SHA256(B) || Normalize(U) || tau)Guarantee | Enforced Standard | Business & Engineering Impact |
Bijective Bulk Mapping | Deterministic | Zero file collisions across 10,000+ document batches and instant 1-to-1 audit lineage. |
Verified Lossless Text | Token Conservation | Mathematically proves ≥99.8% of source words, figures, and contract clauses survive intact. |
Layout & Table Fidelity | Strict-DAG 2D bounding-box topological sort (Kahn's algorithm) + structured table/equation parsers | Preserves financial statements, multi-column legal contracts, and formulas without scrambled rows. |
Zero-Hallucination Audit | 4-Tier Epistemic Hierarchy with Tier-4 quarantine logs | Never guesses blurred figures or damaged scans; uncertain spans are isolated for human review. |
Resilient Bulk Execution | EWMA circuit breaker, Little's-Law adaptive concurrency control, and SQLite checkpoint ledger | Survives API rate limits and transient cloud outages with idempotent, resumable checkpoints. |
PII & Red-Team Hardening | Built-in PII detection, prompt-injection security guards, and automated red-team test suite | Separates functional regressions ( |
{doc_id}.md— Clean, lossless, human- and LLM-readable Markdown preserving headings, paragraphs, nested lists, LaTeX/math equations, multi-column reading order, and complex tables, linked by SHA-256 checksum to its companion JSON.{doc_id}.json— Machine-ready analytical intelligence package containing:Document metadata, source URI lineage, and cryptographic cross-hashes (
UUIDv5,SHA-256, Merkle proof hooks)Extracted entities and graph relationships ready for Neo4j GraphRAG
Table-safe RAG chunks ready for Qdrant semantic vector search
PII & security inspection flags
Measured quality proof metrics (
eta, unigram/bigramD_KL, table recall, DAG ordering verification)Tier-4 epistemic audit entries for any low-confidence OCR spans
Quick Start (CLI)
1. Install Dependencies
pip install -r requirements.txt2. Extract, Verify & Export JSON Schema
# Bulk-extract local PDFs into paired {doc_id}.md + {doc_id}.json artifacts
python tools/cli.py extract ./pdfs --out ./pdfx_out --workers 8
# Cryptographically verify SHA-256 cross-links, Merkle integrity, and mathematical quality gates
python tools/cli.py verify ./pdfx_out
# Export the strict JSON Schema for downstream pipeline validation
python tools/cli.py schema > document-artifact.schema.json3. Run Tests, Red-Team Suite & Evaluation Judges
# Run unit tests and security red-team scenarios
python -m pytest tests evals/red_team_modes.py -v
# Execute offline evaluation judges + red-team audit (writes evals/report.md)
python evals/judges.py --offline --red-teamCI/CD Exit Codes:
0— All functional quality gates and security checks passed.1— Functional / mathematical verification regression detected.2— Security or red-team policy violation detected.
MCP Federation & OCR Configuration
Cloud Sources & Knowledge Sinks: Remote URIs (
s3://,sharepoint://,gdrive://) and knowledge-base sync (--sink knowledgefor Qdrant & Neo4j) require the connector environment variables documented inreference/mcp_integration.md.OCR Fallback: For scanned or hybrid PDFs, install Tesseract and set
TESSERACT_CMD, or setANTHROPIC_API_KEYfor vision-assisted fallback governed by the 4-Tier Epistemic Audit policy.
Repository Layout
Path | Role & Key Modules |
| Agent Skill specification, invocation triggers, mathematical proofs, epistemic definitions, and documented deviations. |
| Layout Strict-DAG builder, table & equation extractors, OCR + 4-tier epistemic classifier, entity & graph extraction, table-safe RAG chunking, PII & security scanner, lossless Markdown emitter, quality metrics ( |
| Zero-cycle DAG compiler, EWMA circuit breaker, Little's-Law concurrency controller, SQLite checkpoint ledger, telemetry hooks, and cryptographic integrity engine ( |
| MCP router & connectors (SharePoint Online, Google Drive, AWS S3, Qdrant/Neo4j knowledge sink), schemas, bulk worker executor, CLI ( |
| Automated evaluation judges ( |
| Engineering guidelines, mathematical foundations, MCP integration contracts ( |
| Visual benchmark and architecture charts ( |
Links & Contact
Full Agent Skill Specification:
Skill.mdMCP Integration Contracts:
reference/mcp_integration.mdYouTube Demo (dodi): Watch on YouTube Shorts
GitHub: @narc-kany
Portfolio: narc-kany.github.io
Technical Deep-Dives: Medium (@sivanesh.developer69)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server: convert PDFs to clean, LLM-ready Markdown with tables, formulas and OCR.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
High-fidelity PDF to structured Markdown conversion and document field extraction.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Related MCP Servers
- AlicenseAqualityAmaintenancePDF extraction that actually works. The only extractor that audits every page. #2 on opendataloader-bench. 5 MCP tools for AI agents: metadata, convert, analyze, batch, structured extraction.7217 PyPI88MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that extracts clean text, tables, and structured data from documents, images, code, and audio files, supporting 97 formats with OCR, transcription, and code intelligence.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to extract structured data from PDFs with confidence scores and provenance, and to search, review, and correct documents via MCP tools, resources, and prompts.-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables document layout parsing, complex table reconstruction, formula auditing, and PII/credential redaction with Luhn verification, reversible salt hashing, and audit logs through MCP-compatible clients.-