Vendor Creep & Overcharge Guard MCP Server
Pricing
from $100.00 / 1,000 audit vendor invoice pdfs (ap guardrail)
Vendor Creep & Overcharge Guard MCP Server
Zero-PO deterministic invoice auditing for AI agents: catch silent vendor price hikes, sneaky new fees, exact-cent math errors, and duplicate billing with page/line evidence citations, annualized creep impact, and ready-to-send dispute memos.
Pricing
from $100.00 / 1,000 audit vendor invoice pdfs (ap guardrail)
Rating
0.0
(0)
Developer
Adam Saul
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
25 minutes ago
Last modified
Categories
Features
Share
Vendor Creep & Overcharge Guard MCP (pdf-struct-mcp)
Verify before you pay — deterministic invoice auditing, zero-PO vendor creep detection, and ready-to-send dispute memos for AI agents.
LLMs can read a PDF, but they routinely miss 1-cent arithmetic errors, silently drop rows on multi-page invoices, misread European decimals or accounting parentheses, and hallucinate totals. Vendor Creep & Overcharge Guard MCP runs pure deterministic parsing and exact-cent accounting math (zero upstream LLM calls) so agents and AP reviewers get provable verdicts and page-level evidence.
Why Use This MCP Server?
- Works Zero-PO (Month-over-Month Drift): No ERP or formal PO required — pass this month's invoice PDF alongside last month's invoice PDF to catch silent unit-price hikes, sneaky new fees, usage spikes, and annualized cost impact (
monthly delta × 12). - Full PO & Rate-Card Matching: Also accepts structured PO / rate-card JSON (
baseline_po) to enforce contracted unit prices, quantity limits, combined split-row allowances, and total caps. - Ready-to-Send Dispute Memos: When discrepancies are found, returns a zero-hallucination
dispute_memociting[Page X, Line Y], exact math formulas, and the tax-adjustedcredit_requested_amount— keeping internal extraction/usage warnings strictly separate from vendor-facing claims. - Exact-Cent Accounting Engine: Handles multi-page invoices (with or without repeated headers), European (
€1.496,28,€1 234,56) and US formats, accounting parentheses($25.00), fractional quantities/rates, multi-tax components (GST+PST/VAT), wrapped descriptions, and vendor-scoped SHA-256 duplicate fingerprinting. - Five Invoice Languages: Reads English, Dutch, French, German and Spanish invoices: their labels (
Factuurnummer,Facture n°,Rechnungsdatum,Base imponible,BTW/TVA/MwSt./IVA), comma decimals, day-first and written dates (7. Mai 2014,1 de enero de 2026, returned as ISOissue_date_iso/due_date_iso), prices that already include VAT, discount columns and per-line tax columns. Receipts, quotes and estimates are recognised and not charged. - Agent-Friendly by Design: Free preview tool (
inspect_pdf), outcome-based billing (non-invoices and scanned PDFs without a text layer return$0charge), anddetail: "auto"compact mode (shrinks a 3,000-line audit from ~1 MB to ~1.5 KB).
Tools & Outcome Pricing
| Tool | Tier / Price | Apify Event | What It Does |
|---|---|---|---|
inspect_pdf | Free | — | Pre-flight check: page count, has_text_layer, metadata, detected tables, 3-row sample, looks_like_invoice, and arithmetic-only quick_risk_preview. |
audit_invoice_pdf | $0.10 / job | audit-invoice-pdf | Full deterministic AP audit: exact-cent line/subtotal/multi-tax/total checks, page/line evidence, SHA-256 duplicate fingerprints, APPROVE / HOLD_FOR_REVIEW / REJECT verdict, and dispute_memo. |
compare_invoice_to_baseline | $0.15 / job | compare-invoice-baseline | Zero-PO month-over-month diff (against prior invoice PDF) or PO/rate-card match (baseline_po JSON). Catches unit price creep, unauthorized fees, split-row allowance reuse, usage spikes (usage_spike_threshold_pct, default 50%), duplicate billing, annualized creep impact, and generates dispute_memo. |
parse_invoice_pdf | $0.08 / job | parse-invoice-pdf | Extracts structured invoice headers, typed line items (with page & line provenance), multi-tax breakdown, and exact-cent reconciliation. |
extract_pdf_tables | $0.05 / job | extract-pdf-tables | Extracts all tables across selected pages ("all" or "1-3,5") into json, RFC-4180 csv, or markdown. |
Input Sources & Options
- Sources (provide exactly one):
pdf_url(public HTTP/HTTPS, max 25 MB, 15s timeout),pdf_base64, orfile_path(local stdio mode only; disabled over HTTP for security). - Compact Output (
detail):audit_invoice_pdfandcompare_invoice_to_baselinesupportdetail: "auto" | "compact" | "full". Defaults to"auto"(switches to compact above 100 line items to protect agent context windows). - Zero-Charge Guardrails: Scanned PDFs with no text layer return
NO_TEXT_LAYER(advising OCR first) at $0, and non-invoice documents returnNOT_AN_INVOICEat $0.
Connect from Your AI Client
Remote (hosted on Apify — recommended)
Connect any Streamable HTTP MCP client to:
https://rhythmic-clothier--pdf-struct-mcp.apify.actor/mcp
with the header Authorization: Bearer <YOUR_APIFY_TOKEN> (free Apify account; copy the token from
Apify Console → Settings → API & Integrations). You pay only per completed job, at the prices above.
Claude Code:
$claude mcp add --transport http invoice-guard https://rhythmic-clothier--pdf-struct-mcp.apify.actor/mcp --header "Authorization: Bearer <YOUR_APIFY_TOKEN>"
Any client with a JSON config:
{"mcpServers": {"invoice-guard": {"type": "http","url": "https://rhythmic-clothier--pdf-struct-mcp.apify.actor/mcp","headers": { "Authorization": "Bearer <YOUR_APIFY_TOKEN>" }}}}
Local (stdio, self-hosting from source)
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{"mcpServers": {"pdf-struct": {"command": "node","args": ["/path/to/pdf-struct-mcp/dist/index.js"],"env": {"BILLING_MODE": "free_dev"}}}}
Claude Code:
$claude mcp add pdf-struct -e BILLING_MODE=free_dev -- node /path/to/pdf-struct-mcp/dist/index.js
OpenAI Codex CLI:
$codex mcp add pdf-struct --env BILLING_MODE=free_dev -- node /path/to/pdf-struct-mcp/dist/index.js
Local Development & Verification
npm installnpm run test:all # Builds TypeScript and runs every suite, including 26 generated and 11 real public invoices
- MCP Inspector:
BILLING_MODE=free_dev npm run inspect - Local HTTP mode:
MCP_TRANSPORT=http BILLING_MODE=api_key VALID_API_KEYS=sk_live_demo npm start(GET /health,POST /mcp) - Generate realistic sample PDFs:
npm run generate:samples
Security & Billing Model
- SSRF & DNS-Rebinding Defense:
pdf_urlvalidates resolved IPs at connect time (and across redirects), blockinglocalhost, private/link-local ranges, IPv6 private ranges, and cloud metadata (169.254.169.254), with a hard 15s total download timeout and streaming 25 MB limit. - No Remote Disk Access:
file_pathandbaseline_file_pathare rejected in HTTP mode unless explicitly opted in for private self-hosting (ALLOW_LOCAL_FILES=1). - Fail-Closed Apify Billing: In Apify Standby (
BILLING_MODE=apify), charges includeX-Actor-Request-IDwith an idempotency key and fail closed (BILLING_FAILED, $0 charged) if Apify does not confirm the charge.
Deploying to Apify
npx apify-cli loginnpx apify-cli push
In Apify Console → Publication / Monetization, enable Standby mode and Pay per event using the four event names in .actor/pay_per_event.json. Leave ALLOW_LOCAL_FILES and ALLOW_PRIVATE_URLS unset on Apify.