gb-eli-mcp MCP Server
MCP server for UK legislation, case law (Find Case Law), GOV.UK tribunal decisions and HMRC manuals.
gb-eli-mcp scores 66 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It declares 17 tools. Filed under Search. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade B
81/100 for listing completeness. Lost points: 8 of 17 tools barely described, short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "matematicsolutions-gb-eli-mcp": { "command": "uvx", "args": [ "gb-eli-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools17Tool docs quality grade D
All capabilities101
cma_casetool2,565
document_typetoolDocuments
2,571
132,162
gb_coveragetoolDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.
gb_get_acttoolFetch act/instrument metadata by reference (e.g. ukpga/2018/12).
gb_get_casetoolFetch a judgment by neutral citation, Find Case Law URI/path, or opaque id - returns Akoma Ntoso XML, or a PDF link fallback.
Fetch one GOV.UK document via the Content API - tribunal decisions return the judgment PDF link, HMRC manual sections return the full text.
gb_get_texttoolFetch the full text (xml, html, akn/Akoma Ntoso, rdf, pdf, csv).
Legislation published since a date, newest-first, optionally by doc type.
gb_searchtoolSearch legislation by text, doc type and year (/all/data.feed or /{doctype}/data.feed).
About
gb-eli-mcp
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.
The nine tools
| 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. |
gb_coverage | Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback. |
GOV.UK coverage (added v0.3.0, feature-003)
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.
Install
As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:
/plugin marketplace add matematicsolutions/gb-eli-mcp
/plugin install gb-eli-mcp@gb-eli-mcp
As a standalone server, from PyPI (uvx gb-eli-mcp), or from source:
cd gb-eli-mcp
pip install -e .
Configure (Claude Code / any MCP client)
Copy .mcp.json.example and adjust if needed:
{
"mcpServers": {
"gb-eli-mcp": { "command": "gb-eli-mcp" }
}
}
Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the gb-eli-mcp.exe launcher that pip writes at install time. The python.exe and
py.exe from the python.org installer are signed by the Python Software
Foundation, so running the module through the interpreter works:
python -m pip install gb-eli-mcp
python -m gb_eli_mcp
pip.exe is blocked for the same reason, so install with python -m pip, not
pip install. If python is not on PATH, use the Windows launcher: py -3 -m gb_eli_mcp.
{ "mcpServers": { "gb-eli-mcp": { "command": "python", "args": ["-m", "gb_eli_mcp"] } } }
Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.
Environment:
GB_ELI_BASE_URL- defaulthttps://www.legislation.gov.ukGB_ELI_CASELAW_BASE_URL- defaulthttps://caselaw.nationalarchives.gov.ukGB_ELI_GOVUK_BASE_URL- defaulthttps://www.gov.ukGB_ELI_CACHE_DIR- default~/.matematic/cache/gb-eliGB_ELI_AUDIT_DIR- default~/.matematic/audit
No API key. legislation.gov.uk is keyless.
Governance
- Public data only - read-only against legislation.gov.uk, Find Case Law and GOV.UK; no client data leaves the machine beyond search parameters.
- Audit log - every tool call appends one JSON line to
~/.matematic/audit/gb-eli-mcp.jsonl. - Network - the server talks to legislation.gov.uk, caselaw.nationalarchives.gov.uk,
www.gov.uk and the local filesystem. Once, on first use, it also fetches a small configuration
file (
gb-runtime.json.gz, updated source addresses) from this repository's GitHub Releases. That request carries no query content; GitHub's download counter for the file is the only usage signal we see.GB_ELI_RUNTIME_URL=""turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry. - Verifiable citations - every response is independently checkable via
source_url.
See CONSTITUTION.md (the binding rules) and DISCOVERY.md (the live API probe).
Tests
pip install -e ".[dev]"
pytest tests/test_instructions_drift.py -v # offline
pytest tests/test_citations_case_law.py -v # offline
pytest tests/test_citations_govuk.py -v # offline
pytest tests/test_smoke.py -v # hits live legislation.gov.uk
pytest tests/test_smoke_case_law.py -v # hits live caselaw.nationalarchives.gov.uk
pytest tests/test_smoke_govuk.py -v # hits live www.gov.uk
Licence
Apache-2.0. (c) Matematic Solutions / Wieslaw Mazur.
Note: the code in this repository is Apache-2.0. The legislation content fetched at runtime from legislation.gov.uk remains Crown copyright, published under the Open Government Licence v3.0 - not relicensed by this project.
Frequently asked questions
What is gb-eli-mcp MCP Server?
MCP server for UK legislation, case law (Find Case Law), GOV.UK tribunal decisions and HMRC manuals.
How do I install gb-eli-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. gb-eli-mcp MCP Server runs locally from the PyPI package gb-eli-mcp with the command uvx gb-eli-mcp.
Is gb-eli-mcp MCP Server free and open source?
Yes. gb-eli-mcp MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does gb-eli-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for gb-eli-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does gb-eli-mcp MCP Server provide?
gb-eli-mcp MCP Server provides 17 tools, including asylum_support_decision, cma_case, document_type, and employment_appeal_tribunal_decision. See the full tool list for descriptions and parameters.
How is gb-eli-mcp MCP Server's trust score calculated?
gb-eli-mcp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.