search_laws
Search UK laws
Find UK Acts and regulations by words of their title, or by id (e.g. ukpga/1996/18). Exact titles, Acts and laws in force come first. Returns id, title, status, extent and topics.
limitquery必填topictypesextentin_forceio.github.flaviohtavares由 GitHub 帳號 flaviohtavares 發布v1.0.1更新於 Nov 7, 2026
Search and read all UK legislation (130k Acts and regulations), updated daily, with official links.
免費、唯讀的遠端 MCP 伺服器,讓助理搜尋並閱讀 legislation.gov.uk 上的英國法案與法規。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.flaviohtavares%2Fuk-law/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"uk-law": {
"type": "http",
"url": "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"
}
}
}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.
There are two ways to connect an assistant, and both are free:
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;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.
Works on every plan; the Free plan allows one custom connector.
UK Law. Remote MCP server URL: https://uk-law-mcp.uk-law-mcp.workers.dev/mcp. Click Continue.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.
Option A, the plugin (recommended). Type in Claude Code:
Restart Claude Code if asked. Update later with /plugin marketplace update uk-law-tools.
Option B, the MCP server. In a terminal:
--scope user makes it available in every project. Check it with /mcp inside Claude Code.
Option A, the MCP server. In a terminal:
or add this to ~/.codex/config.toml:
Check it with codex mcp list, then start a new Codex session.
Option B, the skill. In a terminal:
It copies the skill to ~/.agents/skills/uk-law (and ~/.codex/skills/uk-law). Restart Codex.
Run the same command to update.
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.
UK Law. Under Connection, enter https://uk-law-mcp.uk-law-mcp.workers.dev/mcp.Free and Plus plans: paste this link into the chat and ask your question; ChatGPT reads the instructions and opens the right file:
Add https://uk-law-mcp.uk-law-mcp.workers.dev/mcp as a remote server (Streamable HTTP transport,
no authentication).
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.
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.
Built and maintained by Tavlabs Ltd, a London software house for small and medium businesses. [email protected]
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.
來源:README.md,提交 29a1a20
Search UK laws
Find UK Acts and regulations by words of their title, or by id (e.g. ukpga/1996/18). Exact titles, Acts and laws in force come first. Returns id, title, status, extent and topics.
limitquery必填topictypesextentin_forceRead a UK law
Read a law by id. Short laws come whole. Long laws (100+ sections) return their front matter and a Contents list: then ask for one part, e.g. part: "section 86", "schedule 1", "regulation 3" or "part 2" (lists that part's sections).
id必填partmax_charsList topics
Topics (the official subject headings of legislation.gov.uk) with the number of Acts and regulations in force. Optionally only those whose name has these words.
queryRead a topic page
The Acts and regulations in force on one topic, with how many regulations each Act has on it. Big topics list regulations by year: pass year to read one.
name必填yearmax_chars已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
/plugin marketplace add flaviohtavares/uk-law-tools/plugin install uk-law@uk-law-toolsclaude mcp add --transport http --scope user uk-law https://uk-law-mcp.uk-law-mcp.workers.dev/mcpcodex mcp add uk-law --url https://uk-law-mcp.uk-law-mcp.workers.dev/mcp[mcp_servers.uk-law]url = "https://uk-law-mcp.uk-law-mcp.workers.dev/mcp"curl -fsSL https://raw.githubusercontent.com/flaviohtavares/uk-law-tools/main/install.sh | shhttps://raw.githubusercontent.com/flaviohtavares/uk-law/main/llms.txtnpm installnpx wrangler loginnpx wrangler d1 create uk-law # put the database_id in wrangler.jsoncnpm run sync:full # loads index/laws.csv from a clone of uk-law (UKLAW_DATA)npm run deploy