Contract Parser logo

Contract Parser

by Document to JSON – PDF Invoice/Statement

Parses public PDF URLs into structured JSON for invoices, bank statements, contracts, and generic documents.

Install Contract Parser

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

SSE (Remote)
Server URL
https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

Document to JSON – PDF Invoice/Statement/Contract Parser MCP server converts public PDF URLs into structured JSON through an Apify-hosted actor. It exposes specialized tools for invoices, bank statements, and contracts, plus a generic document parser for text and tables. AI-based extraction and OCR support variable layouts and scanned files in English, Italian, and Spanish. Reach for it when an agent needs to extract fields, transactions, clauses, or totals without maintaining document-specific templates.

Use cases

  • Extract invoice fields and line items
  • Convert bank statements into transaction JSON
  • Identify contract dates and key clauses
  • Parse scanned PDFs with OCR
  • Return generic document text and tables

Key features

  • Invoice, bank statement, and contract parsers
  • Generic PDF text and table extraction
  • AI-based layout handling
  • OCR for English, Italian, and Spanish
  • Totals and date validation options
  • Apify MCP, REST, and client-library access

Security & health

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

ActiveLast checked 3d ago

Recent health check succeeded.

7/7 checks healthy over the last 40d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9/10/2026 via OSV.dev · https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp (npm)

Adoption & maintenance

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

GitHub stars8Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Contract Parser works

What Document to JSON – PDF Invoice/Statement/Contract Parser MCP server does

Document to JSON – PDF Invoice/Statement/Contract Parser MCP server accepts a public PDF URL and returns extracted data as JSON. It is designed for common business documents, including invoices, bank statements, and contracts, while a generic mode handles full text and tables from other document types.

Invoice results can include seller and buyer details, invoice numbers, dates, line items, totals, VAT, IBANs, and payment information. Bank statement extraction covers transactions, balances, fees, and account-holder details. Contract extraction can identify parties, dates, financial terms, jurisdiction, and key clauses with summaries. Results can also include a document type and confidence value.

How it works

The MCP tools send a PDF URL and document selection to an Apify-hosted actor. The actor uses AI-based document understanding rather than fixed templates or regular expressions, allowing it to process different layouts and vendors. OCR is included for scanned PDFs.

Available OCR languages are English (eng), Italian (ita), and Spanish (spa). Multiple languages can be combined, such as eng+ita+spa, which is the documented default. Sample extractions in the README take approximately 15–20 seconds, although processing time may vary.

The service also supports validation options for extracted content. For example, the REST example enables validate_totals for an invoice. Pricing is described as pay per use through Apify: invoices, bank statements, and contracts have separate per-document prices, while generic parsing is free during the stated launch period.

Setup and configuration

Provide a publicly accessible PDF URL, choose the document type, and run the actor. The MCP endpoint is hosted at https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp. Claude Code can add it using an HTTP transport. Claude Desktop and Cursor can connect through mcp-remote and an Apify authorization header.

An Apify token is used in the documented Claude Desktop, Cursor, REST, Python, and JavaScript examples. No local PDF path is described; the documented input is a public file_url.

Tools and capabilities

Document to JSON – PDF Invoice/Statement/Contract Parser exposes these MCP tools:

  • parse_invoice for invoice fields, line items, tax, totals, and payment details.
  • parse_bank_statement for transactions, balances, fees, and account information.
  • parse_contract for parties, dates, clauses, financial terms, and jurisdiction.
  • parse_generic_document for general document text and tables.

The same actor can also be called through its REST API or Apify client libraries. Extracted data is made available in an Apify dataset, and the REST endpoint can return the result directly with run-sync-get-dataset-items.

Limitations and notes

The documented workflow requires a public PDF URL. OCR language support is limited to English, Italian, and Spanish as documented. Extraction prices apply by document type, and Apify access requires a token in the integration examples.

These privacy statements describe the hosted actor workflow and should be evaluated against the deployment and data-handling requirements of your application.

Reviews

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

Frequently Asked Questions about Contract Parser

Document to JSON – PDF Invoice/Statement/Contract Parser is an MCP server that connects AI agents to an Apify-hosted PDF parsing actor. Its main tools are parse_invoice, parse_bank_statement, parse_contract, and parse_generic_document, which accept public PDF URLs and return structured JSON, including OCR-based results for scanned documents.

Add the hosted MCP endpoint to your client rather than installing a local parser. Claude Code uses the documented HTTP command, while Claude Desktop and Cursor use npx with mcp-remote and an Apify authorization header.

Yes, it works with Cursor through an MCP configuration using npx, mcp-remote, the hosted Apify endpoint, and an Apify bearer token. After configuration, Cursor can access the invoice, bank statement, contract, and generic parsing tools.

It requires a publicly accessible PDF URL and a selected document type.

It supports English, Italian, and Spanish OCR. The documented language codes are eng, ita, and spa, and they can be combined with plus signs, such as eng+ita+spa, for multilingual scanned documents.

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 PreviewContract Parser AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/document-to-json-pdf-invoice-statement-contract-parser?style=directory)](https://allmcps.com/mcp/document-to-json-pdf-invoice-statement-contract-parser)
HTML Embed
<a href="https://allmcps.com/mcp/document-to-json-pdf-invoice-statement-contract-parser"><img src="https://allmcps.com/api/badge/document-to-json-pdf-invoice-statement-contract-parser?style=directory" alt="Contract Parser on AllMCPs" /></a>