An MCP server for searching and retrieving UK legislation from legislation.gov.uk, including Acts, Statutory Instruments, and related devolved legislation, with persistent identifiers and verifiable citations. It also provides case-law search/retrieval from The National Archives and GOV.UK content access for selected tribunal, HMRC, and CMA documents.
From the registry: MCP server for UK legislation, case law (Find Case Law), GOV.UK tribunal decisions and HMRC manuals.
$ python -m pip install gb-eli-mcpPlease install the `gb-eli-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install Python** — Python is required to run the server. On Windows 11 with Smart App Control, use the signed python.org interpreter and run pip as a module.
- **Install the package** — Install the MCP server package. The README shows editable install from the repo, and on Windows with Smart App Control it explicitly recommends installing via python -m pip. Run: `python -m pip install gb-eli-mcp`
Canonical MCP server config (stdio transport):
- command: `gb-eli-mcp`
- args: []
- optional environment variables:
- `GB_ELI_BASE_URL`: Base URL for legislation.gov.uk. (example: `<your-legislation-base-url>`)
- `GB_ELI_CASELAW_BASE_URL`: Base URL for The National Archives Find Case Law service. (example: `<your-caselaw-base-url>`)
- `GB_ELI_GOVUK_BASE_URL`: Base URL for GOV.UK APIs. (example: `<your-govuk-base-url>`)
- `GB_ELI_CACHE_DIR`: Directory for local cache files. (example: `<your-cache-directory>`)
- `GB_ELI_AUDIT_DIR`: Directory for audit logs. (example: `<your-audit-directory>`)
Note: No API key is required. Default stdio launch command is 'gb-eli-mcp'. On Windows 11 with Smart App Control, use the signed Python interpreter instead: command 'python' with args ['-m', 'gb_eli_mcp'].
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GB_ELI_BASE_URLBase URL for legislation.gov.uk, defaulting to https://www.legislation.gov.uk.GB_ELI_CASELAW_BASE_URLBase URL for The National Archives case law site, defaulting to https://caselaw.nationalarchives.gov.uk.GB_ELI_GOVUK_BASE_URLBase URL for GOV.UK, defaulting to https://www.gov.uk.GB_ELI_CACHE_DIRDirectory for local cache files, defaulting to ~/.matematic/cache/gb-eli.GB_ELI_AUDIT_DIRDirectory for audit logs, defaulting to ~/.matematic/audit.MCP server for searching Airweave collections with natural language queries.