Invoice Extraction MCP
Extract structured data from invoices and receipts using local AI vision. Returns vendor details, line items with quantities and prices, totals, tax amounts, payment terms, and due dates as clean JSON.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
document_url |
string | ✅ | Invoice image URL or base64 (PDF, PNG, JPEG) |
currency_normalize |
boolean | ❌ | Convert amounts to USD (default: false) |
validate_math |
boolean | ❌ | Cross-check line item totals (default: true) |
language |
string | ❌ | Invoice language ISO code (auto-detected) |
Example Response
{
"vendor": {"name": "CloudHost Pro", "address": "123 Tech St, San Jose CA", "tax_id": "94-1234567"},
"invoice_number": "INV-2024-0847",
"invoice_date": "2024-03-15",
"due_date": "2024-04-14",
"line_items": [
{"description": "Cloud Storage 1TB/mo", "qty": 1, "unit_price": 49.99, "total": 49.99},
{"description": "CDN Bandwidth 500GB", "qty": 1, "unit_price": 35.00, "total": 35.00}
],
"subtotal": 84.99, "tax": 7.23, "total": 92.22,
"math_valid": true
}
Use Cases
- Accounts payable automation for SMBs
- Expense management system document ingestion
- Multi-vendor invoice reconciliation pipeline
Access
# x402 endpoint — pay $0.03 USDC per call (Base mainnet)
POST https://x402.ntriq.co.kr/invoice-extract
# Service catalog
curl https://x402.ntriq.co.kr/services
x402 micropayments — USDC on Base, gasless EIP-3009
