MCP Business PDF Field Extractor logo

MCP Business PDF Field Extractor

by mambalabsdev

Extracts fixed fields, line items, and contract details from invoice, purchase order, and contract PDFs with optional OCR.

Install MCP Business PDF Field Extractor

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mambalabsdev-mcp-business-pdf-field-extractor": {
      "command": "npx",
      "args": [
        "-y",
        "@mambalabsdev/mcp-business-pdf-field-extractor"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @mambalabsdev/mcp-business-pdf-field-extractor

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

mambalabsdev/mcp-business-pdf-field-extractor connects MCP clients to the Mamba Labs Business PDF Field Extractor actor on Apify. It accepts public PDF URLs, identifies invoices, purchase orders, and contracts, and returns structured fields using labels and column positions rather than AI. Scanned pages can be processed with OCR, while options control document type, date parsing, page limits, line-item output, and returned text. Use it when you need repeatable extraction from business PDFs and have an Apify account with an API token.

Use cases

  • Extract invoice totals, parties, dates, and line items
  • Read purchase-order line items from batches of PDFs
  • Identify renewal and notice details in contracts
  • Process scanned business documents with OCR
  • Return document text alongside extracted fields

Key features

  • Fixed-field extraction for invoices, purchase orders, and contracts
  • Optional OCR for scanned PDF pages
  • Automatic or explicit document-type selection
  • Configurable line-item rows and document text output
  • Batch processing for public PDF URLs
  • Apify-backed usage and charge limits

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 20h ago via OSV.dev · @mambalabsdev/mcp-business-pdf-field-extractor (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit17d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.

How MCP Business PDF Field Extractor works

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:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Business PDF Field Extractor

mambalabsdev/mcp-business-pdf-field-extractor is an MCP server that connects to the Mamba Labs Business PDF Field Extractor actor on Apify. Its main tool, extract_business_pdf_fields, reads invoice, purchase order, and contract PDFs, returning fixed fields, line items, contract details, and optional OCR results.

Install it through an MCP client's configuration with `npx -y @mambalabsdev/mcp-business-pdf-field-extractor`. Set the `APIFY_TOKEN` environment variable to an Apify API token, restart the client, and use the `extract_business_pdf_fields` tool.

Yes, it works with Cursor through the standard MCP server configuration. Add the package as an `npx` command, provide `APIFY_TOKEN` in the server environment, and restart Cursor so the extraction tool becomes available.

Yes, it can process scanned pages with OCR when `read_scans` is enabled, which is the default. You can select an OCR language and cap OCR pages per file; disabling scan reading skips pages that have no text layer.

Usage is billed to the Apify account by event. Charges can apply for actor starts, documents with at least one extracted field, and scanned pages where OCR returns text. Set `max_charge_usd` to stop before a run exceeds a chosen amount.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Business PDF Field Extractor AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mambalabsdev-mcp-business-pdf-field-extractor?style=directory)](https://allmcps.com/mcp/mambalabsdev-mcp-business-pdf-field-extractor)
HTML Embed
<a href="https://allmcps.com/mcp/mambalabsdev-mcp-business-pdf-field-extractor"><img src="https://allmcps.com/api/badge/mambalabsdev-mcp-business-pdf-field-extractor?style=directory" alt="MCP Business PDF Field Extractor on AllMCPs" /></a>