# Invoice PDF Extractor

> Extract data from text-based invoice PDFs into JSON and Excel using a local Ollama model, with date and total checks.

Invoice PDF Extractor is a paid AI agent skill on Agensi by Monil Patel, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2 (one-time purchase)
- Creator: [Monil Patel](https://www.agensi.io/creators/monil-patel)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/invoice-pdf-extractor
- Tags: finance, automation, productivity, python, ollama, data-extraction, invoice

## About this skill

Turns a folder of text-based invoice PDFs into JSON and Excel.

### What it does
- Extracts vendor, invoice number, date, line items, tax and total
- Checks dates and whether line items plus tax match the total
- Asks the model to correct failed checks, up to 3 attempts in total
- Marks results as OK, Needs review or Failed

### How it works
Your agent runs a bundled Python script. It reads PDFs with pdfplumber and sends the text to Ollama on the same computer.

### Privacy
The script sends invoice text only to local Ollama. If your AI agent reads the invoices or output files, that content may go to its model provider.

### Known limitations
- No OCR for scanned PDFs or photos
- Subfolders are not processed
- The model can make mistakes, even on results marked OK
- Discounts or extra charges may cause Needs review
- Very long documents may not fit
- Numeric dates are read as day/month/year

## Requires

- python 3.10+
- Ollama
- llama3.2:3b model

## 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 PDF Extractor skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What are the requirements?

Python 3.10+, the listed packages, Ollama and llama3.2:3b.

### Are scanned invoices supported?

No. Only text-based PDFs are supported.

### What happens if totals are wrong?

It makes up to 3 attempts, then marks remaining problems Needs review. Verify OK results too.

### What is included?

SKILL.md, Python scripts, requirements, output format reference, example output and README.

### What output do I get?

JSON and Excel files.

---

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.
