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.
npx skills add Swih/mistral-mcp --skill pdf-invoice-extractorgit clone --depth 1 https://github.com/Swih/mistral-mcpWrote 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.
[](https://agentmods.dev/skills/swih/mistral-mcp/pdf-invoice-extractor)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00749 |
| Opus 5.5 | $0.00016 | $0.00300 |
| Sonnet 5.5 | $0.00008 | $0.00150 |
| Haiku 4.5 | $0.00004 | $0.00075 |
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 26d 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.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Invoice extraction
Use process_document, available in core, metier-docs, and admin. Check mistral://capabilities if it is unavailable. Prefer existing text or Markdown; request OCR only when the document still needs it.
Process the source
Call process_document with an explicit invoice kind and local cache bypass:
{
"source": { "type": "text", "text": "<invoice text or Markdown>" },
"kind": "invoice",
"options": { "cache": "bypass" }
}
For OCR, replace source with one of:
{ "type": "url", "url": "https://example.com/invoice.pdf" }for a provider-accessible PDF or image.{ "type": "file_id", "fileId": "<existing Mistral file ID>" }for an uploaded document.
A local path is not a source URL. If a local converter is available, use its extracted text. Otherwise files_upload requires admin and accepts filename, content_base64 containing the file bytes, and purpose: "ocr". Use its structuredContent.id as source.fileId. If neither route is available, request text, an accessible URL, or an existing upload ID.
Text input skips OCR and the Files API; invoice extraction still sends text to the configured chat endpoint. OCR requires account access and quota, and processing is not guaranteed to be free. Omit model selection: this tool uses the configured chat default internally. options.cache: "bypass" prevents this call from reading or writing the local extraction cache; it is not a provider retention setting.
Interpret the result
Check isError first. On success, use structuredContent with kind: "invoice":
| Field | Meaning |
|---|---|
vendor.name, optional nullable vendor.tax_id |
Extracted vendor identity |
total, currency |
Nullable total and three-character currency code |
line_items[] |
desc, qty, unit_price, amount |
due_date |
Nullable due date |
anomalies[] |
Reported extraction anomalies |
ocr_text, extraction_source |
Text used and whether it came from provided_text or mistral_ocr |
ocr_confidence, page_count |
Both null for supplied text; OCR metadata otherwise |
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.
- 26d ago Changed · -76 lines e335c98477d6
- 1mo ago First seen · 126 lines · 39 tokens per session scan A f3d3217b1cea
pdf-invoice-extractor is a skill published in the GitHub repository Swih/mistral-mcp (15 stars, last pushed 25d ago), licensed MIT. It adds 39 tokens to every session and 749 once invoked, about $0.0002 per session on Opus 5.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.
Other skills, from other repositories
create-document
A tool for creating and posting documents in 1C, a business software system commonly used for accounting and operations. It checks the available document types and fields before writing data.
pn-financial-model-audit
Audit a financial model (spreadsheet, structured table, or agent-produced model) for hardcoded values, broken formula logic, balance-sheet balance, circular references, and missing cross-checks. Use after any DCF, LBO, comps, or 3-statement model is built before it is used in a deliverable.
artifact
Share documents, images, and PDFs with a human as persistent links via the Artifacts MCP server. Use when the user asks to publish or share an artifact, document, diagram, generated image, or PDF with a link.
invompt-local-beta-invoice
Create or manage an Invompt invoice, quote, estimate, or pro forma from natural-language intent in any language, including short follow-ups that reuse earlier facts. Use for explicit billing-document requests across Latin, Cyrillic, RTL, Indic, CJK, and Southeast Asian scripts. Do not use for price or budgeting advice…
extract-invoices-to-spreadsheet
Extract structured data from multiple invoice PDFs in one call, then pipe the results directly into an XLSX accounts payable tracker.
extract-kyuyo-meisai-data
Extract employee, employer, allowances, deductions, taxes, and net pay from Japanese payslips.