MCP server for UK legislation (legislation.gov.uk): persistent identifiers and verifiable citations.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-matematicsolutions-gb-eli-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for UK legislation (legislation.gov.uk): persistent identifiers and verifiable citations.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in legal
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
87 tools for Korean law — statutes, precedents, ordinances, interpretations | MCP Server · CLI · npm
956k Swiss court decisions: full-text search, citation graph, statute lookup (DE/FR/IT)
Belgian legislation via MCP — full-text search across statutes and provisions
MCP Security Weekly
Get CVE alerts and security updates for io.github.matematicsolutions/gb-eli-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP server for legislation.gov.uk, The National Archives' official portal for United Kingdom legislation. It searches and retrieves Acts of Parliament, UK Statutory Instruments, and the equivalent instruments of the Scottish Parliament, Senedd Cymru/Welsh Parliament and Northern Ireland Assembly, with persistent identifiers and verifiable citations.
Part of the MateMatic eu-legal-mcp production line: the UK counterpart of the Polish
sejm-eli-mcp and the German de-eli-mcp, built on the same architecture and citation
contract against the UK's own source.
No native ELI. legislation.gov.uk does not publish a native
/eli/namespace (confirmed live:GET /eli/ukpga/2018/12returns 404), even though its own persistent-identifier scheme predates and is closely related to ELI - the UK is widely credited with pioneering the URI-based legislation-identifier concept that ELI later formalised EU-wide.eli_uritherefore carries the UK's own stable id URI (https://www.legislation.gov.uk/id/{type}/{year}/{number}) instead of a fabricated ELI path - the same disclosure pattern used by this factory'snl-eli-mcpandse-eli-mcp. SeeCONSTITUTION.mdArt. 4.Licence. Content is published under the Open Government Licence v3.0 (confirmed live from the site's own
/helppage), which permits copying, publishing and adapting with attribution. This connector only relays that public content, with asource_urlon every response.
| Tool | What it does |
|---|---|
gb_search | Search legislation by text, doc type and year (/all/data.feed or /{doc_type}/data.feed). |
gb_get_act | Fetch act/instrument metadata by reference (e.g. ukpga/2018/12). |
gb_get_text | Fetch the full text (xml, html, akn/Akoma Ntoso, rdf, pdf, csv). |
gb_recent_legislation | Legislation published since a date, newest-first, optionally by doc type. |
gb_search_case_law | Search UK judgments via The National Archives' Find Case Law Atom feed, by text, court, and date range. |
gb_get_case | Fetch a judgment by neutral citation, Find Case Law URI/path, or opaque id - returns Akoma Ntoso XML, or a PDF link fallback. |
gb_search_govuk | Search GOV.UK documents via the keyless Search API - employment/tax/property tribunal decisions, HMRC internal manuals, CMA cases - with server-side date filters and real totals. |
gb_get_govuk_content | Fetch one GOV.UK document via the Content API - tribunal decisions return the judgment PDF link, HMRC manual sections return the full text. |
One upstream, many institutions: gb_search_govuk filters by document_type.
Live-verified totals (2026-07-07, from the Search API's own total/facet fields -
probe: https://www.gov.uk/api/search.json?count=0&facet_content_store_document_type=1000):
document_type | Documents |
|---|---|
employment_tribunal_decision | 132,162 |
hmrc_manual_section | 85,315 |
residential_property_tribunal_decision | 17,088 |
employment_appeal_tribunal_decision | 2,571 |
cma_case | 2,565 |
utaac_decision (Upper Tribunal, AAC) | 2,031 |
tax_tribunal_decision | 1,414 |
asylum_support_decision | 101 |
See SOURCES.md for the full per-source ledger, including what was scouted and
deliberately rejected (ICO, FCA, IAC) and why.
Every response carries the contract: eli_uri
(e.g. https://www.legislation.gov.uk/id/ukpga/2018/12), human_readable_citation
(e.g. Data Protection Act 2018 c. 12), and source_url. Case-law responses carry the
same-spirit contract (human_readable_citation, source_url, dataset_note) - see
CONSTITUTION.md Art. 5.
cd gb-eli-mcp
pip install -e .
Copy .mcp.json.example and adjust if needed:
{
"mcpServers": {
"gb-eli-mcp"
... [View full README on GitHub](https://github.com/matematicsolutions/gb-eli-mcp#readme)