Server data from the Official MCP Registry
Search and read all UK legislation (130k Acts and regulations), updated daily, with official links.
About
Search and read all UK legislation (130k Acts and regulations), updated daily, with official links.
Remote endpoints: streamable-http: https://uk-law-mcp.uk-law-mcp.workers.dev/mcp
Security Report
Valid MCP server (1 strong, 2 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
4 tools verified · Open access · No issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"io-github-flaviohtavares-uk-law": {
"url": "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
UK Law MCP server
A free, read-only MCP server that lets AI assistants (Claude, ChatGPT, Claude Code, Codex and others) search and read all UK legislation, about 130,000 Acts and regulations from UK Law, updated daily from legislation.gov.uk.
Not legal advice. The texts are an unofficial copy and can be out of date or contain conversion errors. Always check the official text at legislation.gov.uk.
Server URL: https://uk-law-mcp.uk-law-mcp.workers.dev/mcp (no sign-in). The page at the root of
that address has the same instructions.
Install: step by step
There are two ways to connect an assistant, and both are free:
- the MCP server (
https://uk-law-mcp.uk-law-mcp.workers.dev/mcp), for Claude, ChatGPT, Claude Code and Codex. Nothing to install on your computer and no sign-in; - the skill (a small Python script), for Claude Code and Codex. It reads GitHub directly and works without the server.
After installing, test it with a question such as: "What does section 86 of the Employment Rights Act 1996 say about notice periods?" The answer should quote the section and link legislation.gov.uk.
Claude (claude.ai, Claude Desktop and the mobile apps)
Works on every plan; the Free plan allows one custom connector.
- Open Customize → Connectors. The same connector then works in Claude Desktop and the mobile apps.
- Click + Add, then Add custom connector.
- Name:
UK Law. Remote MCP server URL:https://uk-law-mcp.uk-law-mcp.workers.dev/mcp. Click Continue. - Under Authentication, choose No sign in, then click Add.
- In a chat, click + (bottom left) → Connectors and make sure UK Law is switched on. Then ask your question.
On Team and Enterprise plans an Owner adds the connector once in Organization settings → Connectors (Add → Custom → Web, same URL, "No sign in"); members then switch it on in Customize → Connectors.
Claude Code
Option A, the plugin (recommended). Type in Claude Code:
/plugin marketplace add flaviohtavares/uk-law-tools
/plugin install uk-law@uk-law-tools
Restart Claude Code if asked. Update later with /plugin marketplace update uk-law-tools.
Option B, the MCP server. In a terminal:
claude mcp add --transport http --scope user uk-law https://uk-law-mcp.uk-law-mcp.workers.dev/mcp
--scope user makes it available in every project. Check it with /mcp inside Claude Code.
Codex (CLI, IDE extension and app)
Option A, the MCP server. In a terminal:
codex mcp add uk-law --url https://uk-law-mcp.uk-law-mcp.workers.dev/mcp
or add this to ~/.codex/config.toml:
[mcp_servers.uk-law]
url = "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
Check it with codex mcp list, then start a new Codex session.
Option B, the skill. In a terminal:
curl -fsSL https://raw.githubusercontent.com/flaviohtavares/uk-law-tools/main/install.sh | sh
It copies the skill to ~/.agents/skills/uk-law (and ~/.codex/skills/uk-law). Restart Codex.
Run the same command to update.
ChatGPT
Custom MCP servers work on chatgpt.com (web) with a Pro, Business or Enterprise/Edu plan. On Business, only workspace admins and owners can add them.
- Open Plugins.
- Click +, then Add custom MCP server.
- Name:
UK Law. Under Connection, enterhttps://uk-law-mcp.uk-law-mcp.workers.dev/mcp. - Authentication: None.
- Tick I understand and want to continue, then click Create as a plugin and install it.
- In a new chat, type @, pick UK Law, and ask your question.
Free and Plus plans: paste this link into the chat and ask your question; ChatGPT reads the instructions and opens the right file:
https://raw.githubusercontent.com/flaviohtavares/uk-law/main/llms.txt
Other MCP clients
Add https://uk-law-mcp.uk-law-mcp.workers.dev/mcp as a remote server (Streamable HTTP transport,
no authentication).
Tools
| tool | does |
|---|---|
search_laws | find laws by words of the title or by id; filters: types, in_force, extent, topic, limit |
get_law | read a law; for long laws, the contents, then one part ("section 86", "schedule 1", "part 2") |
list_topics | official subject headings with counts of laws in force |
get_topic | Acts and regulations in force on one topic (year for big topics) |
How it works
A Cloudflare Worker with a stateless MCP handler (createMcpHandler from the Agents SDK). The
index of laws (index/laws.csv of the data repository) is kept in D1 with a full-text index on the
titles; the texts are read from GitHub (cached for an hour). No user data is stored.
Run your own
npm install
npx wrangler login
npx wrangler d1 create uk-law # put the database_id in wrangler.jsonc
npm run sync:full # loads index/laws.csv from a clone of uk-law (UKLAW_DATA)
npm run deploy
npm run sync sends only the rows that changed since the last sync; the maintainer runs it after
each daily update. For local development: python3 scripts/sync.py --full --local and npm run dev.
Who maintains this
Built and maintained by Tavlabs Ltd, a London software house for small and medium businesses. contact@tavlabs.uk
Not affiliated with or endorsed by The National Archives, legislation.gov.uk or the UK Government. Code: MIT. Legislation texts: © Crown and database right, Open Government Licence v3.0.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
