Connect Theo Luật to other apps and the REST API
- You need
- An app that supports remote MCP servers (Streamable HTTP), or your own program.
- A Theo Luật account
- Free, 30 lookups a day. Sign in with Google.
- Signing in to Theo Luật
- With your account (no key) or with an API key created at app.theoluat.vn.
Apps with an interface
- Perplexity: Plugins → Add custom → Add MCP connector → Remote, paste the address, choose OAuth.
- Mistral Le Chat: Connectors → Add Connector → Custom MCP Connector, paste the address; Le Chat detects the sign-in method.
- Grok: grok.com/connectors → New Connector → Custom, paste the address.
- Microsoft Copilot Studio: in an agent, Tools → Add a tool → New tool → Model Context Protocol; choose API key (
Authorizationheader) or OAuth 2.0.
https://mcp.theoluat.vn/mcp
Any app that supports MCP
Theo Luật is a remote MCP server speaking Streamable HTTP. Any app that adds an MCP server by address can connect: paste the address above, then sign in (OAuth) or send a key in the header Authorization: Bearer <your key>.
REST API for your own program
Every MCP tool has a matching REST path. For example, searching the law:
curl -G "https://mcp.theoluat.vn/v1/search" \ --data-urlencode "q=thời hạn nộp tờ khai thuế GTGT" \ -H "Authorization: Bearer <your key>"
Try it
Open a new chat and ask (questions in Vietnamese work best, since the law is in Vietnamese):
Luật Đất đai 2024 phân loại đất thế nào? Điều luật đó còn hiệu lực không?
The assistant calls Theo Luật, reads Article 9 word for word, and answers with the document number, the date it took effect and a link to the original on vbpl.vn. Each tool call the assistant makes is one lookup.
If something goes wrong
- The assistant answers without looking anything up. Check that Theo Luật is switched on for the chat, or say so in the question: "use Theo Luật to look this up".
- A 401 or Unauthorized error. The key is mistyped or was deleted. Create a new one at app.theoluat.vn and check that the header reads
Authorization: Bearer <your key>. - A message that lookups have run out. The allowance is per day and resets at midnight, Vietnam time. See what is left in the dashboard, or see pricing to upgrade.
- Still stuck? Email hotro@theoluat.vn with the app's name and the error message.