# mambalabsdev/mcp-business-pdf-field-extractor [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/mambalabsdev/mcp-business-pdf-field-extractor  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mambalabsdev-mcp-business-pdf-field-extractor

## Description
Fixed fields and line items from invoice, purchase order, and contract PDFs, with OCR, no AI

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-business-pdf-field-extractor": {
    "command": "npx",
    "args": ["-y","@mambalabsdev/mcp-business-pdf-field-extractor"],
    "env": {
      "APIFY_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `APIFY_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mambalabsdev/mcp-business-pdf-field-extractor does

mambalabsdev/mcp-business-pdf-field-extractor exposes the `extract_business_pdf_fields` MCP tool for extracting structured information from business documents. It works with invoices, purchase orders, and contracts through the Mamba Labs Business PDF Field Extractor actor on Apify.

Invoices and purchase orders can produce document numbers, dates, parties, totals, line items, and an arithmetic check for the extracted amounts. Contract results can include the parties, important dates, term, renewal details, notice periods, governing law, and detected standard clauses. Values are found from labels and column positions. Fields without a recognized label remain null and are reported as missing, which makes the output predictable but dependent on document layout.

## How it works

The tool receives one or more PDF addresses and starts an Apify actor run. The MCP package waits for that run to finish, then returns the resulting dataset rows. The URLs must be publicly reachable without authentication. A run can process up to 1,000 PDF URLs, subject to the configured document limit and the actor's file and page limits.

Document classification defaults to automatic detection for each file. You can instead force every file in a run to `invoice`, `purchase_order`, or `contract`. PDFs with a text layer are read directly. Pages without text can be sent through OCR, with language choices including English, German, French, Spanish, Dutch, Italian, and Portuguese.

## Setup and configuration

Install the package through an MCP client's standard `npx` configuration:

```json
{
  "mcpServers": {
    "mamba-business-pdf-field-extractor": {
      "command": "npx",
      "args": ["-y", "@mambalabsdev/mcp-business-pdf-field-extractor"],
      "env": {"APIFY_TOKEN": "your-apify-token"}
    }
  }
}
```

Node.js 18 or newer is required. Set `APIFY_TOKEN` to an Apify API token; the server can list its tool without the token, but a tool call needs it. After restarting the MCP client, call `extract_business_pdf_fields` with a `pdf_urls` array. The actor also supports an optional single `pdf_file` stored in Apify.

Useful controls include `date_order` for ambiguous dates, `read_scans` and `ocr_language` for scanned pages, `max_pages`, `max_ocr_pages`, and `max_documents` for run limits, and `max_charge_usd` to stop before exceeding a specified charge. Set `line_item_rows` to control whether line items become separate rows, and `include_text` to add up to 200,000 characters of document text to each result.

## Tools and capabilities

- Extract fields from invoice, purchase order, and contract PDFs.
- Return invoice and purchase-order line items, either nested or as separate rows.
- Read scanned pages with configurable OCR language and page limits.
- Apply automatic or explicitly selected document types.
- Return document text when requested.
- Process multiple public PDF URLs in one run.

## Limitations and notes

The service is backed by Apify, and usage is billed to the associated Apify account. Charges can include a per-run start event, a per-document result event, and OCR events for scanned pages that return text. The `max_charge_usd` option can limit a run before a charge would exceed the configured amount.

Each URL must be accessible without a login, and individual files can be up to 40 MB. The actor reads up to 500 pages per file and up to 100 OCR pages per file, with lower defaults. Disabling scan reading skips pages without a text layer and marks that condition in the result. Because extraction uses known labels and layout positions without AI, unfamiliar labels or layouts may leave fields empty or missing.

_Full upstream README: https://allmcps.com/mcp/mambalabsdev-mcp-business-pdf-field-extractor/readme_

