UK Legislation MCP
An MCP server providing tools to search, read, and resolve UK legislation from legislation.gov.uk. It supports querying primary, secondary, and EU-origin legislation, resolving citations, listing amendments, and tracking changes over time. The server operates via STDIO or Streamable HTTP and requires no API key.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Search legislation by full text or title
- Read provisions as enacted or on a past date
- Resolve citations to canonical items
- List amendments and changes for specific items
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@cyanheads/uk-legislation-mcp-server 0.2.1
{
"version": "0.2.1",
"transport": "stdio",
"identifier": "@cyanheads/uk-legislation-mcp-server",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "UK_LEGISLATION_CONTACT",
"format": "string",
"description": "Email or URL appended to the User-Agent so legislation.gov.uk can reach the operator. Optional; set it on hosted deployments."
},
{
"name": "UK_LEGISLATION_MIN_REQUEST_GAP_MS",
"format": "number",
"default": "1000",
"description": "Minimum 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."
},
{
"name": "UK_LEGISLATION_CACHE_MAX_MB",
"format": "number",
"default": "64",
"description": "Response cache size bound, in MB (8-1024)."
},
{
"name": "MCP_LOG_LEVEL",
"format": "string",
"default": "info",
"description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn')."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"uk-legislation-mcp": {
"command": "npx",
"args": [
"-y",
"@cyanheads/uk-legislation-mcp-server@0.2.1"
],
"env": {
"UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
"UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
"UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}Cline
{
"mcpServers": {
"uk-legislation-mcp": {
"command": "npx",
"args": [
"-y",
"@cyanheads/uk-legislation-mcp-server@0.2.1"
],
"env": {
"UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
"UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
"UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}VS Code
{
"servers": {
"uk-legislation-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/uk-legislation-mcp-server@0.2.1"
],
"env": {
"UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
"UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
"UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"uk-legislation-mcp": {
"command": "npx",
"args": [
"-y",
"@cyanheads/uk-legislation-mcp-server@0.2.1"
],
"env": {
"UK_LEGISLATION_CONTACT": "<YOUR_UK_LEGISLATION_CONTACT>",
"UK_LEGISLATION_MIN_REQUEST_GAP_MS": "<YOUR_UK_LEGISLATION_MIN_REQUEST_GAP_MS>",
"UK_LEGISLATION_CACHE_MAX_MB": "<YOUR_UK_LEGISLATION_CACHE_MAX_MB>",
"MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
}
}
}
}Let your agent find its tools
Find servers like UK Legislation MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.