npm thailand-data-mcpstdioupdated 2mo ago
MCP server exposing Thailand data tools for AI agents: official company-registry lookups, Thai address normalization, public holidays, and VAT/withholding-tax reference.
What can you do with Thailand Data MCP?
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
| Tool | What it does |
|---|---|
thai_company_lookup |
Official 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_normalize |
Free-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_provinces |
Canonical list of all 77 provinces, bilingual, with codes. |
thai_holidays |
Thai public holidays (2025–2026) with lunar-holiday flags. |
thai_vat_reference |
VAT 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 anattributionfield. 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 availablestatus.
Development
pnpm dev # tsx watch
Stack: TypeScript, @modelcontextprotocol/sdk, Zod. No runtime dependencies beyond the SDK.
Install
Add Thailand Data MCP to your client. Pick the one you use.
claude mcp add thailand-data-mcp -- npx -y thailand-data-mcpcodex mcp add thailand-data-mcp -- npx -y thailand-data-mcpamp mcp add thailand-data-mcp -- npx -y thailand-data-mcp{
"mcpServers": {
"thailand-data-mcp": {
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"thailand-data-mcp": {
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"thailand-data-mcp","command":"npx","args":["-y","thailand-data-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"thailand-data-mcp": {
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"thailand-data-mcp": {
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"thailand-data-mcp": {
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"thailand-data-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"thailand-data-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"thailand-data-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"thailand-data-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y thailand-data-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
5 tools
Thailand Data MCP exposes 5 tools to a connected agent.
- thai_company_lookup
- Official 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_normalize
- Free-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_provinces
- Canonical list of all 77 provinces, bilingual, with codes.
- thai_holidays
- Thai public holidays (2025–2026) with lunar-holiday flags.
- thai_vat_reference
- VAT rate/threshold/filing + common WHT rates and the 50 ทวิ certificate rule. Reference only, not tax advice.
Score
57 / 100
Adequate
- Documentation17/25
- Maintenance16/25
- Trust6/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 55 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 5 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.1.2Latest | Jul 8, 2026 |