OFD Reader (China e-invoices)

v0.1.0
io.github.groove79/mcp-ofd Checked 2 days ago Published 1 month ago

Read Chinese OFD documents: e-invoice (fapiao) fields, official documents, statements.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ofd_to_text Read OFD document

Extract the text of a Chinese OFD document (GB/T 33190: e-invoices 电子发票/数电票, official documents, bank statements) in reading order, page by page. Pass exactly one of path | url | base64.

ParameterTypeDescription
base64stringBase64 file contents (for clients that cannot share a path)
maxCharsinteger
pathstringLocal file path of a .ofd file
urlstringhttp(s) URL of a .ofd file

ofd_invoice_fields Read OFD e-invoice fields

Extract structured fields from a Chinese OFD e-invoice (发票): invoice number and code, issue date, buyer and seller name and tax ID, amount before tax, tax, total. Uses the invoice's embedded tags, else the printed labels. Pass exactly one of path | url | base64.

ParameterTypeDescription
base64stringBase64 file contents (for clients that cannot share a path)
pathstringLocal file path of a .ofd file
urlstringhttp(s) URL of a .ofd file

ofd_info OFD file info

Quick facts about an OFD file without the full text: title, author, creator software, creation date, page count, whether it is digitally signed, attachments, embedded tags.

ParameterTypeDescription
base64stringBase64 file contents (for clients that cannot share a path)
pathstringLocal file path of a .ofd file
urlstringhttp(s) URL of a .ofd file