Connect Theo Luật to Gemini
- You need
- Antigravity or Gemini CLI. The Gemini app (gemini.google.com) accepts custom MCP apps only for personal Google accounts in the US.
- 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.
Antigravity (Google's CLI and IDE)
Works everywhere. Add to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"theoluat": {
"serverUrl": "https://mcp.theoluat.vn/mcp",
"headers": { "Authorization": "Bearer <your key>" }
}
}
}
Gemini CLI
gemini mcp add --transport http \ --header "Authorization: Bearer <your key>" \ theoluat https://mcp.theoluat.vn/mcp
The Gemini app (gemini.google.com)
For now it accepts custom MCP apps only for personal Google accounts in the US, aged 18 or over, with the interface in English. If that is you: Settings → Connected Apps → Add a custom app, paste https://mcp.theoluat.vn/mcp and sign in to Theo Luật.
Not eligible? Use Claude; its Free plan can connect.
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.