Thai tools your AI can call, not guess.
An MCP server for PromptPay QR, VAT, withholding tax, Buddhist Era dates, ID checksums and baht-in-words. Plain code on both sides: no AI inside, no network calls from the tools, nothing stored.
https://thaimcp.pages.dev/mcpThis panel calls the real endpoint, POST /mcp, from your browser. The text you type is sent only to that endpoint to compute the answer; it is not stored.
Why Thai-specific tools
Language models are good with language and uneven with exact arithmetic, checksums and calendar rules. Thai documents lean on all three. These tools take the exact parts out of the prompt and run them as code, so the same input always gives the same, checkable answer.
Buddhist Era dates
BE = CE + 543, but documents also write 2-digit years (69) or mix calendars. The tool reads both, rejects dates that do not exist (29 Feb 2569 is not a leap day), and names the weekday in Thai and English.
Satang-exact money
VAT and withholding tax are computed in integer satang with half-up rounding. Floating-point never touches the amounts, and inputs with more than 2 decimals are rejected instead of silently rounded.
PromptPay with a real CRC
A Thai QR payload is a TLV string closed by a CRC16 checksum; one wrong character and the bank app refuses it. The payload is built deterministically, and the test suite decodes the QR image back to the exact payload.
Baht in words
เอ็ด after tens, ยี่สิบ not สองสิบ, repeated ล้าน groups, ถ้วน vs satang. Worked through digit by digit, with the cases that trip people up covered by tests.
Not a benchmark claim: this is simply a division of labour. The model decides what to ask; the tool computes the answer.
Install
{
"mcpServers": {
"thai": { "url": "https://thaimcp.pages.dev/mcp" }
}
}claude mcp add --transport http thai https://thaimcp.pages.dev/mcp{
"mcpServers": {
"thai": {
"command": "thai-mcp"
}
}
}{
"mcpServers": {
"thai": { "command": "thai-mcp" }
}
}curl -s https://thaimcp.pages.dev/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"thai_baht_text","arguments":{"amount":1234.56}}}'npx thai-mcp today. The zero-install route is the remote URL. For local stdio, download the tarball and install it globally:npm install -g ./thai-mcp-0.1.0.tgz # after downloading it
thai-mcp # starts the stdio serverThe Claude Desktop / Cursor snippets assume the global install above puts thai-mcp on your PATH; otherwise use "command": "node", "args": ["/absolute/path/to/src/server.js"].
Seven tools
Each tool has a precise JSON Schema, validates its input, and returns a readable text plus structured data.
promptpay_qrPromptPay payload with a valid CRC16 + QR as SVG.
thai_vatVAT 7% / 10%, inclusive or exclusive, exact to the satang.
thai_whtWithholding tax on the pre-VAT amount, with VAT and amount payable.
thai_date_convertพ.ศ. ↔ ค.ศ., Thai/English parsing, weekday, leap-year validation.
thai_id_validate13-digit ID / tax ID checksum, never stored.
thai_baht_textAmounts in Thai words: เอ็ด, ยี่สิบ, ล้าน, satang.
thai_pit_estimateProgressive-bracket personal income tax estimate.
Questions
Is it free? Do I need an API key?
Yes, free, and no key or account. The code is MIT licensed. The hosted endpoint has no authentication and caps request bodies at 32 KB.
Does it use AI?
No. Every tool is ordinary deterministic code. The only AI in the picture is the assistant that calls it.
Is my input stored?
No. Tool inputs are computed in memory and discarded; the endpoint does not log request bodies. The site counts page views by path only. See the privacy page.
Is this tax advice?
No. It is informational software. Tax rates and rules change; verify with the Revenue Department or a qualified adviser before relying on a figure.
How current is the VAT rate?
The reduced 7% rate is in force through 30 Sep 2027 under Royal Decree No. 807 B.E. 2569, verified from Revenue Department releases on 24 Nov 2026. The tool says so in its output and the caller should re-verify; the statutory rate of 10% is also supported.
Which clients work?
Any MCP client. Local stdio works with Claude Desktop, Cursor and similar. The remote endpoint needs a client that supports the Streamable HTTP transport (for example Claude Code with --transport http).
Why is there no test-ID generator?
13-digit numbers that start with 0 are real juristic-person IDs, so a generated “test ID” could collide with a real entity. The tool validates; it does not invent IDs.
Can I self-host it?
Yes: run src/server.js over stdio, or deploy functions/mcp.js to Cloudflare Pages. See the docs.
Roadmap
- Shippedv0.1.0: seven tools, stdio server, free remote endpoint, tarball download.
- NextPublish to npm and the MCP registry once the maintainers are ready (the manifest
server.jsonis included but unverified). - IdeaMore verified withholding-tax categories and payee types (foreign payees, interest, royalties, dividends are not built in today).
- IdeaSocial-security, overtime and severance calculators: they exist as forms in BizThai and could be exposed as tools.
Ideas, not commitments.
Looking for forms instead of tools?
BizThai has the same calculators as simple web pages for people: PromptPay QR, VAT, withholding tax, invoices and more.