# Legislation Uk (npm · @pipeworx/mcp-legislation-uk)

legislation.gov.uk MCP — the UK's official legislation database.

- Trust score: 81/100 (high trust)
- Change this week: +3
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- remote · `gateway.pipeworx.io`: 69/100, [markdown](https://verifymcp.io/servers/pipeworx-io-legislation-uk/legislation-uk-mcp.md), [page](https://verifymcp.io/servers/pipeworx-io-legislation-uk/legislation-uk-mcp)
- npm · `@pipeworx/mcp-legislation-uk`: 81/100 (this document), [markdown](https://verifymcp.io/servers/pipeworx-io-legislation-uk/pipeworx-mcp-legislation-uk.md), [page](https://verifymcp.io/servers/pipeworx-io-legislation-uk/pipeworx-mcp-legislation-uk)

## Channel facts

- Registry: `npm`
- Package: `@pipeworx/mcp-legislation-uk`
- Version: `0.2.1`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to pipeworx-io/mcp-legislation-uk).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 2 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 60/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 2239 tokens (~373/item across 6 items; 6 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 6 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the Legislation Uk MCP server?

Legislation Uk runs locally as an npm package, launched with npx -y @pipeworx/mcp-legislation-uk. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add pipeworx-io-legislation-uk -- npx -y @pipeworx/mcp-legislation-uk
```

### Cursor

```json
{
  "mcpServers": {
    "pipeworx-io-legislation-uk": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-legislation-uk"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "pipeworx-io-legislation-uk": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-legislation-uk"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add pipeworx-io-legislation-uk -- npx -y @pipeworx/mcp-legislation-uk
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "pipeworx-io-legislation-uk": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@pipeworx/mcp-legislation-uk"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add pipeworx-io-legislation-uk --command npx --arg -y --arg @pipeworx/mcp-legislation-uk
```

### Hermes

```yaml
mcp_servers:
  pipeworx-io-legislation-uk:
    command: "npx"
    args: ["-y", "@pipeworx/mcp-legislation-uk"]
```

### Netclaw

```json
{
  "McpServers": {
    "pipeworx-io-legislation-uk": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@pipeworx/mcp-legislation-uk"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add pipeworx-io-legislation-uk -t stdio -c npx -a -y @pipeworx/mcp-legislation-uk
```

### Other

```json
{
  "mcpServers": {
    "pipeworx-io-legislation-uk": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-legislation-uk"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-03 (score 81, +16)

- [security improvement] Malware scan: unverified → pass

### 2026-11-02 (score 65, −13)

- [security regression] Malware scan: pass → unverified
- [functional improvement] Stability: unverified → 0.13
- [functional] Package version: 0.2.0 → 0.2.1

### 2026-10-30 (score 78, 0)

- [functional regression] Security disclosure: unverified → fail

### 2026-10-29 (score 78)

First indexed and scored.

## MCP tools (6)

### `search_uk_legislation` (~341 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/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts). "type" is optional: give an exact code (e.g. "ukpga"), a plain category ("act", "si", "ssi"), or omit it entirely — omitted defaults to "ukpga" and the response says so. A zero-match result carries a "hint" explaining why (legislation.gov.uk's own search is CDN-cached for up to an hour, so a genuine no-match and a stale cached page look identical) — never a bare empty "results".

Input parameters:

- `page` (number): Results page (default 1). 20 results per page.
- `title` (string, required): Words to match in the title, e.g. "equality".
- `type` (string): Document type code (e.g. "ukpga") or category ("act", "si", "ssi"). Optional — defaults to "ukpga" if omitted. Full code list: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Sc…
- `year` (number): Optional year to restrict results, e.g. 2010.

### `get_legislation` (~187 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 included.

Input parameters:

- `number` (number, required): Item number within that year/type, e.g. 15.
- `type` (string, required): Document type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts).
- `year` (number, required): Year, e.g. 2010.

### `get_legislation_section` (~528 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 statute. Identify the legislation by type + year + number (Data Protection Act 2018 = ukpga/2018/12) and give the section number. UK law exists in VERSIONS and they differ in substance: pass version to choose "current" (default — the law as amended and in force today), "enacted" (the original text as passed), or a date YYYY-MM-DD for the text as it stood on that day. as_at is an alias for a date version (e.g. as_at: "2019-01-01") — the same date is also accepted via version. legislation.gov.uk serves the NEAREST EARLIER version for a date with no amendment on it rather than erroring, so every response states the version it actually served (version_valid_from) alongside the date asked for, even when they differ. Source: legislation.gov.uk, the official database. Use search_uk_legislation or get_legislation first if you need the year and number.

Input parameters:

- `as_at` (string): YYYY-MM-DD — the law as it stood on this date. Alias for a date "version"; the response states the actual served version date, which may be earlier than this if nothing changed on the exact date give…
- `number` (number, required): Item number within that year/type, e.g. 12 for the Data Protection Act 2018.
- `section` (string, required): Section number, e.g. "5", "170", or "5A" for an inserted section.
- `type` (string, required): Document type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts).
- `version` (string): Which version of the text: "current" (default — the law as amended and in force today), "enacted" (the original text as passed), or a date YYYY-MM-DD for the text as it stood on that day.
- `year` (number, required): Year, e.g. 2018.

### `get_legislation_text` (~434 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 bounded amount and says plainly when it stopped short rather than returning a silently clipped statute. UK law exists in VERSIONS that differ in substance: pass version to choose "current" (default — the law as amended and in force today), "enacted" (the original text as passed), or a date YYYY-MM-DD for the text as it stood on that day. as_at is an alias for a date version (e.g. as_at: "2019-01-01"). legislation.gov.uk serves the NEAREST EARLIER version for a date with no amendment on it rather than erroring, so every response states the version it actually served (version_valid_from) alongside the date asked for, even when they differ. Source: legislation.gov.uk, the official database.

Input parameters:

- `as_at` (string): YYYY-MM-DD — the law as it stood on this date. Alias for a date "version"; the response states the actual served version date, which may be earlier than this if nothing changed on the exact date give…
- `number` (number, required): Item number within that year/type, e.g. 12.
- `type` (string, required): Document type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts).
- `version` (string): Which version of the text: "current" (default — the law as amended and in force today), "enacted" (the original text as passed), or a date YYYY-MM-DD for the text as it stood on that day.
- `year` (number, required): Year, e.g. 2018.

### `legislation_amendments` (~378 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 affected and affecting provisions, the type of change (inserted/substituted/repealed/omitted/amended etc.), whether it has actually been APPLIED (some amendments are made but not yet in force), and the commencement date. PAGED AT 50 — the response states total_results and total_pages; 50 rows is a page, never the whole change history (some Acts have thousands of recorded effects), pass page for more. direction "affected" (default) = changes made TO this legislation by others; "affecting" = changes this legislation makes TO others. Source: legislation.gov.uk /changes/ Atom feed.

Input parameters:

- `direction` (string): "affected" (default) — changes made TO this legislation by other instruments. "affecting" — changes this legislation makes TO other instruments.
- `number` (number, required): Item number within that year/type, e.g. 12 for the Data Protection Act 2018.
- `page` (number): Results page (default 1). 50 rows per page — see total_pages in the response.
- `type` (string, required): Document type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts).
- `year` (number, required): Year, e.g. 2018.

### `get_explanatory_notes` (~316 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_legislation_section for that). Pass section to get the commentary for just that section; omit it for an overview plus the notes' own table of contents. Not every Act has notes (Appropriation, Consolidated Fund, Finance and Consolidation Acts never get them) and not every section gets its own paragraph — some are grouped or unremarked. Notes are written for the Act AS ENACTED and are not updated for later amendments. Source: legislation.gov.uk (HTML only — there is no XML/data feed for notes).

Input parameters:

- `number` (number, required): Item number within that year/type, e.g. 12 for the Data Protection Act 2018.
- `section` (string): Optional: section number, e.g. "5", to get just that section's commentary. Omit for an overview.
- `type` (string, required): Document type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts).
- `year` (number, required): Year, e.g. 2018.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/pipeworx-io-legislation-uk/pipeworx-mcp-legislation-uk#diagnostics

## Score history

- 2026-11-05: 81
- 2026-11-04: 81
- 2026-11-03: 81
- 2026-11-02: 65
- 2026-11-01: 78
- 2026-10-31: 78
- 2026-10-30: 78
- 2026-10-29: 78

## Common questions

### What is the Legislation Uk MCP server?

Legislation Uk is an MCP server listed in the public MCP registry as io.github.pipeworx-io/legislation-uk. legislation.gov.uk MCP, the UK's official legislation database. This page covers its npm package (@pipeworx/mcp-legislation-uk).

### Is the Legislation Uk MCP server safe to use?

Legislation Uk scores 81 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Legislation Uk MCP server expose?

Legislation Uk exposes 6 tools: search_uk_legislation, get_legislation, get_legislation_section, get_legislation_text, legislation_amendments, get_explanatory_notes. Their descriptions and schemas cost roughly 2,184 tokens of context every time the server is loaded.

### Is the Legislation Uk MCP server still maintained?

Legislation Uk is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the Legislation Uk MCP server under?

Legislation Uk declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- npm package: https://www.npmjs.com/package/@pipeworx/mcp-legislation-uk
- Socket report: https://socket.dev/npm/package/@pipeworx/mcp-legislation-uk
- Repository: https://github.com/pipeworx-io/mcp-legislation-uk
- Website: https://pipeworx.io/packs/legislation-uk
- Changelog RSS feed: https://verifymcp.io/servers/pipeworx-io-legislation-uk/pipeworx-mcp-legislation-uk.xml
- Changelog JSON feed: https://verifymcp.io/servers/pipeworx-io-legislation-uk/pipeworx-mcp-legislation-uk.json
- HTML version of this page: https://verifymcp.io/servers/pipeworx-io-legislation-uk/pipeworx-mcp-legislation-uk
