home / mcp / thai law mcp server
Query Thai legislation via MCP server with data from the Royal Gazette and EU cross-references for AI-powered legal research.
Configuration
View docs{
"mcpServers": {
"ansvar-systems-thailand-law-mcp": {
"url": "https://thailand-law-mcp.vercel.app/mcp"
}
}
}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.
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.
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 -vOption 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
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.
Install and run the local MCP server using the following command.
npx @ansvar/thailand-law-mcpIf you prefer starting through the project’s development script, use the npm dev command.
npm run devTo 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.
Full-text search across all provisions using FTS5 with BM25 ranking for fast, relevant results.
Retrieve a specific provision by statute identifier, including chapter and section details.
Check whether a statute is in force, amended, or repealed to ensure current applicability.
Validate a legal citation against the database to reduce errors.
Aggregate and synthesize citations from multiple statutes around a legal topic.
Format citations according to Thai conventions (full, short, pinpoint).
List all available statutes with metadata for quick navigation.
Provide server capabilities, coverage, and health information.
Retrieve EU directives or regulations that underpin Thai statutes.
Find Thai laws that implement specific EU acts.
Search EU documents and identify Thai implementations.
Provide EU law references for a given provision.
Check the implementation status of EU directives in Thailand.