MCP server
Uk Legislation MCP Server
Search and read UK legislation at any date, resolve citations, list amendments, track…
- Pricing
- Open source
- Runs
- Locally or Remotely
- Version
- 0.2.1
- Listing updated
- 4 days ago
About Uk Legislation MCP Server
Uk Legislation MCP Server is an open-source MCP server. It can run locally on your machine or as a hosted remote server.
Search and read UK legislation at any date, resolve citations, list amendments, track changes.
Install
Run in a terminal
claude mcp add --transport http uk-legislation-mcp-server https://uk-legislation.caseyjhand.com/mcpAdd to Settings → Connectors → Add custom connector
https://uk-legislation.caseyjhand.com/mcpInstall in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"uk-legislation-mcp-server": {
"url": "https://uk-legislation.caseyjhand.com/mcp"
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"uk-legislation-mcp-server": {
"type": "http",
"url": "https://uk-legislation.caseyjhand.com/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"uk-legislation-mcp-server": {
"serverUrl": "https://uk-legislation.caseyjhand.com/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"uk-legislation-mcp-server": {
"type": "http",
"url": "https://uk-legislation.caseyjhand.com/mcp"
}
}
}Configuration
UK_LEGISLATION_CONTACTEmail 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_MSMinimum 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_MBResponse cache size bound, in MB (8-1024).MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').MCP_TRANSPORT_TYPESelects the HTTP transport.MCP_HTTP_HOSTThe hostname for the HTTP server.MCP_HTTP_PORTThe port to run the HTTP server on.MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.UK_LEGISLATION_CONTACTEmail or URL appended to the User-Agent so legislation.gov.uk can reach the operator. Set it on hosted deployments.UK_LEGISLATION_MIN_REQUEST_GAP_MSMinimum 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_MBResponse cache size bound, in MB (8-1024).MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
Pricing
Open source
Uk Legislation MCP Server FAQ
Is Uk Legislation MCP Server free?
Yes. Uk Legislation MCP Server is open source, so you can use and self-host it for free.
How do I add Uk Legislation MCP Server to Claude Code?
Run this command in your terminal: claude mcp add --transport http uk-legislation-mcp-server https://uk-legislation.caseyjhand.com/mcp