Theo Luật

Connect Theo Luật to VS Code (GitHub Copilot)

You need
VS Code with GitHub Copilot.
A Theo Luật account
Free, 30 lookups a day. Sign in with Google.
Signing in to Theo Luật
With an API key: create one at app.theoluat.vn (it is shown once, so copy it straight away).

Steps

Create .vscode/mcp.json in your project. VS Code asks for the key once and stores it securely, so the key is not in the file:

{
  "inputs": [
    { "type": "promptString", "id": "theoluat-key",
      "description": "Theo Luật API key", "password": true }
  ],
  "servers": {
    "theoluat": {
      "type": "http",
      "url": "https://mcp.theoluat.vn/mcp",
      "headers": { "Authorization": "Bearer ${input:theoluat-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

Steps inside the app were checked on 2026-11-22. Apps change their interface often; if a step does not match, tell hotro@theoluat.vn.

Give your AI assistant a source of law to look things up in

30 lookups a day, free. Sign in with Google; no card needed.