thailand-invoice-mcp

Let AI agents issue Thailand e-Tax Invoices — submit to the Revenue Department through your own Leceipt account, query jobs, download signed documents.

От сообщества: Добавлен пользователем или импортирован; проверьте владельца перед подключениемРаботаетБез входаГлобальныйБесплатноТолько чтение

Что умеет

  • Create Invoice: Create a Thai e-Tax Invoice / Tax Invoice (ใบกำกับภาษี) through Leceipt — the POST /etax/documents/invoices-taxinvoices call. You pass the buyer + line items in plain fields; this serv
  • Query Job: Poll the status of a Leceipt document job — the GET /etax/jobs/{id} call. Use the job_id returned by create_invoice (live mode). status enum: "processing" (Leceipt is still creating/signing
  • Download Document: Download a finished Thai e-Tax document (PDF/XML) by its fileId — the GET /etax/files/{fileId} call. Use the file_id returned by query_job once its status is "complete". Returns { c

Какие данные видит

Нужен ли аккаунт

Не нужен: сервер работает без входа

Let AI agents issue Thailand e-Tax Invoices — submit to the Revenue Department through your own Leceipt account, query jobs, download signed documents. Stateless remote MCP server: bring your own API key, VAT 7% computed locally, never stores data.

Список инструментов сервера (3)

Технические названия из tools/list. Нужны только разработчикам.

create_invoiceCreate a Thai e-Tax Invoice / Tax Invoice (ใบกำกับภาษี) through Leceipt — the POST /etax/documents/invoices-taxinvoices call. You pass the buyer + line items in plain fields; this server computes the Thai VAT 7% math locally (to show you the totals and enforce the owner amount policy), assembles the Leceipt document, and — in live mode — submits it. Leceipt then SIGNS it with your account certificate (CA) and files it with the Thai Revenue Department, returning a JOB you poll with query_job. In x-leceipt-mode=test (the default) NOTHING is submitted: you get the computed totals + the exact assembled payload back (a local dry-run) so you can review before going live. Result (live): accepted=true with a job_id -> poll query_job until status "complete", then download_document. percentVat per line is 7 / 0 / -1 only. Credential header (set once in your MCP client, per-request, never stored): x-leceipt-api-key = the API key you generated in your OWN Leceipt account (Settings -> "Connection to API" -> "Generating API Key"; self-signup at my.leceipt.com/signup). Your company profile and signing certificate (CA — TDID/INET) live inside YOUR Leceipt account — this server never sees them. Mode header x-leceipt-mode: test (default = LOCAL dry-run, assembles + computes VAT but does NOT submit; Leceipt has no sandbox host) | live (submits to Leceipt -> Thai Revenue Department, real fiscal effect; requires x-leceipt-api-key). Optional owner-policy headers x-agentpay-max-amount / x-agentpay-approval-above / x-agentpay-allowed-tools.
query_jobPoll the status of a Leceipt document job — the GET /etax/jobs/{id} call. Use the job_id returned by create_invoice (live mode). status enum: "processing" (Leceipt is still creating/signing the document) | "complete" (finished — the file is ready). When complete, the result carries file_id which you pass to download_document. Requires x-leceipt-api-key (this always hits Leceipt, so a key is needed even though the default mode is test). Credential header (set once in your MCP client, per-request, never stored): x-leceipt-api-key = the API key you generated in your OWN Leceipt account (Settings -> "Connection to API" -> "Generating API Key"; self-signup at my.leceipt.com/signup). Your company profile and signing certificate (CA — TDID/INET) live inside YOUR Leceipt account — this server never sees them. Mode header x-leceipt-mode: test (default = LOCAL dry-run, assembles + computes VAT but does NOT submit; Leceipt has no sandbox host) | live (submits to Leceipt -> Thai Revenue Department, real fiscal effect; requires x-leceipt-api-key). Optional owner-policy headers x-agentpay-max-amount / x-agentpay-approval-above / x-agentpay-allowed-tools.
download_documentDownload a finished Thai e-Tax document (PDF/XML) by its fileId — the GET /etax/files/{fileId} call. Use the file_id returned by query_job once its status is "complete". Returns { content_type, size_bytes, content_base64 } — base64-decode content_base64 to get the file bytes (the signed PDF/XML you hand to the buyer / keep for the Revenue Department). Requires x-leceipt-api-key. Credential header (set once in your MCP client, per-request, never stored): x-leceipt-api-key = the API key you generated in your OWN Leceipt account (Settings -> "Connection to API" -> "Generating API Key"; self-signup at my.leceipt.com/signup). Your company profile and signing certificate (CA — TDID/INET) live inside YOUR Leceipt account — this server never sees them. Mode header x-leceipt-mode: test (default = LOCAL dry-run, assembles + computes VAT but does NOT submit; Leceipt has no sandbox host) | live (submits to Leceipt -> Thai Revenue Department, real fiscal effect; requires x-leceipt-api-key). Optional owner-policy headers x-agentpay-max-amount / x-agentpay-approval-above / x-agentpay-allowed-tools.