Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Uk Legislation MCP Server

by cyanheadsversion 0.2.1i★ 2iComputer or cloudOfficial site ↗
Registry nameio.github.cyanheads/uk-legislation-mcp-server

How to install

What it does

Search and read UK legislation at any date, resolve citations, list amendments, track changes.

  • Connects Computer or cloud
  • Account or key No key needed
  • Category Law & government data

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity6/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering8/8The cloud endpoint answered at the last check
Usage score26/100

Quality: Passed 5/5 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Uk Legislation MCP Server. Follow https://mcp.popnx.com/i/cyanheads-uk-legislation-mcp-server.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 5/5 checks · What you ask goes through the maker’s server (uk-legislation.caseyjhand.com) · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude · about 2 min

No key, nothing to install · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1 · on Team/Enterprise an Owner adds it

  1. Open Claude’s Connectors page

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  2. Click “Add” → “Custom” → “Web” and fill in these 2 fields

    Copy each value into the field with the same name in Claude, then click Continue

    Name · NameUk Legislation MCP Server
    Remote MCP server URL · Addresshttps://uk-legislation.caseyjhand.com/mcp

    Click Continue past the sign-in settings Claude detected · under Authentication choose what the maker says (Sign in now, Sign in when needed or No sign in), then click Add

  3. Turn it on in a chat

    +ConnectorsUk Legislation MCP Server

  4. Try it

    Use Uk Legislation MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Uk Legislation MCP Server or shows a Uk Legislation MCP Server tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with ChatGPT, depending on your plan

Full MCP: ChatGPT Business, Enterprise or Edu on the web · Pro: connects with read/fetch permissions, so tools that change data may not work · Plus: not confirmed in OpenAI’s docs; if you see an add-custom-MCP option on the Plugins page you can try these steps · web only

  1. Open ChatGPT’s add-MCP page on the web

    Plugins+Add custom MCP server

    ChatGPTPlugins1+2https://…3Create4
  2. Fill in the name and address

    Enter a name, paste the address under Connection, tick the risk warning and click Create as a plugin

    Name · NameUk Legislation MCP Server
    Connection · Addresshttps://uk-legislation.caseyjhand.com/mcp
  3. Pick Uk Legislation MCP Server in a chat

    Start a new chat and pick Uk Legislation MCP Server from your plugins before typing

  4. Try it

    Use Uk Legislation MCP Server and tell me what you can do for me, then show me one thing

    ✓ If ChatGPT says it is using Uk Legislation MCP Server or shows a Uk Legislation MCP Server tool in the answer, you are connected

Menu names checked against OpenAI’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Claude Code · about 2 min

No key, nothing to install

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  2. Paste this command and press Enter

    claude mcp add --transport http --scope user uk-legislation https://uk-legislation.caseyjhand.com/mcp
  3. Type /mcp in Claude Code

    You should see Uk Legislation MCP Server listed as connected

  4. Try it

    Use Uk Legislation MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Uk Legislation MCP Server or shows a Uk Legislation MCP Server tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor · about 2 min

No key, nothing to install

  1. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  2. Open the AI chat in Cursor in Agent mode

  3. Try it

    Use Uk Legislation MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Uk Legislation MCP Server or shows a Uk Legislation MCP Server tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code · about 2 min

No key, nothing to install

  1. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  2. Open the AI chat in VS Code in Agent mode

  3. Try it

    Use Uk Legislation MCP Server and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Uk Legislation MCP Server or shows a Uk Legislation MCP Server tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

Address for apps that connect over the web

Addresshttps://uk-legislation.caseyjhand.com/mcp

JSON settings are under “For developers” below

Stuck? Ask people who use Uk Legislation MCP Server💬 Discussion →
For developers: Terminal commands and JSON settings

Over the web

Claude Code

claude mcp add --transport http --scope user uk-legislation https://uk-legislation.caseyjhand.com/mcp

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "uk-legislation": {
      "url": "https://uk-legislation.caseyjhand.com/mcp"
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "uk-legislation": {
      "type": "http",
      "url": "https://uk-legislation.caseyjhand.com/mcp"
    }
  }
}

Installed on your computer

Claude Code

claude mcp add --scope user uk-legislation -- npx -y @cyanheads/uk-legislation-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "uk-legislation": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "uk-legislation": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "uk-legislation": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/uk-legislation-mcp-server"
      ]
    }
  }
}

Values you fill in

  • UK_LEGISLATION_CONTACT env
    Email or URL appended to the User-Agent so legislation.gov.uk can reach the operator. Optional; set it on hosted deployments.
  • UK_LEGISLATION_MIN_REQUEST_GAP_MS env
    Minimum gap between legislation.gov.uk request starts, in ms (minimum 250). Replicas sharing one User-Agent divide the fair use limit: use at least 250 ms x replica count.
  • UK_LEGISLATION_CACHE_MAX_MB env
    Response cache size bound, in MB (8-1024).
  • MCP_LOG_LEVEL env
    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
141/wk
Licencei
Apache-2.0
Connection
Computer or cloud
Transport
stdio, streamable-http
Latest versioni
0.2.1
Published to registryi
Oct 29, 2026
Code last changedi
Nov 13, 2026
Last checked
Nov 18, 2026
Maker
cyanheads
Packages
npm: @cyanheads/uk-legislation-mcp-server
npm: @cyanheads/uk-legislation-mcp-server
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Connect over the internet in

ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Tool names and descriptions exactly as the server reported them on Nov 18, 2026. The maker wrote them, not us; we show them as plain text.

  • uklaw_search_legislation

    Search the UK statute book on legislation.gov.uk by full text or title, or list legislation by type and year, filtered by geographical extent and point in time. Full-text search ranks by relevance; title searches and type/year listings run newest year first and carry type and yea

  • uklaw_get_document

    Read one item or one provision of UK legislation from legislation.gov.uk — as it stands now (revised), as enacted/made, or as it stood on a date — in Markdown, with its editorial status, annotations (the applied amendment history), the unapplied effects touching it, the versions

  • uklaw_get_amendments

    List the effects — amendments, repeals, revocations, commencements, modifications — recorded against an item (direction affected) or made by an item (direction affecting), from legislation.gov.uk's changes feeds. Filter by the other item (counterpart), by applied status (unapplie

  • uklaw_track_changes

    Read the legislation.gov.uk Publication Log for a date window of up to 31 days: new items, new revised versions, newly recorded effects, and withdrawals, newest first — the compliance-monitoring view of "what changed". Filter by content type, effect direction, category, an item o

  • uklaw_lookup_citation

    Resolve a citation or short title to the canonical legislation.gov.uk item and provision: "Data Protection Act 2018 s. 45", "2018 c. 12", "S.I. 2019/419", "S.S.I. 2020/123", "S.R. 2020/12", "2020 asp 13", "Regulation (EU) 2016/679 art. 28", a legislation.gov.uk URI, or a short ti

  • uklaw_list_reference

    Decode the vocabulary the other uklaw_* tools take and return: legislation type codes (ukpga, uksi, eur, …) with their labels, categories and enacted keywords; type groups; extents; version keywords; document status; annotation letters (F, C, I, M, E, P, X); effect record fields;

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account cyanheads, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 6 days ago

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • ✓ Pass

    Endpoint responds

    Responded in 241 ms (HTTP 200)

  • – Not applicable

    Sign-in with OAuth

    No sign-in needed

  • ✓ Pass

    No hidden instructions in tool descriptions

    Read 6 tool descriptions and found no hidden instructions to the AI

The cloud address answered 4 of the last 4 checks · latest 241 ms · checked Nov 18, 2026

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @cyanheads/uk-legislation-mcp-server@0.2.1

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/cyanheads-uk-legislation-mcp-server.svg)](https://mcp.popnx.com/en/servers/cyanheads-uk-legislation-mcp-server)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 92% of the other 1945 servers in this category
  • Published to the registry more recently than 58% of the other 1945 servers in this category
  • Basic checks equal to or better than 99% of the other 1945 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Uk Legislation MCP Server safe?

It passed 5 of 5 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

Either way works: install it on your computer or connect to the cloud version.

Is it still maintained?

The GitHub repo last changed 6 days ago, and the latest version (0.2.1) reached the registry 21 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT on the web (full MCP on Business and above; Pro read-only).

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2.1KUpdated 9 days ago

Runs in the cloud✓ lexifina.com

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 36Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 18Updated 5 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
Compared with similar ones
This one
Uk Legislation MCP Server
Global lawOpen Legal Data (Germany)LibreJusticeInfraNodeFedlex Connector
Runs whereCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks5/54/44/44/44/44/4
LicenseApache-2.0NOASSERTIONMITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

@cyanheads/uk-legislation-mcp-server Search and read UK legislation at any date, resolve citations, list amendments, track changes via MCP. STDIO or Streamable HTTP. 6 Tools • 1 Resource

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
ToolDescription
uklaw_search_legislationSearch by full text or title, or list by type and year, filtered by extent and point in time
uklaw_get_documentRead an item or provision as revised, as enacted or made, or on a date, with its editorial status and unapplied effects
uklaw_get_amendmentsList the effects (amendments, repeals, commencements, modifications) recorded against an item or made by it
uklaw_track_changesRead the legislation.gov.uk Publication Log for a window of up to 31 days
uklaw_lookup_citationResolve a citation, short title, or legislation.gov.uk URI to the canonical item and provision
uklaw_list_referenceDecode type codes, extents, version keywords, annotation letters, citation forms, and other vocabulary, offline
Resources
ResourceDescription
skill://uk-legislation-guide/SKILL.mdAgent 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 1–50 (default 20) 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

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 1–100 (default 20), 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 1–80 (default 40), 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
FormExamplesResolves to
UK Act by chapter2018 c. 12ukpga/2018/12; before 1963 the calendar year is searched and the regnal candidates returned
Act of the Northern Ireland Assembly2016 c. 5 (N.I.)nia/2016/5
UK Statutory InstrumentS.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 InstrumentS.S.I. 2020/123ssi/2020/123
Northern Ireland Statutory RuleS.R. 2020/12, S.R. 2020 No. 12nisr/2020/12
Scottish and Welsh Acts and Measures2020 asp 13, asp 2020/13, 2016 anaw 1, 2021 asc 1, 2010 nawm 1asp/2020/13, anaw/2016/1, asc/2021/1, mwa/2010/1
EU-origin legislationRegulation (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 nameUK GDPReur/2016/679
legislation.gov.uk URIhttps://www.legislation.gov.uk/ukpga/2018/12/section/45Split into item, provision, and version
Short titleData 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, Pt 3) or start with one followed by "of" or "of the": section 45 of 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

Agent-friendly output:

  • Every document read returns its editorial status with the text (`editoria

Only the beginning is shown; read the rest in the repo