Open source · Tavlabs Ltd

UK Law: every UK law as plain text.

All UK legislation as plain text — about 130,000 Acts and regulations, updated every day — open on GitHub and ready for AI assistants.

130,000+
Acts and regulations with full text
Daily
updates from the legislation.gov.uk publication log
4 nations
UK Parliament, Scotland, Wales and Northern Ireland
618
topic pages, from employment to road traffic

What it is

Acts of Parliament, statutory instruments, Scottish, Welsh and Northern Ireland law, the historic parliaments and EU-origin law, converted from legislation.gov.uk.

Plain text you can read anywhere

Every law as a Markdown file with its status, date, extent and a link to the official page. Long Acts are split into one file per section.

Checked word by word

Each law is compared with its source as it is converted, and the few gaps that remain are listed in the open — never hidden.

Kept current

A daily job reads the legislation.gov.uk publication log and rewrites every law that changed, with one commit per day.

Built for AI assistants

An index of every law and instructions for agents, so Claude, Codex or ChatGPT can find the right section and quote it with the official link.

Ask your AI assistant about UK law

Connect the free plugin or MCP server and ask in plain English. The assistant finds the law, opens the section, quotes it and links the official page.

Claude Code

Run these two commands in Claude Code:

/plugin marketplace add flaviohtavares/uk-law-tools
/plugin install uk-law@uk-law-tools

Codex and other agents

Install the skill from a terminal:

curl -fsSL https://raw.githubusercontent.com/flaviohtavares/uk-law-tools/main/install.sh | sh

ChatGPT, Claude.ai and MCP clients

Add our free MCP server as a custom connector (no sign-in). In ChatGPT: Plugins → + → Add custom MCP server (Pro, Business or Enterprise).

https://uk-law-mcp.uk-law-mcp.workers.dev/mcp

Example questions: “What does the Employment Rights Act say about notice periods?” · “Is there a law in Scotland on short-term lets?” · “Show me section 5 of the Data Protection Act 2018.”

Need something like this?

UK Law is a data pipeline: it reads a public source, converts it, checks every word and keeps it current on its own. We build the same kind of thing for operations — supplier and product data, compliance records, reports that assemble themselves.

Talk to us

An independent project, not an official source and not legal advice. Texts come from legislation.gov.uk under the Open Government Licence v3.0; always check the official text before relying on it. Not affiliated with or endorsed by The National Archives or the UK Government.

UK Law — all UK legislation as plain text, for people and AI · Tavlabs