# Invoice Receipt Extractor(IRE)

> Turn invoice and receipt images or PDFs into validated JSON or CSV. No pip installs. Built-in checks (subtotal + tax = total, line items, tax-ID checksums for India, Australia, UK, Germany, France, Italy, Belgium, Canada, Brazil) catch misread digits before they reach your books.

Invoice Receipt Extractor(IRE) is a free AI agent skill on Agensi by Aditya Kumar Singh, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Aditya Kumar Singh](https://www.agensi.io/creators/adityasingh)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Uses: 1
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/invoice-receipt-extractor-ire
- Tags: finance, database, project-management, invoice, receipt, ocr, accounts-payable, bookkeeping

## About this skill

Turns invoices and receipts into clean, checked data. Point your agent at a file or folder of scans, photos or PDFs and get back JSON or a CSV: vendor, invoice number, dates, currency, tax ID, subtotal, tax, total and line items.

**How it works**
1. PDFs with a text layer are read exactly. Scans and photos go through Tesseract OCR on your machine.
2. Your agent fills a fixed schema and leaves anything it can't find empty instead of guessing.
3. A built-in validator checks the numbers: subtotal + tax must equal the total, line items must add up, quantity x price must match each amount, dates and currencies are normalized, and Indian GSTIN tax IDs are checked for format and checksum, with a suggested fix for common OCR mix-ups like O vs 0.

**Where it stops**
- Handwriting, heavy skew and very low-resolution photos extract poorly.
- It checks that an invoice is internally consistent, not that it is genuine.
- Checksum validation covers Indian GSTIN only; other tax IDs are recorded as printed.
- OCR and validation run locally and make no network calls. The text your agent reads follows your agent's own privacy settings.

## Requires

- Python

## Known limitations

Poor performance with handwriting, low-res photos, or heavy skew. Tax ID checksums limited to Indian GSTIN. Requires Tesseract and Poppler installed locally.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Invoice Receipt Extractor(IRE) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What file formats are supported for extraction?

This skill handles single-page images (JPEG, PNG), multi-page PDFs, and batch processing for entire folders of documents, making it ideal for bulk expense reporting.

### How does this prevent the 'hallucinations' or math errors common in standard AI extraction?

Unlike general LLM prompts, this skill uses a deterministic validation layer that runs arithmetic checks on subtotals and taxes, ensuring the extracted numbers are mathematically consistent.

### What is included in the purchase of the Invoice Receipt Extractor?

The package includes the core Python extraction scripts, the standardized invoice JSON schema, and the validation logic required to audit the extracted data for accuracy.

### Are there any specific technical requirements or dependencies for installation?

You will need Python installed along with the Tesseract OCR engine and Poppler; the skill includes a list of necessary libraries like 'pytesseract' and 'pillow' to get started.

### Does the validation logic work for invoices from any country?

While the skill can extract data from any Latin-alphabet invoice, its specialized Tax ID (GSTIN) checksum validation is currently optimized for Indian tax formats.

### Can I export the extracted data directly into my accounting software?

Yes, the skill is designed to normalize data into a fixed JSON schema, which can be easily exported to CSV or integrated directly into popular ERP and accounting software via API.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
