pdf-invoice-extractor

pdf-invoice-extractor is a skill for Claude Code from Swih/mistral-mcp. It costs 39 tokens per session (1,102 once invoked), scanned A, original, MIT.

A tool for reading invoice PDFs and extracting structured accounting fields such as vendor, date, amounts, VAT, and line items. OCR, or optical character recognition, lets it read scanned as well as digital documents.

In plain words
What is it for?
Use it to read a public or uploaded invoice PDF or receipt, extract its fields for reconciliation or import, and optionally process multiple invoices together.
Why use it?
It reduces manual copying of invoice details into accounting or enterprise resource planning systems. It can also process invoices in several languages and supports bulk processing when the required profile is enabled.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mistral-mcp plugin — 11 skills shipped together

Good fit Use it to read a public or uploaded invoice PDF or receipt, extract its fields for reconciliation or import, and optionally process multiple invoices together.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/swih/mistral-mcp/pdf-invoice-extractor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Swih/mistral-mcp --skill pdf-invoice-extractor
Clone the repo
git clone --depth 1 https://github.com/Swih/mistral-mcp

Made for: Claude Code.

Or install mistral-mcp, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf-invoice-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/swih/mistral-mcp/pdf-invoice-extractor/github.svg)](https://agentmods.dev/skills/swih/mistral-mcp/pdf-invoice-extractor)
Your own site
<a href="https://agentmods.dev/skills/swih/mistral-mcp/pdf-invoice-extractor"><img src="https://agentmods.dev/badge/skills/swih/mistral-mcp/pdf-invoice-extractor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf-invoice-extractor

Your own site · 80×15
<a href="https://agentmods.dev/skills/swih/mistral-mcp/pdf-invoice-extractor"><img src="https://agentmods.dev/badge/skills/swih/mistral-mcp/pdf-invoice-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01102
Opus 5 $0.00019 $0.00551
Sonnet 5 $0.00008 $0.00220
Haiku 4.5 $0.00004 $0.00110

Measured 10d ago against content hash f3d3217b1cea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pdf-invoice-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/skills/pdf-invoice-extractor/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF invoice extractor

Extracts structured invoice data from PDFs for accounting reconciliation and ERP import. Uses mistral_ocr for document understanding, then mistral_chat with json_schema for strict field extraction.

Profile requirements:

  • mistral_ocr + mistral_chat — available in core profile (default)
  • files_upload (to upload a local PDF) — requires MISTRAL_MCP_PROFILE=full
  • batch_create (for bulk invoice processing) — requires MISTRAL_MCP_PROFILE=full
  • If the user provides a public URL, this skill runs entirely on the core profile

Works with French, English, and multi-language invoices. Handles scanned PDFs, digital PDFs, and receipts.

Steps

Step 1 — Get the invoice

Ask the user for one of:

  • A public URL (direct link to the PDF or image) — works with core profile
  • A local file path → upload with files_upload (requires MISTRAL_MCP_PROFILE=full), note the file_id

If the user has multiple invoices, offer to use batch_create (requires full profile) to process them concurrently.

Step 2 — OCR the invoice

Call mistral_ocr:

{
  "document": {
    "type": "document_url",
    "documentUrl": "<URL>"
  }
}

Use "type": "document_id", "documentId": "<file_id>" for uploaded files.

Concatenate structuredContent.pages[*].markdown for multi-page invoices.

Step 3 — Extract invoice fields

Pass the OCR text to mistral_chat with response_format: json_schema:

{
  "model": "mistral-small-latest",
  "temperature": 0,
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "invoice",
      "strict": true,
      "schema": {
        "type": "object",
        "properties": {
          "invoice_number": { "type": "string" },
          "vendor_name": { "type": "string" },
          "vendor_address": { "type": "string" },
          "vendor_vat_number": { "type": "string" },
          "client_name": { "type": "string" },
          "client_address": { "type": "string" },
          "issue_date": { "type": "string", "description": "ISO 8601 if determinable" },
          "due_date": { "type": "string" },
          "currency": { "type": "string", "description": "ISO 4217 code, e.g. EUR" },
          "line_items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": { "type": "string" },
                "quantity": { "type": "number" },
                "unit_price": { "type": "number" },
                "total": { "type": "number" }
              },
              "required": ["description", "total"]
            }
          },
          "subtotal_ht": { "type": "number" },
          "vat_rate": { "type": "number", "description": "As decimal, e.g. 0.20 for 20%" },
          "vat_amount": { "type": "number" },
          "total_ttc": { "type": "number" },
          "payment_terms": { "type": "string" },
          "iban": { "type": "string" },
          "payment_reference": { "type": "string" }
        },
        "required": ["vendor_name", "issue_date", "total_ttc", "line_items"]
      }
    }
  },
  "messages": [
    {
      "role": "user",
      "content": "<OCR text>\n\nExtract all invoice fields from the document above. Use null for fields not present in the invoice. Convert dates to ISO 8601 format when possible (YYYY-MM-DD). Do not invent values that are not in the document."
    }
  ]
}

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 126 lines · 39 tokens per session scan A f3d3217b1cea

Subscribe to this mod's changes

pdf-invoice-extractor is a skill published in the GitHub repository Swih/mistral-mcp (15 stars, last pushed 11d ago), licensed MIT. It adds 39 tokens to every session and 1,102 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.