Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

io.github.cyanheads/uk-legislation-mcp-server

Latest version: v0.2.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
MCP server Transport: Streamable HTTP Publisher: cyanheads
2 Stars
0 Forks
6 Versions
TypeScript Repo language

Scan summary

io.github.cyanheads/uk-legislation-mcp-server was last scanned on 25 Nov 2026 at version 0.2.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest was published on 25 Nov 2026.
  • Findings: 1 rule fired in version 0.2.2 (1 low). The score describes this version only.
  • MCP server: Runs over Streamable HTTP.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.2 LATEST 25 Nov 2026 1 rule fired
0.2.1 29 Oct 2026 No rules fired
0.2.0 29 Oct 2026 No rules fired
0.1.3 25 Oct 2026 Not shown
0.1.2 9 Oct 2026 Not shown

Rules fired in 0.2.2: 1

Findings

1 Low

Findings for v0.2.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Phrase match: insecure-practice wording (not reviewed)

An automated phrase check found wording such as "skip validation", "chmod 777" or disabling certificate checks. It does not tell advice apart from examples, warnings or lists of things to avoid. Not reviewed by a person.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.2.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in VS Code

Framework

Public Hosted Server: https://uk-legislation.caseyjhand.com/mcp


Overview

The UK statute book from legislation.gov.uk: primary, secondary, and EU-origin legislation for the UK, England, Scotland, Wales, and Northern Ireland. Resolve citations, search by text or title, read any provision as it stands today, as enacted, or on a past date, and track amendments. No API key required.

Tools
Tool Description
uklaw_search_legislation Search by full text or title, or list by type and year, filtered by extent and point in time
uklaw_get_document Read an item or provision as revised, as enacted or made, or on a date, with its editorial status, unapplied effects, dates and associated documents
uklaw_get_amendments List the effects (amendments, repeals, commencements, modifications) recorded against an item or made by it
uklaw_track_changes Read the legislation.gov.uk Publication Log for a window of up to 31 days
uklaw_lookup_citation Resolve a citation, short title, or legislation.gov.uk URI to the canonical item and provision
uklaw_list_reference Decode type codes, extents, version keywords, annotation letters, citation forms, and other vocabulary, offline
Resources
Resource Description
skill://uk-legislation-guide/SKILL.md Agent Skill covering how to decide with the uklaw_* tools whether a provision is in force and current, its text on a date, what amended or commenced it, and what changed since a date

The skill is served over MCP through the Agent Skills extension (io.modelcontextprotocol/skills, skill://{+path} template) and ships in skills/ in the npm package, the Docker image, and the .mcpb bundle. The tools do not depend on it.

Capability reference

uklaw_search_legislation tool
  • text (full text: AND/OR, "quoted phrases", stemming) and/or title (every word must occur), or neither to list by type and year; limit default 20, at most 1,000 (a larger value returns 1,000 with a notice), with page
  • Filters: types (codes such as ukpga, uksi, eur, or the groups all, primary, secondary, eu-origin, draft; default all, which excludes drafts), year or year_from / year_to (1267–2100), extent (england, wales, scotland, ni) with extent_match (applicable or exact), and as_of (YYYY-MM-DD); extent and as_of cannot be combined
  • Each result carries the item path to pass to uklaw_get_document; has_more flags another page, and title searches and listings add facets (type counts and the newest 25 years)

uklaw_get_document tool
  • item is a full path (ukpga/2018/12, uksi/2019/419, eur/2016/679, regnal ukpga/Eliz2/3-4/19) or a legislation.gov.uk URI; provision a path (section/45/2/f, schedule/2/paragraph/3) or shorthand (s. 45(2)(f), Sch. 2 para. 3); version current (default), enacted (or made, adopted, created), or a YYYY-MM-DD date; language en or cy
  • kind is full (Markdown text with its annotations), outline (provision paths to read next, 100 per call from outline_offset), or pdf_only (links.pdf); text over 20,000 characters, or an item with more than 25 leaf provisions, comes back as an outline (a provision with no smaller provisions to list is returned whole up to 40,000 characters and cut past that, with a notice linking the full text), and match_text lists an item's provisions that contain a term
  • editorial (document_status, outstanding_effects, caveat) and unapplied_effects (the first 20, at item or provision level; a provision read also lists the effects on its enclosing provisions and, on full text, the provisions inside it, and says when it could not check them) show how far the revised text can be relied on; version.available lists the versions to pass as version
  • A provision read also returns provision.enclosing: the Part, Chapter, cross-heading, Schedule and (for a sub-provision) the section above it, outermost first, each with its path, label and heading as the version served gives them
  • item adds made_date, laid ([{ date, legislature }]) and coming_into_force (on a draft, the date it proposes); associated_documents lists the explanatory notes or memorandum, policy note, correction slips, impact assessments and other documents legislation.gov.uk publishes with the item (kind, title, date, language, uri), and links.notes its notes page, all linked and never fetched; links.pdf is the PDF in the language served

uklaw_get_amendments tool
  • item full or partial (uksi, ukpga/2018); direction affected (default: changes made to it) or affecting (changes it makes); filters counterpart (the other item, full or partial), status (all, unapplied, applied; default all), and provision (needs a full item; scans up to 1,500 effects per call)
  • limit default 20, at most 500, continued with next_cursor; each effect names both sides with their provisions, in_force dates, applied / outstanding, and notes; total counts effects before the provision filter, and scan reports its coverage
  • Pre-1963 Acts are queried by calendar year (ukpga/1925/20) and drafts are not indexed: both fail as regnal_item / draft_item, with the route to take instead

uklaw_track_changes tool
  • start_date (required) and end_date (defaults to start_date), a window of at most 31 days; filters content_type (legislation, changes, draft, associated-documents), direction (with changes only), category (primary, secondary, eu-origin; with legislation or associated-documents only), item, new_only, and event (published, withdrawn)
  • limit default 40, at most 80, continued with next_cursor; mode is day_walk (days newest first, up to 4 upstream requests per call) or item_log (a full item path reads that item's own log and reports read_back_to)
  • A changes event carries no effect detail: uklaw_get_amendments on its item has it

uklaw_lookup_citation tool
  • One citation of up to 300 characters: a numbered citation, a short title, or a legislation.gov.uk URI, optionally with a provision (forms below)
  • Returns the canonical item path, plus provision_found for a cited provision, checked against the current version; a miss or an ambiguous title is found: false with guidance or up to 20 candidates, not an error
Form Examples Resolves to
UK Act by chapter 2018 c. 12 ukpga/2018/12; before 1963 the calendar year is searched and the regnal candidates returned
Act of the Northern Ireland Assembly 2016 c. 5 (N.I.) nia/2016/5
UK Statutory Instrument S.I. 2019/419, SI 2019 No. 419, S.I. 2002/808 (W. 89) uksi/2019/419; alternative series numbers are ignored, and Welsh and NI SIs canonicalize to wsi / nisi
Scottish Statutory Instrument S.S.I. 2020/123 ssi/2020/123
Northern Ireland Statutory Rule S.R. 2020/12, S.R. 2020 No. 12 nisr/2020/12
Scottish and Welsh Acts and Measures 2020 asp 13, asp 2020/13, 2016 anaw 1, 2021 asc 1, 2010 nawm 1 asp/2020/13, anaw/2016/1, asc/2021/1, mwa/2010/1
EU-origin legislation Regulation (EU) 2016/679, Regulation (EC) No 1535/2003, Directive 95/46/EC, Decision (EU) 2019/419; the issuing body may lead (Council Regulation (EC) No 1/2003) eur/2016/679, eur/2003/1535 (pre-2015 numbering is number/year), eudr/1995/46, eudn/2019/419
Defined name UK GDPR eur/2016/679
legislation.gov.uk URI https://www.legislation.gov.uk/ukpga/2018/12/section/45 Split into item, provision, and version
Short title Data Protection Act 2018, Human Rights Act 1998 (c. 42) Resolved by title and year; a trailing chapter resolves the Act by number when the title does not

Any form can end with a provision (s. 45(2)(f), section 45, reg. 5, art. 28(3), r. 7, r. 3.4, Sch. 2 para. 3, Sch. B1 para. 14, Pt 3, Pt XA, parts optionally separated by commas), start with one followed by "of" or "of the" (section 45 of the Data Protection Act 2018), or start with a Schedule followed by "to" or "to the" (Schedule 2 to the Data Protection Act 2018, paragraph 3 of Schedule 2 to the Data Protection Act 2018). uklaw_list_reference topic citation_formats returns the same list.


uklaw_list_reference tool
  • topic: types, type_groups, extents, versions, document_status, annotation_types, effects, provision_paths, citation_formats, publication_log, coverage, or attribution
  • Offline, with no request to legislation.gov.uk; each entry is a key, label, description, and optional details

skill://uk-legislation-guide/SKILL.md resource
  • Markdown with YAML frontmatter: scope, identifier sources, the gates for in-force status, revised-text lag, container effects, dated reads, and date semantics, and workflows for commencement, point-in-time text, amendment history, and changes since a date
  • Listed in resources/list; the skill://{+path} template reads any file under it

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

legislation.gov.uk-specific:

  • Keyless client for legislation.gov.uk's API: CLML XML for documents, Atom feeds for search, effects, and the Publication Log
  • Follows legislation.gov.uk's fair use policy: an identifying User-Agent on every request, one process-wide queue that spaces request starts (1 second apart by default) and adopts a longer robots.txt crawl delay set for this server, up to 60 seconds, and at most 4 upstream requests per tool call within a 45-second deadline
  • Process-wide response cache, with lifetimes taken from upstream max-age (capped at one hour) and If-Modified-Since revalidation
  • Citation shorthand (s. 45(2)(f), reg. 5, Sch. 2 para. 3) normalized to provision paths; pre-1963 regnal paths and Welsh-language text (language: "cy") supported
  • PDF-only items are linked, never fetched, as legislation.gov.uk's robots.txt requires

Live check

Not yet probed. This server declares a remote endpoint but we have not observed it, so nothing below is known either way.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.cyanheads/uk-legislation-mcp-server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229