Official server.json
{
"name": "io.github.cyanheads/uk-legislation-mcp-server",
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"remotes": [
{
"url": "https://uk-legislation.caseyjhand.com/mcp",
"type": "streamable-http"
}
],
"version": "0.1.2",
"packages": [
{
"version": "0.1.2",
"transport": {
"type": "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')."
}
]
},
{
"version": "0.1.2",
"transport": {
"url": "http://localhost:3010/mcp",
"type": "streamable-http"
},
"identifier": "@cyanheads/uk-legislation-mcp-server",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "MCP_TRANSPORT_TYPE",
"value": "http",
"format": "string",
"description": "Selects the HTTP transport."
},
{
"name": "MCP_HTTP_HOST",
"format": "string",
"default": "127.0.0.1",
"description": "The hostname for the HTTP server."
},
{
"name": "MCP_HTTP_PORT",
"format": "string",
"default": "3010",
"description": "The port to run the HTTP server on."
},
{
"name": "MCP_HTTP_ENDPOINT_PATH",
"format": "string",
"default": "/mcp",
"description": "The endpoint path for the MCP server."
},
{
"name": "MCP_AUTH_MODE",
"format": "string",
"default": "none",
"description": "Authentication mode to use: 'none', 'jwt', or 'oauth'."
},
{
"name": "UK_LEGISLATION_CONTACT",
"format": "string",
"description": "Email or URL appended to the User-Agent so legislation.gov.uk can reach the operator. 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')."
}
]
}
],
"repository": {
"url": "https://github.com/cyanheads/uk-legislation-mcp-server",
"source": "github"
},
"description": "Search and read UK legislation at any date, resolve citations, list amendments, track changes."
}