Skip to content

Singapore legal AI, grounded in the official text.

Add laws.sg as an MCP server and Claude, ChatGPT, Cursor, or any other MCP client can search Singapore legislation and judgments, read the provisions, and quote them as published — with your personal access token.

What grounded legal AI means here

A chat model asked about Singapore law answers from memory. It has read a great deal of Singapore law, but it is not looking at any of it while it answers, so it reconstructs both the wording and the numbering. Section numbers are exactly the detail that reconstructs wrong. Connecting laws.sg replaces the memory with the text.

Answering from memory

Ask an unconnected assistant for the working-hours limit under the Employment Act and you usually get a section number and a paraphrase of the rule. The paraphrase is often close. The number is a guess, and nothing in the answer separates the two.

Answering from laws.sg

Connected, it resolves “Employment Act 1968” to the instrument, reads section 38, and answers from what that section says: an employee must not be required to work more than 8 hours in one day or more than 44 hours in one week. It names the Act, the 2020 revised edition, and the section it read.

Why the citation matters

The citation is what makes an answer usable at work. Given an Act and a section you can open the provision here or at Singapore Statutes Online, read it in full, and see what has amended it — so you are relying on the provision rather than on a summary of it. An answer with no citation cannot be checked, and an unverifiable answer about the law is not research.

What your assistant can read

Your assistant reads the same Singapore corpus this site serves: legislation from Singapore Statutes Online and judgments from eLitigation, parsed into sections, paragraphs, and schedules it can quote, rather than held as PDFs it would have to summarise.

Singapore corpus

Court Decision
10,833
How the courts have actually applied the law.
Subsidiary Legislation
5,841
Rules, regulations, and orders made by ministers and agencies under an Act.
Bill
2,403
A law still before Parliament. Not yet in force.
Hansard
1,751
What was said in Parliament — debates and proceedings, not law itself.
Act
689
Law passed by Parliament.
Commentary
97
Third-party writing about the law. Persuasive at most, never binding.
Practice Direction
78
How the courts require matters to be filed and conducted before them.
Constitution
1
The supreme law. Every other law must be consistent with it.

Counted live from the corpus this site serves. How we source it.

How to connect

Two steps: issue a token, then paste one command into your client. The endpoint speaks streamable HTTP and authenticates with a bearer token, so any MCP client can use it.

Step 1: Create your token

Every connection authenticates with a personal token from your laws.sg account. Tokens are shown once and can be revoked any time.

Create your token

Optional — fills your token into the commands below. It stays on this page; nothing is stored or sent.

Step 2: Add laws.sg to your client

https://laws.sg/api/mcp

Claude: Adds the remote server with an Authorization header — works in Claude Code and the Claude CLI.

Set your token, then add the server

export LAWS_SG_MCP_TOKEN=laws_sg_REPLACE_WITH_YOUR_TOKEN
claude mcp add --transport http laws-sg https://laws.sg/api/mcp --header "Authorization: Bearer ${LAWS_SG_MCP_TOKEN}"
Server name
laws-sg
Endpoint
https://laws.sg/api/mcp
Transport
Streamable HTTP
Auth
Bearer token

What to ask once it is connected

Ask in plain language and name the instrument if you know it. The assistant resolves the name to an instrument, reads the provisions it needs, and answers from that text — so ask it to cite and quote, and check what it quotes.

  • What does the Employment Act say about overtime pay? Cite the exact provisions.

  • Under the PDPA, when can an organisation disclose personal data without consent?

  • Summarise a director's duties under the Companies Act, with section citations.

  • Is the Misuse of Drugs Act provision on presumptions still in force? Quote it.

Prefer to try it without setting anything up? The same corpus answers in the browser, or start from search.

What it does not do

  • It is not legal advice and it does not know your facts. It reports what a provision says, not what you should do about it.
  • Coverage is not complete. When an instrument is not in the corpus the tools report it as absent, which means “not here” and never “does not exist”.
  • Status and amendment history are derived from recorded relationships between instruments. Check Singapore Statutes Online before relying on an in-force date.
  • Grounding gives the assistant the right text. It does not stop it reasoning badly about that text, so read the provisions it quotes rather than only its summary of them.

Questions about Singapore legal AI

What is grounded legal AI?
An assistant that answers from the text of the law instead of from memory. laws.sg gives your assistant read access to Singapore legislation and court decisions over MCP, so an answer can name the instrument and provision it came from and quote it as published.
How much Singapore law can the assistant read?
laws.sg holds 21,693 Singapore works: 10,860 legislative instruments and 10,833 court decisions, parsed into 2,146,328 citable provisions and spanning 1835 to 2026.
Does it cover Singapore court judgments?
Yes. 10,833 judgments and grounds of decision sit in the same corpus as the legislation, so the assistant can search them and read them by neutral citation alongside the statute text.
Which AI assistants can connect to laws.sg?
Any client that speaks the Model Context Protocol over streamable HTTP. The setup on this page covers Claude, the Codex CLI, Cursor, and VS Code; the same endpoint and bearer token work for any other MCP client.
Does connecting laws.sg cost anything?
A laws.sg account and the MCP tokens it issues are free. You pay only what your own assistant costs you to run.
How is access secured?
Each token belongs to one account, is shown once when created, and can be revoked at any time from your account page. Requests carry it as a bearer token over HTTPS.
Can I rely on what the assistant says about Singapore law?
Verify it first. laws.sg is a free public interface, not the official publisher, and the assistant is a language model reading it. Open the provision it cites and check it against Singapore Statutes Online before relying on either.

A laws.sg account is free, and the token it issues is what your assistant authenticates with.

Create your token