gb-eli-mcp

v0.5.3
io.github.matematicsolutions/gb-eli-mcp Checked 1 day ago Published 3 months ago

MCP server for UK legislation, case law (Find Case Law), GOV.UK tribunal decisions and HMRC manuals.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gb_get_act

Fetch UK legislation metadata from legislation.gov.uk by reference.

ParameterTypeDescription
reference *stringa reference like ``"ukpga/2018/12"`` (Data Protection Act 2018), ``"uksi/2019/419"``, ``"asp/2015/1"``, or a full legislation.gov.uk URL. An optional point-in-time date suffix (``/2026-06-19``) select…

gb_get_text

Fetch the full text of UK legislation. Uses legislation.gov.uk's content-negotiation path suffix (``/data.{format}``) - ``xml`` (the site's own ``legislation.xsd`` schema), ``html``, ``akn`` (Akoma Ntoso), ``rdf``, ``pdf``, or ``csv``.

ParameterTypeDescription
reference *stringreference of the act/instrument (work or point-in-time expression).
formatstringone of ``"xml"``, ``"html"``, ``"akn"``, ``"rdf"``, ``"pdf"``, ``"csv"``.

gb_recent_legislation

UK legislation published since ``since_iso`` (ISO 8601 date), newest-first. Maps to the Atom search feed sorted/filtered by publication year, optionally scoped to one ``doc_type``. legislation.gov.uk's public search feed does not support a generic ``dateFrom`` filter across all types, so this tool filters the requested year's feed by the ``published`` date client-side.

ParameterTypeDescription
since_iso *stringa date in ISO 8601 (e.g. ``"2026-01-01"``). Only the year is used to select the feed to scan; items are then filtered to on/after this date.
doc_typerestrict to one UK document-type code (e.g. ``"ukpga"``, ``"uksi"``).
limitintegermax items to return (1..100).

gb_search_case_law

Search UK case law on The National Archives' Find Case Law service. Maps to the public Atom feed at ``caselaw.nationalarchives.gov.uk/atom.xml`` (confirmed live 2026-07-06 - keyless, Open Justice Licence). A separate service from legislation.gov.uk: different host, different Atom dialect (``tna:`` namespace).

ParameterTypeDescription
courtcourt/tribunal code, e.g. ``"ewhc/admin"``, ``"ewca/civ"``, ``"uksc"``. Passed through to Find Case Law's own ``court`` query param.
from_dateISO 8601 date (YYYY-MM-DD), inclusive. Find Case Law's public API has no documented server-side date-range filter, so this is applied client-side against each result's ``date`` field after fetching.
limitintegermax items to return (1..100).
queryfull-text search (matches judgment text in order, per upstream docs).
to_dateISO 8601 date (YYYY-MM-DD), inclusive. Same client-side caveat.

gb_get_case

Fetch a UK judgment from The National Archives' Find Case Law service.

ParameterTypeDescription
reference *stringa neutral citation (e.g. ``"[2026] EWHC 1698 (Admin)"``), a Find Case Law URI/path (e.g. ``"ewhc/admin/2026/1698"`` or a full ``caselaw.nationalarchives.gov.uk`` URL), or an opaque ``"d-{uuid}"`` id.…

gb_search_govuk

Search GOV.UK documents - tribunal decisions, HMRC manuals, CMA cases and more. Maps to the GOV.UK Search API (``www.gov.uk/api/search.json`` - confirmed live 2026-07-07: keyless, Open Government Licence v3.0). One upstream aggregating many institutions; filter with ``document_type``. Legally weighty types with live-verified totals (2026-07-07): ``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`` (2,031), ``tax_tribunal_decisi…

ParameterTypeDescription
document_typeGOV.UK ``content_store_document_type`` slug (see above).
from_dateISO 8601 date (YYYY-MM-DD), inclusive - passed server-side via ``filter_public_timestamp`` (unlike Find Case Law, GOV.UK supports this).
limitintegermax items to return (1..100).
organisationGOV.UK organisation slug, e.g. ``"competition-and-markets-authority"``.
queryfull-text search terms.
startintegerresult offset for pagination (0-based).
to_dateISO 8601 date (YYYY-MM-DD), inclusive. Same server-side filter.

gb_get_govuk_content

Fetch one GOV.UK document (tribunal decision, HMRC manual section, CMA case). Maps to the GOV.UK Content API (``www.gov.uk/api/content/{path}`` - confirmed live 2026-07-07). Tribunal decisions carry the judgment as a PDF in ``attachments`` with only a short HTML body; HMRC manual sections carry the full text in ``body_html``.

ParameterTypeDescription
path *stringthe document's site path - take it from a ``gb_search_govuk`` result's ``link`` field, e.g. ``"/employment-tribunal-decisions/mr-b-king-v-thales-dis-uk-ltd-1403603-slash-2020"`` or ``"/hmrc-internal-m…

gb_coverage

Declare what this connector covers, how it is sourced, and what it does NOT cover. Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead. Returns: ``Coverage`` with families, an as-of note, and a non-empty list of known gaps.