- Home
- MCP servers
- Thai Law
Thai Law
- typescript
0
GitHub Stars
typescript
Language
3 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can query Thai legislation directly from an MCP-compatible client to search, retrieve exact provisions, verify currency, and build legal arguments. This server provides a verified Thai legal database with full-text search, EU cross-references, and context-rich results, designed for lawyers, compliance professionals, legal tech developers, and researchers who need accurate statutory text without manual cross-referencing.
How to use
Connect your MCP-enabled client to one of the available endpoints to start querying Thai law. You can use the hosted version for zero installation or run the server locally via npm. Once connected, you can perform full-text searches, retrieve exact provisions by statute and section, check if a statute is in force, and aggregate citations for a topic. Use natural language queries like asking about data protection provisions, cybersecurity requirements, or EU directive implementations.
How to install
Prerequisites: you need Node.js installed on your system. You can verify Node.js and npm are available by running the following commands.
node -v
npm -v
Option A: Use remotely (no install) — connect to the hosted MCP endpoint directly from your client.
Endpoint to use: https://thailand-law-mcp.vercel.app/mcp
Option 1 — Use remotely (no install) with client configuration
Configure your MCP client to point at the hosted endpoint. The exact steps depend on your client.
Example for a typical client configuration includes the HTTP URL and an empty argument list for remote usage.
Option 2 — Run locally with npm (direct npx usage)
Install and run the local MCP server using the following command.
npx @ansvar/thailand-law-mcp
Option 3 — Run locally with npm start (dev)
If you prefer starting through the project’s development script, use the npm dev command.
npm run dev
Configure clients for local or remote use
To connect Claude Desktop or Cursor/VS Code, add an MCP server entry pointing to the appropriate command or URL. Examples below show how to wire the server into popular clients.
Available tools
search_legislation
Full-text search across all provisions using FTS5 with BM25 ranking for fast, relevant results.
get_provision
Retrieve a specific provision by statute identifier, including chapter and section details.
check_currency
Check whether a statute is in force, amended, or repealed to ensure current applicability.
validate_citation
Validate a legal citation against the database to reduce errors.
build_legal_stance
Aggregate and synthesize citations from multiple statutes around a legal topic.
format_citation
Format citations according to Thai conventions (full, short, pinpoint).
list_sources
List all available statutes with metadata for quick navigation.
about
Provide server capabilities, coverage, and health information.
get_eu_basis
Retrieve EU directives or regulations that underpin Thai statutes.
get_thai_implementations
Find Thai laws that implement specific EU acts.
search_eu_implementations
Search EU documents and identify Thai implementations.
get_provision_eu_basis
Provide EU law references for a given provision.
validate_eu_compliance
Check the implementation status of EU directives in Thailand.