mcpField
T
Thailand Data MCP

Thailand Data MCP

Local
apify.comBusiness & Marketing1Updated 16w ago

About Thailand Data MCP

Thailand Data MCP is an MCP server for AI agents that need Thai company, address, holiday, and tax-reference data. It combines live DBD registry lookups with offline address normalization and bundled reference data.

Key features

  1. 01DBD company lookup by juristic ID
  2. 02Thai address normalization with confidence
  3. 03Bilingual province list with codes
  4. 04Public holidays for 2025–2026
  5. 05VAT and withholding-tax references

Use cases

  1. 01Checking a Thai company’s registry profile
  2. 02Structuring a free-text Thai address
  3. 03Consulting holiday dates or tax references

MCP support

Exposes five Thailand data tools to MCP clients, including company lookup, address normalization, province listing, holiday lookup, and VAT reference.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"narinthon-so-thailand-data": {
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}
Run commandnpx -y thailand-data-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmthailand-data-mcp0.1.2

Tools

5

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
juristic_idstringYes13-digit Thai juristic person registration number, e.g. '0107536000315'. Printed on invoices, contracts, and company documents; same number as the company's tax ID.

Details

From the project README

thailand-data-mcp-server

MCP server exposing Thailand data tools for AI agents: official company-registry lookups, Thai address normalization, public holidays, and VAT/withholding-tax reference.

Tools

ToolWhat it does
thai_company_lookupOfficial DBD registry profile by 13-digit juristic ID: TH/EN name, type, status, registration date, registered/paid-up capital, business objective, registered address. Live data, cached 24h.
thai_address_normalizeFree-text Thai address (TH/EN) → structured province/district/subdistrict/postcode with official codes, confidence level, ambiguity candidates, and street-part extraction. Fully offline.
thai_list_provincesCanonical list of all 77 provinces, bilingual, with codes.
thai_holidaysThai public holidays (2025–2026) with lunar-holiday flags.
thai_vat_referenceVAT rate/threshold/filing + common WHT rates and the 50 ทวิ certificate rule. Reference only, not tax advice.

Install & run

pnpm install
pnpm build
node dist/index.js            # stdio (default)
TRANSPORT=http PORT=3000 node dist/index.js   # streamable HTTP at /mcp (binds 127.0.0.1)

Claude Code registration:

claude mcp add thailand-data -- node /path/to/thailand-data-mcp/dist/index.js

No API keys required.

Example

thai_company_lookup {"juristic_id": "0107536000315"}
→ KASIKORNBANK PUBLIC COMPANY LIMITED | บริษัทมหาชนจำกัด | ยังดำเนินกิจการอยู่ | capital 30,246,820,970 THB | ...

thai_address_normalize {"address": "เลขที่ 5 ซอยสุขุมวิท 39 แขวงคลองตันเหนือ เขตวัฒนา กรุงเทพฯ"}
→ province กรุงเทพมหานคร / district วัฒนา / subdistrict คลองตันเหนือ / 10110 | confidence: high | street: "เลขที่ 5 ซอยสุขุมวิท 39"

Data sources & licenses

  • Company registry: DBD Open Data openapi.dbd.go.th — used under the DGA Open Government License, which requires source attribution; every response therefore carries an attribution field. Do not strip it.
  • Geography: thailand-geography-data/thailand-geography-json (MIT) — bundled in data/.
  • Holidays / VAT: bundled reference data; verify critical values against official announcements (Royal Gazette, Revenue Department, Bank of Thailand).

Behavior notes

  • DBD lookups are cached in-memory for 24h (registry data changes slowly; also keeps request rates polite toward the WAF-fronted upstream).
  • The DBD API mislabels JSON responses as text/html; the client parses bodies regardless.
  • HTTP 403/429 from upstream = WAF/rate-limit → the tool returns a retry-later error, not a fabricated "not found".
  • "Not found" is only reported on the registry's explicit 1004 No data available status.

Development

pnpm dev    # tsx watch

Stack: TypeScript, @modelcontextprotocol/sdk, Zod. No runtime dependencies beyond the SDK.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.