MCP server
Legislation Uk
io.github.pipeworx-io/legislation-uk
Checked 26 Oct 2026, 08:29 UTC · Connected to it and listed its tools
legislation.gov.uk MCP — the UK's official legislation database.
Working at last checkOfficial: pipeworx.io's GitHub account (pipeworx-io)About 29,336 tokens per request once connected48 tools
https://gateway.pipeworx.io/legislation-uk/mcp
At a glance
- Type
- MCP server
- Publisher
- pipeworx.io (verified by the MCP Registry)
- Status
- Working at last check
- Tools
- 48
- Token cost
- About 29,336 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http legislation-uk https://gateway.pipeworx.io/legislation-uk/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.legislation-uk] url = "https://gateway.pipeworx.io/legislation-uk/mcp"
Gemini CLI
{"mcpServers":{"legislation-uk":{"httpUrl":"https://gateway.pipeworx.io/legislation-uk/mcp"}}}
Cursor
{"mcpServers":{"legislation-uk":{"url":"https://gateway.pipeworx.io/legislation-uk/mcp"}}}
VS Code
{"servers":{"legislation-uk":{"type":"http","url":"https://gateway.pipeworx.io/legislation-uk/mcp"}}}
Antigravity
agy mcp add legislation-uk https://gateway.pipeworx.io/legislation-uk/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"legislation-uk","server_url":"https://gateway.pipeworx.io/legislation-uk/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"legislation-uk","server_url":"https://gateway.pipeworx.io/legislation-uk/mcp"}
Tools
get_explanatory_notes~456 tokens
Read the Explanatory Notes for a UK Act — plain-language commentary written by the government department responsible, explaining what a section is meant to do and why. NOT part of the law and not endorsed by Parliament — use for context on intent, never as the text of the law itself (use get_legislaget_legislation~262 tokens
Get metadata for one specific piece of UK legislation by type + year + number (e.g. ukpga/2010/15 = Equality Act 2010). Returns title, type, year, number, status, extent, enactment date, a long-title summary, and the full-text URL. Content is XML; fields are best-effort parsed and a raw excerpt is iget_legislation_section~727 tokens
Read the actual WORDS of one section of a UK Act or statutory instrument — "what does section 5 of the Data Protection Act 2018 say", "quote section 1 of the Human Rights Act", "text of s.170 DPA 2018". Returns the full text of that section alone, so a specific provision does not cost a whole statutget_legislation_text~587 tokens
Read the text of a whole UK Act or statutory instrument — the body of the law rather than a catalogue entry. Use for short instruments and for reading an Act end to end; for one provision prefer get_legislation_section, which returns just that section. Large Acts run to megabytes, so this reads a bolegislation_amendments~537 tokens
What has amended this UK Act or instrument, and (in the other direction) what this legislation itself amends — "what has changed the Data Protection Act 2018", "has section 13A been amended", "what does the Victims and Prisoners Act 2024 amend". Each row names the amending/amended instrument, the afsearch_uk_legislation~464 tokens
Search UK legislation by title words (and optional year), returning matching Acts/instruments with their full-text URLs. UK legislation only. Source: legislation.gov.uk Atom feed. Document types: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/as
Browse
Related MCP servers
- Maxwell Directory (x402 + MCP)
Local providers worldwide, plus travel and public data. Free search; paid answers via x402. - Luxembourg MCP
Keyless MCP access to official Luxembourg public data: laws, statistics, mobility, and more. - Lebanese Legislation
Search and read Lebanese laws, articles, court rulings and the Official Gazette, verbatim. - Cn Law
China (mainland) national law — one pack per jurisdiction (at-ris precedent: legislation AND case… - Legislation
U.S. bills, roll-call votes, legislators and 2026 elections for all 50 states, D.C. and Congress. - Eur Lex
EUR-Lex MCP — official EU law, article-level. - Al-Taswia Iraqi Law Research
Read-only search of Al-Taswia's published Iraqi law articles. General information, not legal advice. - sebbi.pro - the proof layer for AI
Score, seal and prove AI decisions in Bitcoin, plus 755 compliance checks, free to verify.
Badge for your README
[](https://aptlynx.net/servers/io.github.pipeworx-io/legislation-uk)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents