Doc Extract

•

Provides AI assistants with deterministic document tooling for reliable PDF/text reading, structured data extraction, and schema validation within a confined environment.

Doc Extract is an MCP server designed to empower large language models with robust, deterministic document tooling for structured-data extraction workflows. It tackles common LLM limitations such as hallucinating file contents, losing context in long documents, or generating malformed JSON by meticulously handling critical tasks. This includes secure, confined file access, precise PDF/text parsing and chunking, comprehensive JSON Schema validation with detailed multi-error reporting, and guarded file output. The server ensures that while the LLM focuses on extraction reasoning, the underlying document interactions are secure, accurate, and predictable, making it ideal for transforming complex documents like invoices or purchase orders into schema-validated JSON.

主な機能

01Structured output saving (JSON/CSV) inside the allowed root with verification.
02Deterministic document chunking with overlap and explicit page hints for long documents.
03Reads PDF, TXT, MD, CSV, and JSON documents, with explicit page markers for PDFs.
04Comprehensive JSON Schema validation (Draft 2020-12) with all errors reported.
05Confined and guarded file system access with path traversal prevention.
060 GitHub stars

ユースケース

01Transforming messy PDFs (e.g., invoices, purchase orders) into schema-validated JSON data.
02Providing LLMs with reliable document access and parsing for advanced automation workflows.
03Validating LLM-generated structured data against predefined JSON schemas to ensure accuracy.