Document to JSON – PDF Invoice/Statement/Contract Parser — MCP server
Converts invoices, bank statements, and contracts from PDF into structured JSON using AI and OCR. Built for automated document extraction from public URLs.
claude mcp add --transport http document-to-json-pdf-invoicestatementcontract-parser 'https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp'What Document to JSON – PDF Invoice/Statement/Contract Parser does
The server runs as an Apify Actor and connects over remote HTTP. It accepts a public document link and outputs JSON with extracted data. The model pulls seller details, line items, tax amounts, account transactions, and contract clauses. Built-in OCR handles English, Italian, and Spanish.
Four specialized tools are available: parse_invoice, parse_bank_statement, parse_contract, and parse_generic_document. Each request takes about 15–20 seconds. The service automatically validates calculation totals and statement dates. Input files are not stored after processing finishes.
Because the tool requires a public web link, local files must be uploaded to storage beforehand. Extractions follow pay-per-event pricing: $0.01 per invoice, $0.015 per bank statement, and $0.02 per contract.
What it helps with
- extract line items, totals, and tax IDs from invoices
- convert bank statement transactions and balances into JSON
- retrieve parties, terms, and key clauses from contracts
- read text and tables from scanned files across three languages
Example prompts for the agent
- Parse the invoice at https://example.com/invoice.pdf and return JSON with totals and VAT.
- Extract transactions and balances from the statement at <file_url> using parse_bank_statement.
- Identify all parties, dates, and core terms in the contract at <file_url>.
How to install Document to JSON – PDF Invoice/Statement/Contract Parser
Platform CLI: remote server
claude mcp add --transport http document-to-json-pdf-invoicestatementcontract-parser 'https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp'Platform CLI: remote server
codex mcp add document-to-json-pdf-invoicestatementcontract-parser --url 'https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp'Config file
{
"mcpServers": {
"document-to-json-pdf-invoicestatementcontract-parser": {
"url": "https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp"
}
}
}Config file
{
"servers": {
"document-to-json-pdf-invoicestatementcontract-parser": {
"type": "http",
"url": "https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http document-to-json-pdf-invoicestatementcontract-parser 'https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp'Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Document to JSON – PDF Invoice/Statement/Contract Parser
How to install Document to JSON – PDF Invoice/Statement/Contract Parser in Claude Code?
Run `claude mcp add --transport http document-to-json-pdf-invoicestatementcontract-parser 'https://mcp.apify.com/?actors=opportunity-biz/document-to-json-mcp'`. Claude Code will then detect the document parsing tools.
What does Document to JSON – PDF Invoice/Statement/Contract Parser do?
It processes PDF documents hosted online and extracts structured JSON using an AI model. The server handles invoices, bank statements, legal agreements, and general tabular files.
Which languages are supported for scanned document OCR?
The OCR engine supports English, Italian, and Spanish. It defaults to the multi-language configuration eng+ita+spa.