UK Legislation Changes
Point-in-time amendment history for UK law — a free API and MCP server.
Live: https://uk-legal-changes.pages.dev · Docs: /docs · MCP: /mcp
506 provisions across employment, equality, consumer, data protection, company,health & safety and financial-crime law. 1,548 tracked versions. Coverage 1992–2026.
Use it
- REST —
GET /api/provisions?q=unfair+dismissal,/api/changes?since=,/api/most-amended,/api/provisions/{id}— keyless, no signup - MCP — streamable HTTP at
/mcp, 4 tools (search, provision history,recent amendments, most-amended)
How it works
run_backfill.pyingests each provision's declared version boundaries fromlegislation.gov.uk's keyless XML API (polite serial rate, resumable)ingest.pystores append-only point-in-time snapshots; SQLite triggersmakerecord_versionsandaudit_eventsimmutablebuild_site.pyrenders the static site;dist/_worker.jsserves API + MCPon Cloudflare Pages (advanced mode) at $0 cost
Amendment summaries are computed deterministically from published versionboundaries — no LLM, no generated prose. Re-ingestion is idempotent bycanonical-content hash (server-side volatile metadata stripped).
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 inthe MCP serverInfo, every API payload, and on every page.