MCP server for UK legislation (legislation.gov.uk): persistent identifiers and verifiable citations.
MCP server for UK legislation (legislation.gov.uk): persistent identifiers and verifiable citations.
An MCP server for legislation.gov.uk, The National Archives' official portal for United Kingdom legislation. It searches and retrieves Acts of Parliament, UK Statutory Instruments, and the equivalent instruments of the Scottish Parliament, Senedd Cymru/Welsh Parliament and Northern Ireland Assembly, with persistent identifiers and verifiable citations.
The server publishes 8 tools. What each one is for:
gb_search — Search legislation by text, doc type and year (/all/data.feed or /{doc_type}/data.feed)gb_get_act — Fetch act/instrument metadata by reference (e.g. ukpga/2018/12)gb_get_text — Fetch the full text (xml, html, akn/Akoma Ntoso, rdf, pdf, csv)gb_recent_legislation — Legislation published since a date, newest-first, optionally by doc typegb_search_case_law — Search UK judgments via The National Archives' Find Case Law Atom feed, by text, court, and date rangegb_get_case — Fetch a judgment by neutral citation, Find Case Law URI/path, or opaque id - returns Akoma Ntoso XML, or a PDF link fallbackgb_search_govuk — Search GOV.UK documents via the keyless Search API - employment/tax/property tribunal decisions, HMRC internal manuals, CMA cases - with server-sidegb_get_govuk_content — Fetch one GOV.UK document via the Content API - tribunal decisions return the judgment PDF link, HMRC manual sections return the full textgb_search — Search legislation by text, doc type and year (/all/data.feed or /{doc_type}/data.feed).gb_get_act — Fetch act/instrument metadata by reference (e.g. ukpga/2018/12).gb_get_text — Fetch the full text (xml, html, akn/Akoma Ntoso, rdf, pdf, csv).gb_recent_legislation — Legislation published since a date, newest-first, optionally by doc type.gb_search_case_law — Search UK judgments via The National Archives' Find Case Law Atom feed, by text, court, and date range.gb_get_case — Fetch a judgment by neutral citation, Find Case Law URI/path, or opaque id - returns Akoma Ntoso XML, or a PDF link fallback.gb_search_govuk — Search GOV.UK documents via the keyless Search API - employment/tax/property tribunal decisions, HMRC internal manuals, CMA cases - with server-side date filters and real totals.gb_get_govuk_content — Fetch one GOV.UK document via the Content API - tribunal decisions return the judgment PDF link, HMRC manual sections return the full text.Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| gb_search | Search legislation by text, doc type and year (/all/data.feed or /{doc_type}/data.feed). |
| gb_get_act | Fetch act/instrument metadata by reference (e.g. ukpga/2018/12). |
| gb_get_text | Fetch the full text (xml, html, akn/Akoma Ntoso, rdf, pdf, csv). |
| gb_recent_legislation | Legislation published since a date, newest-first, optionally by doc type. |
| gb_search_case_law | Search UK judgments via The National Archives' Find Case Law Atom feed, by text, court, and date range. |
| gb_get_case | Fetch a judgment by neutral citation, Find Case Law URI/path, or opaque id - returns Akoma Ntoso XML, or a PDF link fallback. |
| gb_search_govuk | Search GOV.UK documents via the keyless Search API - employment/tax/property tribunal decisions, HMRC internal manuals, CMA cases - with server-side date filters and real totals. |
| gb_get_govuk_content | Fetch one GOV.UK document via the Content API - tribunal decisions return the judgment PDF link, HMRC manual sections return the full text. |
{
"mcpServers": {
"gb-eli": {
"command": "uvx",
"args": ["gb-eli-mcp"],
"env": {
"GB_ELI_BASE_URL": "your-value",
"GB_ELI_CASELAW_BASE_URL": "your-value",
"GB_ELI_GOVUK_BASE_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| GB_ELI_BASE_URL | Endpoint or connection string the server talks to. | Yes |
| GB_ELI_CASELAW_BASE_URL | Endpoint or connection string the server talks to. | Yes |
| GB_ELI_GOVUK_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
Connect GitHub MCP to repositories, issues and pull requests with GitHub’s hosted service or a locally run server.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Search Linear issues and projects, inspect work context and manage updates through Linear’s hosted MCP server with OAuth.