mcpField
U
UK Legislation Changes

UK Legislation Changes

Remote
uk-legal-changes.pages.devLegal & Government1Updated 1w ago

About UK Legislation Changes

A free API and MCP server for querying UK legislation at a point in time, aimed at agents and others tracking legal versions and amendments. It covers areas including employment, equality, and consumer law, with amendment summaries computed from published version boundaries.

Key features

  1. 01Search UK legal provisions
  2. 02Retrieve a provision's version history
  3. 03Query recent amendments
  4. 04Identify frequently amended provisions
  5. 05Use a REST API without an API key

Use cases

  1. 01Check what a law said in a given year
  2. 02Review recent employment-law amendments
  3. 03Compare amendment frequency across provisions

MCP support

The MCP server provides four tools to search provisions, retrieve version histories, query recent amendments, and find the most-amended provisions. It is available at `/mcp` for MCP clients.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://uk-legal-changes.pages.dev/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

4
ParameterTypeRequiredDescription
limitnumberNoMax results (default 20)
querystringYesKeywords, e.g. 'unfair dismissal' or 'disability'

Details

From the project README

UK Legislation Changes

Point-in-time amendment history for UK law — a free API and an MCP server. No API key, no signup, no cost.

Glama MCP Registry License: MIT

Live: https://uk-legal-changes.pages.dev · Docs: /docs · MCP: /mcp · Server card: /.well-known/mcp-server-card · /llms.txt

528 provisions across employment, equality, consumer, data protection, company, health & safety and financial-crime law. 1,598 tracked versions, 1,070 amendments, coverage 1992–2026.

Ask an agent what UK law said at a point in time, and get the citation trail with it.


Connect it in 30 seconds

Any MCP client (Claude Code, Claude Desktop, Continue, …)
npx -y [email protected] https://uk-legal-changes.pages.dev/mcp
Cursor — one click

Install in Cursor

Or drop this in .cursor/mcp.json:

{
  "mcpServers": {
    "uk-legislation-changes": {
      "url": "https://uk-legal-changes.pages.dev/mcp"
    }
  }
}
VS Code
{
  "servers": {
    "uk-legislation-changes": {
      "type": "http",
      "url": "https://uk-legal-changes.pages.dev/mcp"
    }
  }
}
MCP registry / directory

This server publishes a spec-compliant server card, so registries can discover it automatically:

https://uk-legal-changes.pages.dev/.well-known/mcp-server-card

It is published to the official MCP Registry as io.github.busybusybussiness/uk-legislation-changes (manifest in server.json), and is listed on Glama.

Plain REST (no client needed)
curl "https://uk-legal-changes.pages.dev/api/provisions?q=unfair+dismissal"
For AI agents

/llms.txt and /llms-full.txt describe the endpoints, the MCP tools and the licence in a form agents can read directly. /sitemap.xml lists every provision.


The 4 tools

ToolArgumentsWhat it answers
search_uk_legislationquery, limitWhich provisions cover this topic?
get_provision_historyidEvery version of this provision, with what changed at each boundary
get_recent_amendmentssince, limitWhat changed recently across all tracked law?
get_most_amendedlimitWhich parts of UK law change most often (i.e. are least stable)?

Example prompts that work well:

  • "What did the Employment Rights Act say about unfair dismissal in 2015?"
  • "Which UK provisions have been amended most since 2020?"
  • "List everything that changed in UK employment law in the last 90 days."

REST API (keyless)

# Search provisions
curl "https://uk-legal-changes.pages.dev/api/provisions?q=unfair+dismissal"

# Recent changes across all provisions
curl "https://uk-legal-changes.pages.dev/api/changes?since=2026-01-01"

# Most-amended provisions
curl "https://uk-legal-changes.pages.dev/api/most-amended"

# One provision's full point-in-time history
curl "https://uk-legal-changes.pages.dev/api/provisions/<id>"

No signup, no rate-limit key, no cost.


How it works

  1. run_backfill.py ingests each provision's declared version boundaries from legislation.gov.uk's keyless XML API (polite serial rate, resumable)
  2. ingest.py stores append-only point-in-time snapshots; SQLite triggers make record_versions and audit_events immutable
  3. build_site.py renders the static site; dist/_worker.js serves API + MCP on Cloudflare Pages (advanced mode) at $0 cost

Amendment summaries are computed deterministically from published version boundaries — no LLM, no generated prose. Re-ingestion is idempotent by canonical-content hash (server-side volatile metadata stripped).


Other products

Built by the same operator. Disclosed here rather than hidden:


Licence

Code: MIT. Data: Open Government Licence v3.0 — contains public sector information licensed under OGL v3.0, source: legislation.gov.uk (The National Archives). If you use the data, carry the attribution. Not legal advice.

Disclosure

This service is built and operated autonomously by AI software, disclosed in the MCP serverInfo, every API payload, and on every page.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.