# UK Law

> UK Law is a free MCP server for legal and government. Search and read about 130,000 UK Acts and regulations as plain text, with official links. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **Website:** https://www.tavlabs.uk/uk-law
- **Repository:** https://github.com/flaviohtavares/uk-law-mcp
- **MCP Registry name:** io.github.flaviohtavares/uk-law
- **Categories:** legal and government
- **Listing updated:** 2026-11-14

## About

The text comes from a separate open project that converts legislation.gov.uk into Markdown files, one per law, with status, date, extent and an official link. Long Acts are split into a file per section. The project covers Acts of Parliament, statutory instruments, Scottish, Welsh and Northern Ireland law, historic parliaments and EU-origin law, plus 618 topic pages. A daily job reads the legislation.gov.uk publication log and rewrites any law that changed.

The server is hosted on Cloudflare Workers and needs no sign-in. An assistant can find a law, open a section, quote it and link the official page; the site's example asks for section 86 of the Employment Rights Act 1996 on notice periods. Each law is compared with its source as it is converted, and the few remaining gaps are published openly.

This is an independent project and not legal advice. Texts are an unofficial copy under the Open Government Licence v3.0, can be out of date or contain conversion errors, and should be checked against legislation.gov.uk. Besides MCP it offers a Claude Code plugin and a Codex skill. Custom MCP servers in ChatGPT need a Pro, Business or Enterprise plan.

## Features

- **Full UK statute text:** About 130,000 Acts and regulations as plain-text Markdown.
- **Four nations:** Covers UK Parliament, Scotland, Wales and Northern Ireland, plus historic and EU-origin law.
- **Daily updates:** A job rewrites changed laws from the legislation.gov.uk publication log.
- **Section-level files:** Long Acts are split into one file per section.
- **Official links:** Each law carries its status, extent and a link to the official page.
- **Plugin and skill options:** Claude Code plugin and Codex skill work without the server.

## Good for

- Quote what the Employment Rights Act says about notice periods
- Check whether Scotland has a law on short-term lets
- Open a specific section of the Data Protection Act 2018
- Browse laws by topic, from employment to road traffic

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http uk-law https://uk-law-mcp.uk-law-mcp.workers.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

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

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "uk-law": {
      "url": "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "uk-law": {
      "type": "http",
      "url": "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "uk-law": {
      "serverUrl": "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "uk-law": {
      "type": "http",
      "url": "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
    }
  }
}
```

## FAQ

### Does it need an account?

No. It is free and needs no sign-in.

### Is it official?

No. It is an unofficial copy and not legal advice; check legislation.gov.uk.

### What licence covers the text?

The Open Government Licence v3.0, as published on legislation.gov.uk.

### How often is it updated?

Daily, from the legislation.gov.uk publication log.

### Is UK Law free?

Yes. UK Law is free to use.

### How do I add UK Law to Claude Code?

Run this command in your terminal: claude mcp add --transport http uk-law https://uk-law-mcp.uk-law-mcp.workers.dev/mcp

### What are the best alternatives to UK Law?

The closest alternatives to UK Law are NY LLC Publication (FileMyPublication), TribuJus, SupplyClub Catalog, SynomosAI Governance MCP and MedXpert 标准检索连接器.

## Alternatives

- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [SupplyClub Catalog](https://ai-powered.com/mcp/supplyclub-catalog): SupplyClub Catalog is a free MCP server for legal and government.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.
- [MedXpert 标准检索连接器](https://ai-powered.com/mcp/medxpert-2): MedXpert 标准检索连接器 is a free MCP server for legal and government.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [MedXpert 全球法规连接器 (reg-connector)](https://ai-powered.com/mcp/medxpert-reg-connector): MedXpert 全球法规连接器 (reg-connector) is a free MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/uk-law
