Receipts & invoices to spreadsheet
Receipts and invoices to checked spreadsheet rows. Doubtful numbers are flagged.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"receipts": {
"url": "https://byondr.co/receipts/mcp"
}
}
}遠端端點
https://byondr.co/receipts/mcpstreamable-http它能做什麼
工具清單
工具(2)
🟢extract_documents(files, country, currency, date_order, exports, ...)
Read receipts and invoices (JPG, PNG, WebP, HEIC, PDF, or a zip of them; one document per file or PDF; up to 25 documents per call, 10 MB each, PDFs up to 10 pages) into checked numbers. Give each file as file_id (from create_upload), url (public https) or data_base64 (up to 2 MB inline). MCP requests are capped near 4 MB by the SDK, so keep all inline base64 in one call under about 2 MB and use create_upload for more. Returns one entry per document with vendor, date, currency, line items, subtotal, tax, total and payment method, each field marked ok, check or missing, the checks that ran, a status of ready or needs_review with review_reasons, and duplicate_of for a repeated receipt. Money is a decimal string, never a float. Each document also carries printed: its dates and currency as printed, the paths of fields whose text could not be read (printed.unreadable), the paths of fields a second read changed after a failed check (printed.second_look), and the paths of amounts printed with a dotted thousands separator on a rupiah-style receipt ("31.000") that were read as the whole number (printed.thousands; the value is already converted and the field is marked check), and the paths of amounts the model returned as JSON numbers, whose printed digits are lost (printed.number_typed; the field is marked check). Also returns 24-hour download links for the exports you ask for: csv (default), line_items_csv, quickbooks_csv (one currency; set quickbooks_currency and quickbooks_date_format, MM/DD/YYYY or DD/MM/YYYY) and file_pack (a zip of the originals renamed by date, vendor and total, plus documents.csv). Each link lists the documents left out of that file: quickbooks_csv leaves out every document with status needs_review (and ones missing a date or total), with the reason; csv, line_items_csv and file_pack keep every document. Hints: country (ISO 3166-1 alpha-2) and currency (ISO 4217) help with unclear receipts, date_order (DMY or MDY) settles dates like 03/04/2026. Show documents with status needs_review and their review_reasons to the user before using their numbers. Free for now within a daily quota counted in documents (see start.md); price when payments are enabled: $0.01 per document. Use a client timeout of at least 240 s.
輸入結構描述
{
"type": "object",
"properties": {
"files": {
"minItems": 1,
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"properties": {
"file_id": {
"description": "A file_id from create_upload (after the PUT)",
"type": "string"
},
"url": {
"description": "Or a public https URL of a document or zip",
"type": "string",
"format": "uri"
},
"data_base64": {
"description": "Or base64 bytes of a document or zip, up to 2 MB decoded over MCP (REST accepts 3 MB, and 10 MB across all files in one call); use create_upload or url above that",
"type": "string"
},
"filename": {
"description": "Original file name; the exports and file pack use it",
"type": "string",
"minLength": 1,
"maxLength": 200
}
}
},
"description": "Documents to read. Each item needs exactly one of file_id, url or data_base64"
},
"country": {
"description": "Country of the documents, ISO 3166-1 alpha-2 (for example DE)",
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"currency": {
"description": "Currency to expect when a document does not print one, ISO 4217 (for example EUR)",
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"date_order": {
"description": "How all-numeric dates such as 03/04/2026 are written: day first or month first",
"type": "string",
"enum": [
"DMY",
"MDY"
]
},
"exports": {
"default": [
"csv"
],
"description": "Files to produce, each as a 24-hour download link. Default: csv; [] writes no file",
"type": "array",
"items": {
"type": "string",
"enum": [
"csv",
"line_items_csv",
"quickbooks_csv",
"file_pack"
]
}
},
"quickbooks_currency": {
"description": "quickbooks_csv: the one currency the file holds (default: the most common one)",
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"quickbooks_date_format": {
"description": "quickbooks_csv: how dates are written (default MM/DD/YYYY)",
"type": "string",
"enum": [
"MM/DD/YYYY",
"DD/MM/YYYY"
]
}
},
"required": [
"files"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"anyOf": [
{
"type": "string",
"enum": [
"receipt",
"invoice"
]
},
{
"type": "null"
}
]
},
"vendor": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
]
},
"tax_id": {
"type": [
"string",
"null"
]
},
"address": {
"type": [
"string",
"null"
]
}
},
"required": [
"name",
"tax_id",
"address"
],
"additionalProperties": false
},
"document_number": {
"type": [
"string",
"null"
]
},
"date": {
"type": [
"string",
"null"
]
},
"due_date": {
"type": [
"string",
"null"
]
},
"currency": {
"type": [
"string",
"null"
]
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"quantity": {
"type": [
"string",
"null"
]
},
"unit_price": {
"type": [
"string",
"null"
]
},
"amount": {
"type": [
"string",
"null"
]
},
"tax_rate": {
"type": [
"string",
"null"
]
}
},
"required": [
"description",
"quantity",
"unit_price",
"amount",
"tax_rate"
],
"additionalProperties": false
}
},
"subtotal": {
"type": [
"string",
"null"
]
},
"tax": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": [
"string",
"null"
]
},
"rate": {
"type": [
"string",
"null"
]
},
"amount": {
"type": [
"string",
"null"
]
}
},
"required": [
"label",
"rate",
"amount"
],
"additionalProperties": false
}
},
"shipping": {
"type": [
"string",
"null"
]
},
"discount": {
"type": [
"string",
"null"
]
},
"tip": {
"type": [
"string",
"null"
]
},
"total": {
"type": [
"string",
"null"
]
},
"payment": {
"type": "object",
"properties": {
"method": {
"type": [
"string",
"null"
]
},
"card_last4": {
"type": [
"string",
"null"
]
}
},
"required": [
"method",
"card_last4"
],
"additionalProperties": false
},
"category_suggestion": {
"type": [
"string",
"null"
]
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"is_document",
"lines_sum",
"total_sum",
"cross_check",
"tax_rate",
"date_valid",
"date_recent",
"date_order",
"currency_read",
"money_format",
"duplicate",
"unsupported"
]
},
"passed": {
"type": "boolean"
},
"detail": {
"type": "string"
}
},
"required": [
"name",
"passed",
"detail"
],
"additionalProperties": false
}
},
"fields": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ok",
"check",
"missing"
]
},
"reason": {
"type": "string"
},
"inferred": {
"type": "boolean"
}
},
"required": [
"status"
],
"additionalProperties": false
}
},
"status": {
"type": "string",
"enum": [
"ready",
"needs_review"
]
},
"review_reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"duplicate_of": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"printed": {
"type": "object",
"properties": {
"date_text": {
"type": [
"string",
"null"
]
},
"due_date_text": {
"type": [
"string",
"null"
]
},
"currency_text": {
"type": [
"string",
"null"
]
},
"unreadable": {
"type": "array",
"items": {
"type": "string"
}
},
"second_look": {
"type": "array",
"items": {
"type": "string"
}
},
"thousands": {
"type": "array",
"items": {
"type": "string"
}
},
"number_typed": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"date_text",
"due_date_text",
"currency_text",
"unreadable",
"second_look",
"thousands",
"number_typed"
],
"additionalProperties": false
},
"source": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"pages": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"index": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"name",
"pages",
"index"
],
"additionalProperties": false
}
},
"required": [
"type",
"vendor",
"document_number",
"date",
"due_date",
"currency",
"line_items",
"subtotal",
"tax",
"shipping",
"discount",
"tip",
"total",
"payment",
"category_suggestion",
"checks",
"fields",
"status",
"review_reasons",
"duplicate_of",
"printed",
"source"
],
"additionalProperties": false
}
},
"skipped": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"name",
"reason"
],
"additionalProperties": false
}
},
"ready": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"needs_review": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"exports": {
"type": "object",
"propertyNames": {
"type": "string",
"enum": [
"csv",
"line_items_csv",
"quickbooks_csv",
"file_pack"
]
},
"additionalProperties": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"expires_at": {
"type": "string"
},
"skipped": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"reason": {
"type": "string"
}
},
"required": [
"index",
"reason"
],
"additionalProperties": false
}
}
},
"required": [
"url",
"expires_at",
"skipped"
],
"additionalProperties": false
}
}
},
"required": [
"documents",
"skipped",
"ready",
"needs_review",
"exports"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟡create_upload(bytes, filename)
Get a one-hour signed upload URL for a document or a zip that is too large to send inline (over 2 MB; up to 100 MB here) or that already sits on disk. PUT the raw bytes to upload_url with a Content-Length header, then pass file_id to extract_documents. Free.
輸入結構描述
{
"type": "object",
"properties": {
"bytes": {
"type": "integer",
"minimum": 1,
"maximum": 104857600,
"description": "Exact size of the file you will upload, in bytes (at most 100 MB)"
},
"filename": {
"description": "Original file name, used to name the documents",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"bytes"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"file_id": {
"type": "string"
},
"upload_url": {
"type": "string"
},
"method": {
"type": "string",
"const": "PUT"
},
"expires_at": {
"type": "string"
},
"max_bytes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"file_id",
"upload_url",
"method",
"expires_at",
"max_bytes"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}社群
證據