PDF tables for AI agents, with every figure checked

An MCP server that turns the tables in a PDF, scan or image into rows and an Excel workbook. Every number is read twice, totals are reconciled, and one all_ok flag tells your agent whether to trust the result.

Open on Apify

What your agent gets back

The extract_tables tool returns every table as rows in JSON, plus one XLSX file with a sheet per table and a Summary sheet.

A figure an agent cannot trust is worse than no figure. So each numeric cell is read a second time by an independent method: pdfium reads the cell box in text PDFs, and a separate OCR pass reads each cell in scans. Column sums are then reconciled against the Subtotal, VAT and Total rows.

If any figure or total disagrees, all_ok is false and the summary shows which one. Your agent can stop and ask a person rather than pass on a wrong number.

Connect it to Claude

In Claude Code, add the server with one command:

claude mcp add --transport http docengine \
  https://doubleaigents--pdf-tables-and-true-redaction-mcp.apify.actor/mcp \
  --header "Authorization: Bearer <APIFY_TOKEN>"

For Cursor and other MCP clients that take a server URL in their config:

{ "mcpServers": { "docengine": {
    "url": "https://doubleaigents--pdf-tables-and-true-redaction-mcp.apify.actor/mcp",
    "headers": { "Authorization": "Bearer <APIFY_TOKEN>" } } } }

Or use Apify's hosted MCP gateway, which handles authentication for any MCP client:

https://mcp.apify.com?tools=doubleaigents/pdf-tables-and-true-redaction-mcp

The same server also offers redact_pdf, our true PDF redaction tool.

Pricing

Each page processed by extract_tables$0.02
Extra for each scanned or image page (OCR)$0.01

Billed per page through your Apify account, only after a call completes. PDF, PNG, JPG, TIFF, BMP and WEBP files up to 50 MB and 500 pages are accepted.

Invoices and receipts

For invoices, our separate invoice and receipt tool returns supplier, dates, invoice number, VAT number and line items as JSON and Excel. Line items are checked against net, and net plus VAT against gross, with the same all_ok flag. It costs $0.03 per page.

Bank statements and PDF comparison are on the developers page.

Limits worth knowing

Ruled tables are detected directly. Unruled tables use a word-grid fallback that assumes one text line per row, so multi-line cells split into extra rows. Handwriting is not supported.

Scans are read with Tesseract OCR, in English by default. Poor scans lower accuracy; when that happens, the second-pass check is what flags it.

Questions

How do I know the figures are right?
With check=true (the default) every numeric cell is read a second time by an independent method and totals are reconciled. Any disagreement is listed, and all_ok is false.
Can it handle scanned PDFs and photos?
Yes, with OCR, at $0.01 extra per scanned page. Accuracy depends on scan quality, and the second-pass check flags doubtful figures.
Does it use an LLM?
No. It runs deterministic code inside the Apify Actor, so the same file gives the same output every time, and no third-party API is called.
What does a 10-page PDF cost?
$0.20. Add $0.10 if all 10 pages are scans.

Need volume or a custom pipeline?

The same tools can run on your own hardware, or be built into a pipeline for your documents.

Talk to us